]>
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" | |
e3b71cb8 | 351 | #include "wx/wxPython/pyistream.h" |
d14a1e28 | 352 | |
b2dc1044 | 353 | static const wxString wxPyEmptyString(wxEmptyString); |
d14a1e28 | 354 | |
d14a1e28 | 355 | |
994141e6 | 356 | |
15afbcd0 RD |
357 | #include <limits.h> |
358 | ||
359 | ||
360 | SWIGSTATICINLINE(long) | |
361 | SWIG_CheckLongInRange(long value, const char* type, | |
362 | long min_value, long max_value) | |
363 | { | |
364 | if (!PyErr_Occurred()) { | |
365 | if (value < min_value) { | |
366 | PyObject *err = | |
367 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
368 | value, type, min_value); | |
369 | ||
370 | PyErr_SetObject(PyExc_OverflowError, err); | |
371 | Py_DECREF(err); | |
372 | } else if (value > max_value) { | |
373 | PyObject *err = | |
374 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
375 | value, type, max_value); | |
376 | PyErr_SetObject(PyExc_OverflowError, err); | |
377 | Py_DECREF(err); | |
378 | } | |
379 | } | |
380 | return value; | |
381 | } | |
382 | ||
383 | ||
384 | SWIGSTATICINLINE(long) | |
385 | SWIG_AsLong(PyObject * obj) | |
386 | { | |
69223c70 RD |
387 | if (PyNumber_Check(obj)) |
388 | return PyInt_AsLong(obj); | |
389 | else { | |
390 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
391 | obj->ob_type->tp_name); | |
392 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
393 | Py_DECREF(errmsg); | |
394 | return 0; | |
395 | } | |
15afbcd0 RD |
396 | } |
397 | ||
398 | ||
399 | #if INT_MAX != LONG_MAX | |
400 | SWIGSTATICINLINE(int) | |
401 | SWIG_AsInt(PyObject *obj) | |
994141e6 | 402 | { |
15afbcd0 RD |
403 | return swig_numeric_cast(int, |
404 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
405 | "int", INT_MIN, INT_MAX)); | |
406 | } | |
407 | #else | |
408 | #define SWIG_AsInt SWIG_AsLong | |
409 | #endif | |
410 | ||
411 | ||
412 | SWIGSTATICINLINE(int) | |
413 | SWIG_CheckInt(PyObject* obj) | |
414 | { | |
415 | SWIG_AsInt(obj); | |
416 | if (PyErr_Occurred()) { | |
417 | PyErr_Clear(); | |
418 | return 0; | |
419 | } else { | |
420 | return 1; | |
421 | } | |
994141e6 RD |
422 | } |
423 | ||
023a034e RD |
424 | |
425 | #include <wx/stockitem.h> | |
426 | ||
b2dc1044 RD |
427 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); |
428 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
429 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
d14a1e28 | 430 | |
15afbcd0 RD |
431 | SWIGSTATICINLINE(int) |
432 | SWIG_CheckLong(PyObject* obj) | |
994141e6 | 433 | { |
15afbcd0 RD |
434 | SWIG_AsLong(obj); |
435 | if (PyErr_Occurred()) { | |
436 | PyErr_Clear(); | |
437 | return 0; | |
438 | } else { | |
439 | return 1; | |
440 | } | |
994141e6 RD |
441 | } |
442 | ||
443 | ||
15afbcd0 RD |
444 | SWIGSTATICINLINE(bool) |
445 | SWIG_AsBool(PyObject *obj) | |
994141e6 RD |
446 | { |
447 | return PyObject_IsTrue(obj) ? true : false; | |
448 | } | |
449 | ||
450 | ||
15afbcd0 RD |
451 | SWIGSTATICINLINE(int) |
452 | SWIG_CheckBool(PyObject* obj) | |
453 | { | |
454 | SWIG_AsBool(obj); | |
455 | if (PyErr_Occurred()) { | |
456 | PyErr_Clear(); | |
457 | return 0; | |
458 | } else { | |
459 | return 1; | |
460 | } | |
461 | } | |
462 | ||
463 | ||
d14a1e28 RD |
464 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
465 | PyObject* o2; | |
466 | PyObject* o3; | |
467 | ||
468 | if (!target) { | |
469 | target = o; | |
470 | } else if (target == Py_None) { | |
471 | Py_DECREF(Py_None); | |
472 | target = o; | |
473 | } else { | |
474 | if (!PyTuple_Check(target)) { | |
475 | o2 = target; | |
476 | target = PyTuple_New(1); | |
477 | PyTuple_SetItem(target, 0, o2); | |
478 | } | |
479 | o3 = PyTuple_New(1); | |
480 | PyTuple_SetItem(o3, 0, o); | |
481 | ||
482 | o2 = target; | |
483 | target = PySequence_Concat(o2, o3); | |
484 | Py_DECREF(o2); | |
485 | Py_DECREF(o3); | |
486 | } | |
487 | return target; | |
488 | } | |
489 | ||
490 | ||
491 | long wxGetFreeMemory() | |
39f61e25 RD |
492 | { wxPyRaiseNotImplemented(); return 0; } |
493 | ||
494 | ||
15afbcd0 RD |
495 | SWIGSTATICINLINE(unsigned long) |
496 | SWIG_AsUnsignedLong(PyObject * obj) | |
497 | { | |
498 | if (PyLong_Check(obj)) { | |
499 | return PyLong_AsUnsignedLong(obj); | |
500 | } else { | |
69223c70 | 501 | long i = SWIG_AsLong(obj); |
15afbcd0 | 502 | if ( !PyErr_Occurred() && (i < 0)) { |
69223c70 | 503 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); |
15afbcd0 RD |
504 | } |
505 | return i; | |
506 | } | |
507 | } | |
508 | ||
509 | ||
510 | SWIGSTATICINLINE(int) | |
511 | SWIG_CheckUnsignedLong(PyObject* obj) | |
512 | { | |
513 | SWIG_AsUnsignedLong(obj); | |
514 | if (PyErr_Occurred()) { | |
515 | PyErr_Clear(); | |
516 | return 0; | |
517 | } else { | |
518 | return 1; | |
519 | } | |
520 | } | |
521 | ||
522 | ||
523 | SWIGSTATICINLINE(PyObject* ) | |
524 | SWIG_FromUnsignedLong(unsigned long value) | |
994141e6 | 525 | { |
15afbcd0 RD |
526 | return (value > LONG_MAX) ? |
527 | PyLong_FromUnsignedLong(value) | |
528 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
994141e6 RD |
529 | } |
530 | ||
531 | ||
d14a1e28 RD |
532 | void wxWakeUpMainThread() {} |
533 | ||
534 | ||
535 | bool wxThread_IsMain() { | |
536 | #ifdef WXP_WITH_THREAD | |
537 | return wxThread::IsMain(); | |
538 | #else | |
e811c8ce | 539 | return True; |
d14a1e28 RD |
540 | #endif |
541 | } | |
542 | ||
543 | ||
544 | int wxCaret_GetBlinkTime() { | |
545 | return wxCaret::GetBlinkTime(); | |
546 | } | |
547 | ||
548 | void wxCaret_SetBlinkTime(int milliseconds) { | |
549 | wxCaret::SetBlinkTime(milliseconds); | |
550 | } | |
551 | ||
552 | ||
553 | #include <wx/snglinst.h> | |
554 | ||
555 | ||
556 | #ifdef __WXMSW__ | |
557 | #include <wx/msw/private.h> | |
558 | #include <wx/dynload.h> | |
559 | #endif | |
560 | ||
561 | ||
562 | ||
563 | void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) | |
564 | { | |
565 | #ifdef __WXMSW__ | |
566 | ||
567 | switch (method) | |
568 | { | |
569 | case 1: | |
570 | // This one only partially works. Appears to be an undocumented | |
571 | // "standard" convention that not all widgets adhear to. For | |
572 | // example, for some widgets backgrounds or non-client areas may | |
573 | // not be painted. | |
574 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
575 | break; | |
576 | ||
577 | case 2: | |
578 | // This one works much better, except for on XP. On Win2k nearly | |
579 | // all widgets and their children are captured correctly[**]. On | |
580 | // XP with Themes activated most native widgets draw only | |
581 | // partially, if at all. Without themes it works just like on | |
582 | // Win2k. | |
583 | // | |
584 | // ** For example the radio buttons in a wxRadioBox are not its | |
585 | // children by default, but you can capture it via the panel | |
586 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
587 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
588 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
589 | PRF_ERASEBKGND | PRF_OWNED ); | |
590 | break; | |
591 | ||
592 | case 3: | |
593 | // This one is only defined in the latest SDK and is only | |
594 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
595 | // so I expect that it will work similar to the above. Since it | |
596 | // is avaialble only on XP, it can't be compiled like this and | |
597 | // will have to be loaded dynamically. | |
598 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
599 | ||
600 | // fall through | |
601 | ||
602 | case 4: | |
603 | // Use PrintWindow if available, or fallback to WM_PRINT | |
604 | // otherwise. Unfortunately using PrintWindow is even worse than | |
605 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
606 | // at all, with or without Themes. | |
607 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
e811c8ce | 608 | static bool s_triedToLoad = False; |
d14a1e28 RD |
609 | static PrintWindow_t pfnPrintWindow = NULL; |
610 | if ( !s_triedToLoad ) | |
611 | { | |
612 | ||
e811c8ce | 613 | s_triedToLoad = True; |
d14a1e28 RD |
614 | wxDynamicLibrary dllUser32(_T("user32.dll")); |
615 | if ( dllUser32.IsLoaded() ) | |
616 | { | |
617 | wxLogNull nolog; // Don't report errors here | |
618 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
619 | } | |
620 | } | |
621 | if (pfnPrintWindow) | |
622 | { | |
623 | printf("Using PrintWindow\n"); | |
624 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
625 | } | |
626 | else | |
627 | { | |
628 | printf("Using WM_PRINT\n"); | |
629 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
630 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); | |
631 | } | |
632 | } | |
633 | #endif | |
634 | } | |
635 | ||
636 | ||
637 | ||
638 | #include <wx/tipdlg.h> | |
639 | ||
640 | ||
641 | class wxPyTipProvider : public wxTipProvider { | |
642 | public: | |
643 | wxPyTipProvider(size_t currentTip) | |
644 | : wxTipProvider(currentTip) {} | |
645 | ||
646 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
647 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
648 | PYPRIVATE; | |
649 | }; | |
650 | ||
651 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
652 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
653 | ||
654 | ||
4276dc52 RD |
655 | //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); |
656 | ||
1c0f361b RD |
657 | IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer); |
658 | ||
4276dc52 RD |
659 | void wxPyTimer::Notify() { |
660 | bool found; | |
4f89f6a3 | 661 | bool blocked = wxPyBeginBlockThreads(); |
4276dc52 RD |
662 | if ((found = wxPyCBH_findCallback(m_myInst, "Notify"))) |
663 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); | |
4f89f6a3 | 664 | wxPyEndBlockThreads(blocked); |
4276dc52 RD |
665 | if (! found) |
666 | wxTimer::Notify(); | |
667 | } | |
668 | void wxPyTimer::base_Notify() { | |
669 | wxTimer::Notify(); | |
670 | } | |
671 | ||
d14a1e28 | 672 | |
994141e6 | 673 | |
15afbcd0 RD |
674 | SWIGSTATICINLINE(PyObject *) |
675 | SWIG_FromCharPtr(const char* cptr) | |
676 | { | |
677 | size_t size = cptr ? strlen(cptr) : 0; | |
678 | if (cptr) { | |
679 | if (size > INT_MAX) { | |
680 | return SWIG_NewPointerObj(swig_const_cast(char*,cptr), | |
681 | SWIG_TypeQuery("char *"), 0); | |
682 | } else { | |
683 | return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size)); | |
684 | } | |
685 | } else { | |
686 | Py_INCREF(Py_None); | |
687 | return Py_None; | |
688 | } | |
689 | } | |
690 | ||
691 | ||
692 | SWIGSTATICINLINE(unsigned long) | |
693 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
694 | unsigned long max_value) | |
695 | { | |
696 | if (!PyErr_Occurred()) { | |
697 | if (value > max_value) { | |
698 | PyObject *err = | |
699 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
700 | value, type, max_value); | |
701 | PyErr_SetObject(PyExc_OverflowError, err); | |
702 | Py_DECREF(err); | |
703 | } | |
704 | } | |
705 | return value; | |
706 | } | |
707 | ||
708 | ||
709 | #if UINT_MAX != ULONG_MAX | |
710 | SWIGSTATICINLINE(unsigned int) | |
711 | SWIG_AsUnsignedInt(PyObject *obj) | |
994141e6 | 712 | { |
15afbcd0 RD |
713 | return swig_numeric_cast(unsigned int, |
714 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
715 | "unsigned int", UINT_MAX)); | |
716 | } | |
717 | #else | |
718 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
719 | #endif | |
720 | ||
721 | ||
722 | SWIGSTATICINLINE(int) | |
723 | SWIG_CheckUnsignedInt(PyObject* obj) | |
724 | { | |
725 | SWIG_AsUnsignedInt(obj); | |
726 | if (PyErr_Occurred()) { | |
727 | PyErr_Clear(); | |
728 | return 0; | |
729 | } else { | |
730 | return 1; | |
731 | } | |
994141e6 RD |
732 | } |
733 | ||
d14a1e28 RD |
734 | wxString Log_TimeStamp(){ |
735 | wxString msg; | |
736 | wxLog::TimeStamp(&msg); | |
737 | return msg; | |
738 | } | |
739 | void wxLog_Destroy(wxLog *self){ delete self; } | |
740 | ||
741 | // A wxLog class that can be derived from in wxPython | |
742 | class wxPyLog : public wxLog { | |
743 | public: | |
744 | wxPyLog() : wxLog() {} | |
745 | ||
746 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
747 | bool found; | |
4f89f6a3 | 748 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
749 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { |
750 | PyObject* s = wx2PyString(szString); | |
751 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
752 | Py_DECREF(s); | |
753 | } | |
4f89f6a3 | 754 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
755 | if (! found) |
756 | wxLog::DoLog(level, szString, t); | |
757 | } | |
758 | ||
759 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
760 | bool found; | |
4f89f6a3 | 761 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
762 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { |
763 | PyObject* s = wx2PyString(szString); | |
764 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
765 | Py_DECREF(s); | |
766 | } | |
4f89f6a3 | 767 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
768 | if (! found) |
769 | wxLog::DoLogString(szString, t); | |
770 | } | |
771 | ||
772 | PYPRIVATE; | |
773 | }; | |
774 | ||
775 | ||
776 | ||
777 | ||
778 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
779 | ||
780 | ||
781 | #include <wx/joystick.h> | |
782 | ||
783 | ||
784 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
785 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
786 | class wxJoystick : public wxObject { | |
787 | public: | |
788 | wxJoystick(int joystick = wxJOYSTICK1) { | |
4f89f6a3 | 789 | bool blocked = wxPyBeginBlockThreads(); |
39f61e25 RD |
790 | PyErr_SetString(PyExc_NotImplementedError, |
791 | "wxJoystick is not available on this platform."); | |
4f89f6a3 | 792 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
793 | } |
794 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
795 | int GetZPosition() { return -1; } | |
796 | int GetButtonState() { return -1; } | |
797 | int GetPOVPosition() { return -1; } | |
798 | int GetPOVCTSPosition() { return -1; } | |
799 | int GetRudderPosition() { return -1; } | |
800 | int GetUPosition() { return -1; } | |
801 | int GetVPosition() { return -1; } | |
802 | int GetMovementThreshold() { return -1; } | |
803 | void SetMovementThreshold(int threshold) {} | |
804 | ||
e811c8ce | 805 | bool IsOk(void) { return False; } |
d14a1e28 RD |
806 | int GetNumberJoysticks() { return -1; } |
807 | int GetManufacturerId() { return -1; } | |
808 | int GetProductId() { return -1; } | |
41e2b43e | 809 | wxString GetProductName() { return wxEmptyString; } |
d14a1e28 RD |
810 | int GetXMin() { return -1; } |
811 | int GetYMin() { return -1; } | |
812 | int GetZMin() { return -1; } | |
813 | int GetXMax() { return -1; } | |
814 | int GetYMax() { return -1; } | |
815 | int GetZMax() { return -1; } | |
816 | int GetNumberButtons() { return -1; } | |
817 | int GetNumberAxes() { return -1; } | |
818 | int GetMaxButtons() { return -1; } | |
819 | int GetMaxAxes() { return -1; } | |
820 | int GetPollingMin() { return -1; } | |
821 | int GetPollingMax() { return -1; } | |
822 | int GetRudderMin() { return -1; } | |
823 | int GetRudderMax() { return -1; } | |
824 | int GetUMin() { return -1; } | |
825 | int GetUMax() { return -1; } | |
826 | int GetVMin() { return -1; } | |
827 | int GetVMax() { return -1; } | |
828 | ||
e811c8ce RD |
829 | bool HasRudder() { return False; } |
830 | bool HasZ() { return False; } | |
831 | bool HasU() { return False; } | |
832 | bool HasV() { return False; } | |
833 | bool HasPOV() { return False; } | |
834 | bool HasPOV4Dir() { return False; } | |
835 | bool HasPOVCTS() { return False; } | |
d14a1e28 | 836 | |
e811c8ce RD |
837 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; } |
838 | bool ReleaseCapture() { return False; } | |
d14a1e28 RD |
839 | }; |
840 | #endif | |
841 | ||
842 | ||
4d5c3d91 | 843 | #include <wx/sound.h> |
d14a1e28 RD |
844 | |
845 | ||
dff1fa9b | 846 | #if !wxUSE_SOUND |
d14a1e28 | 847 | // A C++ stub class for wxWave for platforms that don't have it. |
4d5c3d91 | 848 | class wxSound : public wxObject |
d14a1e28 RD |
849 | { |
850 | public: | |
4d5c3d91 | 851 | wxSound() { |
4f89f6a3 | 852 | bool blocked = wxPyBeginBlockThreads(); |
39f61e25 | 853 | PyErr_SetString(PyExc_NotImplementedError, |
4d5c3d91 | 854 | "wxSound is not available on this platform."); |
4f89f6a3 | 855 | wxPyEndBlockThreads(blocked); |
d14a1e28 | 856 | } |
36cadbf7 | 857 | wxSound(const wxString&/*, bool*/) { |
4f89f6a3 | 858 | bool blocked = wxPyBeginBlockThreads(); |
39f61e25 | 859 | PyErr_SetString(PyExc_NotImplementedError, |
4d5c3d91 | 860 | "wxSound is not available on this platform."); |
4f89f6a3 | 861 | wxPyEndBlockThreads(blocked); |
d14a1e28 | 862 | } |
4d5c3d91 | 863 | wxSound(int, const wxByte*) { |
4f89f6a3 | 864 | bool blocked = wxPyBeginBlockThreads(); |
4d5c3d91 RD |
865 | PyErr_SetString(PyExc_NotImplementedError, |
866 | "wxSound is not available on this platform."); | |
4f89f6a3 | 867 | wxPyEndBlockThreads(blocked); |
4d5c3d91 RD |
868 | } |
869 | ||
870 | ~wxSound() {}; | |
d14a1e28 | 871 | |
36cadbf7 | 872 | bool Create(const wxString&/*, bool*/) { return false; } |
4d5c3d91 RD |
873 | bool Create(int, const wxByte*) { return false; }; |
874 | bool IsOk() { return false; }; | |
875 | bool Play(unsigned) const { return false; } | |
876 | static bool Play(const wxString&, unsigned) { return false; } | |
877 | static void Stop() {} | |
d14a1e28 RD |
878 | }; |
879 | ||
880 | #endif | |
881 | ||
36cadbf7 RD |
882 | wxSound *new_wxSound(wxString const &fileName){ |
883 | if (fileName.Length() == 0) | |
884 | return new wxSound; | |
885 | else | |
886 | return new wxSound(fileName); | |
887 | } | |
888 | wxSound *new_wxSound(PyObject *data){ | |
889 | unsigned char* buffer; int size; | |
890 | wxSound *sound = NULL; | |
891 | ||
892 | bool blocked = wxPyBeginBlockThreads(); | |
893 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
894 | goto done; | |
895 | sound = new wxSound(size, buffer); | |
896 | done: | |
897 | wxPyEndBlockThreads(blocked); | |
898 | return sound; | |
899 | } | |
900 | bool wxSound_CreateFromData(wxSound *self,PyObject *data){ | |
901 | #ifndef __WXMAC__ | |
902 | unsigned char* buffer; | |
903 | int size; | |
904 | bool rv = False; | |
905 | ||
906 | bool blocked = wxPyBeginBlockThreads(); | |
907 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
908 | goto done; | |
909 | rv = self->Create(size, buffer); | |
910 | done: | |
911 | wxPyEndBlockThreads(blocked); | |
912 | return rv; | |
913 | #else | |
914 | bool blocked = wxPyBeginBlockThreads(); | |
915 | PyErr_SetString(PyExc_NotImplementedError, | |
916 | "Create from data is not available on this platform."); | |
917 | wxPyEndBlockThreads(blocked); | |
918 | return False; | |
919 | #endif | |
920 | } | |
d14a1e28 RD |
921 | |
922 | #include <wx/mimetype.h> | |
923 | ||
924 | PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
925 | wxString str; | |
926 | if (self->GetMimeType(&str)) | |
927 | return wx2PyString(str); | |
928 | else | |
929 | RETURN_NONE(); | |
930 | } | |
931 | PyObject *wxFileType_GetMimeTypes(wxFileType *self){ | |
932 | wxArrayString arr; | |
933 | if (self->GetMimeTypes(arr)) | |
934 | return wxArrayString2PyList_helper(arr); | |
935 | else | |
936 | RETURN_NONE(); | |
937 | } | |
938 | PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
939 | wxArrayString arr; | |
940 | if (self->GetExtensions(arr)) | |
941 | return wxArrayString2PyList_helper(arr); | |
942 | else | |
943 | RETURN_NONE(); | |
944 | } | |
945 | wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
946 | wxIconLocation loc; | |
947 | if (self->GetIcon(&loc)) | |
948 | return new wxIcon(loc); | |
949 | else | |
950 | return NULL; | |
951 | } | |
952 | PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
953 | wxIconLocation loc; | |
954 | if (self->GetIcon(&loc)) { | |
955 | wxString iconFile = loc.GetFileName(); | |
956 | int iconIndex = -1; | |
957 | ||
958 | ||
959 | ||
960 | // Make a tuple and put the values in it | |
4f89f6a3 | 961 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
962 | PyObject* tuple = PyTuple_New(3); |
963 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
e811c8ce | 964 | wxT("wxIcon"), True)); |
d14a1e28 RD |
965 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); |
966 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
4f89f6a3 | 967 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
968 | return tuple; |
969 | } | |
970 | else | |
971 | RETURN_NONE(); | |
972 | } | |
973 | PyObject *wxFileType_GetDescription(wxFileType *self){ | |
974 | wxString str; | |
975 | if (self->GetDescription(&str)) | |
976 | return wx2PyString(str); | |
977 | else | |
978 | RETURN_NONE(); | |
979 | } | |
980 | PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
981 | wxString str; | |
982 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
983 | return wx2PyString(str); | |
984 | else | |
985 | RETURN_NONE(); | |
986 | } | |
987 | PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
988 | wxString str; | |
989 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
990 | return wx2PyString(str); | |
991 | else | |
992 | RETURN_NONE(); | |
993 | } | |
994 | PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
995 | wxArrayString verbs; | |
996 | wxArrayString commands; | |
997 | if (self->GetAllCommands(&verbs, &commands, | |
998 | wxFileType::MessageParameters(filename, mimetype))) { | |
4f89f6a3 | 999 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1000 | PyObject* tuple = PyTuple_New(2); |
1001 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
1002 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
4f89f6a3 | 1003 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1004 | return tuple; |
1005 | } | |
1006 | else | |
1007 | RETURN_NONE(); | |
1008 | } | |
1009 | wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ | |
1010 | return wxFileType::ExpandCommand(command, | |
1011 | wxFileType::MessageParameters(filename, mimetype)); | |
1012 | } | |
1013 | PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
1014 | wxArrayString arr; | |
1015 | self->EnumAllFileTypes(arr); | |
1016 | return wxArrayString2PyList_helper(arr); | |
1017 | } | |
1018 | ||
1019 | #include <wx/artprov.h> | |
1020 | ||
1021 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); | |
1022 | static const wxString wxPyART_MENU(wxART_MENU); | |
1023 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
1024 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
1025 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
1026 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
4cf4100f | 1027 | static const wxString wxPyART_BUTTON(wxART_BUTTON); |
d14a1e28 RD |
1028 | static const wxString wxPyART_OTHER(wxART_OTHER); |
1029 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
1030 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
1031 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
1032 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
1033 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
1034 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
1035 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
1036 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
1037 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
1038 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
1039 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
1040 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
1041 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
1042 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
1043 | static const wxString wxPyART_PRINT(wxART_PRINT); | |
1044 | static const wxString wxPyART_HELP(wxART_HELP); | |
1045 | static const wxString wxPyART_TIP(wxART_TIP); | |
1046 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
1047 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
1048 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
1049 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
1050 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
1051 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
1052 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
1053 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
1054 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
1055 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
1056 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
1057 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
1058 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
1059 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
1060 | // Python aware wxArtProvider | |
1061 | class wxPyArtProvider : public wxArtProvider { | |
1062 | public: | |
1063 | ||
1064 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
1065 | const wxArtClient& client, | |
1066 | const wxSize& size) { | |
1067 | wxBitmap rval = wxNullBitmap; | |
4f89f6a3 | 1068 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1069 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { |
1070 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
1071 | PyObject* ro; | |
1072 | wxBitmap* ptr; | |
1073 | PyObject* s1, *s2; | |
1074 | s1 = wx2PyString(id); | |
1075 | s2 = wx2PyString(client); | |
1076 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
1077 | Py_DECREF(so); | |
1078 | Py_DECREF(s1); | |
1079 | Py_DECREF(s2); | |
1080 | if (ro) { | |
1081 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
1082 | rval = *ptr; | |
1083 | Py_DECREF(ro); | |
1084 | } | |
1085 | } | |
4f89f6a3 | 1086 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1087 | return rval; |
1088 | } | |
1089 | ||
1090 | PYPRIVATE; | |
1091 | }; | |
1092 | ||
1e0c8722 | 1093 | void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } |
d14a1e28 RD |
1094 | |
1095 | ||
1096 | ||
1097 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
1098 | PyObject* ret = PyTuple_New(3); | |
1099 | if (ret) { | |
1100 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
1101 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
1102 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
1103 | } | |
1104 | return ret; | |
1105 | } | |
1106 | ||
1107 | PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ | |
1108 | bool cont; | |
1109 | long index = 0; | |
1110 | wxString value; | |
1111 | ||
1112 | cont = self->GetFirstGroup(value, index); | |
1113 | return __EnumerationHelper(cont, value, index); | |
1114 | } | |
1115 | PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
1116 | bool cont; | |
1117 | wxString value; | |
1118 | ||
1119 | cont = self->GetNextGroup(value, index); | |
1120 | return __EnumerationHelper(cont, value, index); | |
1121 | } | |
1122 | PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
1123 | bool cont; | |
1124 | long index = 0; | |
1125 | wxString value; | |
1126 | ||
1127 | cont = self->GetFirstEntry(value, index); | |
1128 | return __EnumerationHelper(cont, value, index); | |
1129 | } | |
1130 | PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
1131 | bool cont; | |
1132 | wxString value; | |
1133 | ||
1134 | cont = self->GetNextEntry(value, index); | |
1135 | return __EnumerationHelper(cont, value, index); | |
1136 | } | |
1137 | long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ | |
1138 | long rv; | |
1139 | self->Read(key, &rv, defaultVal); | |
1140 | return rv; | |
1141 | } | |
994141e6 | 1142 | |
15afbcd0 RD |
1143 | SWIGSTATICINLINE(double) |
1144 | SWIG_AsDouble(PyObject *obj) | |
994141e6 | 1145 | { |
69223c70 RD |
1146 | if (PyNumber_Check(obj)) |
1147 | return PyFloat_AsDouble(obj); | |
1148 | else { | |
1149 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
1150 | obj->ob_type->tp_name); | |
1151 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
1152 | Py_DECREF(errmsg); | |
1153 | return 0; | |
1154 | } | |
15afbcd0 RD |
1155 | } |
1156 | ||
1157 | ||
1158 | SWIGSTATICINLINE(int) | |
1159 | SWIG_CheckDouble(PyObject* obj) | |
1160 | { | |
1161 | SWIG_AsDouble(obj); | |
1162 | if (PyErr_Occurred()) { | |
1163 | PyErr_Clear(); | |
1164 | return 0; | |
1165 | } else { | |
1166 | return 1; | |
1167 | } | |
994141e6 RD |
1168 | } |
1169 | ||
d14a1e28 RD |
1170 | double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ |
1171 | double rv; | |
1172 | self->Read(key, &rv, defaultVal); | |
1173 | return rv; | |
1174 | } | |
1175 | bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){ | |
1176 | bool rv; | |
1177 | self->Read(key, &rv, defaultVal); | |
1178 | return rv; | |
1179 | } | |
1180 | ||
1181 | #include <wx/datetime.h> | |
1182 | ||
d14a1e28 | 1183 | |
33b885b9 RD |
1184 | static const wxString wxPyDateFormatStr(wxT("%c")); |
1185 | static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S")); | |
d14a1e28 RD |
1186 | |
1187 | #define LOCAL_TZ wxDateTime::Local | |
1188 | ||
994141e6 | 1189 | |
15afbcd0 RD |
1190 | #if UINT_MAX < LONG_MAX |
1191 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
1192 | #else | |
1193 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
1194 | #endif | |
994141e6 | 1195 | |
d14a1e28 RD |
1196 | wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } |
1197 | wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
1198 | wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
1199 | wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
1200 | wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
a95a7133 RD |
1201 | bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ |
1202 | if (!other || !self->IsValid() || !other->IsValid()) return self < other; | |
1203 | return (*self < *other); | |
1204 | } | |
1205 | bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ | |
1206 | if (!other || !self->IsValid() || !other->IsValid()) return self <= other; | |
1207 | return (*self <= *other); | |
1208 | } | |
1209 | bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ | |
1210 | if (!other || !self->IsValid() || !other->IsValid()) return self > other; | |
1211 | return (*self > *other); | |
1212 | } | |
1213 | bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ | |
1214 | if (!other || !self->IsValid() || !other->IsValid()) return self >= other; | |
1215 | return (*self >= *other); | |
1216 | } | |
1217 | bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ | |
1218 | if (!other || !self->IsValid() || !other->IsValid()) return self == other; | |
1219 | return (*self == *other); | |
1220 | } | |
1221 | bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ | |
1222 | if (!other || !self->IsValid() || !other->IsValid()) return self != other; | |
1223 | return (*self != *other); | |
1224 | } | |
d14a1e28 RD |
1225 | int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ |
1226 | const wxChar* rv; | |
1227 | const wxChar* _date = date; | |
1228 | rv = self->ParseRfc822Date(_date); | |
1229 | if (rv == NULL) return -1; | |
1230 | return rv - _date; | |
1231 | } | |
1232 | int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){ | |
1233 | const wxChar* rv; | |
1234 | const wxChar* _date = date; | |
1235 | rv = self->ParseFormat(_date, format, dateDef); | |
1236 | if (rv == NULL) return -1; | |
1237 | return rv - _date; | |
1238 | } | |
1239 | int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
1240 | const wxChar* rv; | |
1241 | const wxChar* _datetime = datetime; | |
1242 | rv = self->ParseDateTime(_datetime); | |
1243 | if (rv == NULL) return -1; | |
1244 | return rv - _datetime; | |
1245 | } | |
1246 | int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
1247 | const wxChar* rv; | |
1248 | const wxChar* _date = date; | |
1249 | rv = self->ParseDate(_date); | |
1250 | if (rv == NULL) return -1; | |
1251 | return rv - _date; | |
1252 | } | |
1253 | int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
1254 | const wxChar* rv; | |
1255 | const wxChar* _time = time; | |
1256 | rv = self->ParseTime(_time); | |
1257 | if (rv == NULL) return -1; | |
1258 | return rv - _time; | |
1259 | } | |
1260 | wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
1261 | wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
1262 | wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
1263 | wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
22faec7d RD |
1264 | bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; } |
1265 | bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; } | |
1266 | bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; } | |
1267 | bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; } | |
1268 | bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; } | |
1269 | bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
1270 | wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } |
1271 | wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
1272 | wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
1273 | wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
22faec7d RD |
1274 | bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; } |
1275 | bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
1276 | |
1277 | #include <wx/dataobj.h> | |
1278 | ||
1a10c483 RD |
1279 | PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){ |
1280 | size_t count = self->GetFormatCount(dir); | |
1281 | wxDataFormat* formats = new wxDataFormat[count]; | |
1282 | self->GetAllFormats(formats, dir); | |
1283 | ||
1284 | bool blocked = wxPyBeginBlockThreads(); | |
1285 | PyObject* list = PyList_New(count); | |
1286 | for (size_t i=0; i<count; i++) { | |
1287 | wxDataFormat* format = new wxDataFormat(formats[i]); | |
1288 | PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), True); | |
1289 | PyList_Append(list, obj); | |
1290 | Py_DECREF(obj); | |
1291 | } | |
1292 | wxPyEndBlockThreads(blocked); | |
1293 | delete [] formats; | |
1294 | return list; | |
1295 | } | |
1296 | PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){ | |
1297 | PyObject* rval = NULL; | |
1298 | size_t size = self->GetDataSize(format); | |
1299 | bool blocked = wxPyBeginBlockThreads(); | |
1300 | if (size) { | |
1301 | char* buf = new char[size]; | |
1302 | if (self->GetDataHere(format, buf)) | |
1303 | rval = PyString_FromStringAndSize(buf, size); | |
1304 | delete [] buf; | |
1305 | } | |
1306 | if (! rval) { | |
1307 | rval = Py_None; | |
1308 | Py_INCREF(rval); | |
1309 | } | |
1310 | wxPyEndBlockThreads(blocked); | |
1311 | return rval; | |
1312 | } | |
1313 | bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){ | |
1314 | bool rval; | |
1315 | bool blocked = wxPyBeginBlockThreads(); | |
1316 | if (PyString_Check(data)) { | |
1317 | rval = self->SetData(format, PyString_Size(data), PyString_AsString(data)); | |
1318 | } | |
1319 | else { | |
1320 | // raise a TypeError if not a string | |
1321 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1322 | rval = False; | |
1323 | } | |
1324 | wxPyEndBlockThreads(blocked); | |
1325 | return rval; | |
1326 | } | |
1327 | PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){ | |
1328 | PyObject* rval = NULL; | |
1329 | size_t size = self->GetDataSize(); | |
1330 | bool blocked = wxPyBeginBlockThreads(); | |
1331 | if (size) { | |
1332 | char* buf = new char[size]; | |
1333 | if (self->GetDataHere(buf)) | |
1334 | rval = PyString_FromStringAndSize(buf, size); | |
1335 | delete [] buf; | |
1336 | } | |
1337 | if (! rval) { | |
1338 | rval = Py_None; | |
1339 | Py_INCREF(rval); | |
1340 | } | |
1341 | wxPyEndBlockThreads(blocked); | |
1342 | return rval; | |
1343 | } | |
1344 | bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){ | |
1345 | bool rval; | |
1346 | bool blocked = wxPyBeginBlockThreads(); | |
1347 | if (PyString_Check(data)) { | |
1348 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1349 | } | |
1350 | else { | |
1351 | // raise a TypeError if not a string | |
1352 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1353 | rval = False; | |
1354 | } | |
1355 | wxPyEndBlockThreads(blocked); | |
1356 | return rval; | |
1357 | } | |
d14a1e28 RD |
1358 | // Create a new class for wxPython to use |
1359 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
1360 | public: | |
1361 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
1362 | : wxDataObjectSimple(format) {} | |
1363 | ||
1364 | DEC_PYCALLBACK_SIZET__const(GetDataSize); | |
1365 | bool GetDataHere(void *buf) const; | |
1366 | bool SetData(size_t len, const void *buf) const; | |
1367 | PYPRIVATE; | |
1368 | }; | |
1369 | ||
1370 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
1371 | ||
1372 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { | |
1373 | // We need to get the data for this object and write it to buf. I think | |
1374 | // the best way to do this for wxPython is to have the Python method | |
1375 | // return either a string or None and then act appropriately with the | |
1376 | // C++ version. | |
1377 | ||
e811c8ce | 1378 | bool rval = False; |
4f89f6a3 | 1379 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1380 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { |
1381 | PyObject* ro; | |
1382 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1383 | if (ro) { | |
1384 | rval = (ro != Py_None && PyString_Check(ro)); | |
1385 | if (rval) | |
1386 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
1387 | Py_DECREF(ro); | |
1388 | } | |
1389 | } | |
4f89f6a3 | 1390 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1391 | return rval; |
1392 | } | |
1393 | ||
1394 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ | |
1395 | // For this one we simply need to make a string from buf and len | |
1396 | // and send it to the Python method. | |
e811c8ce | 1397 | bool rval = False; |
4f89f6a3 | 1398 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1399 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { |
1400 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
1401 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
1402 | Py_DECREF(data); | |
1403 | } | |
4f89f6a3 | 1404 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1405 | return rval; |
1406 | } | |
1407 | ||
1408 | // Create a new class for wxPython to use | |
1409 | class wxPyTextDataObject : public wxTextDataObject { | |
1410 | public: | |
1411 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
1412 | : wxTextDataObject(text) {} | |
1413 | ||
1414 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
1415 | DEC_PYCALLBACK_STRING__const(GetText); | |
1416 | DEC_PYCALLBACK__STRING(SetText); | |
1417 | PYPRIVATE; | |
1418 | }; | |
1419 | ||
1420 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
1421 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
1422 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
1423 | ||
1424 | ||
1425 | // Create a new class for wxPython to use | |
1426 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
1427 | public: | |
1428 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
1429 | : wxBitmapDataObject(bitmap) {} | |
1430 | ||
1431 | wxBitmap GetBitmap() const; | |
1432 | void SetBitmap(const wxBitmap& bitmap); | |
1433 | PYPRIVATE; | |
1434 | }; | |
1435 | ||
1436 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
1437 | wxBitmap* rval = &wxNullBitmap; | |
4f89f6a3 | 1438 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1439 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { |
1440 | PyObject* ro; | |
1441 | wxBitmap* ptr; | |
1442 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1443 | if (ro) { | |
1444 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
1445 | rval = ptr; | |
1446 | Py_DECREF(ro); | |
1447 | } | |
1448 | } | |
4f89f6a3 | 1449 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1450 | return *rval; |
1451 | } | |
1a10c483 | 1452 | |
d14a1e28 | 1453 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { |
4f89f6a3 | 1454 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 1455 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { |
e811c8ce | 1456 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False); |
d14a1e28 RD |
1457 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); |
1458 | Py_DECREF(bo); | |
1459 | } | |
4f89f6a3 | 1460 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1461 | } |
1462 | ||
d14a1e28 | 1463 | bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ |
1a10c483 RD |
1464 | bool rval; |
1465 | bool blocked = wxPyBeginBlockThreads(); | |
d14a1e28 | 1466 | if (PyString_Check(data)) { |
1a10c483 | 1467 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); |
d14a1e28 RD |
1468 | } |
1469 | else { | |
1470 | // raise a TypeError if not a string | |
1471 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1a10c483 | 1472 | rval = False; |
d14a1e28 | 1473 | } |
1a10c483 RD |
1474 | wxPyEndBlockThreads(blocked); |
1475 | return rval; | |
d14a1e28 RD |
1476 | } |
1477 | PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
1a10c483 RD |
1478 | PyObject* obj; |
1479 | bool blocked = wxPyBeginBlockThreads(); | |
1480 | obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
a07a67e6 RD |
1481 | wxPyEndBlockThreads(blocked); |
1482 | return obj; | |
d14a1e28 RD |
1483 | } |
1484 | ||
1485 | class wxMetafileDataObject : public wxDataObjectSimple | |
1486 | { | |
1487 | public: | |
39f61e25 | 1488 | wxMetafileDataObject() { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
1489 | }; |
1490 | ||
1491 | ||
d14a1e28 RD |
1492 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); |
1493 | ||
1494 | ||
d14a1e28 RD |
1495 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); |
1496 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1497 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1498 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1499 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1500 | ||
1501 | ||
d14a1e28 RD |
1502 | class wxPyTextDropTarget : public wxTextDropTarget { |
1503 | public: | |
1504 | wxPyTextDropTarget() {} | |
1505 | ||
1506 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1507 | ||
1508 | DEC_PYCALLBACK__(OnLeave); | |
1509 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1510 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1511 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1512 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1513 | ||
1514 | PYPRIVATE; | |
1515 | }; | |
1516 | ||
1517 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1518 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1519 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1520 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1521 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1522 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1523 | ||
1524 | ||
1525 | ||
1526 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1527 | public: | |
1528 | wxPyFileDropTarget() {} | |
1529 | ||
1530 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1531 | ||
1532 | DEC_PYCALLBACK__(OnLeave); | |
1533 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1534 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1535 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1536 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1537 | ||
1538 | PYPRIVATE; | |
1539 | }; | |
1540 | ||
1541 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1542 | const wxArrayString& filenames) { | |
e811c8ce | 1543 | bool rval = False; |
4f89f6a3 | 1544 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1545 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { |
1546 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1547 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1548 | Py_DECREF(list); | |
1549 | } | |
4f89f6a3 | 1550 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1551 | return rval; |
1552 | } | |
1553 | ||
1554 | ||
1555 | ||
1556 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1557 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1558 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1559 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1560 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1561 | ||
1562 | ||
1563 | ||
1564 | ||
1565 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
4276dc52 | 1566 | |
6923d0a9 | 1567 | #include <wx/display.h> |
4276dc52 RD |
1568 | |
1569 | bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; } | |
1570 | bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; } | |
6923d0a9 RD |
1571 | |
1572 | // dummy version of wxDisplay for when it is not enabled in the wxWidgets build | |
1573 | #if !wxUSE_DISPLAY | |
1574 | #include <wx/dynarray.h> | |
1575 | #include <wx/vidmode.h> | |
1576 | ||
1577 | WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes); | |
1578 | #include "wx/arrimpl.cpp" | |
1579 | WX_DEFINE_OBJARRAY(wxArrayVideoModes); | |
1580 | const wxVideoMode wxDefaultVideoMode; | |
1581 | ||
1582 | class wxDisplay | |
1583 | { | |
1584 | public: | |
1585 | wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); } | |
1586 | ~wxDisplay() {} | |
1587 | ||
1588 | static size_t GetCount() | |
1589 | { wxPyRaiseNotImplemented(); return 0; } | |
1590 | ||
1591 | static int GetFromPoint(const wxPoint& pt) | |
1592 | { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
1593 | static int GetFromWindow(wxWindow *window) | |
1594 | { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
1595 | ||
1596 | virtual bool IsOk() const { return false; } | |
1597 | virtual wxRect GetGeometry() const { wxRect r; return r; } | |
1598 | virtual wxString GetName() const { return wxEmptyString; } | |
1599 | bool IsPrimary() const { return false; } | |
1600 | ||
1601 | wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode) | |
1602 | { wxArrayVideoModes a; return a; } | |
1603 | ||
1604 | virtual wxVideoMode GetCurrentMode() const | |
1605 | { return wxDefaultVideoMode; } | |
1606 | ||
1607 | virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode) | |
1608 | { return false; } | |
1609 | ||
1610 | void ResetMode() {} | |
1611 | }; | |
1612 | #endif | |
1613 | ||
4276dc52 RD |
1614 | int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; } |
1615 | PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){ | |
1616 | PyObject* pyList = NULL; | |
1617 | wxArrayVideoModes arr = self->GetModes(mode); | |
4f89f6a3 | 1618 | bool blocked = wxPyBeginBlockThreads(); |
4276dc52 RD |
1619 | pyList = PyList_New(0); |
1620 | for (int i=0; i < arr.GetCount(); i++) { | |
1621 | wxVideoMode* m = new wxVideoMode(arr.Item(i)); | |
1622 | PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); | |
1623 | PyList_Append(pyList, pyObj); | |
1a10c483 | 1624 | Py_DECREF(pyObj); |
4276dc52 | 1625 | } |
4f89f6a3 | 1626 | wxPyEndBlockThreads(blocked); |
4276dc52 RD |
1627 | return pyList; |
1628 | } | |
d14a1e28 RD |
1629 | #ifdef __cplusplus |
1630 | extern "C" { | |
1631 | #endif | |
1632 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1633 | PyObject *resultobj; | |
1634 | int arg1 ; | |
1635 | wxColour result; | |
994141e6 | 1636 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1637 | char *kwnames[] = { |
1638 | (char *) "index", NULL | |
1639 | }; | |
1640 | ||
994141e6 | 1641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1642 | arg1 = (wxSystemColour) SWIG_AsInt(obj0); |
1643 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 1644 | { |
e3b71cb8 | 1645 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1647 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1648 | ||
1649 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1650 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1651 | } |
1652 | { | |
1653 | wxColour * resultptr; | |
1654 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 1655 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1656 | } |
1657 | return resultobj; | |
1658 | fail: | |
1659 | return NULL; | |
1660 | } | |
1661 | ||
1662 | ||
1663 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1664 | PyObject *resultobj; | |
1665 | int arg1 ; | |
1666 | wxFont result; | |
994141e6 | 1667 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1668 | char *kwnames[] = { |
1669 | (char *) "index", NULL | |
1670 | }; | |
1671 | ||
994141e6 | 1672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1673 | arg1 = (wxSystemFont) SWIG_AsInt(obj0); |
1674 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 1675 | { |
e3b71cb8 | 1676 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1678 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1679 | ||
1680 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1681 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1682 | } |
1683 | { | |
1684 | wxFont * resultptr; | |
1685 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 1686 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
1687 | } |
1688 | return resultobj; | |
1689 | fail: | |
1690 | return NULL; | |
1691 | } | |
1692 | ||
1693 | ||
1694 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1695 | PyObject *resultobj; | |
1696 | int arg1 ; | |
1697 | int result; | |
994141e6 | 1698 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1699 | char *kwnames[] = { |
1700 | (char *) "index", NULL | |
1701 | }; | |
1702 | ||
994141e6 | 1703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1704 | arg1 = (wxSystemMetric) SWIG_AsInt(obj0); |
1705 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 1706 | { |
e3b71cb8 | 1707 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1709 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1710 | ||
1711 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1712 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1713 | } |
15afbcd0 | 1714 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1715 | return resultobj; |
1716 | fail: | |
1717 | return NULL; | |
1718 | } | |
1719 | ||
1720 | ||
1721 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1722 | PyObject *resultobj; | |
1723 | int arg1 ; | |
1724 | bool result; | |
994141e6 | 1725 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1726 | char *kwnames[] = { |
1727 | (char *) "index", NULL | |
1728 | }; | |
1729 | ||
994141e6 | 1730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1731 | arg1 = (wxSystemFeature) SWIG_AsInt(obj0); |
1732 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 1733 | { |
e3b71cb8 | 1734 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1736 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1737 | ||
1738 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1739 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1740 | } |
4f89f6a3 RD |
1741 | { |
1742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1743 | } | |
d14a1e28 RD |
1744 | return resultobj; |
1745 | fail: | |
1746 | return NULL; | |
1747 | } | |
1748 | ||
1749 | ||
1750 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1751 | PyObject *resultobj; | |
1752 | int result; | |
1753 | char *kwnames[] = { | |
1754 | NULL | |
1755 | }; | |
1756 | ||
1757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1758 | { | |
e3b71cb8 | 1759 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1761 | result = (int)wxSystemSettings::GetScreenType(); | |
1762 | ||
1763 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1764 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1765 | } |
15afbcd0 | 1766 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1767 | return resultobj; |
1768 | fail: | |
1769 | return NULL; | |
1770 | } | |
1771 | ||
1772 | ||
1773 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1774 | PyObject *resultobj; | |
1775 | int arg1 ; | |
994141e6 | 1776 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1777 | char *kwnames[] = { |
1778 | (char *) "screen", NULL | |
1779 | }; | |
1780 | ||
994141e6 | 1781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1782 | arg1 = (wxSystemScreenType) SWIG_AsInt(obj0); |
1783 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 1784 | { |
e3b71cb8 | 1785 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1787 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
1788 | ||
1789 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1790 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1791 | } |
1792 | Py_INCREF(Py_None); resultobj = Py_None; | |
1793 | return resultobj; | |
1794 | fail: | |
1795 | return NULL; | |
1796 | } | |
1797 | ||
1798 | ||
1799 | static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) { | |
1800 | PyObject *obj; | |
1801 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1802 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
1803 | Py_INCREF(obj); | |
1804 | return Py_BuildValue((char *)""); | |
1805 | } | |
1806 | static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1807 | PyObject *resultobj; | |
1808 | wxSystemOptions *result; | |
1809 | char *kwnames[] = { | |
1810 | NULL | |
1811 | }; | |
1812 | ||
1813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
1814 | { | |
1815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1816 | result = (wxSystemOptions *)new wxSystemOptions(); | |
1817 | ||
1818 | wxPyEndAllowThreads(__tstate); | |
1819 | if (PyErr_Occurred()) SWIG_fail; | |
1820 | } | |
15afbcd0 | 1821 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1); |
d14a1e28 RD |
1822 | return resultobj; |
1823 | fail: | |
1824 | return NULL; | |
1825 | } | |
1826 | ||
1827 | ||
1828 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1829 | PyObject *resultobj; | |
1830 | wxString *arg1 = 0 ; | |
1831 | wxString *arg2 = 0 ; | |
e811c8ce RD |
1832 | bool temp1 = False ; |
1833 | bool temp2 = False ; | |
d14a1e28 RD |
1834 | PyObject * obj0 = 0 ; |
1835 | PyObject * obj1 = 0 ; | |
1836 | char *kwnames[] = { | |
1837 | (char *) "name",(char *) "value", NULL | |
1838 | }; | |
1839 | ||
1840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
1841 | { | |
1842 | arg1 = wxString_in_helper(obj0); | |
1843 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1844 | temp1 = True; |
d14a1e28 RD |
1845 | } |
1846 | { | |
1847 | arg2 = wxString_in_helper(obj1); | |
1848 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 1849 | temp2 = True; |
d14a1e28 RD |
1850 | } |
1851 | { | |
1852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1853 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
1854 | ||
1855 | wxPyEndAllowThreads(__tstate); | |
1856 | if (PyErr_Occurred()) SWIG_fail; | |
1857 | } | |
1858 | Py_INCREF(Py_None); resultobj = Py_None; | |
1859 | { | |
1860 | if (temp1) | |
1861 | delete arg1; | |
1862 | } | |
1863 | { | |
1864 | if (temp2) | |
1865 | delete arg2; | |
1866 | } | |
1867 | return resultobj; | |
1868 | fail: | |
1869 | { | |
1870 | if (temp1) | |
1871 | delete arg1; | |
1872 | } | |
1873 | { | |
1874 | if (temp2) | |
1875 | delete arg2; | |
1876 | } | |
1877 | return NULL; | |
1878 | } | |
1879 | ||
1880 | ||
1881 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1882 | PyObject *resultobj; | |
1883 | wxString *arg1 = 0 ; | |
1884 | int arg2 ; | |
e811c8ce | 1885 | bool temp1 = False ; |
d14a1e28 | 1886 | PyObject * obj0 = 0 ; |
994141e6 | 1887 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1888 | char *kwnames[] = { |
1889 | (char *) "name",(char *) "value", NULL | |
1890 | }; | |
1891 | ||
994141e6 | 1892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
1893 | { |
1894 | arg1 = wxString_in_helper(obj0); | |
1895 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1896 | temp1 = True; |
d14a1e28 | 1897 | } |
15afbcd0 RD |
1898 | arg2 = (int) SWIG_AsInt(obj1); |
1899 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1900 | { |
1901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1902 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
1903 | ||
1904 | wxPyEndAllowThreads(__tstate); | |
1905 | if (PyErr_Occurred()) SWIG_fail; | |
1906 | } | |
1907 | Py_INCREF(Py_None); resultobj = Py_None; | |
1908 | { | |
1909 | if (temp1) | |
1910 | delete arg1; | |
1911 | } | |
1912 | return resultobj; | |
1913 | fail: | |
1914 | { | |
1915 | if (temp1) | |
1916 | delete arg1; | |
1917 | } | |
1918 | return NULL; | |
1919 | } | |
1920 | ||
1921 | ||
1922 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1923 | PyObject *resultobj; | |
1924 | wxString *arg1 = 0 ; | |
1925 | wxString result; | |
e811c8ce | 1926 | bool temp1 = False ; |
d14a1e28 RD |
1927 | PyObject * obj0 = 0 ; |
1928 | char *kwnames[] = { | |
1929 | (char *) "name", NULL | |
1930 | }; | |
1931 | ||
1932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
1933 | { | |
1934 | arg1 = wxString_in_helper(obj0); | |
1935 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1936 | temp1 = True; |
d14a1e28 RD |
1937 | } |
1938 | { | |
1939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1940 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
1941 | ||
1942 | wxPyEndAllowThreads(__tstate); | |
1943 | if (PyErr_Occurred()) SWIG_fail; | |
1944 | } | |
1945 | { | |
1946 | #if wxUSE_UNICODE | |
1947 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1948 | #else | |
1949 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1950 | #endif | |
1951 | } | |
1952 | { | |
1953 | if (temp1) | |
1954 | delete arg1; | |
1955 | } | |
1956 | return resultobj; | |
1957 | fail: | |
1958 | { | |
1959 | if (temp1) | |
1960 | delete arg1; | |
1961 | } | |
1962 | return NULL; | |
1963 | } | |
1964 | ||
1965 | ||
1966 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1967 | PyObject *resultobj; | |
1968 | wxString *arg1 = 0 ; | |
1969 | int result; | |
e811c8ce | 1970 | bool temp1 = False ; |
d14a1e28 RD |
1971 | PyObject * obj0 = 0 ; |
1972 | char *kwnames[] = { | |
1973 | (char *) "name", NULL | |
1974 | }; | |
1975 | ||
1976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
1977 | { | |
1978 | arg1 = wxString_in_helper(obj0); | |
1979 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1980 | temp1 = True; |
d14a1e28 RD |
1981 | } |
1982 | { | |
1983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1984 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
1985 | ||
1986 | wxPyEndAllowThreads(__tstate); | |
1987 | if (PyErr_Occurred()) SWIG_fail; | |
1988 | } | |
15afbcd0 | 1989 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1990 | { |
1991 | if (temp1) | |
1992 | delete arg1; | |
1993 | } | |
1994 | return resultobj; | |
1995 | fail: | |
1996 | { | |
1997 | if (temp1) | |
1998 | delete arg1; | |
1999 | } | |
2000 | return NULL; | |
2001 | } | |
2002 | ||
2003 | ||
2004 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2005 | PyObject *resultobj; | |
2006 | wxString *arg1 = 0 ; | |
2007 | bool result; | |
e811c8ce | 2008 | bool temp1 = False ; |
d14a1e28 RD |
2009 | PyObject * obj0 = 0 ; |
2010 | char *kwnames[] = { | |
2011 | (char *) "name", NULL | |
2012 | }; | |
2013 | ||
2014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
2015 | { | |
2016 | arg1 = wxString_in_helper(obj0); | |
2017 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2018 | temp1 = True; |
d14a1e28 RD |
2019 | } |
2020 | { | |
2021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2022 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
2023 | ||
2024 | wxPyEndAllowThreads(__tstate); | |
2025 | if (PyErr_Occurred()) SWIG_fail; | |
2026 | } | |
4f89f6a3 RD |
2027 | { |
2028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2029 | } | |
d14a1e28 RD |
2030 | { |
2031 | if (temp1) | |
2032 | delete arg1; | |
2033 | } | |
2034 | return resultobj; | |
2035 | fail: | |
2036 | { | |
2037 | if (temp1) | |
2038 | delete arg1; | |
2039 | } | |
2040 | return NULL; | |
2041 | } | |
2042 | ||
2043 | ||
2044 | static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) { | |
2045 | PyObject *obj; | |
2046 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2047 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
2048 | Py_INCREF(obj); | |
2049 | return Py_BuildValue((char *)""); | |
2050 | } | |
b2dc1044 RD |
2051 | static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { |
2052 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
2053 | return 1; | |
2054 | } | |
2055 | ||
2056 | ||
2057 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
2058 | PyObject *pyobj; | |
2059 | ||
2060 | { | |
2061 | #if wxUSE_UNICODE | |
2062 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
2063 | #else | |
2064 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
2065 | #endif | |
2066 | } | |
2067 | return pyobj; | |
2068 | } | |
2069 | ||
2070 | ||
2071 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { | |
2072 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
2073 | return 1; | |
2074 | } | |
2075 | ||
2076 | ||
2077 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
2078 | PyObject *pyobj; | |
2079 | ||
2080 | { | |
2081 | #if wxUSE_UNICODE | |
2082 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
2083 | #else | |
2084 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
2085 | #endif | |
2086 | } | |
2087 | return pyobj; | |
2088 | } | |
2089 | ||
2090 | ||
2091 | static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { | |
2092 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
2093 | return 1; | |
2094 | } | |
2095 | ||
2096 | ||
2097 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
2098 | PyObject *pyobj; | |
2099 | ||
2100 | { | |
2101 | #if wxUSE_UNICODE | |
2102 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
2103 | #else | |
2104 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
2105 | #endif | |
2106 | } | |
2107 | return pyobj; | |
2108 | } | |
2109 | ||
2110 | ||
d14a1e28 RD |
2111 | static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) { |
2112 | PyObject *resultobj; | |
2113 | long result; | |
2114 | char *kwnames[] = { | |
2115 | NULL | |
2116 | }; | |
2117 | ||
2118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
2119 | { | |
2120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2121 | result = (long)wxNewId(); | |
2122 | ||
2123 | wxPyEndAllowThreads(__tstate); | |
2124 | if (PyErr_Occurred()) SWIG_fail; | |
2125 | } | |
15afbcd0 | 2126 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
2127 | return resultobj; |
2128 | fail: | |
2129 | return NULL; | |
2130 | } | |
2131 | ||
2132 | ||
2133 | static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2134 | PyObject *resultobj; | |
2135 | long arg1 ; | |
994141e6 | 2136 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2137 | char *kwnames[] = { |
2138 | (char *) "id", NULL | |
2139 | }; | |
2140 | ||
994141e6 | 2141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2142 | arg1 = (long) SWIG_AsLong(obj0); |
2143 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2144 | { |
2145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2146 | wxRegisterId(arg1); | |
2147 | ||
2148 | wxPyEndAllowThreads(__tstate); | |
2149 | if (PyErr_Occurred()) SWIG_fail; | |
2150 | } | |
2151 | Py_INCREF(Py_None); resultobj = Py_None; | |
2152 | return resultobj; | |
2153 | fail: | |
2154 | return NULL; | |
2155 | } | |
2156 | ||
2157 | ||
2158 | static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2159 | PyObject *resultobj; | |
2160 | long result; | |
2161 | char *kwnames[] = { | |
2162 | NULL | |
2163 | }; | |
2164 | ||
2165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
2166 | { | |
2167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2168 | result = (long)wxGetCurrentId(); | |
2169 | ||
2170 | wxPyEndAllowThreads(__tstate); | |
2171 | if (PyErr_Occurred()) SWIG_fail; | |
2172 | } | |
15afbcd0 | 2173 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
2174 | return resultobj; |
2175 | fail: | |
2176 | return NULL; | |
2177 | } | |
2178 | ||
2179 | ||
023a034e RD |
2180 | static PyObject *_wrap_wxIsStockID(PyObject *self, PyObject *args, PyObject *kwargs) { |
2181 | PyObject *resultobj; | |
2182 | int arg1 ; | |
2183 | bool result; | |
2184 | PyObject * obj0 = 0 ; | |
2185 | char *kwnames[] = { | |
2186 | (char *) "id", NULL | |
2187 | }; | |
2188 | ||
2189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:wxIsStockID",kwnames,&obj0)) goto fail; | |
2190 | arg1 = (int) SWIG_AsInt(obj0); | |
2191 | if (PyErr_Occurred()) SWIG_fail; | |
2192 | { | |
2193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2194 | result = (bool)wxIsStockID(arg1); | |
2195 | ||
2196 | wxPyEndAllowThreads(__tstate); | |
2197 | if (PyErr_Occurred()) SWIG_fail; | |
2198 | } | |
2199 | { | |
2200 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2201 | } | |
2202 | return resultobj; | |
2203 | fail: | |
2204 | return NULL; | |
2205 | } | |
2206 | ||
2207 | ||
2208 | static PyObject *_wrap_wxIsStockLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2209 | PyObject *resultobj; | |
2210 | int arg1 ; | |
2211 | wxString *arg2 = 0 ; | |
2212 | bool result; | |
2213 | bool temp2 = False ; | |
2214 | PyObject * obj0 = 0 ; | |
2215 | PyObject * obj1 = 0 ; | |
2216 | char *kwnames[] = { | |
2217 | (char *) "id",(char *) "label", NULL | |
2218 | }; | |
2219 | ||
2220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:wxIsStockLabel",kwnames,&obj0,&obj1)) goto fail; | |
2221 | arg1 = (int) SWIG_AsInt(obj0); | |
2222 | if (PyErr_Occurred()) SWIG_fail; | |
2223 | { | |
2224 | arg2 = wxString_in_helper(obj1); | |
2225 | if (arg2 == NULL) SWIG_fail; | |
2226 | temp2 = True; | |
2227 | } | |
2228 | { | |
2229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2230 | result = (bool)wxIsStockLabel(arg1,(wxString const &)*arg2); | |
2231 | ||
2232 | wxPyEndAllowThreads(__tstate); | |
2233 | if (PyErr_Occurred()) SWIG_fail; | |
2234 | } | |
2235 | { | |
2236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2237 | } | |
2238 | { | |
2239 | if (temp2) | |
2240 | delete arg2; | |
2241 | } | |
2242 | return resultobj; | |
2243 | fail: | |
2244 | { | |
2245 | if (temp2) | |
2246 | delete arg2; | |
2247 | } | |
2248 | return NULL; | |
2249 | } | |
2250 | ||
2251 | ||
2252 | static PyObject *_wrap_wxGetStockLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2253 | PyObject *resultobj; | |
2254 | int arg1 ; | |
2255 | wxString result; | |
2256 | PyObject * obj0 = 0 ; | |
2257 | char *kwnames[] = { | |
2258 | (char *) "id", NULL | |
2259 | }; | |
2260 | ||
2261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:wxGetStockLabel",kwnames,&obj0)) goto fail; | |
2262 | arg1 = (int) SWIG_AsInt(obj0); | |
2263 | if (PyErr_Occurred()) SWIG_fail; | |
2264 | { | |
2265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2266 | result = wxGetStockLabel(arg1); | |
2267 | ||
2268 | wxPyEndAllowThreads(__tstate); | |
2269 | if (PyErr_Occurred()) SWIG_fail; | |
2270 | } | |
2271 | { | |
2272 | #if wxUSE_UNICODE | |
2273 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2274 | #else | |
2275 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2276 | #endif | |
2277 | } | |
2278 | return resultobj; | |
2279 | fail: | |
2280 | return NULL; | |
2281 | } | |
2282 | ||
2283 | ||
d14a1e28 RD |
2284 | static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) { |
2285 | PyObject *resultobj; | |
2286 | char *kwnames[] = { | |
2287 | NULL | |
2288 | }; | |
2289 | ||
2290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
2291 | { | |
e3b71cb8 | 2292 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2294 | wxBell(); | |
2295 | ||
2296 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2297 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2298 | } |
2299 | Py_INCREF(Py_None); resultobj = Py_None; | |
2300 | return resultobj; | |
2301 | fail: | |
2302 | return NULL; | |
2303 | } | |
2304 | ||
2305 | ||
2306 | static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2307 | PyObject *resultobj; | |
2308 | char *kwnames[] = { | |
2309 | NULL | |
2310 | }; | |
2311 | ||
2312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
2313 | { | |
e3b71cb8 | 2314 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2316 | wxEndBusyCursor(); | |
2317 | ||
2318 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2319 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2320 | } |
2321 | Py_INCREF(Py_None); resultobj = Py_None; | |
2322 | return resultobj; | |
2323 | fail: | |
2324 | return NULL; | |
2325 | } | |
2326 | ||
2327 | ||
2328 | static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2329 | PyObject *resultobj; | |
e811c8ce | 2330 | bool arg1 = (bool) True ; |
d14a1e28 RD |
2331 | long result; |
2332 | PyObject * obj0 = 0 ; | |
2333 | char *kwnames[] = { | |
2334 | (char *) "resetTimer", NULL | |
2335 | }; | |
2336 | ||
2337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
2338 | if (obj0) { | |
15afbcd0 RD |
2339 | arg1 = (bool) SWIG_AsBool(obj0); |
2340 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2341 | } |
2342 | { | |
2343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2344 | result = (long)wxGetElapsedTime(arg1); | |
2345 | ||
2346 | wxPyEndAllowThreads(__tstate); | |
2347 | if (PyErr_Occurred()) SWIG_fail; | |
2348 | } | |
15afbcd0 | 2349 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
2350 | return resultobj; |
2351 | fail: | |
2352 | return NULL; | |
2353 | } | |
2354 | ||
2355 | ||
2356 | static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2357 | PyObject *resultobj; | |
2358 | int *arg1 = (int *) 0 ; | |
2359 | int *arg2 = (int *) 0 ; | |
2360 | int temp1 ; | |
2361 | int temp2 ; | |
2362 | char *kwnames[] = { | |
2363 | NULL | |
2364 | }; | |
2365 | ||
2366 | arg1 = &temp1; | |
2367 | arg2 = &temp2; | |
2368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
2369 | { | |
e3b71cb8 | 2370 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2372 | wxGetMousePosition(arg1,arg2); | |
2373 | ||
2374 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2375 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2376 | } |
2377 | Py_INCREF(Py_None); resultobj = Py_None; | |
2378 | { | |
2379 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2380 | resultobj = t_output_helper(resultobj,o); | |
2381 | } | |
2382 | { | |
2383 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2384 | resultobj = t_output_helper(resultobj,o); | |
2385 | } | |
2386 | return resultobj; | |
2387 | fail: | |
2388 | return NULL; | |
2389 | } | |
2390 | ||
2391 | ||
2392 | static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2393 | PyObject *resultobj; | |
2394 | bool result; | |
2395 | char *kwnames[] = { | |
2396 | NULL | |
2397 | }; | |
2398 | ||
2399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
2400 | { | |
2401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2402 | result = (bool)wxIsBusy(); | |
2403 | ||
2404 | wxPyEndAllowThreads(__tstate); | |
2405 | if (PyErr_Occurred()) SWIG_fail; | |
2406 | } | |
4f89f6a3 RD |
2407 | { |
2408 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2409 | } | |
d14a1e28 RD |
2410 | return resultobj; |
2411 | fail: | |
2412 | return NULL; | |
2413 | } | |
2414 | ||
2415 | ||
2416 | static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2417 | PyObject *resultobj; | |
2418 | wxString result; | |
2419 | char *kwnames[] = { | |
2420 | NULL | |
2421 | }; | |
2422 | ||
2423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
2424 | { | |
2425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2426 | result = wxNow(); | |
2427 | ||
2428 | wxPyEndAllowThreads(__tstate); | |
2429 | if (PyErr_Occurred()) SWIG_fail; | |
2430 | } | |
2431 | { | |
2432 | #if wxUSE_UNICODE | |
2433 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2434 | #else | |
2435 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2436 | #endif | |
2437 | } | |
2438 | return resultobj; | |
2439 | fail: | |
2440 | return NULL; | |
2441 | } | |
2442 | ||
2443 | ||
2444 | static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2445 | PyObject *resultobj; | |
2446 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2447 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2448 | bool result; | |
e811c8ce | 2449 | bool temp1 = False ; |
d14a1e28 RD |
2450 | PyObject * obj0 = 0 ; |
2451 | char *kwnames[] = { | |
2452 | (char *) "command", NULL | |
2453 | }; | |
2454 | ||
2455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
2456 | if (obj0) { | |
2457 | { | |
2458 | arg1 = wxString_in_helper(obj0); | |
2459 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2460 | temp1 = True; |
d14a1e28 RD |
2461 | } |
2462 | } | |
2463 | { | |
2464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2465 | result = (bool)wxShell((wxString const &)*arg1); | |
2466 | ||
2467 | wxPyEndAllowThreads(__tstate); | |
2468 | if (PyErr_Occurred()) SWIG_fail; | |
2469 | } | |
4f89f6a3 RD |
2470 | { |
2471 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2472 | } | |
d14a1e28 RD |
2473 | { |
2474 | if (temp1) | |
2475 | delete arg1; | |
2476 | } | |
2477 | return resultobj; | |
2478 | fail: | |
2479 | { | |
2480 | if (temp1) | |
2481 | delete arg1; | |
2482 | } | |
2483 | return NULL; | |
2484 | } | |
2485 | ||
2486 | ||
2487 | static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2488 | PyObject *resultobj; | |
2489 | char *kwnames[] = { | |
2490 | NULL | |
2491 | }; | |
2492 | ||
2493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
2494 | { | |
2495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2496 | wxStartTimer(); | |
2497 | ||
2498 | wxPyEndAllowThreads(__tstate); | |
2499 | if (PyErr_Occurred()) SWIG_fail; | |
2500 | } | |
2501 | Py_INCREF(Py_None); resultobj = Py_None; | |
2502 | return resultobj; | |
2503 | fail: | |
2504 | return NULL; | |
2505 | } | |
2506 | ||
2507 | ||
2508 | static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2509 | PyObject *resultobj; | |
2510 | int *arg1 = (int *) 0 ; | |
2511 | int *arg2 = (int *) 0 ; | |
2512 | int result; | |
2513 | int temp1 ; | |
2514 | int temp2 ; | |
2515 | char *kwnames[] = { | |
2516 | NULL | |
2517 | }; | |
2518 | ||
2519 | arg1 = &temp1; | |
2520 | arg2 = &temp2; | |
2521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
2522 | { | |
2523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2524 | result = (int)wxGetOsVersion(arg1,arg2); | |
2525 | ||
2526 | wxPyEndAllowThreads(__tstate); | |
2527 | if (PyErr_Occurred()) SWIG_fail; | |
2528 | } | |
15afbcd0 | 2529 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2530 | { |
2531 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2532 | resultobj = t_output_helper(resultobj,o); | |
2533 | } | |
2534 | { | |
2535 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2536 | resultobj = t_output_helper(resultobj,o); | |
2537 | } | |
2538 | return resultobj; | |
2539 | fail: | |
2540 | return NULL; | |
2541 | } | |
2542 | ||
2543 | ||
2544 | static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2545 | PyObject *resultobj; | |
2546 | wxString result; | |
2547 | char *kwnames[] = { | |
2548 | NULL | |
2549 | }; | |
2550 | ||
2551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
2552 | { | |
2553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2554 | result = wxGetOsDescription(); | |
2555 | ||
2556 | wxPyEndAllowThreads(__tstate); | |
2557 | if (PyErr_Occurred()) SWIG_fail; | |
2558 | } | |
2559 | { | |
2560 | #if wxUSE_UNICODE | |
2561 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2562 | #else | |
2563 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2564 | #endif | |
2565 | } | |
2566 | return resultobj; | |
2567 | fail: | |
2568 | return NULL; | |
2569 | } | |
2570 | ||
2571 | ||
2572 | static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2573 | PyObject *resultobj; | |
2574 | long result; | |
2575 | char *kwnames[] = { | |
2576 | NULL | |
2577 | }; | |
2578 | ||
2579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
2580 | { | |
2581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2582 | result = (long)wxGetFreeMemory(); | |
2583 | ||
2584 | wxPyEndAllowThreads(__tstate); | |
2585 | if (PyErr_Occurred()) SWIG_fail; | |
2586 | } | |
15afbcd0 | 2587 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
2588 | return resultobj; |
2589 | fail: | |
2590 | return NULL; | |
2591 | } | |
2592 | ||
2593 | ||
2594 | static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2595 | PyObject *resultobj; | |
2596 | int arg1 ; | |
2597 | bool result; | |
994141e6 | 2598 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2599 | char *kwnames[] = { |
2600 | (char *) "wFlags", NULL | |
2601 | }; | |
2602 | ||
994141e6 | 2603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2604 | arg1 = (wxShutdownFlags) SWIG_AsInt(obj0); |
2605 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 2606 | { |
e3b71cb8 | 2607 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2609 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
2610 | ||
2611 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2612 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2613 | } |
4f89f6a3 RD |
2614 | { |
2615 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2616 | } | |
d14a1e28 RD |
2617 | return resultobj; |
2618 | fail: | |
2619 | return NULL; | |
2620 | } | |
2621 | ||
2622 | ||
2623 | static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2624 | PyObject *resultobj; | |
2625 | int arg1 ; | |
994141e6 | 2626 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2627 | char *kwnames[] = { |
2628 | (char *) "secs", NULL | |
2629 | }; | |
2630 | ||
994141e6 | 2631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2632 | arg1 = (int) SWIG_AsInt(obj0); |
2633 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2634 | { |
2635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2636 | wxSleep(arg1); | |
2637 | ||
2638 | wxPyEndAllowThreads(__tstate); | |
2639 | if (PyErr_Occurred()) SWIG_fail; | |
2640 | } | |
2641 | Py_INCREF(Py_None); resultobj = Py_None; | |
2642 | return resultobj; | |
2643 | fail: | |
2644 | return NULL; | |
2645 | } | |
2646 | ||
2647 | ||
7f98d120 | 2648 | static PyObject *_wrap_MilliSleep(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2649 | PyObject *resultobj; |
2650 | unsigned long arg1 ; | |
2651 | PyObject * obj0 = 0 ; | |
2652 | char *kwnames[] = { | |
2653 | (char *) "milliseconds", NULL | |
2654 | }; | |
2655 | ||
7f98d120 | 2656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2657 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
2658 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2659 | { |
2660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7f98d120 RD |
2661 | wxMilliSleep(arg1); |
2662 | ||
2663 | wxPyEndAllowThreads(__tstate); | |
2664 | if (PyErr_Occurred()) SWIG_fail; | |
2665 | } | |
2666 | Py_INCREF(Py_None); resultobj = Py_None; | |
2667 | return resultobj; | |
2668 | fail: | |
2669 | return NULL; | |
2670 | } | |
2671 | ||
2672 | ||
2673 | static PyObject *_wrap_MicroSleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2674 | PyObject *resultobj; | |
2675 | unsigned long arg1 ; | |
2676 | PyObject * obj0 = 0 ; | |
2677 | char *kwnames[] = { | |
2678 | (char *) "microseconds", NULL | |
2679 | }; | |
2680 | ||
2681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail; | |
2682 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); | |
2683 | if (PyErr_Occurred()) SWIG_fail; | |
2684 | { | |
2685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2686 | wxMicroSleep(arg1); | |
d14a1e28 RD |
2687 | |
2688 | wxPyEndAllowThreads(__tstate); | |
2689 | if (PyErr_Occurred()) SWIG_fail; | |
2690 | } | |
2691 | Py_INCREF(Py_None); resultobj = Py_None; | |
2692 | return resultobj; | |
2693 | fail: | |
2694 | return NULL; | |
2695 | } | |
2696 | ||
2697 | ||
2698 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2699 | PyObject *resultobj; | |
2700 | bool arg1 ; | |
2701 | PyObject * obj0 = 0 ; | |
2702 | char *kwnames[] = { | |
2703 | (char *) "enable", NULL | |
2704 | }; | |
2705 | ||
2706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2707 | arg1 = (bool) SWIG_AsBool(obj0); |
2708 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2709 | { |
2710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2711 | wxEnableTopLevelWindows(arg1); | |
2712 | ||
2713 | wxPyEndAllowThreads(__tstate); | |
2714 | if (PyErr_Occurred()) SWIG_fail; | |
2715 | } | |
2716 | Py_INCREF(Py_None); resultobj = Py_None; | |
2717 | return resultobj; | |
2718 | fail: | |
2719 | return NULL; | |
2720 | } | |
2721 | ||
2722 | ||
2723 | static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2724 | PyObject *resultobj; | |
2725 | wxString *arg1 = 0 ; | |
2726 | wxString result; | |
e811c8ce | 2727 | bool temp1 = False ; |
d14a1e28 RD |
2728 | PyObject * obj0 = 0 ; |
2729 | char *kwnames[] = { | |
2730 | (char *) "in", NULL | |
2731 | }; | |
2732 | ||
2733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2734 | { | |
2735 | arg1 = wxString_in_helper(obj0); | |
2736 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2737 | temp1 = True; |
d14a1e28 RD |
2738 | } |
2739 | { | |
2740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2741 | result = wxStripMenuCodes((wxString const &)*arg1); | |
2742 | ||
2743 | wxPyEndAllowThreads(__tstate); | |
2744 | if (PyErr_Occurred()) SWIG_fail; | |
2745 | } | |
2746 | { | |
2747 | #if wxUSE_UNICODE | |
2748 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2749 | #else | |
2750 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2751 | #endif | |
2752 | } | |
2753 | { | |
2754 | if (temp1) | |
2755 | delete arg1; | |
2756 | } | |
2757 | return resultobj; | |
2758 | fail: | |
2759 | { | |
2760 | if (temp1) | |
2761 | delete arg1; | |
2762 | } | |
2763 | return NULL; | |
2764 | } | |
2765 | ||
2766 | ||
2767 | static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2768 | PyObject *resultobj; | |
2769 | wxString result; | |
2770 | char *kwnames[] = { | |
2771 | NULL | |
2772 | }; | |
2773 | ||
2774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2775 | { | |
2776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2777 | result = wxGetEmailAddress(); | |
2778 | ||
2779 | wxPyEndAllowThreads(__tstate); | |
2780 | if (PyErr_Occurred()) SWIG_fail; | |
2781 | } | |
2782 | { | |
2783 | #if wxUSE_UNICODE | |
2784 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2785 | #else | |
2786 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2787 | #endif | |
2788 | } | |
2789 | return resultobj; | |
2790 | fail: | |
2791 | return NULL; | |
2792 | } | |
2793 | ||
2794 | ||
2795 | static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2796 | PyObject *resultobj; | |
2797 | wxString result; | |
2798 | char *kwnames[] = { | |
2799 | NULL | |
2800 | }; | |
2801 | ||
2802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2803 | { | |
2804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2805 | result = wxGetHostName(); | |
2806 | ||
2807 | wxPyEndAllowThreads(__tstate); | |
2808 | if (PyErr_Occurred()) SWIG_fail; | |
2809 | } | |
2810 | { | |
2811 | #if wxUSE_UNICODE | |
2812 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2813 | #else | |
2814 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2815 | #endif | |
2816 | } | |
2817 | return resultobj; | |
2818 | fail: | |
2819 | return NULL; | |
2820 | } | |
2821 | ||
2822 | ||
2823 | static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2824 | PyObject *resultobj; | |
2825 | wxString result; | |
2826 | char *kwnames[] = { | |
2827 | NULL | |
2828 | }; | |
2829 | ||
2830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2831 | { | |
2832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2833 | result = wxGetFullHostName(); | |
2834 | ||
2835 | wxPyEndAllowThreads(__tstate); | |
2836 | if (PyErr_Occurred()) SWIG_fail; | |
2837 | } | |
2838 | { | |
2839 | #if wxUSE_UNICODE | |
2840 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2841 | #else | |
2842 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2843 | #endif | |
2844 | } | |
2845 | return resultobj; | |
2846 | fail: | |
2847 | return NULL; | |
2848 | } | |
2849 | ||
2850 | ||
2851 | static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2852 | PyObject *resultobj; | |
2853 | wxString result; | |
2854 | char *kwnames[] = { | |
2855 | NULL | |
2856 | }; | |
2857 | ||
2858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
2859 | { | |
2860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2861 | result = wxGetUserId(); | |
2862 | ||
2863 | wxPyEndAllowThreads(__tstate); | |
2864 | if (PyErr_Occurred()) SWIG_fail; | |
2865 | } | |
2866 | { | |
2867 | #if wxUSE_UNICODE | |
2868 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2869 | #else | |
2870 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2871 | #endif | |
2872 | } | |
2873 | return resultobj; | |
2874 | fail: | |
2875 | return NULL; | |
2876 | } | |
2877 | ||
2878 | ||
2879 | static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2880 | PyObject *resultobj; | |
2881 | wxString result; | |
2882 | char *kwnames[] = { | |
2883 | NULL | |
2884 | }; | |
2885 | ||
2886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
2887 | { | |
2888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2889 | result = wxGetUserName(); | |
2890 | ||
2891 | wxPyEndAllowThreads(__tstate); | |
2892 | if (PyErr_Occurred()) SWIG_fail; | |
2893 | } | |
2894 | { | |
2895 | #if wxUSE_UNICODE | |
2896 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2897 | #else | |
2898 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2899 | #endif | |
2900 | } | |
2901 | return resultobj; | |
2902 | fail: | |
2903 | return NULL; | |
2904 | } | |
2905 | ||
2906 | ||
2907 | static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2908 | PyObject *resultobj; | |
2909 | wxString result; | |
2910 | char *kwnames[] = { | |
2911 | NULL | |
2912 | }; | |
2913 | ||
2914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
2915 | { | |
2916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2917 | result = wxGetHomeDir(); | |
2918 | ||
2919 | wxPyEndAllowThreads(__tstate); | |
2920 | if (PyErr_Occurred()) SWIG_fail; | |
2921 | } | |
2922 | { | |
2923 | #if wxUSE_UNICODE | |
2924 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2925 | #else | |
2926 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2927 | #endif | |
2928 | } | |
2929 | return resultobj; | |
2930 | fail: | |
2931 | return NULL; | |
2932 | } | |
2933 | ||
2934 | ||
2935 | static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2936 | PyObject *resultobj; | |
2937 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2938 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2939 | wxString result; | |
e811c8ce | 2940 | bool temp1 = False ; |
d14a1e28 RD |
2941 | PyObject * obj0 = 0 ; |
2942 | char *kwnames[] = { | |
2943 | (char *) "user", NULL | |
2944 | }; | |
2945 | ||
2946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
2947 | if (obj0) { | |
2948 | { | |
2949 | arg1 = wxString_in_helper(obj0); | |
2950 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2951 | temp1 = True; |
d14a1e28 RD |
2952 | } |
2953 | } | |
2954 | { | |
2955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2956 | result = wxGetUserHome((wxString const &)*arg1); | |
2957 | ||
2958 | wxPyEndAllowThreads(__tstate); | |
2959 | if (PyErr_Occurred()) SWIG_fail; | |
2960 | } | |
2961 | { | |
2962 | #if wxUSE_UNICODE | |
2963 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2964 | #else | |
2965 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2966 | #endif | |
2967 | } | |
2968 | { | |
2969 | if (temp1) | |
2970 | delete arg1; | |
2971 | } | |
2972 | return resultobj; | |
2973 | fail: | |
2974 | { | |
2975 | if (temp1) | |
2976 | delete arg1; | |
2977 | } | |
2978 | return NULL; | |
2979 | } | |
2980 | ||
2981 | ||
2982 | static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2983 | PyObject *resultobj; | |
2984 | unsigned long result; | |
2985 | char *kwnames[] = { | |
2986 | NULL | |
2987 | }; | |
2988 | ||
2989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
2990 | { | |
2991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2992 | result = (unsigned long)wxGetProcessId(); | |
2993 | ||
2994 | wxPyEndAllowThreads(__tstate); | |
2995 | if (PyErr_Occurred()) SWIG_fail; | |
2996 | } | |
15afbcd0 | 2997 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
2998 | return resultobj; |
2999 | fail: | |
3000 | return NULL; | |
3001 | } | |
3002 | ||
3003 | ||
3004 | static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3005 | PyObject *resultobj; | |
3006 | char *kwnames[] = { | |
3007 | NULL | |
3008 | }; | |
3009 | ||
3010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
3011 | { | |
3012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3013 | wxTrap(); | |
3014 | ||
3015 | wxPyEndAllowThreads(__tstate); | |
3016 | if (PyErr_Occurred()) SWIG_fail; | |
3017 | } | |
3018 | Py_INCREF(Py_None); resultobj = Py_None; | |
3019 | return resultobj; | |
3020 | fail: | |
3021 | return NULL; | |
3022 | } | |
3023 | ||
3024 | ||
3025 | static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3026 | PyObject *resultobj; | |
3027 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
3028 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3029 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3030 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3031 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3032 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3033 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3034 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3035 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
3036 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
3037 | int arg6 = (int) 0 ; | |
3038 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3039 | int arg8 = (int) -1 ; | |
3040 | int arg9 = (int) -1 ; | |
3041 | wxString result; | |
e811c8ce RD |
3042 | bool temp1 = False ; |
3043 | bool temp2 = False ; | |
3044 | bool temp3 = False ; | |
3045 | bool temp4 = False ; | |
3046 | bool temp5 = False ; | |
d14a1e28 RD |
3047 | PyObject * obj0 = 0 ; |
3048 | PyObject * obj1 = 0 ; | |
3049 | PyObject * obj2 = 0 ; | |
3050 | PyObject * obj3 = 0 ; | |
3051 | PyObject * obj4 = 0 ; | |
994141e6 | 3052 | PyObject * obj5 = 0 ; |
d14a1e28 | 3053 | PyObject * obj6 = 0 ; |
994141e6 RD |
3054 | PyObject * obj7 = 0 ; |
3055 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
3056 | char *kwnames[] = { |
3057 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3058 | }; | |
3059 | ||
994141e6 | 3060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3061 | if (obj0) { |
3062 | { | |
3063 | arg1 = wxString_in_helper(obj0); | |
3064 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3065 | temp1 = True; |
d14a1e28 RD |
3066 | } |
3067 | } | |
3068 | if (obj1) { | |
3069 | { | |
3070 | arg2 = wxString_in_helper(obj1); | |
3071 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3072 | temp2 = True; |
d14a1e28 RD |
3073 | } |
3074 | } | |
3075 | if (obj2) { | |
3076 | { | |
3077 | arg3 = wxString_in_helper(obj2); | |
3078 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3079 | temp3 = True; |
d14a1e28 RD |
3080 | } |
3081 | } | |
3082 | if (obj3) { | |
3083 | { | |
3084 | arg4 = wxString_in_helper(obj3); | |
3085 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 3086 | temp4 = True; |
d14a1e28 RD |
3087 | } |
3088 | } | |
3089 | if (obj4) { | |
3090 | { | |
3091 | arg5 = wxString_in_helper(obj4); | |
3092 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 3093 | temp5 = True; |
d14a1e28 RD |
3094 | } |
3095 | } | |
994141e6 | 3096 | if (obj5) { |
15afbcd0 RD |
3097 | arg6 = (int) SWIG_AsInt(obj5); |
3098 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3099 | } |
d14a1e28 | 3100 | if (obj6) { |
15afbcd0 RD |
3101 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, |
3102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3103 | } |
994141e6 | 3104 | if (obj7) { |
15afbcd0 RD |
3105 | arg8 = (int) SWIG_AsInt(obj7); |
3106 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3107 | } |
3108 | if (obj8) { | |
15afbcd0 RD |
3109 | arg9 = (int) SWIG_AsInt(obj8); |
3110 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3111 | } |
d14a1e28 | 3112 | { |
e3b71cb8 | 3113 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3115 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
3116 | ||
3117 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3118 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
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 | { | |
3140 | if (temp4) | |
3141 | delete arg4; | |
3142 | } | |
3143 | { | |
3144 | if (temp5) | |
3145 | delete arg5; | |
3146 | } | |
3147 | return resultobj; | |
3148 | fail: | |
3149 | { | |
3150 | if (temp1) | |
3151 | delete arg1; | |
3152 | } | |
3153 | { | |
3154 | if (temp2) | |
3155 | delete arg2; | |
3156 | } | |
3157 | { | |
3158 | if (temp3) | |
3159 | delete arg3; | |
3160 | } | |
3161 | { | |
3162 | if (temp4) | |
3163 | delete arg4; | |
3164 | } | |
3165 | { | |
3166 | if (temp5) | |
3167 | delete arg5; | |
3168 | } | |
3169 | return NULL; | |
3170 | } | |
3171 | ||
3172 | ||
3173 | static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3174 | PyObject *resultobj; | |
3175 | wxString *arg1 = 0 ; | |
3176 | wxString *arg2 = 0 ; | |
3177 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3178 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3179 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3180 | wxString result; | |
e811c8ce RD |
3181 | bool temp1 = False ; |
3182 | bool temp2 = False ; | |
3183 | bool temp3 = False ; | |
d14a1e28 RD |
3184 | PyObject * obj0 = 0 ; |
3185 | PyObject * obj1 = 0 ; | |
3186 | PyObject * obj2 = 0 ; | |
3187 | PyObject * obj3 = 0 ; | |
3188 | char *kwnames[] = { | |
3189 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
3190 | }; | |
3191 | ||
3192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3193 | { | |
3194 | arg1 = wxString_in_helper(obj0); | |
3195 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3196 | temp1 = True; |
d14a1e28 RD |
3197 | } |
3198 | { | |
3199 | arg2 = wxString_in_helper(obj1); | |
3200 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3201 | temp2 = True; |
d14a1e28 RD |
3202 | } |
3203 | if (obj2) { | |
3204 | { | |
3205 | arg3 = wxString_in_helper(obj2); | |
3206 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3207 | temp3 = True; |
d14a1e28 RD |
3208 | } |
3209 | } | |
3210 | if (obj3) { | |
15afbcd0 RD |
3211 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3213 | } |
3214 | { | |
e3b71cb8 | 3215 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3217 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3218 | ||
3219 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3220 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3221 | } |
3222 | { | |
3223 | #if wxUSE_UNICODE | |
3224 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3225 | #else | |
3226 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3227 | #endif | |
3228 | } | |
3229 | { | |
3230 | if (temp1) | |
3231 | delete arg1; | |
3232 | } | |
3233 | { | |
3234 | if (temp2) | |
3235 | delete arg2; | |
3236 | } | |
3237 | { | |
3238 | if (temp3) | |
3239 | delete arg3; | |
3240 | } | |
3241 | return resultobj; | |
3242 | fail: | |
3243 | { | |
3244 | if (temp1) | |
3245 | delete arg1; | |
3246 | } | |
3247 | { | |
3248 | if (temp2) | |
3249 | delete arg2; | |
3250 | } | |
3251 | { | |
3252 | if (temp3) | |
3253 | delete arg3; | |
3254 | } | |
3255 | return NULL; | |
3256 | } | |
3257 | ||
3258 | ||
3259 | static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3260 | PyObject *resultobj; | |
3261 | wxString *arg1 = 0 ; | |
3262 | wxString *arg2 = 0 ; | |
3263 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3264 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3265 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3266 | wxString result; | |
e811c8ce RD |
3267 | bool temp1 = False ; |
3268 | bool temp2 = False ; | |
3269 | bool temp3 = False ; | |
d14a1e28 RD |
3270 | PyObject * obj0 = 0 ; |
3271 | PyObject * obj1 = 0 ; | |
3272 | PyObject * obj2 = 0 ; | |
3273 | PyObject * obj3 = 0 ; | |
3274 | char *kwnames[] = { | |
3275 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
3276 | }; | |
3277 | ||
3278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3279 | { | |
3280 | arg1 = wxString_in_helper(obj0); | |
3281 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3282 | temp1 = True; |
d14a1e28 RD |
3283 | } |
3284 | { | |
3285 | arg2 = wxString_in_helper(obj1); | |
3286 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3287 | temp2 = True; |
d14a1e28 RD |
3288 | } |
3289 | if (obj2) { | |
3290 | { | |
3291 | arg3 = wxString_in_helper(obj2); | |
3292 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3293 | temp3 = True; |
d14a1e28 RD |
3294 | } |
3295 | } | |
3296 | if (obj3) { | |
15afbcd0 RD |
3297 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3299 | } |
3300 | { | |
e3b71cb8 | 3301 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3303 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3304 | ||
3305 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3306 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3307 | } |
3308 | { | |
3309 | #if wxUSE_UNICODE | |
3310 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3311 | #else | |
3312 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3313 | #endif | |
3314 | } | |
3315 | { | |
3316 | if (temp1) | |
3317 | delete arg1; | |
3318 | } | |
3319 | { | |
3320 | if (temp2) | |
3321 | delete arg2; | |
3322 | } | |
3323 | { | |
3324 | if (temp3) | |
3325 | delete arg3; | |
3326 | } | |
3327 | return resultobj; | |
3328 | fail: | |
3329 | { | |
3330 | if (temp1) | |
3331 | delete arg1; | |
3332 | } | |
3333 | { | |
3334 | if (temp2) | |
3335 | delete arg2; | |
3336 | } | |
3337 | { | |
3338 | if (temp3) | |
3339 | delete arg3; | |
3340 | } | |
3341 | return NULL; | |
3342 | } | |
3343 | ||
3344 | ||
3345 | static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3346 | PyObject *resultobj; | |
3347 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
3348 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3349 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3350 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3351 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
3352 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3353 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3354 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3355 | wxString result; | |
e811c8ce RD |
3356 | bool temp1 = False ; |
3357 | bool temp2 = False ; | |
d14a1e28 RD |
3358 | wxPoint temp4 ; |
3359 | PyObject * obj0 = 0 ; | |
3360 | PyObject * obj1 = 0 ; | |
994141e6 | 3361 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3362 | PyObject * obj3 = 0 ; |
3363 | PyObject * obj4 = 0 ; | |
3364 | char *kwnames[] = { | |
3365 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
3366 | }; | |
3367 | ||
994141e6 | 3368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
3369 | if (obj0) { |
3370 | { | |
3371 | arg1 = wxString_in_helper(obj0); | |
3372 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3373 | temp1 = True; |
d14a1e28 RD |
3374 | } |
3375 | } | |
3376 | if (obj1) { | |
3377 | { | |
3378 | arg2 = wxString_in_helper(obj1); | |
3379 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3380 | temp2 = True; |
d14a1e28 RD |
3381 | } |
3382 | } | |
994141e6 | 3383 | if (obj2) { |
15afbcd0 RD |
3384 | arg3 = (long) SWIG_AsLong(obj2); |
3385 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3386 | } |
d14a1e28 RD |
3387 | if (obj3) { |
3388 | { | |
3389 | arg4 = &temp4; | |
3390 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3391 | } | |
3392 | } | |
3393 | if (obj4) { | |
15afbcd0 RD |
3394 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow, |
3395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3396 | } |
3397 | { | |
e3b71cb8 | 3398 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3400 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
3401 | ||
3402 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3403 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3404 | } |
3405 | { | |
3406 | #if wxUSE_UNICODE | |
3407 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3408 | #else | |
3409 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3410 | #endif | |
3411 | } | |
3412 | { | |
3413 | if (temp1) | |
3414 | delete arg1; | |
3415 | } | |
3416 | { | |
3417 | if (temp2) | |
3418 | delete arg2; | |
3419 | } | |
3420 | return resultobj; | |
3421 | fail: | |
3422 | { | |
3423 | if (temp1) | |
3424 | delete arg1; | |
3425 | } | |
3426 | { | |
3427 | if (temp2) | |
3428 | delete arg2; | |
3429 | } | |
3430 | return NULL; | |
3431 | } | |
3432 | ||
3433 | ||
3434 | static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3435 | PyObject *resultobj; | |
3436 | wxString *arg1 = 0 ; | |
3437 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3438 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3439 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3440 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3441 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3442 | int arg5 = (int) -1 ; | |
3443 | int arg6 = (int) -1 ; | |
e811c8ce | 3444 | bool arg7 = (bool) True ; |
d14a1e28 | 3445 | wxString result; |
e811c8ce RD |
3446 | bool temp1 = False ; |
3447 | bool temp2 = False ; | |
3448 | bool temp3 = False ; | |
d14a1e28 RD |
3449 | PyObject * obj0 = 0 ; |
3450 | PyObject * obj1 = 0 ; | |
3451 | PyObject * obj2 = 0 ; | |
3452 | PyObject * obj3 = 0 ; | |
994141e6 RD |
3453 | PyObject * obj4 = 0 ; |
3454 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
3455 | PyObject * obj6 = 0 ; |
3456 | char *kwnames[] = { | |
3457 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
3458 | }; | |
3459 | ||
994141e6 | 3460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
3461 | { |
3462 | arg1 = wxString_in_helper(obj0); | |
3463 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3464 | temp1 = True; |
d14a1e28 RD |
3465 | } |
3466 | if (obj1) { | |
3467 | { | |
3468 | arg2 = wxString_in_helper(obj1); | |
3469 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3470 | temp2 = True; |
d14a1e28 RD |
3471 | } |
3472 | } | |
3473 | if (obj2) { | |
3474 | { | |
3475 | arg3 = wxString_in_helper(obj2); | |
3476 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3477 | temp3 = True; |
d14a1e28 RD |
3478 | } |
3479 | } | |
3480 | if (obj3) { | |
15afbcd0 RD |
3481 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3483 | } |
994141e6 | 3484 | if (obj4) { |
15afbcd0 RD |
3485 | arg5 = (int) SWIG_AsInt(obj4); |
3486 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3487 | } |
3488 | if (obj5) { | |
15afbcd0 RD |
3489 | arg6 = (int) SWIG_AsInt(obj5); |
3490 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3491 | } |
d14a1e28 | 3492 | if (obj6) { |
15afbcd0 RD |
3493 | arg7 = (bool) SWIG_AsBool(obj6); |
3494 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3495 | } |
3496 | { | |
e3b71cb8 | 3497 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3499 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
3500 | ||
3501 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3502 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3503 | } |
3504 | { | |
3505 | #if wxUSE_UNICODE | |
3506 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3507 | #else | |
3508 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3509 | #endif | |
3510 | } | |
3511 | { | |
3512 | if (temp1) | |
3513 | delete arg1; | |
3514 | } | |
3515 | { | |
3516 | if (temp2) | |
3517 | delete arg2; | |
3518 | } | |
3519 | { | |
3520 | if (temp3) | |
3521 | delete arg3; | |
3522 | } | |
3523 | return resultobj; | |
3524 | fail: | |
3525 | { | |
3526 | if (temp1) | |
3527 | delete arg1; | |
3528 | } | |
3529 | { | |
3530 | if (temp2) | |
3531 | delete arg2; | |
3532 | } | |
3533 | { | |
3534 | if (temp3) | |
3535 | delete arg3; | |
3536 | } | |
3537 | return NULL; | |
3538 | } | |
3539 | ||
3540 | ||
3541 | static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3542 | PyObject *resultobj; | |
3543 | wxString *arg1 = 0 ; | |
3544 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3545 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3546 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3547 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3548 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3549 | wxString result; | |
e811c8ce RD |
3550 | bool temp1 = False ; |
3551 | bool temp2 = False ; | |
3552 | bool temp3 = False ; | |
d14a1e28 RD |
3553 | PyObject * obj0 = 0 ; |
3554 | PyObject * obj1 = 0 ; | |
3555 | PyObject * obj2 = 0 ; | |
3556 | PyObject * obj3 = 0 ; | |
3557 | char *kwnames[] = { | |
3558 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
3559 | }; | |
3560 | ||
3561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3562 | { | |
3563 | arg1 = wxString_in_helper(obj0); | |
3564 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3565 | temp1 = True; |
d14a1e28 RD |
3566 | } |
3567 | if (obj1) { | |
3568 | { | |
3569 | arg2 = wxString_in_helper(obj1); | |
3570 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3571 | temp2 = True; |
d14a1e28 RD |
3572 | } |
3573 | } | |
3574 | if (obj2) { | |
3575 | { | |
3576 | arg3 = wxString_in_helper(obj2); | |
3577 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3578 | temp3 = True; |
d14a1e28 RD |
3579 | } |
3580 | } | |
3581 | if (obj3) { | |
15afbcd0 RD |
3582 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3584 | } |
3585 | { | |
e3b71cb8 | 3586 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3588 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3589 | ||
3590 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3591 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3592 | } |
3593 | { | |
3594 | #if wxUSE_UNICODE | |
3595 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3596 | #else | |
3597 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3598 | #endif | |
3599 | } | |
3600 | { | |
3601 | if (temp1) | |
3602 | delete arg1; | |
3603 | } | |
3604 | { | |
3605 | if (temp2) | |
3606 | delete arg2; | |
3607 | } | |
3608 | { | |
3609 | if (temp3) | |
3610 | delete arg3; | |
3611 | } | |
3612 | return resultobj; | |
3613 | fail: | |
3614 | { | |
3615 | if (temp1) | |
3616 | delete arg1; | |
3617 | } | |
3618 | { | |
3619 | if (temp2) | |
3620 | delete arg2; | |
3621 | } | |
3622 | { | |
3623 | if (temp3) | |
3624 | delete arg3; | |
3625 | } | |
3626 | return NULL; | |
3627 | } | |
3628 | ||
3629 | ||
3630 | static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3631 | PyObject *resultobj; | |
3632 | wxString *arg1 = 0 ; | |
3633 | wxString *arg2 = 0 ; | |
3634 | int arg3 ; | |
3635 | wxString *arg4 = (wxString *) 0 ; | |
3636 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3637 | int arg6 = (int) -1 ; | |
3638 | int arg7 = (int) -1 ; | |
e811c8ce | 3639 | bool arg8 = (bool) True ; |
d14a1e28 RD |
3640 | int arg9 = (int) 150 ; |
3641 | int arg10 = (int) 200 ; | |
3642 | wxString result; | |
e811c8ce RD |
3643 | bool temp1 = False ; |
3644 | bool temp2 = False ; | |
d14a1e28 RD |
3645 | PyObject * obj0 = 0 ; |
3646 | PyObject * obj1 = 0 ; | |
3647 | PyObject * obj2 = 0 ; | |
3648 | PyObject * obj3 = 0 ; | |
994141e6 RD |
3649 | PyObject * obj4 = 0 ; |
3650 | PyObject * obj5 = 0 ; | |
d14a1e28 | 3651 | PyObject * obj6 = 0 ; |
994141e6 RD |
3652 | PyObject * obj7 = 0 ; |
3653 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
3654 | char *kwnames[] = { |
3655 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3656 | }; | |
3657 | ||
994141e6 | 3658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3659 | { |
3660 | arg1 = wxString_in_helper(obj0); | |
3661 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3662 | temp1 = True; |
d14a1e28 RD |
3663 | } |
3664 | { | |
3665 | arg2 = wxString_in_helper(obj1); | |
3666 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3667 | temp2 = True; |
d14a1e28 RD |
3668 | } |
3669 | { | |
3670 | arg3 = PyList_Size(obj2); | |
3671 | arg4 = wxString_LIST_helper(obj2); | |
3672 | if (arg4 == NULL) SWIG_fail; | |
3673 | } | |
3674 | if (obj3) { | |
15afbcd0 RD |
3675 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, |
3676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3677 | } |
994141e6 | 3678 | if (obj4) { |
15afbcd0 RD |
3679 | arg6 = (int) SWIG_AsInt(obj4); |
3680 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3681 | } |
3682 | if (obj5) { | |
15afbcd0 RD |
3683 | arg7 = (int) SWIG_AsInt(obj5); |
3684 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3685 | } |
d14a1e28 | 3686 | if (obj6) { |
15afbcd0 RD |
3687 | arg8 = (bool) SWIG_AsBool(obj6); |
3688 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3689 | } |
3690 | if (obj7) { | |
15afbcd0 RD |
3691 | arg9 = (int) SWIG_AsInt(obj7); |
3692 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3693 | } |
3694 | if (obj8) { | |
15afbcd0 RD |
3695 | arg10 = (int) SWIG_AsInt(obj8); |
3696 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3697 | } |
3698 | { | |
e3b71cb8 | 3699 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3701 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3702 | ||
3703 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3704 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3705 | } |
3706 | { | |
3707 | #if wxUSE_UNICODE | |
3708 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3709 | #else | |
3710 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3711 | #endif | |
3712 | } | |
3713 | { | |
3714 | if (temp1) | |
3715 | delete arg1; | |
3716 | } | |
3717 | { | |
3718 | if (temp2) | |
3719 | delete arg2; | |
3720 | } | |
3721 | { | |
3722 | if (arg4) delete [] arg4; | |
3723 | } | |
3724 | return resultobj; | |
3725 | fail: | |
3726 | { | |
3727 | if (temp1) | |
3728 | delete arg1; | |
3729 | } | |
3730 | { | |
3731 | if (temp2) | |
3732 | delete arg2; | |
3733 | } | |
3734 | { | |
3735 | if (arg4) delete [] arg4; | |
3736 | } | |
3737 | return NULL; | |
3738 | } | |
3739 | ||
3740 | ||
3741 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3742 | PyObject *resultobj; | |
3743 | wxString *arg1 = 0 ; | |
3744 | wxString *arg2 = 0 ; | |
3745 | int arg3 ; | |
3746 | wxString *arg4 = (wxString *) 0 ; | |
3747 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3748 | int arg6 = (int) -1 ; | |
3749 | int arg7 = (int) -1 ; | |
e811c8ce | 3750 | bool arg8 = (bool) True ; |
d14a1e28 RD |
3751 | int arg9 = (int) 150 ; |
3752 | int arg10 = (int) 200 ; | |
3753 | int result; | |
e811c8ce RD |
3754 | bool temp1 = False ; |
3755 | bool temp2 = False ; | |
d14a1e28 RD |
3756 | PyObject * obj0 = 0 ; |
3757 | PyObject * obj1 = 0 ; | |
3758 | PyObject * obj2 = 0 ; | |
3759 | PyObject * obj3 = 0 ; | |
994141e6 RD |
3760 | PyObject * obj4 = 0 ; |
3761 | PyObject * obj5 = 0 ; | |
d14a1e28 | 3762 | PyObject * obj6 = 0 ; |
994141e6 RD |
3763 | PyObject * obj7 = 0 ; |
3764 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
3765 | char *kwnames[] = { |
3766 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3767 | }; | |
3768 | ||
994141e6 | 3769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3770 | { |
3771 | arg1 = wxString_in_helper(obj0); | |
3772 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3773 | temp1 = True; |
d14a1e28 RD |
3774 | } |
3775 | { | |
3776 | arg2 = wxString_in_helper(obj1); | |
3777 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3778 | temp2 = True; |
d14a1e28 RD |
3779 | } |
3780 | { | |
3781 | arg3 = PyList_Size(obj2); | |
3782 | arg4 = wxString_LIST_helper(obj2); | |
3783 | if (arg4 == NULL) SWIG_fail; | |
3784 | } | |
3785 | if (obj3) { | |
15afbcd0 RD |
3786 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, |
3787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3788 | } |
994141e6 | 3789 | if (obj4) { |
15afbcd0 RD |
3790 | arg6 = (int) SWIG_AsInt(obj4); |
3791 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3792 | } |
3793 | if (obj5) { | |
15afbcd0 RD |
3794 | arg7 = (int) SWIG_AsInt(obj5); |
3795 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3796 | } |
d14a1e28 | 3797 | if (obj6) { |
15afbcd0 RD |
3798 | arg8 = (bool) SWIG_AsBool(obj6); |
3799 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3800 | } |
3801 | if (obj7) { | |
15afbcd0 RD |
3802 | arg9 = (int) SWIG_AsInt(obj7); |
3803 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3804 | } |
3805 | if (obj8) { | |
15afbcd0 RD |
3806 | arg10 = (int) SWIG_AsInt(obj8); |
3807 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3808 | } |
3809 | { | |
e3b71cb8 | 3810 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3812 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3813 | ||
3814 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3815 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3816 | } |
15afbcd0 | 3817 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3818 | { |
3819 | if (temp1) | |
3820 | delete arg1; | |
3821 | } | |
3822 | { | |
3823 | if (temp2) | |
3824 | delete arg2; | |
3825 | } | |
3826 | { | |
3827 | if (arg4) delete [] arg4; | |
3828 | } | |
3829 | return resultobj; | |
3830 | fail: | |
3831 | { | |
3832 | if (temp1) | |
3833 | delete arg1; | |
3834 | } | |
3835 | { | |
3836 | if (temp2) | |
3837 | delete arg2; | |
3838 | } | |
3839 | { | |
3840 | if (arg4) delete [] arg4; | |
3841 | } | |
3842 | return NULL; | |
3843 | } | |
3844 | ||
3845 | ||
3846 | static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3847 | PyObject *resultobj; | |
3848 | wxString *arg1 = 0 ; | |
3849 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3850 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3851 | int arg3 = (int) wxOK|wxCENTRE ; | |
3852 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3853 | int arg5 = (int) -1 ; | |
3854 | int arg6 = (int) -1 ; | |
3855 | int result; | |
e811c8ce RD |
3856 | bool temp1 = False ; |
3857 | bool temp2 = False ; | |
d14a1e28 RD |
3858 | PyObject * obj0 = 0 ; |
3859 | PyObject * obj1 = 0 ; | |
994141e6 | 3860 | PyObject * obj2 = 0 ; |
d14a1e28 | 3861 | PyObject * obj3 = 0 ; |
994141e6 RD |
3862 | PyObject * obj4 = 0 ; |
3863 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
3864 | char *kwnames[] = { |
3865 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3866 | }; | |
3867 | ||
994141e6 | 3868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
3869 | { |
3870 | arg1 = wxString_in_helper(obj0); | |
3871 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3872 | temp1 = True; |
d14a1e28 RD |
3873 | } |
3874 | if (obj1) { | |
3875 | { | |
3876 | arg2 = wxString_in_helper(obj1); | |
3877 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3878 | temp2 = True; |
d14a1e28 RD |
3879 | } |
3880 | } | |
994141e6 | 3881 | if (obj2) { |
15afbcd0 RD |
3882 | arg3 = (int) SWIG_AsInt(obj2); |
3883 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3884 | } |
d14a1e28 | 3885 | if (obj3) { |
15afbcd0 RD |
3886 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3888 | } |
994141e6 | 3889 | if (obj4) { |
15afbcd0 RD |
3890 | arg5 = (int) SWIG_AsInt(obj4); |
3891 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3892 | } |
3893 | if (obj5) { | |
15afbcd0 RD |
3894 | arg6 = (int) SWIG_AsInt(obj5); |
3895 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3896 | } |
d14a1e28 | 3897 | { |
e3b71cb8 | 3898 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3900 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
3901 | ||
3902 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3903 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3904 | } |
15afbcd0 | 3905 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3906 | { |
3907 | if (temp1) | |
3908 | delete arg1; | |
3909 | } | |
3910 | { | |
3911 | if (temp2) | |
3912 | delete arg2; | |
3913 | } | |
3914 | return resultobj; | |
3915 | fail: | |
3916 | { | |
3917 | if (temp1) | |
3918 | delete arg1; | |
3919 | } | |
3920 | { | |
3921 | if (temp2) | |
3922 | delete arg2; | |
3923 | } | |
3924 | return NULL; | |
3925 | } | |
3926 | ||
3927 | ||
3928 | static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3929 | PyObject *resultobj; | |
3930 | wxString *arg1 = 0 ; | |
3931 | wxString *arg2 = 0 ; | |
3932 | wxString *arg3 = 0 ; | |
3933 | long arg4 ; | |
3934 | long arg5 = (long) 0 ; | |
3935 | long arg6 = (long) 100 ; | |
3936 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3937 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
3938 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
3939 | long result; | |
e811c8ce RD |
3940 | bool temp1 = False ; |
3941 | bool temp2 = False ; | |
3942 | bool temp3 = False ; | |
d14a1e28 RD |
3943 | wxPoint temp8 ; |
3944 | PyObject * obj0 = 0 ; | |
3945 | PyObject * obj1 = 0 ; | |
3946 | PyObject * obj2 = 0 ; | |
994141e6 RD |
3947 | PyObject * obj3 = 0 ; |
3948 | PyObject * obj4 = 0 ; | |
3949 | PyObject * obj5 = 0 ; | |
3950 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
3951 | PyObject * obj7 = 0 ; |
3952 | char *kwnames[] = { | |
3953 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
3954 | }; | |
3955 | ||
994141e6 | 3956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
3957 | { |
3958 | arg1 = wxString_in_helper(obj0); | |
3959 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3960 | temp1 = True; |
d14a1e28 RD |
3961 | } |
3962 | { | |
3963 | arg2 = wxString_in_helper(obj1); | |
3964 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3965 | temp2 = True; |
d14a1e28 RD |
3966 | } |
3967 | { | |
3968 | arg3 = wxString_in_helper(obj2); | |
3969 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3970 | temp3 = True; |
d14a1e28 | 3971 | } |
15afbcd0 RD |
3972 | arg4 = (long) SWIG_AsLong(obj3); |
3973 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3974 | if (obj4) { |
15afbcd0 RD |
3975 | arg5 = (long) SWIG_AsLong(obj4); |
3976 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3977 | } |
3978 | if (obj5) { | |
15afbcd0 RD |
3979 | arg6 = (long) SWIG_AsLong(obj5); |
3980 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3981 | } |
d14a1e28 | 3982 | if (obj6) { |
15afbcd0 RD |
3983 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, |
3984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3985 | } |
3986 | if (obj7) { | |
3987 | { | |
3988 | arg8 = &temp8; | |
3989 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
3990 | } | |
3991 | } | |
3992 | { | |
e3b71cb8 | 3993 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3995 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
3996 | ||
3997 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3998 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3999 | } |
15afbcd0 | 4000 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
4001 | { |
4002 | if (temp1) | |
4003 | delete arg1; | |
4004 | } | |
4005 | { | |
4006 | if (temp2) | |
4007 | delete arg2; | |
4008 | } | |
4009 | { | |
4010 | if (temp3) | |
4011 | delete arg3; | |
4012 | } | |
4013 | return resultobj; | |
4014 | fail: | |
4015 | { | |
4016 | if (temp1) | |
4017 | delete arg1; | |
4018 | } | |
4019 | { | |
4020 | if (temp2) | |
4021 | delete arg2; | |
4022 | } | |
4023 | { | |
4024 | if (temp3) | |
4025 | delete arg3; | |
4026 | } | |
4027 | return NULL; | |
4028 | } | |
4029 | ||
4030 | ||
4031 | static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4032 | PyObject *resultobj; | |
4033 | bool result; | |
4034 | char *kwnames[] = { | |
4035 | NULL | |
4036 | }; | |
4037 | ||
4038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
4039 | { | |
e3b71cb8 | 4040 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4042 | result = (bool)wxColourDisplay(); | |
4043 | ||
4044 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4045 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4046 | } |
4f89f6a3 RD |
4047 | { |
4048 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4049 | } | |
d14a1e28 RD |
4050 | return resultobj; |
4051 | fail: | |
4052 | return NULL; | |
4053 | } | |
4054 | ||
4055 | ||
4056 | static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4057 | PyObject *resultobj; | |
4058 | int result; | |
4059 | char *kwnames[] = { | |
4060 | NULL | |
4061 | }; | |
4062 | ||
4063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
4064 | { | |
e3b71cb8 | 4065 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4067 | result = (int)wxDisplayDepth(); | |
4068 | ||
4069 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4070 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4071 | } |
15afbcd0 | 4072 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4073 | return resultobj; |
4074 | fail: | |
4075 | return NULL; | |
4076 | } | |
4077 | ||
4078 | ||
4079 | static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4080 | PyObject *resultobj; | |
4081 | int result; | |
4082 | char *kwnames[] = { | |
4083 | NULL | |
4084 | }; | |
4085 | ||
4086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
4087 | { | |
e3b71cb8 | 4088 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4090 | result = (int)wxGetDisplayDepth(); | |
4091 | ||
4092 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4093 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4094 | } |
15afbcd0 | 4095 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4096 | return resultobj; |
4097 | fail: | |
4098 | return NULL; | |
4099 | } | |
4100 | ||
4101 | ||
4102 | static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4103 | PyObject *resultobj; | |
4104 | int *arg1 = (int *) 0 ; | |
4105 | int *arg2 = (int *) 0 ; | |
4106 | int temp1 ; | |
4107 | int temp2 ; | |
4108 | char *kwnames[] = { | |
4109 | NULL | |
4110 | }; | |
4111 | ||
4112 | arg1 = &temp1; | |
4113 | arg2 = &temp2; | |
4114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; | |
4115 | { | |
e3b71cb8 | 4116 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4118 | wxDisplaySize(arg1,arg2); | |
4119 | ||
4120 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4121 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4122 | } |
4123 | Py_INCREF(Py_None); resultobj = Py_None; | |
4124 | { | |
4125 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
4126 | resultobj = t_output_helper(resultobj,o); | |
4127 | } | |
4128 | { | |
4129 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4130 | resultobj = t_output_helper(resultobj,o); | |
4131 | } | |
4132 | return resultobj; | |
4133 | fail: | |
4134 | return NULL; | |
4135 | } | |
4136 | ||
4137 | ||
4138 | static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4139 | PyObject *resultobj; | |
4140 | wxSize result; | |
4141 | char *kwnames[] = { | |
4142 | NULL | |
4143 | }; | |
4144 | ||
4145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
4146 | { | |
e3b71cb8 | 4147 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4149 | result = wxGetDisplaySize(); | |
4150 | ||
4151 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4152 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4153 | } |
4154 | { | |
4155 | wxSize * resultptr; | |
4156 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 4157 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
4158 | } |
4159 | return resultobj; | |
4160 | fail: | |
4161 | return NULL; | |
4162 | } | |
4163 | ||
4164 | ||
4165 | static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4166 | PyObject *resultobj; | |
4167 | int *arg1 = (int *) 0 ; | |
4168 | int *arg2 = (int *) 0 ; | |
4169 | int temp1 ; | |
4170 | int temp2 ; | |
4171 | char *kwnames[] = { | |
4172 | NULL | |
4173 | }; | |
4174 | ||
4175 | arg1 = &temp1; | |
4176 | arg2 = &temp2; | |
4177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; | |
4178 | { | |
e3b71cb8 | 4179 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4181 | wxDisplaySizeMM(arg1,arg2); | |
4182 | ||
4183 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4184 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4185 | } |
4186 | Py_INCREF(Py_None); resultobj = Py_None; | |
4187 | { | |
4188 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
4189 | resultobj = t_output_helper(resultobj,o); | |
4190 | } | |
4191 | { | |
4192 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4193 | resultobj = t_output_helper(resultobj,o); | |
4194 | } | |
4195 | return resultobj; | |
4196 | fail: | |
4197 | return NULL; | |
4198 | } | |
4199 | ||
4200 | ||
4201 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4202 | PyObject *resultobj; | |
4203 | wxSize result; | |
4204 | char *kwnames[] = { | |
4205 | NULL | |
4206 | }; | |
4207 | ||
4208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
4209 | { | |
e3b71cb8 | 4210 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4212 | result = wxGetDisplaySizeMM(); | |
4213 | ||
4214 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4215 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4216 | } |
4217 | { | |
4218 | wxSize * resultptr; | |
4219 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 4220 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
4221 | } |
4222 | return resultobj; | |
4223 | fail: | |
4224 | return NULL; | |
4225 | } | |
4226 | ||
4227 | ||
4228 | static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4229 | PyObject *resultobj; | |
4230 | int *arg1 = (int *) 0 ; | |
4231 | int *arg2 = (int *) 0 ; | |
4232 | int *arg3 = (int *) 0 ; | |
4233 | int *arg4 = (int *) 0 ; | |
4234 | int temp1 ; | |
4235 | int temp2 ; | |
4236 | int temp3 ; | |
4237 | int temp4 ; | |
4238 | char *kwnames[] = { | |
4239 | NULL | |
4240 | }; | |
4241 | ||
4242 | arg1 = &temp1; | |
4243 | arg2 = &temp2; | |
4244 | arg3 = &temp3; | |
4245 | arg4 = &temp4; | |
4246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; | |
4247 | { | |
e3b71cb8 | 4248 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4250 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
4251 | ||
4252 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4253 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4254 | } |
4255 | Py_INCREF(Py_None); resultobj = Py_None; | |
4256 | { | |
4257 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
4258 | resultobj = t_output_helper(resultobj,o); | |
4259 | } | |
4260 | { | |
4261 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4262 | resultobj = t_output_helper(resultobj,o); | |
4263 | } | |
4264 | { | |
4265 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4266 | resultobj = t_output_helper(resultobj,o); | |
4267 | } | |
4268 | { | |
4269 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
4270 | resultobj = t_output_helper(resultobj,o); | |
4271 | } | |
4272 | return resultobj; | |
4273 | fail: | |
4274 | return NULL; | |
4275 | } | |
4276 | ||
4277 | ||
4278 | static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4279 | PyObject *resultobj; | |
4280 | wxRect result; | |
4281 | char *kwnames[] = { | |
4282 | NULL | |
4283 | }; | |
4284 | ||
4285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
4286 | { | |
e3b71cb8 | 4287 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4289 | result = wxGetClientDisplayRect(); | |
4290 | ||
4291 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4292 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4293 | } |
4294 | { | |
4295 | wxRect * resultptr; | |
4296 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 4297 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
4298 | } |
4299 | return resultobj; | |
4300 | fail: | |
4301 | return NULL; | |
4302 | } | |
4303 | ||
4304 | ||
4305 | static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4306 | PyObject *resultobj; | |
4307 | wxCursor *arg1 = 0 ; | |
4308 | PyObject * obj0 = 0 ; | |
4309 | char *kwnames[] = { | |
4310 | (char *) "cursor", NULL | |
4311 | }; | |
4312 | ||
4313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4315 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4316 | SWIG_fail; | |
d14a1e28 | 4317 | if (arg1 == NULL) { |
15afbcd0 RD |
4318 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4319 | SWIG_fail; | |
d14a1e28 RD |
4320 | } |
4321 | { | |
e3b71cb8 | 4322 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4324 | wxSetCursor(*arg1); | |
4325 | ||
4326 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4327 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4328 | } |
4329 | Py_INCREF(Py_None); resultobj = Py_None; | |
4330 | return resultobj; | |
4331 | fail: | |
4332 | return NULL; | |
4333 | } | |
4334 | ||
4335 | ||
4336 | static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4337 | PyObject *resultobj; | |
4338 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4339 | PyObject * obj0 = 0 ; | |
4340 | char *kwnames[] = { | |
4341 | (char *) "cursor", NULL | |
4342 | }; | |
4343 | ||
4344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
4345 | if (obj0) { | |
15afbcd0 RD |
4346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4348 | } |
4349 | { | |
e3b71cb8 | 4350 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4352 | wxBeginBusyCursor(arg1); | |
4353 | ||
4354 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4355 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4356 | } |
4357 | Py_INCREF(Py_None); resultobj = Py_None; | |
4358 | return resultobj; | |
4359 | fail: | |
4360 | return NULL; | |
4361 | } | |
4362 | ||
4363 | ||
4364 | static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4365 | PyObject *resultobj; | |
4366 | wxWindow *result; | |
4367 | char *kwnames[] = { | |
4368 | NULL | |
4369 | }; | |
4370 | ||
4371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
4372 | { | |
e3b71cb8 | 4373 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4375 | result = (wxWindow *)wxGetActiveWindow(); | |
4376 | ||
4377 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4378 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4379 | } |
4380 | { | |
412d302d | 4381 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
4382 | } |
4383 | return resultobj; | |
4384 | fail: | |
4385 | return NULL; | |
4386 | } | |
4387 | ||
4388 | ||
4389 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4390 | PyObject *resultobj; | |
4391 | wxPoint *arg1 = 0 ; | |
4392 | wxWindow *result; | |
4393 | wxPoint temp1 ; | |
4394 | PyObject * obj0 = 0 ; | |
4395 | char *kwnames[] = { | |
4396 | (char *) "pt", NULL | |
4397 | }; | |
4398 | ||
4399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4400 | { | |
4401 | arg1 = &temp1; | |
4402 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4403 | } | |
4404 | { | |
e3b71cb8 | 4405 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4407 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
4408 | ||
4409 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4410 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4411 | } |
4412 | { | |
412d302d | 4413 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
4414 | } |
4415 | return resultobj; | |
4416 | fail: | |
4417 | return NULL; | |
4418 | } | |
4419 | ||
4420 | ||
4421 | static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4422 | PyObject *resultobj; | |
4423 | wxPoint *arg1 = 0 ; | |
4424 | wxWindow *result; | |
4425 | wxPoint temp1 ; | |
4426 | PyObject * obj0 = 0 ; | |
4427 | char *kwnames[] = { | |
4428 | (char *) "pt", NULL | |
4429 | }; | |
4430 | ||
4431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4432 | { | |
4433 | arg1 = &temp1; | |
4434 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4435 | } | |
4436 | { | |
e3b71cb8 | 4437 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4439 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
4440 | ||
4441 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4442 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4443 | } |
4444 | { | |
412d302d | 4445 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
4446 | } |
4447 | return resultobj; | |
4448 | fail: | |
4449 | return NULL; | |
4450 | } | |
4451 | ||
4452 | ||
4453 | static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4454 | PyObject *resultobj; | |
4455 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4456 | wxWindow *result; | |
4457 | PyObject * obj0 = 0 ; | |
4458 | char *kwnames[] = { | |
4459 | (char *) "win", NULL | |
4460 | }; | |
4461 | ||
4462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 4465 | { |
e3b71cb8 | 4466 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4468 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
4469 | ||
4470 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4471 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4472 | } |
4473 | { | |
412d302d | 4474 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
4475 | } |
4476 | return resultobj; | |
4477 | fail: | |
4478 | return NULL; | |
4479 | } | |
4480 | ||
4481 | ||
39f61e25 RD |
4482 | static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) { |
4483 | PyObject *resultobj; | |
4484 | int arg1 ; | |
4485 | bool result; | |
994141e6 | 4486 | PyObject * obj0 = 0 ; |
39f61e25 RD |
4487 | char *kwnames[] = { |
4488 | (char *) "key", NULL | |
4489 | }; | |
4490 | ||
994141e6 | 4491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
4492 | arg1 = (wxKeyCode) SWIG_AsInt(obj0); |
4493 | if (PyErr_Occurred()) SWIG_fail; | |
39f61e25 | 4494 | { |
e3b71cb8 | 4495 | if (!wxPyCheckForApp()) SWIG_fail; |
39f61e25 RD |
4496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4497 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
4498 | ||
4499 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4500 | if (PyErr_Occurred()) SWIG_fail; |
39f61e25 | 4501 | } |
4f89f6a3 RD |
4502 | { |
4503 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4504 | } | |
39f61e25 RD |
4505 | return resultobj; |
4506 | fail: | |
4507 | return NULL; | |
4508 | } | |
4509 | ||
4510 | ||
d14a1e28 RD |
4511 | static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { |
4512 | PyObject *resultobj; | |
4513 | char *kwnames[] = { | |
4514 | NULL | |
4515 | }; | |
4516 | ||
4517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
4518 | { | |
e3b71cb8 | 4519 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4521 | wxWakeUpMainThread(); | |
4522 | ||
4523 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4524 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4525 | } |
4526 | Py_INCREF(Py_None); resultobj = Py_None; | |
4527 | return resultobj; | |
4528 | fail: | |
4529 | return NULL; | |
4530 | } | |
4531 | ||
4532 | ||
4533 | static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4534 | PyObject *resultobj; | |
4535 | char *kwnames[] = { | |
4536 | NULL | |
4537 | }; | |
4538 | ||
4539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
4540 | { | |
e3b71cb8 | 4541 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4543 | wxMutexGuiEnter(); | |
4544 | ||
4545 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4546 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4547 | } |
4548 | Py_INCREF(Py_None); resultobj = Py_None; | |
4549 | return resultobj; | |
4550 | fail: | |
4551 | return NULL; | |
4552 | } | |
4553 | ||
4554 | ||
4555 | static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4556 | PyObject *resultobj; | |
4557 | char *kwnames[] = { | |
4558 | NULL | |
4559 | }; | |
4560 | ||
4561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
4562 | { | |
e3b71cb8 | 4563 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4565 | wxMutexGuiLeave(); | |
4566 | ||
4567 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4568 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4569 | } |
4570 | Py_INCREF(Py_None); resultobj = Py_None; | |
4571 | return resultobj; | |
4572 | fail: | |
4573 | return NULL; | |
4574 | } | |
4575 | ||
4576 | ||
4577 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4578 | PyObject *resultobj; | |
4579 | wxMutexGuiLocker *result; | |
4580 | char *kwnames[] = { | |
4581 | NULL | |
4582 | }; | |
4583 | ||
4584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
4585 | { | |
e3b71cb8 | 4586 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4588 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
4589 | ||
4590 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4591 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4592 | } |
15afbcd0 | 4593 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1); |
d14a1e28 RD |
4594 | return resultobj; |
4595 | fail: | |
4596 | return NULL; | |
4597 | } | |
4598 | ||
4599 | ||
4600 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4601 | PyObject *resultobj; | |
4602 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
4603 | PyObject * obj0 = 0 ; | |
4604 | char *kwnames[] = { | |
4605 | (char *) "self", NULL | |
4606 | }; | |
4607 | ||
4608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker, |
4610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4611 | { |
4612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4613 | delete arg1; | |
4614 | ||
4615 | wxPyEndAllowThreads(__tstate); | |
4616 | if (PyErr_Occurred()) SWIG_fail; | |
4617 | } | |
4618 | Py_INCREF(Py_None); resultobj = Py_None; | |
4619 | return resultobj; | |
4620 | fail: | |
4621 | return NULL; | |
4622 | } | |
4623 | ||
4624 | ||
4625 | static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) { | |
4626 | PyObject *obj; | |
4627 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4628 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
4629 | Py_INCREF(obj); | |
4630 | return Py_BuildValue((char *)""); | |
4631 | } | |
4632 | static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4633 | PyObject *resultobj; | |
4634 | bool result; | |
4635 | char *kwnames[] = { | |
4636 | NULL | |
4637 | }; | |
4638 | ||
4639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
4640 | { | |
4641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4642 | result = (bool)wxThread_IsMain(); | |
4643 | ||
4644 | wxPyEndAllowThreads(__tstate); | |
4645 | if (PyErr_Occurred()) SWIG_fail; | |
4646 | } | |
4f89f6a3 RD |
4647 | { |
4648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4649 | } | |
d14a1e28 RD |
4650 | return resultobj; |
4651 | fail: | |
4652 | return NULL; | |
4653 | } | |
4654 | ||
4655 | ||
4656 | static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4657 | PyObject *resultobj; | |
4658 | wxString *arg1 = 0 ; | |
4659 | wxToolTip *result; | |
e811c8ce | 4660 | bool temp1 = False ; |
d14a1e28 RD |
4661 | PyObject * obj0 = 0 ; |
4662 | char *kwnames[] = { | |
4663 | (char *) "tip", NULL | |
4664 | }; | |
4665 | ||
4666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
4667 | { | |
4668 | arg1 = wxString_in_helper(obj0); | |
4669 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 4670 | temp1 = True; |
d14a1e28 RD |
4671 | } |
4672 | { | |
e3b71cb8 | 4673 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4675 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
4676 | ||
4677 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4678 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4679 | } |
4680 | { | |
412d302d | 4681 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
4682 | } |
4683 | { | |
4684 | if (temp1) | |
4685 | delete arg1; | |
4686 | } | |
4687 | return resultobj; | |
4688 | fail: | |
4689 | { | |
4690 | if (temp1) | |
4691 | delete arg1; | |
4692 | } | |
4693 | return NULL; | |
4694 | } | |
4695 | ||
4696 | ||
4697 | static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4698 | PyObject *resultobj; | |
4699 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4700 | wxString *arg2 = 0 ; | |
e811c8ce | 4701 | bool temp2 = False ; |
d14a1e28 RD |
4702 | PyObject * obj0 = 0 ; |
4703 | PyObject * obj1 = 0 ; | |
4704 | char *kwnames[] = { | |
4705 | (char *) "self",(char *) "tip", NULL | |
4706 | }; | |
4707 | ||
4708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, |
4710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4711 | { |
4712 | arg2 = wxString_in_helper(obj1); | |
4713 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4714 | temp2 = True; |
d14a1e28 RD |
4715 | } |
4716 | { | |
4717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4718 | (arg1)->SetTip((wxString const &)*arg2); | |
4719 | ||
4720 | wxPyEndAllowThreads(__tstate); | |
4721 | if (PyErr_Occurred()) SWIG_fail; | |
4722 | } | |
4723 | Py_INCREF(Py_None); resultobj = Py_None; | |
4724 | { | |
4725 | if (temp2) | |
4726 | delete arg2; | |
4727 | } | |
4728 | return resultobj; | |
4729 | fail: | |
4730 | { | |
4731 | if (temp2) | |
4732 | delete arg2; | |
4733 | } | |
4734 | return NULL; | |
4735 | } | |
4736 | ||
4737 | ||
4738 | static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4739 | PyObject *resultobj; | |
4740 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4741 | wxString result; | |
4742 | PyObject * obj0 = 0 ; | |
4743 | char *kwnames[] = { | |
4744 | (char *) "self", NULL | |
4745 | }; | |
4746 | ||
4747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, |
4749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4750 | { |
4751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4752 | result = (arg1)->GetTip(); | |
4753 | ||
4754 | wxPyEndAllowThreads(__tstate); | |
4755 | if (PyErr_Occurred()) SWIG_fail; | |
4756 | } | |
4757 | { | |
4758 | #if wxUSE_UNICODE | |
4759 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4760 | #else | |
4761 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4762 | #endif | |
4763 | } | |
4764 | return resultobj; | |
4765 | fail: | |
4766 | return NULL; | |
4767 | } | |
4768 | ||
4769 | ||
4770 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4771 | PyObject *resultobj; | |
4772 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4773 | wxWindow *result; | |
4774 | PyObject * obj0 = 0 ; | |
4775 | char *kwnames[] = { | |
4776 | (char *) "self", NULL | |
4777 | }; | |
4778 | ||
4779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, |
4781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4782 | { |
4783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4784 | result = (wxWindow *)(arg1)->GetWindow(); | |
4785 | ||
4786 | wxPyEndAllowThreads(__tstate); | |
4787 | if (PyErr_Occurred()) SWIG_fail; | |
4788 | } | |
4789 | { | |
412d302d | 4790 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
4791 | } |
4792 | return resultobj; | |
4793 | fail: | |
4794 | return NULL; | |
4795 | } | |
4796 | ||
4797 | ||
4798 | static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4799 | PyObject *resultobj; | |
4800 | bool arg1 ; | |
4801 | PyObject * obj0 = 0 ; | |
4802 | char *kwnames[] = { | |
4803 | (char *) "flag", NULL | |
4804 | }; | |
4805 | ||
4806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4807 | arg1 = (bool) SWIG_AsBool(obj0); |
4808 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4809 | { |
4810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4811 | wxToolTip::Enable(arg1); | |
4812 | ||
4813 | wxPyEndAllowThreads(__tstate); | |
4814 | if (PyErr_Occurred()) SWIG_fail; | |
4815 | } | |
4816 | Py_INCREF(Py_None); resultobj = Py_None; | |
4817 | return resultobj; | |
4818 | fail: | |
4819 | return NULL; | |
4820 | } | |
4821 | ||
4822 | ||
4823 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4824 | PyObject *resultobj; | |
4825 | long arg1 ; | |
994141e6 | 4826 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
4827 | char *kwnames[] = { |
4828 | (char *) "milliseconds", NULL | |
4829 | }; | |
4830 | ||
994141e6 | 4831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
4832 | arg1 = (long) SWIG_AsLong(obj0); |
4833 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4834 | { |
4835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4836 | wxToolTip::SetDelay(arg1); | |
4837 | ||
4838 | wxPyEndAllowThreads(__tstate); | |
4839 | if (PyErr_Occurred()) SWIG_fail; | |
4840 | } | |
4841 | Py_INCREF(Py_None); resultobj = Py_None; | |
4842 | return resultobj; | |
4843 | fail: | |
4844 | return NULL; | |
4845 | } | |
4846 | ||
4847 | ||
4848 | static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) { | |
4849 | PyObject *obj; | |
4850 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4851 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
4852 | Py_INCREF(obj); | |
4853 | return Py_BuildValue((char *)""); | |
4854 | } | |
4855 | static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4856 | PyObject *resultobj; | |
4857 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4858 | wxSize *arg2 = 0 ; | |
4859 | wxCaret *result; | |
4860 | wxSize temp2 ; | |
4861 | PyObject * obj0 = 0 ; | |
4862 | PyObject * obj1 = 0 ; | |
4863 | char *kwnames[] = { | |
4864 | (char *) "window",(char *) "size", NULL | |
4865 | }; | |
4866 | ||
4867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4870 | { |
4871 | arg2 = &temp2; | |
4872 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4873 | } | |
4874 | { | |
e3b71cb8 | 4875 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4877 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
4878 | ||
4879 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4880 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4881 | } |
15afbcd0 | 4882 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1); |
d14a1e28 RD |
4883 | return resultobj; |
4884 | fail: | |
4885 | return NULL; | |
4886 | } | |
4887 | ||
4888 | ||
4889 | static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4890 | PyObject *resultobj; | |
4891 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4892 | PyObject * obj0 = 0 ; | |
4893 | char *kwnames[] = { | |
4894 | (char *) "self", NULL | |
4895 | }; | |
4896 | ||
4897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4900 | { |
4901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4902 | delete arg1; | |
4903 | ||
4904 | wxPyEndAllowThreads(__tstate); | |
4905 | if (PyErr_Occurred()) SWIG_fail; | |
4906 | } | |
4907 | Py_INCREF(Py_None); resultobj = Py_None; | |
4908 | return resultobj; | |
4909 | fail: | |
4910 | return NULL; | |
4911 | } | |
4912 | ||
4913 | ||
4914 | static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4915 | PyObject *resultobj; | |
4916 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4917 | bool result; | |
4918 | PyObject * obj0 = 0 ; | |
4919 | char *kwnames[] = { | |
4920 | (char *) "self", NULL | |
4921 | }; | |
4922 | ||
4923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4926 | { |
4927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4928 | result = (bool)(arg1)->IsOk(); | |
4929 | ||
4930 | wxPyEndAllowThreads(__tstate); | |
4931 | if (PyErr_Occurred()) SWIG_fail; | |
4932 | } | |
4f89f6a3 RD |
4933 | { |
4934 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4935 | } | |
d14a1e28 RD |
4936 | return resultobj; |
4937 | fail: | |
4938 | return NULL; | |
4939 | } | |
4940 | ||
4941 | ||
4942 | static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4943 | PyObject *resultobj; | |
4944 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4945 | bool result; | |
4946 | PyObject * obj0 = 0 ; | |
4947 | char *kwnames[] = { | |
4948 | (char *) "self", NULL | |
4949 | }; | |
4950 | ||
4951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4954 | { |
4955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4956 | result = (bool)(arg1)->IsVisible(); | |
4957 | ||
4958 | wxPyEndAllowThreads(__tstate); | |
4959 | if (PyErr_Occurred()) SWIG_fail; | |
4960 | } | |
4f89f6a3 RD |
4961 | { |
4962 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4963 | } | |
d14a1e28 RD |
4964 | return resultobj; |
4965 | fail: | |
4966 | return NULL; | |
4967 | } | |
4968 | ||
4969 | ||
322913ce RD |
4970 | static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
4971 | PyObject *resultobj; | |
4972 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4973 | wxPoint result; | |
4974 | PyObject * obj0 = 0 ; | |
4975 | char *kwnames[] = { | |
4976 | (char *) "self", NULL | |
4977 | }; | |
4978 | ||
4979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
322913ce RD |
4982 | { |
4983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4984 | result = (arg1)->GetPosition(); | |
4985 | ||
4986 | wxPyEndAllowThreads(__tstate); | |
4987 | if (PyErr_Occurred()) SWIG_fail; | |
4988 | } | |
4989 | { | |
4990 | wxPoint * resultptr; | |
4991 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 4992 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
322913ce RD |
4993 | } |
4994 | return resultobj; | |
4995 | fail: | |
4996 | return NULL; | |
4997 | } | |
4998 | ||
4999 | ||
d14a1e28 RD |
5000 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
5001 | PyObject *resultobj; | |
5002 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5003 | int *arg2 = (int *) 0 ; | |
5004 | int *arg3 = (int *) 0 ; | |
5005 | int temp2 ; | |
5006 | int temp3 ; | |
5007 | PyObject * obj0 = 0 ; | |
5008 | char *kwnames[] = { | |
5009 | (char *) "self", NULL | |
5010 | }; | |
5011 | ||
5012 | arg2 = &temp2; | |
5013 | arg3 = &temp3; | |
5014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
5016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5017 | { |
5018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5019 | (arg1)->GetPosition(arg2,arg3); | |
5020 | ||
5021 | wxPyEndAllowThreads(__tstate); | |
5022 | if (PyErr_Occurred()) SWIG_fail; | |
5023 | } | |
5024 | Py_INCREF(Py_None); resultobj = Py_None; | |
5025 | { | |
5026 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
5027 | resultobj = t_output_helper(resultobj,o); | |
5028 | } | |
5029 | { | |
5030 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
5031 | resultobj = t_output_helper(resultobj,o); | |
5032 | } | |
5033 | return resultobj; | |
5034 | fail: | |
5035 | return NULL; | |
5036 | } | |
5037 | ||
5038 | ||
322913ce | 5039 | static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5040 | PyObject *resultobj; |
5041 | wxCaret *arg1 = (wxCaret *) 0 ; | |
322913ce | 5042 | wxSize result; |
d14a1e28 RD |
5043 | PyObject * obj0 = 0 ; |
5044 | char *kwnames[] = { | |
5045 | (char *) "self", NULL | |
5046 | }; | |
5047 | ||
322913ce | 5048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
5049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
5050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5051 | { |
5052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 5053 | result = (arg1)->GetSize(); |
d14a1e28 RD |
5054 | |
5055 | wxPyEndAllowThreads(__tstate); | |
5056 | if (PyErr_Occurred()) SWIG_fail; | |
5057 | } | |
5058 | { | |
322913ce RD |
5059 | wxSize * resultptr; |
5060 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 5061 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
5062 | } |
5063 | return resultobj; | |
5064 | fail: | |
5065 | return NULL; | |
5066 | } | |
5067 | ||
5068 | ||
5069 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5070 | PyObject *resultobj; | |
5071 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5072 | int *arg2 = (int *) 0 ; | |
5073 | int *arg3 = (int *) 0 ; | |
5074 | int temp2 ; | |
5075 | int temp3 ; | |
5076 | PyObject * obj0 = 0 ; | |
5077 | char *kwnames[] = { | |
5078 | (char *) "self", NULL | |
5079 | }; | |
5080 | ||
5081 | arg2 = &temp2; | |
5082 | arg3 = &temp3; | |
5083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
5085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5086 | { |
5087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5088 | (arg1)->GetSize(arg2,arg3); | |
5089 | ||
5090 | wxPyEndAllowThreads(__tstate); | |
5091 | if (PyErr_Occurred()) SWIG_fail; | |
5092 | } | |
5093 | Py_INCREF(Py_None); resultobj = Py_None; | |
5094 | { | |
5095 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
5096 | resultobj = t_output_helper(resultobj,o); | |
5097 | } | |
5098 | { | |
5099 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
5100 | resultobj = t_output_helper(resultobj,o); | |
5101 | } | |
5102 | return resultobj; | |
5103 | fail: | |
5104 | return NULL; | |
5105 | } | |
5106 | ||
5107 | ||
d14a1e28 RD |
5108 | static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
5109 | PyObject *resultobj; | |
5110 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5111 | wxWindow *result; | |
5112 | PyObject * obj0 = 0 ; | |
5113 | char *kwnames[] = { | |
5114 | (char *) "self", NULL | |
5115 | }; | |
5116 | ||
5117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
5119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5120 | { |
5121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5122 | result = (wxWindow *)(arg1)->GetWindow(); | |
5123 | ||
5124 | wxPyEndAllowThreads(__tstate); | |
5125 | if (PyErr_Occurred()) SWIG_fail; | |
5126 | } | |
5127 | { | |
412d302d | 5128 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
5129 | } |
5130 | return resultobj; | |
5131 | fail: | |
5132 | return NULL; | |
5133 | } | |
5134 | ||
5135 | ||
5136 | static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5137 | PyObject *resultobj; | |
5138 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5139 | int arg2 ; | |
5140 | int arg3 ; | |
5141 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5142 | PyObject * obj1 = 0 ; |
5143 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5144 | char *kwnames[] = { |
5145 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5146 | }; | |
5147 | ||
994141e6 | 5148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
5150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5151 | arg2 = (int) SWIG_AsInt(obj1); | |
5152 | if (PyErr_Occurred()) SWIG_fail; | |
5153 | arg3 = (int) SWIG_AsInt(obj2); | |
5154 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5155 | { |
5156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5157 | (arg1)->Move(arg2,arg3); | |
5158 | ||
5159 | wxPyEndAllowThreads(__tstate); | |
5160 | if (PyErr_Occurred()) SWIG_fail; | |
5161 | } | |
5162 | Py_INCREF(Py_None); resultobj = Py_None; | |
5163 | return resultobj; | |
5164 | fail: | |
5165 | return NULL; | |
5166 | } | |
5167 | ||
5168 | ||
5169 | static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5170 | PyObject *resultobj; | |
5171 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5172 | wxPoint *arg2 = 0 ; | |
5173 | wxPoint temp2 ; | |
5174 | PyObject * obj0 = 0 ; | |
5175 | PyObject * obj1 = 0 ; | |
5176 | char *kwnames[] = { | |
5177 | (char *) "self",(char *) "pt", NULL | |
5178 | }; | |
5179 | ||
5180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
5182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5183 | { |
5184 | arg2 = &temp2; | |
5185 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5186 | } | |
5187 | { | |
5188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5189 | (arg1)->Move((wxPoint const &)*arg2); | |
5190 | ||
5191 | wxPyEndAllowThreads(__tstate); | |
5192 | if (PyErr_Occurred()) SWIG_fail; | |
5193 | } | |
5194 | Py_INCREF(Py_None); resultobj = Py_None; | |
5195 | return resultobj; | |
5196 | fail: | |
5197 | return NULL; | |
5198 | } | |
5199 | ||
5200 | ||
5201 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5202 | PyObject *resultobj; | |
5203 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5204 | int arg2 ; | |
5205 | int arg3 ; | |
5206 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5207 | PyObject * obj1 = 0 ; |
5208 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5209 | char *kwnames[] = { |
5210 | (char *) "self",(char *) "width",(char *) "height", NULL | |
5211 | }; | |
5212 | ||
994141e6 | 5213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
5215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5216 | arg2 = (int) SWIG_AsInt(obj1); | |
5217 | if (PyErr_Occurred()) SWIG_fail; | |
5218 | arg3 = (int) SWIG_AsInt(obj2); | |
5219 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5220 | { |
5221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5222 | (arg1)->SetSize(arg2,arg3); | |
5223 | ||
5224 | wxPyEndAllowThreads(__tstate); | |
5225 | if (PyErr_Occurred()) SWIG_fail; | |
5226 | } | |
5227 | Py_INCREF(Py_None); resultobj = Py_None; | |
5228 | return resultobj; | |
5229 | fail: | |
5230 | return NULL; | |
5231 | } | |
5232 | ||
5233 | ||
5234 | static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5235 | PyObject *resultobj; | |
5236 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5237 | wxSize *arg2 = 0 ; | |
5238 | wxSize temp2 ; | |
5239 | PyObject * obj0 = 0 ; | |
5240 | PyObject * obj1 = 0 ; | |
5241 | char *kwnames[] = { | |
5242 | (char *) "self",(char *) "size", NULL | |
5243 | }; | |
5244 | ||
5245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
5247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5248 | { |
5249 | arg2 = &temp2; | |
5250 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5251 | } | |
5252 | { | |
5253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5254 | (arg1)->SetSize((wxSize const &)*arg2); | |
5255 | ||
5256 | wxPyEndAllowThreads(__tstate); | |
5257 | if (PyErr_Occurred()) SWIG_fail; | |
5258 | } | |
5259 | Py_INCREF(Py_None); resultobj = Py_None; | |
5260 | return resultobj; | |
5261 | fail: | |
5262 | return NULL; | |
5263 | } | |
5264 | ||
5265 | ||
5266 | static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5267 | PyObject *resultobj; | |
5268 | wxCaret *arg1 = (wxCaret *) 0 ; | |
e811c8ce | 5269 | int arg2 = (int) True ; |
d14a1e28 | 5270 | PyObject * obj0 = 0 ; |
994141e6 | 5271 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5272 | char *kwnames[] = { |
5273 | (char *) "self",(char *) "show", NULL | |
5274 | }; | |
5275 | ||
994141e6 | 5276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
5278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5279 | if (obj1) { |
15afbcd0 RD |
5280 | arg2 = (int) SWIG_AsInt(obj1); |
5281 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5282 | } |
d14a1e28 RD |
5283 | { |
5284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5285 | (arg1)->Show(arg2); | |
5286 | ||
5287 | wxPyEndAllowThreads(__tstate); | |
5288 | if (PyErr_Occurred()) SWIG_fail; | |
5289 | } | |
5290 | Py_INCREF(Py_None); resultobj = Py_None; | |
5291 | return resultobj; | |
5292 | fail: | |
5293 | return NULL; | |
5294 | } | |
5295 | ||
5296 | ||
5297 | static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5298 | PyObject *resultobj; | |
5299 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5300 | PyObject * obj0 = 0 ; | |
5301 | char *kwnames[] = { | |
5302 | (char *) "self", NULL | |
5303 | }; | |
5304 | ||
5305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
5307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5308 | { |
5309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5310 | (arg1)->Hide(); | |
5311 | ||
5312 | wxPyEndAllowThreads(__tstate); | |
5313 | if (PyErr_Occurred()) SWIG_fail; | |
5314 | } | |
5315 | Py_INCREF(Py_None); resultobj = Py_None; | |
5316 | return resultobj; | |
5317 | fail: | |
5318 | return NULL; | |
5319 | } | |
5320 | ||
5321 | ||
5322 | static PyObject * Caret_swigregister(PyObject *self, PyObject *args) { | |
5323 | PyObject *obj; | |
5324 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5325 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
5326 | Py_INCREF(obj); | |
5327 | return Py_BuildValue((char *)""); | |
5328 | } | |
5329 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5330 | PyObject *resultobj; | |
5331 | int result; | |
5332 | char *kwnames[] = { | |
5333 | NULL | |
5334 | }; | |
5335 | ||
5336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
5337 | { | |
5338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5339 | result = (int)wxCaret_GetBlinkTime(); | |
5340 | ||
5341 | wxPyEndAllowThreads(__tstate); | |
5342 | if (PyErr_Occurred()) SWIG_fail; | |
5343 | } | |
15afbcd0 | 5344 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5345 | return resultobj; |
5346 | fail: | |
5347 | return NULL; | |
5348 | } | |
5349 | ||
5350 | ||
5351 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5352 | PyObject *resultobj; | |
5353 | int arg1 ; | |
994141e6 | 5354 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
5355 | char *kwnames[] = { |
5356 | (char *) "milliseconds", NULL | |
5357 | }; | |
5358 | ||
994141e6 | 5359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
5360 | arg1 = (int) SWIG_AsInt(obj0); |
5361 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5362 | { |
5363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5364 | wxCaret_SetBlinkTime(arg1); | |
5365 | ||
5366 | wxPyEndAllowThreads(__tstate); | |
5367 | if (PyErr_Occurred()) SWIG_fail; | |
5368 | } | |
5369 | Py_INCREF(Py_None); resultobj = Py_None; | |
5370 | return resultobj; | |
5371 | fail: | |
5372 | return NULL; | |
5373 | } | |
5374 | ||
5375 | ||
5376 | static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5377 | PyObject *resultobj; | |
5378 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
5379 | wxBusyCursor *result; | |
5380 | PyObject * obj0 = 0 ; | |
5381 | char *kwnames[] = { | |
5382 | (char *) "cursor", NULL | |
5383 | }; | |
5384 | ||
5385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
5386 | if (obj0) { | |
15afbcd0 RD |
5387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
5388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5389 | } |
5390 | { | |
e3b71cb8 | 5391 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5393 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
5394 | ||
5395 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5396 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5397 | } |
15afbcd0 | 5398 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1); |
d14a1e28 RD |
5399 | return resultobj; |
5400 | fail: | |
5401 | return NULL; | |
5402 | } | |
5403 | ||
5404 | ||
5405 | static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5406 | PyObject *resultobj; | |
5407 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
5408 | PyObject * obj0 = 0 ; | |
5409 | char *kwnames[] = { | |
5410 | (char *) "self", NULL | |
5411 | }; | |
5412 | ||
5413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor, |
5415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5416 | { |
5417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5418 | delete arg1; | |
5419 | ||
5420 | wxPyEndAllowThreads(__tstate); | |
5421 | if (PyErr_Occurred()) SWIG_fail; | |
5422 | } | |
5423 | Py_INCREF(Py_None); resultobj = Py_None; | |
5424 | return resultobj; | |
5425 | fail: | |
5426 | return NULL; | |
5427 | } | |
5428 | ||
5429 | ||
5430 | static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) { | |
5431 | PyObject *obj; | |
5432 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5433 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
5434 | Py_INCREF(obj); | |
5435 | return Py_BuildValue((char *)""); | |
5436 | } | |
5437 | static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5438 | PyObject *resultobj; | |
5439 | wxWindow *arg1 = (wxWindow *) NULL ; | |
5440 | wxWindowDisabler *result; | |
5441 | PyObject * obj0 = 0 ; | |
5442 | char *kwnames[] = { | |
5443 | (char *) "winToSkip", NULL | |
5444 | }; | |
5445 | ||
5446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
5447 | if (obj0) { | |
15afbcd0 RD |
5448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5450 | } |
5451 | { | |
e3b71cb8 | 5452 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5454 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
5455 | ||
5456 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5457 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5458 | } |
15afbcd0 | 5459 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1); |
d14a1e28 RD |
5460 | return resultobj; |
5461 | fail: | |
5462 | return NULL; | |
5463 | } | |
5464 | ||
5465 | ||
5466 | static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5467 | PyObject *resultobj; | |
5468 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
5469 | PyObject * obj0 = 0 ; | |
5470 | char *kwnames[] = { | |
5471 | (char *) "self", NULL | |
5472 | }; | |
5473 | ||
5474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler, |
5476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5477 | { |
5478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5479 | delete arg1; | |
5480 | ||
5481 | wxPyEndAllowThreads(__tstate); | |
5482 | if (PyErr_Occurred()) SWIG_fail; | |
5483 | } | |
5484 | Py_INCREF(Py_None); resultobj = Py_None; | |
5485 | return resultobj; | |
5486 | fail: | |
5487 | return NULL; | |
5488 | } | |
5489 | ||
5490 | ||
5491 | static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) { | |
5492 | PyObject *obj; | |
5493 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5494 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
5495 | Py_INCREF(obj); | |
5496 | return Py_BuildValue((char *)""); | |
5497 | } | |
5498 | static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5499 | PyObject *resultobj; | |
5500 | wxString *arg1 = 0 ; | |
5501 | wxBusyInfo *result; | |
e811c8ce | 5502 | bool temp1 = False ; |
d14a1e28 RD |
5503 | PyObject * obj0 = 0 ; |
5504 | char *kwnames[] = { | |
5505 | (char *) "message", NULL | |
5506 | }; | |
5507 | ||
5508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
5509 | { | |
5510 | arg1 = wxString_in_helper(obj0); | |
5511 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 5512 | temp1 = True; |
d14a1e28 RD |
5513 | } |
5514 | { | |
e3b71cb8 | 5515 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5517 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
5518 | ||
5519 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5520 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5521 | } |
15afbcd0 | 5522 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1); |
d14a1e28 RD |
5523 | { |
5524 | if (temp1) | |
5525 | delete arg1; | |
5526 | } | |
5527 | return resultobj; | |
5528 | fail: | |
5529 | { | |
5530 | if (temp1) | |
5531 | delete arg1; | |
5532 | } | |
5533 | return NULL; | |
5534 | } | |
5535 | ||
5536 | ||
5537 | static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5538 | PyObject *resultobj; | |
5539 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
5540 | PyObject * obj0 = 0 ; | |
5541 | char *kwnames[] = { | |
5542 | (char *) "self", NULL | |
5543 | }; | |
5544 | ||
5545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo, |
5547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5548 | { |
5549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5550 | delete arg1; | |
5551 | ||
5552 | wxPyEndAllowThreads(__tstate); | |
5553 | if (PyErr_Occurred()) SWIG_fail; | |
5554 | } | |
5555 | Py_INCREF(Py_None); resultobj = Py_None; | |
5556 | return resultobj; | |
5557 | fail: | |
5558 | return NULL; | |
5559 | } | |
5560 | ||
5561 | ||
5562 | static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) { | |
5563 | PyObject *obj; | |
5564 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5565 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
5566 | Py_INCREF(obj); | |
5567 | return Py_BuildValue((char *)""); | |
5568 | } | |
5569 | static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5570 | PyObject *resultobj; | |
5571 | wxStopWatch *result; | |
5572 | char *kwnames[] = { | |
5573 | NULL | |
5574 | }; | |
5575 | ||
5576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
5577 | { | |
5578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5579 | result = (wxStopWatch *)new wxStopWatch(); | |
5580 | ||
5581 | wxPyEndAllowThreads(__tstate); | |
5582 | if (PyErr_Occurred()) SWIG_fail; | |
5583 | } | |
15afbcd0 | 5584 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1); |
d14a1e28 RD |
5585 | return resultobj; |
5586 | fail: | |
5587 | return NULL; | |
5588 | } | |
5589 | ||
5590 | ||
5591 | static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5592 | PyObject *resultobj; | |
5593 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5594 | long arg2 = (long) 0 ; | |
5595 | PyObject * obj0 = 0 ; | |
994141e6 | 5596 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5597 | char *kwnames[] = { |
5598 | (char *) "self",(char *) "t0", NULL | |
5599 | }; | |
5600 | ||
994141e6 | 5601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5604 | if (obj1) { |
15afbcd0 RD |
5605 | arg2 = (long) SWIG_AsLong(obj1); |
5606 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5607 | } |
d14a1e28 RD |
5608 | { |
5609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5610 | (arg1)->Start(arg2); | |
5611 | ||
5612 | wxPyEndAllowThreads(__tstate); | |
5613 | if (PyErr_Occurred()) SWIG_fail; | |
5614 | } | |
5615 | Py_INCREF(Py_None); resultobj = Py_None; | |
5616 | return resultobj; | |
5617 | fail: | |
5618 | return NULL; | |
5619 | } | |
5620 | ||
5621 | ||
5622 | static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5623 | PyObject *resultobj; | |
5624 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5625 | PyObject * obj0 = 0 ; | |
5626 | char *kwnames[] = { | |
5627 | (char *) "self", NULL | |
5628 | }; | |
5629 | ||
5630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5633 | { |
5634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5635 | (arg1)->Pause(); | |
5636 | ||
5637 | wxPyEndAllowThreads(__tstate); | |
5638 | if (PyErr_Occurred()) SWIG_fail; | |
5639 | } | |
5640 | Py_INCREF(Py_None); resultobj = Py_None; | |
5641 | return resultobj; | |
5642 | fail: | |
5643 | return NULL; | |
5644 | } | |
5645 | ||
5646 | ||
5647 | static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5648 | PyObject *resultobj; | |
5649 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5650 | PyObject * obj0 = 0 ; | |
5651 | char *kwnames[] = { | |
5652 | (char *) "self", NULL | |
5653 | }; | |
5654 | ||
5655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5658 | { |
5659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5660 | (arg1)->Resume(); | |
5661 | ||
5662 | wxPyEndAllowThreads(__tstate); | |
5663 | if (PyErr_Occurred()) SWIG_fail; | |
5664 | } | |
5665 | Py_INCREF(Py_None); resultobj = Py_None; | |
5666 | return resultobj; | |
5667 | fail: | |
5668 | return NULL; | |
5669 | } | |
5670 | ||
5671 | ||
5672 | static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5673 | PyObject *resultobj; | |
5674 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5675 | long result; | |
5676 | PyObject * obj0 = 0 ; | |
5677 | char *kwnames[] = { | |
5678 | (char *) "self", NULL | |
5679 | }; | |
5680 | ||
5681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5684 | { |
5685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5686 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
5687 | ||
5688 | wxPyEndAllowThreads(__tstate); | |
5689 | if (PyErr_Occurred()) SWIG_fail; | |
5690 | } | |
15afbcd0 | 5691 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
5692 | return resultobj; |
5693 | fail: | |
5694 | return NULL; | |
5695 | } | |
5696 | ||
5697 | ||
5698 | static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) { | |
5699 | PyObject *obj; | |
5700 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5701 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
5702 | Py_INCREF(obj); | |
5703 | return Py_BuildValue((char *)""); | |
5704 | } | |
5705 | static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5706 | PyObject *resultobj; | |
5707 | int arg1 = (int) 9 ; | |
4cf4100f | 5708 | int arg2 = (int) wxID_FILE1 ; |
d14a1e28 | 5709 | wxFileHistory *result; |
994141e6 | 5710 | PyObject * obj0 = 0 ; |
4cf4100f | 5711 | PyObject * obj1 = 0 ; |
d14a1e28 | 5712 | char *kwnames[] = { |
4cf4100f | 5713 | (char *) "maxFiles",(char *) "idBase", NULL |
d14a1e28 RD |
5714 | }; |
5715 | ||
4cf4100f | 5716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail; |
994141e6 | 5717 | if (obj0) { |
15afbcd0 RD |
5718 | arg1 = (int) SWIG_AsInt(obj0); |
5719 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5720 | } |
4cf4100f RD |
5721 | if (obj1) { |
5722 | arg2 = (int) SWIG_AsInt(obj1); | |
5723 | if (PyErr_Occurred()) SWIG_fail; | |
5724 | } | |
d14a1e28 RD |
5725 | { |
5726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4cf4100f | 5727 | result = (wxFileHistory *)new wxFileHistory(arg1,arg2); |
d14a1e28 RD |
5728 | |
5729 | wxPyEndAllowThreads(__tstate); | |
5730 | if (PyErr_Occurred()) SWIG_fail; | |
5731 | } | |
15afbcd0 | 5732 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1); |
d14a1e28 RD |
5733 | return resultobj; |
5734 | fail: | |
5735 | return NULL; | |
5736 | } | |
5737 | ||
5738 | ||
5739 | static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5740 | PyObject *resultobj; | |
5741 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5742 | PyObject * obj0 = 0 ; | |
5743 | char *kwnames[] = { | |
5744 | (char *) "self", NULL | |
5745 | }; | |
5746 | ||
5747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5750 | { |
5751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5752 | delete arg1; | |
5753 | ||
5754 | wxPyEndAllowThreads(__tstate); | |
5755 | if (PyErr_Occurred()) SWIG_fail; | |
5756 | } | |
5757 | Py_INCREF(Py_None); resultobj = Py_None; | |
5758 | return resultobj; | |
5759 | fail: | |
5760 | return NULL; | |
5761 | } | |
5762 | ||
5763 | ||
5764 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5765 | PyObject *resultobj; | |
5766 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5767 | wxString *arg2 = 0 ; | |
e811c8ce | 5768 | bool temp2 = False ; |
d14a1e28 RD |
5769 | PyObject * obj0 = 0 ; |
5770 | PyObject * obj1 = 0 ; | |
5771 | char *kwnames[] = { | |
5772 | (char *) "self",(char *) "file", NULL | |
5773 | }; | |
5774 | ||
5775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5778 | { |
5779 | arg2 = wxString_in_helper(obj1); | |
5780 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5781 | temp2 = True; |
d14a1e28 RD |
5782 | } |
5783 | { | |
5784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5785 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
5786 | ||
5787 | wxPyEndAllowThreads(__tstate); | |
5788 | if (PyErr_Occurred()) SWIG_fail; | |
5789 | } | |
5790 | Py_INCREF(Py_None); resultobj = Py_None; | |
5791 | { | |
5792 | if (temp2) | |
5793 | delete arg2; | |
5794 | } | |
5795 | return resultobj; | |
5796 | fail: | |
5797 | { | |
5798 | if (temp2) | |
5799 | delete arg2; | |
5800 | } | |
5801 | return NULL; | |
5802 | } | |
5803 | ||
5804 | ||
5805 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5806 | PyObject *resultobj; | |
5807 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5808 | int arg2 ; | |
5809 | PyObject * obj0 = 0 ; | |
994141e6 | 5810 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5811 | char *kwnames[] = { |
5812 | (char *) "self",(char *) "i", NULL | |
5813 | }; | |
5814 | ||
994141e6 | 5815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5818 | arg2 = (int) SWIG_AsInt(obj1); | |
5819 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5820 | { |
5821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5822 | (arg1)->RemoveFileFromHistory(arg2); | |
5823 | ||
5824 | wxPyEndAllowThreads(__tstate); | |
5825 | if (PyErr_Occurred()) SWIG_fail; | |
5826 | } | |
5827 | Py_INCREF(Py_None); resultobj = Py_None; | |
5828 | return resultobj; | |
5829 | fail: | |
5830 | return NULL; | |
5831 | } | |
5832 | ||
5833 | ||
5834 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5835 | PyObject *resultobj; | |
5836 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5837 | int result; | |
5838 | PyObject * obj0 = 0 ; | |
5839 | char *kwnames[] = { | |
5840 | (char *) "self", NULL | |
5841 | }; | |
5842 | ||
5843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5846 | { |
5847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5848 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
5849 | ||
5850 | wxPyEndAllowThreads(__tstate); | |
5851 | if (PyErr_Occurred()) SWIG_fail; | |
5852 | } | |
15afbcd0 | 5853 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5854 | return resultobj; |
5855 | fail: | |
5856 | return NULL; | |
5857 | } | |
5858 | ||
5859 | ||
5860 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5861 | PyObject *resultobj; | |
5862 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5863 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5864 | PyObject * obj0 = 0 ; | |
5865 | PyObject * obj1 = 0 ; | |
5866 | char *kwnames[] = { | |
5867 | (char *) "self",(char *) "menu", NULL | |
5868 | }; | |
5869 | ||
5870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5873 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5875 | { |
5876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5877 | (arg1)->UseMenu(arg2); | |
5878 | ||
5879 | wxPyEndAllowThreads(__tstate); | |
5880 | if (PyErr_Occurred()) SWIG_fail; | |
5881 | } | |
5882 | Py_INCREF(Py_None); resultobj = Py_None; | |
5883 | return resultobj; | |
5884 | fail: | |
5885 | return NULL; | |
5886 | } | |
5887 | ||
5888 | ||
5889 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5890 | PyObject *resultobj; | |
5891 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5892 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5893 | PyObject * obj0 = 0 ; | |
5894 | PyObject * obj1 = 0 ; | |
5895 | char *kwnames[] = { | |
5896 | (char *) "self",(char *) "menu", NULL | |
5897 | }; | |
5898 | ||
5899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5902 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5904 | { |
5905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5906 | (arg1)->RemoveMenu(arg2); | |
5907 | ||
5908 | wxPyEndAllowThreads(__tstate); | |
5909 | if (PyErr_Occurred()) SWIG_fail; | |
5910 | } | |
5911 | Py_INCREF(Py_None); resultobj = Py_None; | |
5912 | return resultobj; | |
5913 | fail: | |
5914 | return NULL; | |
5915 | } | |
5916 | ||
5917 | ||
5918 | static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5919 | PyObject *resultobj; | |
5920 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5921 | wxConfigBase *arg2 = 0 ; | |
5922 | PyObject * obj0 = 0 ; | |
5923 | PyObject * obj1 = 0 ; | |
5924 | char *kwnames[] = { | |
5925 | (char *) "self",(char *) "config", NULL | |
5926 | }; | |
5927 | ||
5928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5931 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
5932 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5933 | SWIG_fail; | |
d14a1e28 | 5934 | if (arg2 == NULL) { |
15afbcd0 RD |
5935 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5936 | SWIG_fail; | |
d14a1e28 RD |
5937 | } |
5938 | { | |
5939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5940 | (arg1)->Load(*arg2); | |
5941 | ||
5942 | wxPyEndAllowThreads(__tstate); | |
5943 | if (PyErr_Occurred()) SWIG_fail; | |
5944 | } | |
5945 | Py_INCREF(Py_None); resultobj = Py_None; | |
5946 | return resultobj; | |
5947 | fail: | |
5948 | return NULL; | |
5949 | } | |
5950 | ||
5951 | ||
5952 | static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5953 | PyObject *resultobj; | |
5954 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5955 | wxConfigBase *arg2 = 0 ; | |
5956 | PyObject * obj0 = 0 ; | |
5957 | PyObject * obj1 = 0 ; | |
5958 | char *kwnames[] = { | |
5959 | (char *) "self",(char *) "config", NULL | |
5960 | }; | |
5961 | ||
5962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5965 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
5966 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5967 | SWIG_fail; | |
d14a1e28 | 5968 | if (arg2 == NULL) { |
15afbcd0 RD |
5969 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5970 | SWIG_fail; | |
d14a1e28 RD |
5971 | } |
5972 | { | |
5973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5974 | (arg1)->Save(*arg2); | |
5975 | ||
5976 | wxPyEndAllowThreads(__tstate); | |
5977 | if (PyErr_Occurred()) SWIG_fail; | |
5978 | } | |
5979 | Py_INCREF(Py_None); resultobj = Py_None; | |
5980 | return resultobj; | |
5981 | fail: | |
5982 | return NULL; | |
5983 | } | |
5984 | ||
5985 | ||
5986 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5987 | PyObject *resultobj; | |
5988 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5989 | PyObject * obj0 = 0 ; | |
5990 | char *kwnames[] = { | |
5991 | (char *) "self", NULL | |
5992 | }; | |
5993 | ||
5994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5997 | { |
5998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5999 | (arg1)->AddFilesToMenu(); | |
6000 | ||
6001 | wxPyEndAllowThreads(__tstate); | |
6002 | if (PyErr_Occurred()) SWIG_fail; | |
6003 | } | |
6004 | Py_INCREF(Py_None); resultobj = Py_None; | |
6005 | return resultobj; | |
6006 | fail: | |
6007 | return NULL; | |
6008 | } | |
6009 | ||
6010 | ||
6011 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6012 | PyObject *resultobj; | |
6013 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6014 | wxMenu *arg2 = (wxMenu *) 0 ; | |
6015 | PyObject * obj0 = 0 ; | |
6016 | PyObject * obj1 = 0 ; | |
6017 | char *kwnames[] = { | |
6018 | (char *) "self",(char *) "menu", NULL | |
6019 | }; | |
6020 | ||
6021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
6023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6024 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
6025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6026 | { |
6027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6028 | (arg1)->AddFilesToMenu(arg2); | |
6029 | ||
6030 | wxPyEndAllowThreads(__tstate); | |
6031 | if (PyErr_Occurred()) SWIG_fail; | |
6032 | } | |
6033 | Py_INCREF(Py_None); resultobj = Py_None; | |
6034 | return resultobj; | |
6035 | fail: | |
6036 | return NULL; | |
6037 | } | |
6038 | ||
6039 | ||
6040 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6041 | PyObject *resultobj; | |
6042 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6043 | int arg2 ; | |
6044 | wxString result; | |
6045 | PyObject * obj0 = 0 ; | |
994141e6 | 6046 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6047 | char *kwnames[] = { |
6048 | (char *) "self",(char *) "i", NULL | |
6049 | }; | |
6050 | ||
994141e6 | 6051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
6053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6054 | arg2 = (int) SWIG_AsInt(obj1); | |
6055 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6056 | { |
6057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6058 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
6059 | ||
6060 | wxPyEndAllowThreads(__tstate); | |
6061 | if (PyErr_Occurred()) SWIG_fail; | |
6062 | } | |
6063 | { | |
6064 | #if wxUSE_UNICODE | |
6065 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6066 | #else | |
6067 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6068 | #endif | |
6069 | } | |
6070 | return resultobj; | |
6071 | fail: | |
6072 | return NULL; | |
6073 | } | |
6074 | ||
6075 | ||
6076 | static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6077 | PyObject *resultobj; | |
6078 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6079 | int result; | |
6080 | PyObject * obj0 = 0 ; | |
6081 | char *kwnames[] = { | |
6082 | (char *) "self", NULL | |
6083 | }; | |
6084 | ||
6085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
6087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6088 | { |
6089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6090 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
6091 | ||
6092 | wxPyEndAllowThreads(__tstate); | |
6093 | if (PyErr_Occurred()) SWIG_fail; | |
6094 | } | |
15afbcd0 | 6095 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6096 | return resultobj; |
6097 | fail: | |
6098 | return NULL; | |
6099 | } | |
6100 | ||
6101 | ||
6102 | static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) { | |
6103 | PyObject *obj; | |
6104 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6105 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
6106 | Py_INCREF(obj); | |
6107 | return Py_BuildValue((char *)""); | |
6108 | } | |
6109 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6110 | PyObject *resultobj; | |
6111 | wxString *arg1 = 0 ; | |
6112 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
6113 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
6114 | wxSingleInstanceChecker *result; | |
e811c8ce RD |
6115 | bool temp1 = False ; |
6116 | bool temp2 = False ; | |
d14a1e28 RD |
6117 | PyObject * obj0 = 0 ; |
6118 | PyObject * obj1 = 0 ; | |
6119 | char *kwnames[] = { | |
6120 | (char *) "name",(char *) "path", NULL | |
6121 | }; | |
6122 | ||
6123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
6124 | { | |
6125 | arg1 = wxString_in_helper(obj0); | |
6126 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 6127 | temp1 = True; |
d14a1e28 RD |
6128 | } |
6129 | if (obj1) { | |
6130 | { | |
6131 | arg2 = wxString_in_helper(obj1); | |
6132 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6133 | temp2 = True; |
d14a1e28 RD |
6134 | } |
6135 | } | |
6136 | { | |
6137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6138 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
6139 | ||
6140 | wxPyEndAllowThreads(__tstate); | |
6141 | if (PyErr_Occurred()) SWIG_fail; | |
6142 | } | |
15afbcd0 | 6143 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); |
d14a1e28 RD |
6144 | { |
6145 | if (temp1) | |
6146 | delete arg1; | |
6147 | } | |
6148 | { | |
6149 | if (temp2) | |
6150 | delete arg2; | |
6151 | } | |
6152 | return resultobj; | |
6153 | fail: | |
6154 | { | |
6155 | if (temp1) | |
6156 | delete arg1; | |
6157 | } | |
6158 | { | |
6159 | if (temp2) | |
6160 | delete arg2; | |
6161 | } | |
6162 | return NULL; | |
6163 | } | |
6164 | ||
6165 | ||
6166 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6167 | PyObject *resultobj; | |
6168 | wxSingleInstanceChecker *result; | |
6169 | char *kwnames[] = { | |
6170 | NULL | |
6171 | }; | |
6172 | ||
6173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
6174 | { | |
6175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6176 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
6177 | ||
6178 | wxPyEndAllowThreads(__tstate); | |
6179 | if (PyErr_Occurred()) SWIG_fail; | |
6180 | } | |
15afbcd0 | 6181 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); |
d14a1e28 RD |
6182 | return resultobj; |
6183 | fail: | |
6184 | return NULL; | |
6185 | } | |
6186 | ||
6187 | ||
6188 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6189 | PyObject *resultobj; | |
6190 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6191 | PyObject * obj0 = 0 ; | |
6192 | char *kwnames[] = { | |
6193 | (char *) "self", NULL | |
6194 | }; | |
6195 | ||
6196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, |
6198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6199 | { |
6200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6201 | delete arg1; | |
6202 | ||
6203 | wxPyEndAllowThreads(__tstate); | |
6204 | if (PyErr_Occurred()) SWIG_fail; | |
6205 | } | |
6206 | Py_INCREF(Py_None); resultobj = Py_None; | |
6207 | return resultobj; | |
6208 | fail: | |
6209 | return NULL; | |
6210 | } | |
6211 | ||
6212 | ||
6213 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6214 | PyObject *resultobj; | |
6215 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6216 | wxString *arg2 = 0 ; | |
6217 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6218 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6219 | bool result; | |
e811c8ce RD |
6220 | bool temp2 = False ; |
6221 | bool temp3 = False ; | |
d14a1e28 RD |
6222 | PyObject * obj0 = 0 ; |
6223 | PyObject * obj1 = 0 ; | |
6224 | PyObject * obj2 = 0 ; | |
6225 | char *kwnames[] = { | |
6226 | (char *) "self",(char *) "name",(char *) "path", NULL | |
6227 | }; | |
6228 | ||
6229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, |
6231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6232 | { |
6233 | arg2 = wxString_in_helper(obj1); | |
6234 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6235 | temp2 = True; |
d14a1e28 RD |
6236 | } |
6237 | if (obj2) { | |
6238 | { | |
6239 | arg3 = wxString_in_helper(obj2); | |
6240 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 6241 | temp3 = True; |
d14a1e28 RD |
6242 | } |
6243 | } | |
6244 | { | |
6245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6246 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
6247 | ||
6248 | wxPyEndAllowThreads(__tstate); | |
6249 | if (PyErr_Occurred()) SWIG_fail; | |
6250 | } | |
4f89f6a3 RD |
6251 | { |
6252 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6253 | } | |
d14a1e28 RD |
6254 | { |
6255 | if (temp2) | |
6256 | delete arg2; | |
6257 | } | |
6258 | { | |
6259 | if (temp3) | |
6260 | delete arg3; | |
6261 | } | |
6262 | return resultobj; | |
6263 | fail: | |
6264 | { | |
6265 | if (temp2) | |
6266 | delete arg2; | |
6267 | } | |
6268 | { | |
6269 | if (temp3) | |
6270 | delete arg3; | |
6271 | } | |
6272 | return NULL; | |
6273 | } | |
6274 | ||
6275 | ||
6276 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6277 | PyObject *resultobj; | |
6278 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6279 | bool result; | |
6280 | PyObject * obj0 = 0 ; | |
6281 | char *kwnames[] = { | |
6282 | (char *) "self", NULL | |
6283 | }; | |
6284 | ||
6285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, |
6287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6288 | { |
6289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6290 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
6291 | ||
6292 | wxPyEndAllowThreads(__tstate); | |
6293 | if (PyErr_Occurred()) SWIG_fail; | |
6294 | } | |
4f89f6a3 RD |
6295 | { |
6296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6297 | } | |
d14a1e28 RD |
6298 | return resultobj; |
6299 | fail: | |
6300 | return NULL; | |
6301 | } | |
6302 | ||
6303 | ||
6304 | static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) { | |
6305 | PyObject *obj; | |
6306 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6307 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
6308 | Py_INCREF(obj); | |
6309 | return Py_BuildValue((char *)""); | |
6310 | } | |
6311 | static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6312 | PyObject *resultobj; | |
6313 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6314 | wxDC *arg2 = 0 ; | |
6315 | int arg3 ; | |
6316 | PyObject * obj0 = 0 ; | |
6317 | PyObject * obj1 = 0 ; | |
994141e6 | 6318 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6319 | char *kwnames[] = { |
6320 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
6321 | }; | |
6322 | ||
994141e6 | 6323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6326 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
6327 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6328 | SWIG_fail; | |
d14a1e28 | 6329 | if (arg2 == NULL) { |
15afbcd0 RD |
6330 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6331 | SWIG_fail; | |
994141e6 | 6332 | } |
15afbcd0 RD |
6333 | arg3 = (int) SWIG_AsInt(obj2); |
6334 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6335 | { |
6336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6337 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
6338 | ||
6339 | wxPyEndAllowThreads(__tstate); | |
6340 | if (PyErr_Occurred()) SWIG_fail; | |
6341 | } | |
6342 | Py_INCREF(Py_None); resultobj = Py_None; | |
6343 | return resultobj; | |
6344 | fail: | |
6345 | return NULL; | |
6346 | } | |
6347 | ||
6348 | ||
6349 | static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6350 | PyObject *resultobj; | |
6351 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6352 | PyObject * obj0 = 0 ; | |
6353 | char *kwnames[] = { | |
6354 | (char *) "self", NULL | |
6355 | }; | |
6356 | ||
6357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6360 | { |
6361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6362 | delete arg1; | |
6363 | ||
6364 | wxPyEndAllowThreads(__tstate); | |
6365 | if (PyErr_Occurred()) SWIG_fail; | |
6366 | } | |
6367 | Py_INCREF(Py_None); resultobj = Py_None; | |
6368 | return resultobj; | |
6369 | fail: | |
6370 | return NULL; | |
6371 | } | |
6372 | ||
6373 | ||
6374 | static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6375 | PyObject *resultobj; | |
6376 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6377 | wxString result; | |
6378 | PyObject * obj0 = 0 ; | |
6379 | char *kwnames[] = { | |
6380 | (char *) "self", NULL | |
6381 | }; | |
6382 | ||
6383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6386 | { |
6387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6388 | result = (arg1)->GetTip(); | |
6389 | ||
6390 | wxPyEndAllowThreads(__tstate); | |
6391 | if (PyErr_Occurred()) SWIG_fail; | |
6392 | } | |
6393 | { | |
6394 | #if wxUSE_UNICODE | |
6395 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6396 | #else | |
6397 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6398 | #endif | |
6399 | } | |
6400 | return resultobj; | |
6401 | fail: | |
6402 | return NULL; | |
6403 | } | |
6404 | ||
6405 | ||
6406 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6407 | PyObject *resultobj; | |
6408 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6409 | size_t result; | |
6410 | PyObject * obj0 = 0 ; | |
6411 | char *kwnames[] = { | |
6412 | (char *) "self", NULL | |
6413 | }; | |
6414 | ||
6415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6418 | { |
6419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6420 | result = (size_t)(arg1)->GetCurrentTip(); | |
6421 | ||
6422 | wxPyEndAllowThreads(__tstate); | |
6423 | if (PyErr_Occurred()) SWIG_fail; | |
6424 | } | |
15afbcd0 | 6425 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
6426 | return resultobj; |
6427 | fail: | |
6428 | return NULL; | |
6429 | } | |
6430 | ||
6431 | ||
6432 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6433 | PyObject *resultobj; | |
6434 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6435 | wxString *arg2 = 0 ; | |
6436 | wxString result; | |
e811c8ce | 6437 | bool temp2 = False ; |
d14a1e28 RD |
6438 | PyObject * obj0 = 0 ; |
6439 | PyObject * obj1 = 0 ; | |
6440 | char *kwnames[] = { | |
6441 | (char *) "self",(char *) "tip", NULL | |
6442 | }; | |
6443 | ||
6444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6447 | { |
6448 | arg2 = wxString_in_helper(obj1); | |
6449 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6450 | temp2 = True; |
d14a1e28 RD |
6451 | } |
6452 | { | |
6453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6454 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
6455 | ||
6456 | wxPyEndAllowThreads(__tstate); | |
6457 | if (PyErr_Occurred()) SWIG_fail; | |
6458 | } | |
6459 | { | |
6460 | #if wxUSE_UNICODE | |
6461 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6462 | #else | |
6463 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6464 | #endif | |
6465 | } | |
6466 | { | |
6467 | if (temp2) | |
6468 | delete arg2; | |
6469 | } | |
6470 | return resultobj; | |
6471 | fail: | |
6472 | { | |
6473 | if (temp2) | |
6474 | delete arg2; | |
6475 | } | |
6476 | return NULL; | |
6477 | } | |
6478 | ||
6479 | ||
6480 | static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) { | |
6481 | PyObject *obj; | |
6482 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6483 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
6484 | Py_INCREF(obj); | |
6485 | return Py_BuildValue((char *)""); | |
6486 | } | |
6487 | static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6488 | PyObject *resultobj; | |
6489 | size_t arg1 ; | |
6490 | wxPyTipProvider *result; | |
6491 | PyObject * obj0 = 0 ; | |
6492 | char *kwnames[] = { | |
6493 | (char *) "currentTip", NULL | |
6494 | }; | |
6495 | ||
6496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6497 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); |
6498 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6499 | { |
6500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6501 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
6502 | ||
6503 | wxPyEndAllowThreads(__tstate); | |
6504 | if (PyErr_Occurred()) SWIG_fail; | |
6505 | } | |
15afbcd0 | 6506 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1); |
d14a1e28 RD |
6507 | return resultobj; |
6508 | fail: | |
6509 | return NULL; | |
6510 | } | |
6511 | ||
6512 | ||
6513 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6514 | PyObject *resultobj; | |
6515 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
6516 | PyObject *arg2 = (PyObject *) 0 ; | |
6517 | PyObject *arg3 = (PyObject *) 0 ; | |
6518 | PyObject * obj0 = 0 ; | |
6519 | PyObject * obj1 = 0 ; | |
6520 | PyObject * obj2 = 0 ; | |
6521 | char *kwnames[] = { | |
6522 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6523 | }; | |
6524 | ||
6525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider, |
6527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6528 | arg2 = obj1; |
6529 | arg3 = obj2; | |
6530 | { | |
6531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6532 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6533 | ||
6534 | wxPyEndAllowThreads(__tstate); | |
6535 | if (PyErr_Occurred()) SWIG_fail; | |
6536 | } | |
6537 | Py_INCREF(Py_None); resultobj = Py_None; | |
6538 | return resultobj; | |
6539 | fail: | |
6540 | return NULL; | |
6541 | } | |
6542 | ||
6543 | ||
6544 | static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) { | |
6545 | PyObject *obj; | |
6546 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6547 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
6548 | Py_INCREF(obj); | |
6549 | return Py_BuildValue((char *)""); | |
6550 | } | |
6551 | static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6552 | PyObject *resultobj; | |
6553 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6554 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
e811c8ce | 6555 | bool arg3 = (bool) True ; |
d14a1e28 RD |
6556 | bool result; |
6557 | PyObject * obj0 = 0 ; | |
6558 | PyObject * obj1 = 0 ; | |
6559 | PyObject * obj2 = 0 ; | |
6560 | char *kwnames[] = { | |
6561 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
6562 | }; | |
6563 | ||
6564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6567 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider, | |
6568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6569 | if (obj2) { |
15afbcd0 RD |
6570 | arg3 = (bool) SWIG_AsBool(obj2); |
6571 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6572 | } |
6573 | { | |
e3b71cb8 | 6574 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6576 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
6577 | ||
6578 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6579 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6580 | } |
4f89f6a3 RD |
6581 | { |
6582 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6583 | } | |
d14a1e28 RD |
6584 | return resultobj; |
6585 | fail: | |
6586 | return NULL; | |
6587 | } | |
6588 | ||
6589 | ||
6590 | static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6591 | PyObject *resultobj; | |
6592 | wxString *arg1 = 0 ; | |
6593 | size_t arg2 ; | |
6594 | wxTipProvider *result; | |
e811c8ce | 6595 | bool temp1 = False ; |
d14a1e28 RD |
6596 | PyObject * obj0 = 0 ; |
6597 | PyObject * obj1 = 0 ; | |
6598 | char *kwnames[] = { | |
6599 | (char *) "filename",(char *) "currentTip", NULL | |
6600 | }; | |
6601 | ||
6602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
6603 | { | |
6604 | arg1 = wxString_in_helper(obj0); | |
6605 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 6606 | temp1 = True; |
d14a1e28 | 6607 | } |
15afbcd0 RD |
6608 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); |
6609 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 6610 | { |
e3b71cb8 | 6611 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6613 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
6614 | ||
6615 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6616 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6617 | } |
15afbcd0 | 6618 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1); |
d14a1e28 RD |
6619 | { |
6620 | if (temp1) | |
6621 | delete arg1; | |
6622 | } | |
6623 | return resultobj; | |
6624 | fail: | |
6625 | { | |
6626 | if (temp1) | |
6627 | delete arg1; | |
6628 | } | |
6629 | return NULL; | |
6630 | } | |
6631 | ||
6632 | ||
6633 | static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6634 | PyObject *resultobj; | |
6635 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
6636 | int arg2 = (int) -1 ; | |
6637 | wxPyTimer *result; | |
6638 | PyObject * obj0 = 0 ; | |
994141e6 | 6639 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6640 | char *kwnames[] = { |
6641 | (char *) "owner",(char *) "id", NULL | |
6642 | }; | |
6643 | ||
994141e6 | 6644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6645 | if (obj0) { |
15afbcd0 RD |
6646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
6647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6648 | } |
994141e6 | 6649 | if (obj1) { |
15afbcd0 RD |
6650 | arg2 = (int) SWIG_AsInt(obj1); |
6651 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6652 | } |
d14a1e28 | 6653 | { |
e3b71cb8 | 6654 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6656 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
6657 | ||
6658 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6659 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6660 | } |
15afbcd0 | 6661 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1); |
d14a1e28 RD |
6662 | return resultobj; |
6663 | fail: | |
6664 | return NULL; | |
6665 | } | |
6666 | ||
6667 | ||
6668 | static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6669 | PyObject *resultobj; | |
6670 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6671 | PyObject * obj0 = 0 ; | |
6672 | char *kwnames[] = { | |
6673 | (char *) "self", NULL | |
6674 | }; | |
6675 | ||
6676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6679 | { |
6680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6681 | delete arg1; | |
6682 | ||
6683 | wxPyEndAllowThreads(__tstate); | |
6684 | if (PyErr_Occurred()) SWIG_fail; | |
6685 | } | |
6686 | Py_INCREF(Py_None); resultobj = Py_None; | |
6687 | return resultobj; | |
6688 | fail: | |
6689 | return NULL; | |
6690 | } | |
6691 | ||
6692 | ||
7722248d RD |
6693 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
6694 | PyObject *resultobj; | |
6695 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6696 | PyObject *arg2 = (PyObject *) 0 ; | |
6697 | PyObject *arg3 = (PyObject *) 0 ; | |
4276dc52 | 6698 | int arg4 = (int) 1 ; |
7722248d RD |
6699 | PyObject * obj0 = 0 ; |
6700 | PyObject * obj1 = 0 ; | |
6701 | PyObject * obj2 = 0 ; | |
4276dc52 | 6702 | PyObject * obj3 = 0 ; |
7722248d | 6703 | char *kwnames[] = { |
4276dc52 | 6704 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL |
7722248d RD |
6705 | }; |
6706 | ||
4276dc52 | 6707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
6708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7722248d RD |
6710 | arg2 = obj1; |
6711 | arg3 = obj2; | |
4276dc52 RD |
6712 | if (obj3) { |
6713 | arg4 = (int) SWIG_AsInt(obj3); | |
6714 | if (PyErr_Occurred()) SWIG_fail; | |
6715 | } | |
7722248d RD |
6716 | { |
6717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4276dc52 | 6718 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); |
7722248d RD |
6719 | |
6720 | wxPyEndAllowThreads(__tstate); | |
6721 | if (PyErr_Occurred()) SWIG_fail; | |
6722 | } | |
6723 | Py_INCREF(Py_None); resultobj = Py_None; | |
6724 | return resultobj; | |
6725 | fail: | |
6726 | return NULL; | |
6727 | } | |
6728 | ||
6729 | ||
d14a1e28 RD |
6730 | static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { |
6731 | PyObject *resultobj; | |
6732 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6733 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
6734 | int arg3 = (int) -1 ; | |
6735 | PyObject * obj0 = 0 ; | |
6736 | PyObject * obj1 = 0 ; | |
994141e6 | 6737 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6738 | char *kwnames[] = { |
6739 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
6740 | }; | |
6741 | ||
994141e6 | 6742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6745 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
6746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 6747 | if (obj2) { |
15afbcd0 RD |
6748 | arg3 = (int) SWIG_AsInt(obj2); |
6749 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6750 | } |
d14a1e28 RD |
6751 | { |
6752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6753 | (arg1)->SetOwner(arg2,arg3); | |
6754 | ||
6755 | wxPyEndAllowThreads(__tstate); | |
6756 | if (PyErr_Occurred()) SWIG_fail; | |
6757 | } | |
6758 | Py_INCREF(Py_None); resultobj = Py_None; | |
6759 | return resultobj; | |
6760 | fail: | |
6761 | return NULL; | |
6762 | } | |
6763 | ||
6764 | ||
1c0f361b RD |
6765 | static PyObject *_wrap_Timer_GetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { |
6766 | PyObject *resultobj; | |
6767 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6768 | wxEvtHandler *result; | |
6769 | PyObject * obj0 = 0 ; | |
6770 | char *kwnames[] = { | |
6771 | (char *) "self", NULL | |
6772 | }; | |
6773 | ||
6774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail; | |
6775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6777 | { | |
6778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6779 | result = (wxEvtHandler *)(arg1)->GetOwner(); | |
6780 | ||
6781 | wxPyEndAllowThreads(__tstate); | |
6782 | if (PyErr_Occurred()) SWIG_fail; | |
6783 | } | |
6784 | { | |
412d302d | 6785 | resultobj = wxPyMake_wxObject(result, 0); |
1c0f361b RD |
6786 | } |
6787 | return resultobj; | |
6788 | fail: | |
6789 | return NULL; | |
6790 | } | |
6791 | ||
6792 | ||
d14a1e28 RD |
6793 | static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { |
6794 | PyObject *resultobj; | |
6795 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6796 | int arg2 = (int) -1 ; | |
e811c8ce | 6797 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6798 | bool result; |
6799 | PyObject * obj0 = 0 ; | |
994141e6 | 6800 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6801 | PyObject * obj2 = 0 ; |
6802 | char *kwnames[] = { | |
6803 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
6804 | }; | |
6805 | ||
994141e6 | 6806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 6809 | if (obj1) { |
15afbcd0 RD |
6810 | arg2 = (int) SWIG_AsInt(obj1); |
6811 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6812 | } |
d14a1e28 | 6813 | if (obj2) { |
15afbcd0 RD |
6814 | arg3 = (bool) SWIG_AsBool(obj2); |
6815 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6816 | } |
6817 | { | |
6818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6819 | result = (bool)(arg1)->Start(arg2,arg3); | |
6820 | ||
6821 | wxPyEndAllowThreads(__tstate); | |
6822 | if (PyErr_Occurred()) SWIG_fail; | |
6823 | } | |
4f89f6a3 RD |
6824 | { |
6825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6826 | } | |
d14a1e28 RD |
6827 | return resultobj; |
6828 | fail: | |
6829 | return NULL; | |
6830 | } | |
6831 | ||
6832 | ||
6833 | static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6834 | PyObject *resultobj; | |
6835 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6836 | PyObject * obj0 = 0 ; | |
6837 | char *kwnames[] = { | |
6838 | (char *) "self", NULL | |
6839 | }; | |
6840 | ||
6841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6844 | { |
6845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6846 | (arg1)->Stop(); | |
6847 | ||
6848 | wxPyEndAllowThreads(__tstate); | |
6849 | if (PyErr_Occurred()) SWIG_fail; | |
6850 | } | |
6851 | Py_INCREF(Py_None); resultobj = Py_None; | |
6852 | return resultobj; | |
6853 | fail: | |
6854 | return NULL; | |
6855 | } | |
6856 | ||
6857 | ||
d14a1e28 RD |
6858 | static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { |
6859 | PyObject *resultobj; | |
6860 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6861 | bool result; | |
6862 | PyObject * obj0 = 0 ; | |
6863 | char *kwnames[] = { | |
6864 | (char *) "self", NULL | |
6865 | }; | |
6866 | ||
6867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6870 | { |
6871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6872 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
6873 | ||
6874 | wxPyEndAllowThreads(__tstate); | |
6875 | if (PyErr_Occurred()) SWIG_fail; | |
6876 | } | |
4f89f6a3 RD |
6877 | { |
6878 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6879 | } | |
d14a1e28 RD |
6880 | return resultobj; |
6881 | fail: | |
6882 | return NULL; | |
6883 | } | |
6884 | ||
6885 | ||
6886 | static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6887 | PyObject *resultobj; | |
6888 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6889 | int result; | |
6890 | PyObject * obj0 = 0 ; | |
6891 | char *kwnames[] = { | |
6892 | (char *) "self", NULL | |
6893 | }; | |
6894 | ||
6895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6898 | { |
6899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6900 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
6901 | ||
6902 | wxPyEndAllowThreads(__tstate); | |
6903 | if (PyErr_Occurred()) SWIG_fail; | |
6904 | } | |
15afbcd0 | 6905 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6906 | return resultobj; |
6907 | fail: | |
6908 | return NULL; | |
6909 | } | |
6910 | ||
6911 | ||
6912 | static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6913 | PyObject *resultobj; | |
6914 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6915 | bool result; | |
6916 | PyObject * obj0 = 0 ; | |
6917 | char *kwnames[] = { | |
6918 | (char *) "self", NULL | |
6919 | }; | |
6920 | ||
6921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6924 | { |
6925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6926 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
6927 | ||
6928 | wxPyEndAllowThreads(__tstate); | |
6929 | if (PyErr_Occurred()) SWIG_fail; | |
6930 | } | |
4f89f6a3 RD |
6931 | { |
6932 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6933 | } | |
d14a1e28 RD |
6934 | return resultobj; |
6935 | fail: | |
6936 | return NULL; | |
6937 | } | |
6938 | ||
6939 | ||
cc6dd355 RD |
6940 | static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
6941 | PyObject *resultobj; | |
6942 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6943 | int result; | |
6944 | PyObject * obj0 = 0 ; | |
6945 | char *kwnames[] = { | |
6946 | (char *) "self", NULL | |
6947 | }; | |
6948 | ||
6949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
cc6dd355 RD |
6952 | { |
6953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6954 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
6955 | ||
6956 | wxPyEndAllowThreads(__tstate); | |
6957 | if (PyErr_Occurred()) SWIG_fail; | |
6958 | } | |
15afbcd0 | 6959 | resultobj = SWIG_FromInt((int)result); |
cc6dd355 RD |
6960 | return resultobj; |
6961 | fail: | |
6962 | return NULL; | |
6963 | } | |
6964 | ||
6965 | ||
d14a1e28 RD |
6966 | static PyObject * Timer_swigregister(PyObject *self, PyObject *args) { |
6967 | PyObject *obj; | |
6968 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6969 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
6970 | Py_INCREF(obj); | |
6971 | return Py_BuildValue((char *)""); | |
6972 | } | |
6973 | static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6974 | PyObject *resultobj; | |
6975 | int arg1 = (int) 0 ; | |
6976 | int arg2 = (int) 0 ; | |
6977 | wxTimerEvent *result; | |
994141e6 RD |
6978 | PyObject * obj0 = 0 ; |
6979 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
6980 | char *kwnames[] = { |
6981 | (char *) "timerid",(char *) "interval", NULL | |
6982 | }; | |
6983 | ||
994141e6 RD |
6984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; |
6985 | if (obj0) { | |
15afbcd0 RD |
6986 | arg1 = (int) SWIG_AsInt(obj0); |
6987 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
6988 | } |
6989 | if (obj1) { | |
15afbcd0 RD |
6990 | arg2 = (int) SWIG_AsInt(obj1); |
6991 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6992 | } |
d14a1e28 RD |
6993 | { |
6994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6995 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
6996 | ||
6997 | wxPyEndAllowThreads(__tstate); | |
6998 | if (PyErr_Occurred()) SWIG_fail; | |
6999 | } | |
15afbcd0 | 7000 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1); |
d14a1e28 RD |
7001 | return resultobj; |
7002 | fail: | |
7003 | return NULL; | |
7004 | } | |
7005 | ||
7006 | ||
7007 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7008 | PyObject *resultobj; | |
7009 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
7010 | int result; | |
7011 | PyObject * obj0 = 0 ; | |
7012 | char *kwnames[] = { | |
7013 | (char *) "self", NULL | |
7014 | }; | |
7015 | ||
7016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent, |
7018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7019 | { |
7020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7021 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
7022 | ||
7023 | wxPyEndAllowThreads(__tstate); | |
7024 | if (PyErr_Occurred()) SWIG_fail; | |
7025 | } | |
15afbcd0 | 7026 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7027 | return resultobj; |
7028 | fail: | |
7029 | return NULL; | |
7030 | } | |
7031 | ||
7032 | ||
7033 | static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) { | |
7034 | PyObject *obj; | |
7035 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7036 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
7037 | Py_INCREF(obj); | |
7038 | return Py_BuildValue((char *)""); | |
7039 | } | |
7040 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) { | |
7041 | PyObject *resultobj; | |
7042 | wxTimer *arg1 = 0 ; | |
7043 | wxTimerRunner *result; | |
7044 | PyObject * obj0 = 0 ; | |
7045 | ||
7046 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
15afbcd0 RD |
7047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, |
7048 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7049 | SWIG_fail; | |
d14a1e28 | 7050 | if (arg1 == NULL) { |
15afbcd0 RD |
7051 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7052 | SWIG_fail; | |
d14a1e28 RD |
7053 | } |
7054 | { | |
e3b71cb8 | 7055 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
7056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7057 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
7058 | ||
7059 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7060 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7061 | } |
15afbcd0 | 7062 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); |
d14a1e28 RD |
7063 | return resultobj; |
7064 | fail: | |
7065 | return NULL; | |
7066 | } | |
7067 | ||
7068 | ||
7069 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) { | |
7070 | PyObject *resultobj; | |
7071 | wxTimer *arg1 = 0 ; | |
7072 | int arg2 ; | |
e811c8ce | 7073 | bool arg3 = (bool) False ; |
d14a1e28 RD |
7074 | wxTimerRunner *result; |
7075 | PyObject * obj0 = 0 ; | |
994141e6 | 7076 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7077 | PyObject * obj2 = 0 ; |
7078 | ||
994141e6 | 7079 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, |
7081 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7082 | SWIG_fail; | |
d14a1e28 | 7083 | if (arg1 == NULL) { |
15afbcd0 RD |
7084 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7085 | SWIG_fail; | |
994141e6 | 7086 | } |
15afbcd0 RD |
7087 | arg2 = (int) SWIG_AsInt(obj1); |
7088 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 7089 | if (obj2) { |
15afbcd0 RD |
7090 | arg3 = (bool) SWIG_AsBool(obj2); |
7091 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7092 | } |
7093 | { | |
e3b71cb8 | 7094 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
7095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7096 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
7097 | ||
7098 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7099 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7100 | } |
15afbcd0 | 7101 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); |
d14a1e28 RD |
7102 | return resultobj; |
7103 | fail: | |
7104 | return NULL; | |
7105 | } | |
7106 | ||
7107 | ||
7108 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
7109 | int argc; | |
7110 | PyObject *argv[4]; | |
7111 | int ii; | |
7112 | ||
7113 | argc = PyObject_Length(args); | |
7114 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
7115 | argv[ii] = PyTuple_GetItem(args,ii); | |
7116 | } | |
7117 | if (argc == 1) { | |
7118 | int _v; | |
7119 | { | |
7120 | void *ptr; | |
15afbcd0 | 7121 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { |
d14a1e28 RD |
7122 | _v = 0; |
7123 | PyErr_Clear(); | |
7124 | } else { | |
7125 | _v = 1; | |
7126 | } | |
7127 | } | |
7128 | if (_v) { | |
7129 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
7130 | } | |
7131 | } | |
7132 | if ((argc >= 2) && (argc <= 3)) { | |
7133 | int _v; | |
7134 | { | |
7135 | void *ptr; | |
15afbcd0 | 7136 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { |
d14a1e28 RD |
7137 | _v = 0; |
7138 | PyErr_Clear(); | |
7139 | } else { | |
7140 | _v = 1; | |
7141 | } | |
7142 | } | |
7143 | if (_v) { | |
15afbcd0 | 7144 | _v = SWIG_CheckInt(argv[1]); |
d14a1e28 RD |
7145 | if (_v) { |
7146 | if (argc <= 2) { | |
7147 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
7148 | } | |
15afbcd0 | 7149 | _v = SWIG_CheckBool(argv[2]); |
d14a1e28 RD |
7150 | if (_v) { |
7151 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
7152 | } | |
7153 | } | |
7154 | } | |
7155 | } | |
7156 | ||
7157 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
7158 | return NULL; | |
7159 | } | |
7160 | ||
7161 | ||
7162 | static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7163 | PyObject *resultobj; | |
7164 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
7165 | PyObject * obj0 = 0 ; | |
7166 | char *kwnames[] = { | |
7167 | (char *) "self", NULL | |
7168 | }; | |
7169 | ||
7170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, |
7172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7173 | { |
7174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7175 | delete arg1; | |
7176 | ||
7177 | wxPyEndAllowThreads(__tstate); | |
7178 | if (PyErr_Occurred()) SWIG_fail; | |
7179 | } | |
7180 | Py_INCREF(Py_None); resultobj = Py_None; | |
7181 | return resultobj; | |
7182 | fail: | |
7183 | return NULL; | |
7184 | } | |
7185 | ||
7186 | ||
7187 | static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7188 | PyObject *resultobj; | |
7189 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
7190 | int arg2 ; | |
e811c8ce | 7191 | bool arg3 = (bool) False ; |
d14a1e28 | 7192 | PyObject * obj0 = 0 ; |
994141e6 | 7193 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7194 | PyObject * obj2 = 0 ; |
7195 | char *kwnames[] = { | |
7196 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
7197 | }; | |
7198 | ||
994141e6 | 7199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, |
7201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7202 | arg2 = (int) SWIG_AsInt(obj1); | |
7203 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 7204 | if (obj2) { |
15afbcd0 RD |
7205 | arg3 = (bool) SWIG_AsBool(obj2); |
7206 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7207 | } |
7208 | { | |
7209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7210 | (arg1)->Start(arg2,arg3); | |
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 * TimerRunner_swigregister(PyObject *self, PyObject *args) { | |
7223 | PyObject *obj; | |
7224 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7225 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
7226 | Py_INCREF(obj); | |
7227 | return Py_BuildValue((char *)""); | |
7228 | } | |
7229 | static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7230 | PyObject *resultobj; | |
7231 | wxLog *result; | |
7232 | char *kwnames[] = { | |
7233 | NULL | |
7234 | }; | |
7235 | ||
7236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
7237 | { | |
7238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7239 | result = (wxLog *)new wxLog(); | |
7240 | ||
7241 | wxPyEndAllowThreads(__tstate); | |
7242 | if (PyErr_Occurred()) SWIG_fail; | |
7243 | } | |
15afbcd0 | 7244 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); |
d14a1e28 RD |
7245 | return resultobj; |
7246 | fail: | |
7247 | return NULL; | |
7248 | } | |
7249 | ||
7250 | ||
7251 | static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7252 | PyObject *resultobj; | |
7253 | bool result; | |
7254 | char *kwnames[] = { | |
7255 | NULL | |
7256 | }; | |
7257 | ||
7258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
7259 | { | |
7260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7261 | result = (bool)wxLog::IsEnabled(); | |
7262 | ||
7263 | wxPyEndAllowThreads(__tstate); | |
7264 | if (PyErr_Occurred()) SWIG_fail; | |
7265 | } | |
4f89f6a3 RD |
7266 | { |
7267 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7268 | } | |
d14a1e28 RD |
7269 | return resultobj; |
7270 | fail: | |
7271 | return NULL; | |
7272 | } | |
7273 | ||
7274 | ||
7275 | static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7276 | PyObject *resultobj; | |
e811c8ce | 7277 | bool arg1 = (bool) True ; |
d14a1e28 RD |
7278 | bool result; |
7279 | PyObject * obj0 = 0 ; | |
7280 | char *kwnames[] = { | |
7281 | (char *) "doIt", NULL | |
7282 | }; | |
7283 | ||
7284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
7285 | if (obj0) { | |
15afbcd0 RD |
7286 | arg1 = (bool) SWIG_AsBool(obj0); |
7287 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7288 | } |
7289 | { | |
7290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7291 | result = (bool)wxLog::EnableLogging(arg1); | |
7292 | ||
7293 | wxPyEndAllowThreads(__tstate); | |
7294 | if (PyErr_Occurred()) SWIG_fail; | |
7295 | } | |
4f89f6a3 RD |
7296 | { |
7297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7298 | } | |
d14a1e28 RD |
7299 | return resultobj; |
7300 | fail: | |
7301 | return NULL; | |
7302 | } | |
7303 | ||
7304 | ||
7305 | static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7306 | PyObject *resultobj; | |
7307 | wxLogLevel arg1 ; | |
7308 | wxChar *arg2 = (wxChar *) 0 ; | |
7309 | time_t arg3 ; | |
7310 | PyObject * obj0 = 0 ; | |
7311 | PyObject * obj1 = 0 ; | |
7312 | PyObject * obj2 = 0 ; | |
7313 | char *kwnames[] = { | |
7314 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
7315 | }; | |
7316 | ||
7317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7318 | arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); |
7319 | if (PyErr_Occurred()) SWIG_fail; | |
7320 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar, | |
7321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7322 | arg3 = (time_t) SWIG_AsUnsignedInt(obj2); | |
7323 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7324 | { |
7325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7326 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
7327 | ||
7328 | wxPyEndAllowThreads(__tstate); | |
7329 | if (PyErr_Occurred()) SWIG_fail; | |
7330 | } | |
7331 | Py_INCREF(Py_None); resultobj = Py_None; | |
7332 | return resultobj; | |
7333 | fail: | |
7334 | return NULL; | |
7335 | } | |
7336 | ||
7337 | ||
7338 | static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7339 | PyObject *resultobj; | |
7340 | wxLog *arg1 = (wxLog *) 0 ; | |
7341 | PyObject * obj0 = 0 ; | |
7342 | char *kwnames[] = { | |
7343 | (char *) "self", NULL | |
7344 | }; | |
7345 | ||
7346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
7348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7349 | { |
7350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7351 | (arg1)->Flush(); | |
7352 | ||
7353 | wxPyEndAllowThreads(__tstate); | |
7354 | if (PyErr_Occurred()) SWIG_fail; | |
7355 | } | |
7356 | Py_INCREF(Py_None); resultobj = Py_None; | |
7357 | return resultobj; | |
7358 | fail: | |
7359 | return NULL; | |
7360 | } | |
7361 | ||
7362 | ||
7363 | static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7364 | PyObject *resultobj; | |
7365 | char *kwnames[] = { | |
7366 | NULL | |
7367 | }; | |
7368 | ||
7369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
7370 | { | |
7371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7372 | wxLog::FlushActive(); | |
7373 | ||
7374 | wxPyEndAllowThreads(__tstate); | |
7375 | if (PyErr_Occurred()) SWIG_fail; | |
7376 | } | |
7377 | Py_INCREF(Py_None); resultobj = Py_None; | |
7378 | return resultobj; | |
7379 | fail: | |
7380 | return NULL; | |
7381 | } | |
7382 | ||
7383 | ||
7384 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7385 | PyObject *resultobj; | |
7386 | wxLog *result; | |
7387 | char *kwnames[] = { | |
7388 | NULL | |
7389 | }; | |
7390 | ||
7391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
7392 | { | |
7393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7394 | result = (wxLog *)wxLog::GetActiveTarget(); | |
7395 | ||
7396 | wxPyEndAllowThreads(__tstate); | |
7397 | if (PyErr_Occurred()) SWIG_fail; | |
7398 | } | |
15afbcd0 | 7399 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
7400 | return resultobj; |
7401 | fail: | |
7402 | return NULL; | |
7403 | } | |
7404 | ||
7405 | ||
7406 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7407 | PyObject *resultobj; | |
7408 | wxLog *arg1 = (wxLog *) 0 ; | |
7409 | wxLog *result; | |
7410 | PyObject * obj0 = 0 ; | |
7411 | char *kwnames[] = { | |
7412 | (char *) "pLogger", NULL | |
7413 | }; | |
7414 | ||
7415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
7417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7418 | { |
7419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7420 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
7421 | ||
7422 | wxPyEndAllowThreads(__tstate); | |
7423 | if (PyErr_Occurred()) SWIG_fail; | |
7424 | } | |
15afbcd0 | 7425 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
7426 | return resultobj; |
7427 | fail: | |
7428 | return NULL; | |
7429 | } | |
7430 | ||
7431 | ||
7432 | static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7433 | PyObject *resultobj; | |
7434 | char *kwnames[] = { | |
7435 | NULL | |
7436 | }; | |
7437 | ||
7438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
7439 | { | |
7440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7441 | wxLog::Suspend(); | |
7442 | ||
7443 | wxPyEndAllowThreads(__tstate); | |
7444 | if (PyErr_Occurred()) SWIG_fail; | |
7445 | } | |
7446 | Py_INCREF(Py_None); resultobj = Py_None; | |
7447 | return resultobj; | |
7448 | fail: | |
7449 | return NULL; | |
7450 | } | |
7451 | ||
7452 | ||
7453 | static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7454 | PyObject *resultobj; | |
7455 | char *kwnames[] = { | |
7456 | NULL | |
7457 | }; | |
7458 | ||
7459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
7460 | { | |
7461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7462 | wxLog::Resume(); | |
7463 | ||
7464 | wxPyEndAllowThreads(__tstate); | |
7465 | if (PyErr_Occurred()) SWIG_fail; | |
7466 | } | |
7467 | Py_INCREF(Py_None); resultobj = Py_None; | |
7468 | return resultobj; | |
7469 | fail: | |
7470 | return NULL; | |
7471 | } | |
7472 | ||
7473 | ||
7474 | static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7475 | PyObject *resultobj; | |
e811c8ce | 7476 | bool arg1 = (bool) True ; |
d14a1e28 RD |
7477 | PyObject * obj0 = 0 ; |
7478 | char *kwnames[] = { | |
7479 | (char *) "bVerbose", NULL | |
7480 | }; | |
7481 | ||
7482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
7483 | if (obj0) { | |
15afbcd0 RD |
7484 | arg1 = (bool) SWIG_AsBool(obj0); |
7485 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7486 | } |
7487 | { | |
7488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7489 | wxLog::SetVerbose(arg1); | |
7490 | ||
7491 | wxPyEndAllowThreads(__tstate); | |
7492 | if (PyErr_Occurred()) SWIG_fail; | |
7493 | } | |
7494 | Py_INCREF(Py_None); resultobj = Py_None; | |
7495 | return resultobj; | |
7496 | fail: | |
7497 | return NULL; | |
7498 | } | |
7499 | ||
7500 | ||
7501 | static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7502 | PyObject *resultobj; | |
7503 | wxLogLevel arg1 ; | |
7504 | PyObject * obj0 = 0 ; | |
7505 | char *kwnames[] = { | |
7506 | (char *) "logLevel", NULL | |
7507 | }; | |
7508 | ||
7509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7510 | arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); |
7511 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7512 | { |
7513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7514 | wxLog::SetLogLevel(arg1); | |
7515 | ||
7516 | wxPyEndAllowThreads(__tstate); | |
7517 | if (PyErr_Occurred()) SWIG_fail; | |
7518 | } | |
7519 | Py_INCREF(Py_None); resultobj = Py_None; | |
7520 | return resultobj; | |
7521 | fail: | |
7522 | return NULL; | |
7523 | } | |
7524 | ||
7525 | ||
7526 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7527 | PyObject *resultobj; | |
7528 | char *kwnames[] = { | |
7529 | NULL | |
7530 | }; | |
7531 | ||
7532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
7533 | { | |
7534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7535 | wxLog::DontCreateOnDemand(); | |
7536 | ||
7537 | wxPyEndAllowThreads(__tstate); | |
7538 | if (PyErr_Occurred()) SWIG_fail; | |
7539 | } | |
7540 | Py_INCREF(Py_None); resultobj = Py_None; | |
7541 | return resultobj; | |
7542 | fail: | |
7543 | return NULL; | |
7544 | } | |
7545 | ||
7546 | ||
7547 | static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7548 | PyObject *resultobj; | |
7549 | wxTraceMask arg1 ; | |
7550 | PyObject * obj0 = 0 ; | |
7551 | char *kwnames[] = { | |
7552 | (char *) "ulMask", NULL | |
7553 | }; | |
7554 | ||
7555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7556 | arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0); |
7557 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7558 | { |
7559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7560 | wxLog::SetTraceMask(arg1); | |
7561 | ||
7562 | wxPyEndAllowThreads(__tstate); | |
7563 | if (PyErr_Occurred()) SWIG_fail; | |
7564 | } | |
7565 | Py_INCREF(Py_None); resultobj = Py_None; | |
7566 | return resultobj; | |
7567 | fail: | |
7568 | return NULL; | |
7569 | } | |
7570 | ||
7571 | ||
7572 | static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7573 | PyObject *resultobj; | |
7574 | wxString *arg1 = 0 ; | |
e811c8ce | 7575 | bool temp1 = False ; |
d14a1e28 RD |
7576 | PyObject * obj0 = 0 ; |
7577 | char *kwnames[] = { | |
7578 | (char *) "str", NULL | |
7579 | }; | |
7580 | ||
7581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
7582 | { | |
7583 | arg1 = wxString_in_helper(obj0); | |
7584 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7585 | temp1 = True; |
d14a1e28 RD |
7586 | } |
7587 | { | |
7588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7589 | wxLog::AddTraceMask((wxString const &)*arg1); | |
7590 | ||
7591 | wxPyEndAllowThreads(__tstate); | |
7592 | if (PyErr_Occurred()) SWIG_fail; | |
7593 | } | |
7594 | Py_INCREF(Py_None); resultobj = Py_None; | |
7595 | { | |
7596 | if (temp1) | |
7597 | delete arg1; | |
7598 | } | |
7599 | return resultobj; | |
7600 | fail: | |
7601 | { | |
7602 | if (temp1) | |
7603 | delete arg1; | |
7604 | } | |
7605 | return NULL; | |
7606 | } | |
7607 | ||
7608 | ||
7609 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7610 | PyObject *resultobj; | |
7611 | wxString *arg1 = 0 ; | |
e811c8ce | 7612 | bool temp1 = False ; |
d14a1e28 RD |
7613 | PyObject * obj0 = 0 ; |
7614 | char *kwnames[] = { | |
7615 | (char *) "str", NULL | |
7616 | }; | |
7617 | ||
7618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
7619 | { | |
7620 | arg1 = wxString_in_helper(obj0); | |
7621 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7622 | temp1 = True; |
d14a1e28 RD |
7623 | } |
7624 | { | |
7625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7626 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
7627 | ||
7628 | wxPyEndAllowThreads(__tstate); | |
7629 | if (PyErr_Occurred()) SWIG_fail; | |
7630 | } | |
7631 | Py_INCREF(Py_None); resultobj = Py_None; | |
7632 | { | |
7633 | if (temp1) | |
7634 | delete arg1; | |
7635 | } | |
7636 | return resultobj; | |
7637 | fail: | |
7638 | { | |
7639 | if (temp1) | |
7640 | delete arg1; | |
7641 | } | |
7642 | return NULL; | |
7643 | } | |
7644 | ||
7645 | ||
7646 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7647 | PyObject *resultobj; | |
7648 | char *kwnames[] = { | |
7649 | NULL | |
7650 | }; | |
7651 | ||
7652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
7653 | { | |
7654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7655 | wxLog::ClearTraceMasks(); | |
7656 | ||
7657 | wxPyEndAllowThreads(__tstate); | |
7658 | if (PyErr_Occurred()) SWIG_fail; | |
7659 | } | |
7660 | Py_INCREF(Py_None); resultobj = Py_None; | |
7661 | return resultobj; | |
7662 | fail: | |
7663 | return NULL; | |
7664 | } | |
7665 | ||
7666 | ||
7667 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7668 | PyObject *resultobj; | |
7669 | wxArrayString *result; | |
7670 | char *kwnames[] = { | |
7671 | NULL | |
7672 | }; | |
7673 | ||
7674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
7675 | { | |
7676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7677 | { | |
7678 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
7679 | result = (wxArrayString *) &_result_ref; | |
7680 | } | |
7681 | ||
7682 | wxPyEndAllowThreads(__tstate); | |
7683 | if (PyErr_Occurred()) SWIG_fail; | |
7684 | } | |
7685 | { | |
7686 | resultobj = wxArrayString2PyList_helper(*result); | |
7687 | } | |
7688 | return resultobj; | |
7689 | fail: | |
7690 | return NULL; | |
7691 | } | |
7692 | ||
7693 | ||
7694 | static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7695 | PyObject *resultobj; | |
7696 | wxChar *arg1 = (wxChar *) 0 ; | |
7697 | PyObject * obj0 = 0 ; | |
7698 | char *kwnames[] = { | |
7699 | (char *) "ts", NULL | |
7700 | }; | |
7701 | ||
7702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, |
7704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7705 | { |
7706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7707 | wxLog::SetTimestamp((wxChar const *)arg1); | |
7708 | ||
7709 | wxPyEndAllowThreads(__tstate); | |
7710 | if (PyErr_Occurred()) SWIG_fail; | |
7711 | } | |
7712 | Py_INCREF(Py_None); resultobj = Py_None; | |
7713 | return resultobj; | |
7714 | fail: | |
7715 | return NULL; | |
7716 | } | |
7717 | ||
7718 | ||
7719 | static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7720 | PyObject *resultobj; | |
7721 | bool result; | |
7722 | char *kwnames[] = { | |
7723 | NULL | |
7724 | }; | |
7725 | ||
7726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
7727 | { | |
7728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7729 | result = (bool)wxLog::GetVerbose(); | |
7730 | ||
7731 | wxPyEndAllowThreads(__tstate); | |
7732 | if (PyErr_Occurred()) SWIG_fail; | |
7733 | } | |
4f89f6a3 RD |
7734 | { |
7735 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7736 | } | |
d14a1e28 RD |
7737 | return resultobj; |
7738 | fail: | |
7739 | return NULL; | |
7740 | } | |
7741 | ||
7742 | ||
7743 | static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7744 | PyObject *resultobj; | |
7745 | wxTraceMask result; | |
7746 | char *kwnames[] = { | |
7747 | NULL | |
7748 | }; | |
7749 | ||
7750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
7751 | { | |
7752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7753 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
7754 | ||
7755 | wxPyEndAllowThreads(__tstate); | |
7756 | if (PyErr_Occurred()) SWIG_fail; | |
7757 | } | |
15afbcd0 | 7758 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7759 | return resultobj; |
7760 | fail: | |
7761 | return NULL; | |
7762 | } | |
7763 | ||
7764 | ||
7765 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7766 | PyObject *resultobj; | |
7767 | wxChar *arg1 = (wxChar *) 0 ; | |
7768 | bool result; | |
7769 | PyObject * obj0 = 0 ; | |
7770 | char *kwnames[] = { | |
7771 | (char *) "mask", NULL | |
7772 | }; | |
7773 | ||
7774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, |
7776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7777 | { |
7778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7779 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
7780 | ||
7781 | wxPyEndAllowThreads(__tstate); | |
7782 | if (PyErr_Occurred()) SWIG_fail; | |
7783 | } | |
4f89f6a3 RD |
7784 | { |
7785 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7786 | } | |
d14a1e28 RD |
7787 | return resultobj; |
7788 | fail: | |
7789 | return NULL; | |
7790 | } | |
7791 | ||
7792 | ||
7793 | static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7794 | PyObject *resultobj; | |
7795 | wxLogLevel result; | |
7796 | char *kwnames[] = { | |
7797 | NULL | |
7798 | }; | |
7799 | ||
7800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
7801 | { | |
7802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7803 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
7804 | ||
7805 | wxPyEndAllowThreads(__tstate); | |
7806 | if (PyErr_Occurred()) SWIG_fail; | |
7807 | } | |
15afbcd0 | 7808 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7809 | return resultobj; |
7810 | fail: | |
7811 | return NULL; | |
7812 | } | |
7813 | ||
7814 | ||
7815 | static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7816 | PyObject *resultobj; | |
7817 | wxChar *result; | |
7818 | char *kwnames[] = { | |
7819 | NULL | |
7820 | }; | |
7821 | ||
7822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
7823 | { | |
7824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7825 | result = (wxChar *)wxLog::GetTimestamp(); | |
7826 | ||
7827 | wxPyEndAllowThreads(__tstate); | |
7828 | if (PyErr_Occurred()) SWIG_fail; | |
7829 | } | |
15afbcd0 | 7830 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0); |
d14a1e28 RD |
7831 | return resultobj; |
7832 | fail: | |
7833 | return NULL; | |
7834 | } | |
7835 | ||
7836 | ||
7837 | static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7838 | PyObject *resultobj; | |
7839 | wxString result; | |
7840 | char *kwnames[] = { | |
7841 | NULL | |
7842 | }; | |
7843 | ||
7844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
7845 | { | |
7846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7847 | result = Log_TimeStamp(); | |
7848 | ||
7849 | wxPyEndAllowThreads(__tstate); | |
7850 | if (PyErr_Occurred()) SWIG_fail; | |
7851 | } | |
7852 | { | |
7853 | #if wxUSE_UNICODE | |
7854 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7855 | #else | |
7856 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7857 | #endif | |
7858 | } | |
7859 | return resultobj; | |
7860 | fail: | |
7861 | return NULL; | |
7862 | } | |
7863 | ||
7864 | ||
7865 | static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7866 | PyObject *resultobj; | |
7867 | wxLog *arg1 = (wxLog *) 0 ; | |
7868 | PyObject * obj0 = 0 ; | |
7869 | char *kwnames[] = { | |
7870 | (char *) "self", NULL | |
7871 | }; | |
7872 | ||
7873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
7875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7876 | { |
7877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7878 | wxLog_Destroy(arg1); | |
7879 | ||
7880 | wxPyEndAllowThreads(__tstate); | |
7881 | if (PyErr_Occurred()) SWIG_fail; | |
7882 | } | |
7883 | Py_INCREF(Py_None); resultobj = Py_None; | |
7884 | return resultobj; | |
7885 | fail: | |
7886 | return NULL; | |
7887 | } | |
7888 | ||
7889 | ||
7890 | static PyObject * Log_swigregister(PyObject *self, PyObject *args) { | |
7891 | PyObject *obj; | |
7892 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7893 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
7894 | Py_INCREF(obj); | |
7895 | return Py_BuildValue((char *)""); | |
7896 | } | |
7897 | static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7898 | PyObject *resultobj; | |
7899 | wxLogStderr *result; | |
7900 | char *kwnames[] = { | |
7901 | NULL | |
7902 | }; | |
7903 | ||
7904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
7905 | { | |
7906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7907 | result = (wxLogStderr *)new wxLogStderr(); | |
7908 | ||
7909 | wxPyEndAllowThreads(__tstate); | |
7910 | if (PyErr_Occurred()) SWIG_fail; | |
7911 | } | |
15afbcd0 | 7912 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1); |
d14a1e28 RD |
7913 | return resultobj; |
7914 | fail: | |
7915 | return NULL; | |
7916 | } | |
7917 | ||
7918 | ||
7919 | static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) { | |
7920 | PyObject *obj; | |
7921 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7922 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
7923 | Py_INCREF(obj); | |
7924 | return Py_BuildValue((char *)""); | |
7925 | } | |
7926 | static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7927 | PyObject *resultobj; | |
7928 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7929 | wxLogTextCtrl *result; | |
7930 | PyObject * obj0 = 0 ; | |
7931 | char *kwnames[] = { | |
7932 | (char *) "pTextCtrl", NULL | |
7933 | }; | |
7934 | ||
7935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7938 | { |
7939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7940 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
7941 | ||
7942 | wxPyEndAllowThreads(__tstate); | |
7943 | if (PyErr_Occurred()) SWIG_fail; | |
7944 | } | |
15afbcd0 | 7945 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1); |
d14a1e28 RD |
7946 | return resultobj; |
7947 | fail: | |
7948 | return NULL; | |
7949 | } | |
7950 | ||
7951 | ||
7952 | static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) { | |
7953 | PyObject *obj; | |
7954 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7955 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
7956 | Py_INCREF(obj); | |
7957 | return Py_BuildValue((char *)""); | |
7958 | } | |
7959 | static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7960 | PyObject *resultobj; | |
7961 | wxLogGui *result; | |
7962 | char *kwnames[] = { | |
7963 | NULL | |
7964 | }; | |
7965 | ||
7966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
7967 | { | |
7968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7969 | result = (wxLogGui *)new wxLogGui(); | |
7970 | ||
7971 | wxPyEndAllowThreads(__tstate); | |
7972 | if (PyErr_Occurred()) SWIG_fail; | |
7973 | } | |
15afbcd0 | 7974 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1); |
d14a1e28 RD |
7975 | return resultobj; |
7976 | fail: | |
7977 | return NULL; | |
7978 | } | |
7979 | ||
7980 | ||
7981 | static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) { | |
7982 | PyObject *obj; | |
7983 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7984 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
7985 | Py_INCREF(obj); | |
7986 | return Py_BuildValue((char *)""); | |
7987 | } | |
7988 | static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7989 | PyObject *resultobj; | |
7990 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7991 | wxString *arg2 = 0 ; | |
e811c8ce RD |
7992 | bool arg3 = (bool) True ; |
7993 | bool arg4 = (bool) True ; | |
d14a1e28 | 7994 | wxLogWindow *result; |
e811c8ce | 7995 | bool temp2 = False ; |
d14a1e28 RD |
7996 | PyObject * obj0 = 0 ; |
7997 | PyObject * obj1 = 0 ; | |
7998 | PyObject * obj2 = 0 ; | |
7999 | PyObject * obj3 = 0 ; | |
8000 | char *kwnames[] = { | |
8001 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
8002 | }; | |
8003 | ||
8004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
8005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, |
8006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8007 | { |
8008 | arg2 = wxString_in_helper(obj1); | |
8009 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8010 | temp2 = True; |
d14a1e28 RD |
8011 | } |
8012 | if (obj2) { | |
15afbcd0 RD |
8013 | arg3 = (bool) SWIG_AsBool(obj2); |
8014 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8015 | } |
8016 | if (obj3) { | |
15afbcd0 RD |
8017 | arg4 = (bool) SWIG_AsBool(obj3); |
8018 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8019 | } |
8020 | { | |
8021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8022 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
8023 | ||
8024 | wxPyEndAllowThreads(__tstate); | |
8025 | if (PyErr_Occurred()) SWIG_fail; | |
8026 | } | |
15afbcd0 | 8027 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1); |
d14a1e28 RD |
8028 | { |
8029 | if (temp2) | |
8030 | delete arg2; | |
8031 | } | |
8032 | return resultobj; | |
8033 | fail: | |
8034 | { | |
8035 | if (temp2) | |
8036 | delete arg2; | |
8037 | } | |
8038 | return NULL; | |
8039 | } | |
8040 | ||
8041 | ||
8042 | static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8043 | PyObject *resultobj; | |
8044 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
e811c8ce | 8045 | bool arg2 = (bool) True ; |
d14a1e28 RD |
8046 | PyObject * obj0 = 0 ; |
8047 | PyObject * obj1 = 0 ; | |
8048 | char *kwnames[] = { | |
8049 | (char *) "self",(char *) "bShow", NULL | |
8050 | }; | |
8051 | ||
8052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
8054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 8055 | if (obj1) { |
15afbcd0 RD |
8056 | arg2 = (bool) SWIG_AsBool(obj1); |
8057 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8058 | } |
8059 | { | |
8060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8061 | (arg1)->Show(arg2); | |
8062 | ||
8063 | wxPyEndAllowThreads(__tstate); | |
8064 | if (PyErr_Occurred()) SWIG_fail; | |
8065 | } | |
8066 | Py_INCREF(Py_None); resultobj = Py_None; | |
8067 | return resultobj; | |
8068 | fail: | |
8069 | return NULL; | |
8070 | } | |
8071 | ||
8072 | ||
8073 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8074 | PyObject *resultobj; | |
8075 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8076 | wxFrame *result; | |
8077 | PyObject * obj0 = 0 ; | |
8078 | char *kwnames[] = { | |
8079 | (char *) "self", NULL | |
8080 | }; | |
8081 | ||
8082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
8084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8085 | { |
8086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8087 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
8088 | ||
8089 | wxPyEndAllowThreads(__tstate); | |
8090 | if (PyErr_Occurred()) SWIG_fail; | |
8091 | } | |
8092 | { | |
412d302d | 8093 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
8094 | } |
8095 | return resultobj; | |
8096 | fail: | |
8097 | return NULL; | |
8098 | } | |
8099 | ||
8100 | ||
8101 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8102 | PyObject *resultobj; | |
8103 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8104 | wxLog *result; | |
8105 | PyObject * obj0 = 0 ; | |
8106 | char *kwnames[] = { | |
8107 | (char *) "self", NULL | |
8108 | }; | |
8109 | ||
8110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
8112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8113 | { |
8114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8115 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
8116 | ||
8117 | wxPyEndAllowThreads(__tstate); | |
8118 | if (PyErr_Occurred()) SWIG_fail; | |
8119 | } | |
15afbcd0 | 8120 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
8121 | return resultobj; |
8122 | fail: | |
8123 | return NULL; | |
8124 | } | |
8125 | ||
8126 | ||
8127 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8128 | PyObject *resultobj; | |
8129 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8130 | bool result; | |
8131 | PyObject * obj0 = 0 ; | |
8132 | char *kwnames[] = { | |
8133 | (char *) "self", NULL | |
8134 | }; | |
8135 | ||
8136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
8138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8139 | { |
8140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8141 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
8142 | ||
8143 | wxPyEndAllowThreads(__tstate); | |
8144 | if (PyErr_Occurred()) SWIG_fail; | |
8145 | } | |
4f89f6a3 RD |
8146 | { |
8147 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8148 | } | |
d14a1e28 RD |
8149 | return resultobj; |
8150 | fail: | |
8151 | return NULL; | |
8152 | } | |
8153 | ||
8154 | ||
8155 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8156 | PyObject *resultobj; | |
8157 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8158 | bool arg2 ; | |
8159 | PyObject * obj0 = 0 ; | |
8160 | PyObject * obj1 = 0 ; | |
8161 | char *kwnames[] = { | |
8162 | (char *) "self",(char *) "bDoPass", NULL | |
8163 | }; | |
8164 | ||
8165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
8167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8168 | arg2 = (bool) SWIG_AsBool(obj1); | |
8169 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8170 | { |
8171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8172 | (arg1)->PassMessages(arg2); | |
8173 | ||
8174 | wxPyEndAllowThreads(__tstate); | |
8175 | if (PyErr_Occurred()) SWIG_fail; | |
8176 | } | |
8177 | Py_INCREF(Py_None); resultobj = Py_None; | |
8178 | return resultobj; | |
8179 | fail: | |
8180 | return NULL; | |
8181 | } | |
8182 | ||
8183 | ||
8184 | static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) { | |
8185 | PyObject *obj; | |
8186 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8187 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
8188 | Py_INCREF(obj); | |
8189 | return Py_BuildValue((char *)""); | |
8190 | } | |
8191 | static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8192 | PyObject *resultobj; | |
8193 | wxLog *arg1 = (wxLog *) 0 ; | |
8194 | wxLogChain *result; | |
8195 | PyObject * obj0 = 0 ; | |
8196 | char *kwnames[] = { | |
8197 | (char *) "logger", NULL | |
8198 | }; | |
8199 | ||
8200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
8202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8203 | { |
8204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8205 | result = (wxLogChain *)new wxLogChain(arg1); | |
8206 | ||
8207 | wxPyEndAllowThreads(__tstate); | |
8208 | if (PyErr_Occurred()) SWIG_fail; | |
8209 | } | |
15afbcd0 | 8210 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1); |
d14a1e28 RD |
8211 | return resultobj; |
8212 | fail: | |
8213 | return NULL; | |
8214 | } | |
8215 | ||
8216 | ||
8217 | static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8218 | PyObject *resultobj; | |
8219 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8220 | wxLog *arg2 = (wxLog *) 0 ; | |
8221 | PyObject * obj0 = 0 ; | |
8222 | PyObject * obj1 = 0 ; | |
8223 | char *kwnames[] = { | |
8224 | (char *) "self",(char *) "logger", NULL | |
8225 | }; | |
8226 | ||
8227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
8229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8230 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog, | |
8231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8232 | { |
8233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8234 | (arg1)->SetLog(arg2); | |
8235 | ||
8236 | wxPyEndAllowThreads(__tstate); | |
8237 | if (PyErr_Occurred()) SWIG_fail; | |
8238 | } | |
8239 | Py_INCREF(Py_None); resultobj = Py_None; | |
8240 | return resultobj; | |
8241 | fail: | |
8242 | return NULL; | |
8243 | } | |
8244 | ||
8245 | ||
8246 | static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8247 | PyObject *resultobj; | |
8248 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8249 | bool arg2 ; | |
8250 | PyObject * obj0 = 0 ; | |
8251 | PyObject * obj1 = 0 ; | |
8252 | char *kwnames[] = { | |
8253 | (char *) "self",(char *) "bDoPass", NULL | |
8254 | }; | |
8255 | ||
8256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
8258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8259 | arg2 = (bool) SWIG_AsBool(obj1); | |
8260 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8261 | { |
8262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8263 | (arg1)->PassMessages(arg2); | |
8264 | ||
8265 | wxPyEndAllowThreads(__tstate); | |
8266 | if (PyErr_Occurred()) SWIG_fail; | |
8267 | } | |
8268 | Py_INCREF(Py_None); resultobj = Py_None; | |
8269 | return resultobj; | |
8270 | fail: | |
8271 | return NULL; | |
8272 | } | |
8273 | ||
8274 | ||
8275 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8276 | PyObject *resultobj; | |
8277 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8278 | bool result; | |
8279 | PyObject * obj0 = 0 ; | |
8280 | char *kwnames[] = { | |
8281 | (char *) "self", NULL | |
8282 | }; | |
8283 | ||
8284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
8286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8287 | { |
8288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8289 | result = (bool)(arg1)->IsPassingMessages(); | |
8290 | ||
8291 | wxPyEndAllowThreads(__tstate); | |
8292 | if (PyErr_Occurred()) SWIG_fail; | |
8293 | } | |
4f89f6a3 RD |
8294 | { |
8295 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8296 | } | |
d14a1e28 RD |
8297 | return resultobj; |
8298 | fail: | |
8299 | return NULL; | |
8300 | } | |
8301 | ||
8302 | ||
8303 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8304 | PyObject *resultobj; | |
8305 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8306 | wxLog *result; | |
8307 | PyObject * obj0 = 0 ; | |
8308 | char *kwnames[] = { | |
8309 | (char *) "self", NULL | |
8310 | }; | |
8311 | ||
8312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
8314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8315 | { |
8316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8317 | result = (wxLog *)(arg1)->GetOldLog(); | |
8318 | ||
8319 | wxPyEndAllowThreads(__tstate); | |
8320 | if (PyErr_Occurred()) SWIG_fail; | |
8321 | } | |
15afbcd0 | 8322 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
8323 | return resultobj; |
8324 | fail: | |
8325 | return NULL; | |
8326 | } | |
8327 | ||
8328 | ||
8329 | static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) { | |
8330 | PyObject *obj; | |
8331 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8332 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
8333 | Py_INCREF(obj); | |
8334 | return Py_BuildValue((char *)""); | |
8335 | } | |
8336 | static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8337 | PyObject *resultobj; | |
8338 | unsigned long result; | |
8339 | char *kwnames[] = { | |
8340 | NULL | |
8341 | }; | |
8342 | ||
8343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
8344 | { | |
8345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8346 | result = (unsigned long)wxSysErrorCode(); | |
8347 | ||
8348 | wxPyEndAllowThreads(__tstate); | |
8349 | if (PyErr_Occurred()) SWIG_fail; | |
8350 | } | |
15afbcd0 | 8351 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
8352 | return resultobj; |
8353 | fail: | |
8354 | return NULL; | |
8355 | } | |
8356 | ||
8357 | ||
8358 | static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8359 | PyObject *resultobj; | |
8360 | unsigned long arg1 = (unsigned long) 0 ; | |
8361 | wxString result; | |
8362 | PyObject * obj0 = 0 ; | |
8363 | char *kwnames[] = { | |
8364 | (char *) "nErrCode", NULL | |
8365 | }; | |
8366 | ||
8367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
8368 | if (obj0) { | |
15afbcd0 RD |
8369 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
8370 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8371 | } |
8372 | { | |
8373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8374 | result = wxSysErrorMsg(arg1); | |
8375 | ||
8376 | wxPyEndAllowThreads(__tstate); | |
8377 | if (PyErr_Occurred()) SWIG_fail; | |
8378 | } | |
8379 | { | |
8380 | #if wxUSE_UNICODE | |
8381 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8382 | #else | |
8383 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8384 | #endif | |
8385 | } | |
8386 | return resultobj; | |
8387 | fail: | |
8388 | return NULL; | |
8389 | } | |
8390 | ||
8391 | ||
8392 | static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8393 | PyObject *resultobj; | |
8394 | wxString *arg1 = 0 ; | |
e811c8ce | 8395 | bool temp1 = False ; |
d14a1e28 RD |
8396 | PyObject * obj0 = 0 ; |
8397 | char *kwnames[] = { | |
8398 | (char *) "msg", NULL | |
8399 | }; | |
8400 | ||
8401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
8402 | { | |
8403 | arg1 = wxString_in_helper(obj0); | |
8404 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8405 | temp1 = True; |
d14a1e28 RD |
8406 | } |
8407 | { | |
8408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8409 | wxLogFatalError((wxString const &)*arg1); | |
8410 | ||
8411 | wxPyEndAllowThreads(__tstate); | |
8412 | if (PyErr_Occurred()) SWIG_fail; | |
8413 | } | |
8414 | Py_INCREF(Py_None); resultobj = Py_None; | |
8415 | { | |
8416 | if (temp1) | |
8417 | delete arg1; | |
8418 | } | |
8419 | return resultobj; | |
8420 | fail: | |
8421 | { | |
8422 | if (temp1) | |
8423 | delete arg1; | |
8424 | } | |
8425 | return NULL; | |
8426 | } | |
8427 | ||
8428 | ||
8429 | static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8430 | PyObject *resultobj; | |
8431 | wxString *arg1 = 0 ; | |
e811c8ce | 8432 | bool temp1 = False ; |
d14a1e28 RD |
8433 | PyObject * obj0 = 0 ; |
8434 | char *kwnames[] = { | |
8435 | (char *) "msg", NULL | |
8436 | }; | |
8437 | ||
8438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
8439 | { | |
8440 | arg1 = wxString_in_helper(obj0); | |
8441 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8442 | temp1 = True; |
d14a1e28 RD |
8443 | } |
8444 | { | |
8445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8446 | wxLogError((wxString const &)*arg1); | |
8447 | ||
8448 | wxPyEndAllowThreads(__tstate); | |
8449 | if (PyErr_Occurred()) SWIG_fail; | |
8450 | } | |
8451 | Py_INCREF(Py_None); resultobj = Py_None; | |
8452 | { | |
8453 | if (temp1) | |
8454 | delete arg1; | |
8455 | } | |
8456 | return resultobj; | |
8457 | fail: | |
8458 | { | |
8459 | if (temp1) | |
8460 | delete arg1; | |
8461 | } | |
8462 | return NULL; | |
8463 | } | |
8464 | ||
8465 | ||
8466 | static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8467 | PyObject *resultobj; | |
8468 | wxString *arg1 = 0 ; | |
e811c8ce | 8469 | bool temp1 = False ; |
d14a1e28 RD |
8470 | PyObject * obj0 = 0 ; |
8471 | char *kwnames[] = { | |
8472 | (char *) "msg", NULL | |
8473 | }; | |
8474 | ||
8475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
8476 | { | |
8477 | arg1 = wxString_in_helper(obj0); | |
8478 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8479 | temp1 = True; |
d14a1e28 RD |
8480 | } |
8481 | { | |
8482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8483 | wxLogWarning((wxString const &)*arg1); | |
8484 | ||
8485 | wxPyEndAllowThreads(__tstate); | |
8486 | if (PyErr_Occurred()) SWIG_fail; | |
8487 | } | |
8488 | Py_INCREF(Py_None); resultobj = Py_None; | |
8489 | { | |
8490 | if (temp1) | |
8491 | delete arg1; | |
8492 | } | |
8493 | return resultobj; | |
8494 | fail: | |
8495 | { | |
8496 | if (temp1) | |
8497 | delete arg1; | |
8498 | } | |
8499 | return NULL; | |
8500 | } | |
8501 | ||
8502 | ||
8503 | static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8504 | PyObject *resultobj; | |
8505 | wxString *arg1 = 0 ; | |
e811c8ce | 8506 | bool temp1 = False ; |
d14a1e28 RD |
8507 | PyObject * obj0 = 0 ; |
8508 | char *kwnames[] = { | |
8509 | (char *) "msg", NULL | |
8510 | }; | |
8511 | ||
8512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
8513 | { | |
8514 | arg1 = wxString_in_helper(obj0); | |
8515 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8516 | temp1 = True; |
d14a1e28 RD |
8517 | } |
8518 | { | |
8519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8520 | wxLogMessage((wxString const &)*arg1); | |
8521 | ||
8522 | wxPyEndAllowThreads(__tstate); | |
8523 | if (PyErr_Occurred()) SWIG_fail; | |
8524 | } | |
8525 | Py_INCREF(Py_None); resultobj = Py_None; | |
8526 | { | |
8527 | if (temp1) | |
8528 | delete arg1; | |
8529 | } | |
8530 | return resultobj; | |
8531 | fail: | |
8532 | { | |
8533 | if (temp1) | |
8534 | delete arg1; | |
8535 | } | |
8536 | return NULL; | |
8537 | } | |
8538 | ||
8539 | ||
8540 | static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8541 | PyObject *resultobj; | |
8542 | wxString *arg1 = 0 ; | |
e811c8ce | 8543 | bool temp1 = False ; |
d14a1e28 RD |
8544 | PyObject * obj0 = 0 ; |
8545 | char *kwnames[] = { | |
8546 | (char *) "msg", NULL | |
8547 | }; | |
8548 | ||
8549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
8550 | { | |
8551 | arg1 = wxString_in_helper(obj0); | |
8552 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8553 | temp1 = True; |
d14a1e28 RD |
8554 | } |
8555 | { | |
8556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8557 | wxLogInfo((wxString const &)*arg1); | |
8558 | ||
8559 | wxPyEndAllowThreads(__tstate); | |
8560 | if (PyErr_Occurred()) SWIG_fail; | |
8561 | } | |
8562 | Py_INCREF(Py_None); resultobj = Py_None; | |
8563 | { | |
8564 | if (temp1) | |
8565 | delete arg1; | |
8566 | } | |
8567 | return resultobj; | |
8568 | fail: | |
8569 | { | |
8570 | if (temp1) | |
8571 | delete arg1; | |
8572 | } | |
8573 | return NULL; | |
8574 | } | |
8575 | ||
8576 | ||
8577 | static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8578 | PyObject *resultobj; | |
8579 | wxString *arg1 = 0 ; | |
e811c8ce | 8580 | bool temp1 = False ; |
d14a1e28 RD |
8581 | PyObject * obj0 = 0 ; |
8582 | char *kwnames[] = { | |
8583 | (char *) "msg", NULL | |
8584 | }; | |
8585 | ||
8586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
8587 | { | |
8588 | arg1 = wxString_in_helper(obj0); | |
8589 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8590 | temp1 = True; |
d14a1e28 RD |
8591 | } |
8592 | { | |
8593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8594 | wxLogDebug((wxString const &)*arg1); | |
8595 | ||
8596 | wxPyEndAllowThreads(__tstate); | |
8597 | if (PyErr_Occurred()) SWIG_fail; | |
8598 | } | |
8599 | Py_INCREF(Py_None); resultobj = Py_None; | |
8600 | { | |
8601 | if (temp1) | |
8602 | delete arg1; | |
8603 | } | |
8604 | return resultobj; | |
8605 | fail: | |
8606 | { | |
8607 | if (temp1) | |
8608 | delete arg1; | |
8609 | } | |
8610 | return NULL; | |
8611 | } | |
8612 | ||
8613 | ||
8614 | static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8615 | PyObject *resultobj; | |
8616 | wxString *arg1 = 0 ; | |
e811c8ce | 8617 | bool temp1 = False ; |
d14a1e28 RD |
8618 | PyObject * obj0 = 0 ; |
8619 | char *kwnames[] = { | |
8620 | (char *) "msg", NULL | |
8621 | }; | |
8622 | ||
8623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
8624 | { | |
8625 | arg1 = wxString_in_helper(obj0); | |
8626 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8627 | temp1 = True; |
d14a1e28 RD |
8628 | } |
8629 | { | |
8630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8631 | wxLogVerbose((wxString const &)*arg1); | |
8632 | ||
8633 | wxPyEndAllowThreads(__tstate); | |
8634 | if (PyErr_Occurred()) SWIG_fail; | |
8635 | } | |
8636 | Py_INCREF(Py_None); resultobj = Py_None; | |
8637 | { | |
8638 | if (temp1) | |
8639 | delete arg1; | |
8640 | } | |
8641 | return resultobj; | |
8642 | fail: | |
8643 | { | |
8644 | if (temp1) | |
8645 | delete arg1; | |
8646 | } | |
8647 | return NULL; | |
8648 | } | |
8649 | ||
8650 | ||
8651 | static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8652 | PyObject *resultobj; | |
8653 | wxString *arg1 = 0 ; | |
e811c8ce | 8654 | bool temp1 = False ; |
d14a1e28 RD |
8655 | PyObject * obj0 = 0 ; |
8656 | char *kwnames[] = { | |
8657 | (char *) "msg", NULL | |
8658 | }; | |
8659 | ||
8660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
8661 | { | |
8662 | arg1 = wxString_in_helper(obj0); | |
8663 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8664 | temp1 = True; |
d14a1e28 RD |
8665 | } |
8666 | { | |
8667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8668 | wxLogStatus((wxString const &)*arg1); | |
8669 | ||
8670 | wxPyEndAllowThreads(__tstate); | |
8671 | if (PyErr_Occurred()) SWIG_fail; | |
8672 | } | |
8673 | Py_INCREF(Py_None); resultobj = Py_None; | |
8674 | { | |
8675 | if (temp1) | |
8676 | delete arg1; | |
8677 | } | |
8678 | return resultobj; | |
8679 | fail: | |
8680 | { | |
8681 | if (temp1) | |
8682 | delete arg1; | |
8683 | } | |
8684 | return NULL; | |
8685 | } | |
8686 | ||
8687 | ||
8688 | static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8689 | PyObject *resultobj; | |
8690 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8691 | wxString *arg2 = 0 ; | |
e811c8ce | 8692 | bool temp2 = False ; |
d14a1e28 RD |
8693 | PyObject * obj0 = 0 ; |
8694 | PyObject * obj1 = 0 ; | |
8695 | char *kwnames[] = { | |
8696 | (char *) "pFrame",(char *) "msg", NULL | |
8697 | }; | |
8698 | ||
8699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, |
8701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8702 | { |
8703 | arg2 = wxString_in_helper(obj1); | |
8704 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8705 | temp2 = True; |
d14a1e28 RD |
8706 | } |
8707 | { | |
8708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8709 | wxLogStatus(arg1,(wxString const &)*arg2); | |
8710 | ||
8711 | wxPyEndAllowThreads(__tstate); | |
8712 | if (PyErr_Occurred()) SWIG_fail; | |
8713 | } | |
8714 | Py_INCREF(Py_None); resultobj = Py_None; | |
8715 | { | |
8716 | if (temp2) | |
8717 | delete arg2; | |
8718 | } | |
8719 | return resultobj; | |
8720 | fail: | |
8721 | { | |
8722 | if (temp2) | |
8723 | delete arg2; | |
8724 | } | |
8725 | return NULL; | |
8726 | } | |
8727 | ||
8728 | ||
8729 | static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8730 | PyObject *resultobj; | |
8731 | wxString *arg1 = 0 ; | |
e811c8ce | 8732 | bool temp1 = False ; |
d14a1e28 RD |
8733 | PyObject * obj0 = 0 ; |
8734 | char *kwnames[] = { | |
8735 | (char *) "msg", NULL | |
8736 | }; | |
8737 | ||
8738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
8739 | { | |
8740 | arg1 = wxString_in_helper(obj0); | |
8741 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8742 | temp1 = True; |
d14a1e28 RD |
8743 | } |
8744 | { | |
8745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8746 | wxLogSysError((wxString const &)*arg1); | |
8747 | ||
8748 | wxPyEndAllowThreads(__tstate); | |
8749 | if (PyErr_Occurred()) SWIG_fail; | |
8750 | } | |
8751 | Py_INCREF(Py_None); resultobj = Py_None; | |
8752 | { | |
8753 | if (temp1) | |
8754 | delete arg1; | |
8755 | } | |
8756 | return resultobj; | |
8757 | fail: | |
8758 | { | |
8759 | if (temp1) | |
8760 | delete arg1; | |
8761 | } | |
8762 | return NULL; | |
8763 | } | |
8764 | ||
8765 | ||
cc6dd355 | 8766 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 | 8767 | PyObject *resultobj; |
cc6dd355 RD |
8768 | unsigned long arg1 ; |
8769 | wxString *arg2 = 0 ; | |
8770 | bool temp2 = False ; | |
d14a1e28 | 8771 | PyObject * obj0 = 0 ; |
cc6dd355 | 8772 | PyObject * obj1 = 0 ; |
d14a1e28 | 8773 | |
cc6dd355 | 8774 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8775 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
8776 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 8777 | { |
cc6dd355 RD |
8778 | arg2 = wxString_in_helper(obj1); |
8779 | if (arg2 == NULL) SWIG_fail; | |
8780 | temp2 = True; | |
d14a1e28 RD |
8781 | } |
8782 | { | |
8783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
cc6dd355 | 8784 | wxLogTrace(arg1,(wxString const &)*arg2); |
d14a1e28 RD |
8785 | |
8786 | wxPyEndAllowThreads(__tstate); | |
8787 | if (PyErr_Occurred()) SWIG_fail; | |
8788 | } | |
8789 | Py_INCREF(Py_None); resultobj = Py_None; | |
8790 | { | |
cc6dd355 RD |
8791 | if (temp2) |
8792 | delete arg2; | |
d14a1e28 RD |
8793 | } |
8794 | return resultobj; | |
8795 | fail: | |
8796 | { | |
cc6dd355 RD |
8797 | if (temp2) |
8798 | delete arg2; | |
d14a1e28 RD |
8799 | } |
8800 | return NULL; | |
8801 | } | |
8802 | ||
8803 | ||
cc6dd355 | 8804 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
8805 | PyObject *resultobj; |
8806 | wxString *arg1 = 0 ; | |
8807 | wxString *arg2 = 0 ; | |
e811c8ce RD |
8808 | bool temp1 = False ; |
8809 | bool temp2 = False ; | |
d14a1e28 RD |
8810 | PyObject * obj0 = 0 ; |
8811 | PyObject * obj1 = 0 ; | |
d14a1e28 | 8812 | |
cc6dd355 | 8813 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
8814 | { |
8815 | arg1 = wxString_in_helper(obj0); | |
8816 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8817 | temp1 = True; |
d14a1e28 RD |
8818 | } |
8819 | { | |
8820 | arg2 = wxString_in_helper(obj1); | |
8821 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8822 | temp2 = True; |
d14a1e28 RD |
8823 | } |
8824 | { | |
8825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8826 | wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); | |
8827 | ||
8828 | wxPyEndAllowThreads(__tstate); | |
8829 | if (PyErr_Occurred()) SWIG_fail; | |
8830 | } | |
8831 | Py_INCREF(Py_None); resultobj = Py_None; | |
8832 | { | |
8833 | if (temp1) | |
8834 | delete arg1; | |
8835 | } | |
8836 | { | |
8837 | if (temp2) | |
8838 | delete arg2; | |
8839 | } | |
8840 | return resultobj; | |
8841 | fail: | |
8842 | { | |
8843 | if (temp1) | |
8844 | delete arg1; | |
8845 | } | |
8846 | { | |
8847 | if (temp2) | |
8848 | delete arg2; | |
8849 | } | |
8850 | return NULL; | |
8851 | } | |
8852 | ||
8853 | ||
cc6dd355 RD |
8854 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { |
8855 | int argc; | |
8856 | PyObject *argv[3]; | |
8857 | int ii; | |
8858 | ||
8859 | argc = PyObject_Length(args); | |
8860 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
8861 | argv[ii] = PyTuple_GetItem(args,ii); | |
8862 | } | |
8863 | if (argc == 2) { | |
8864 | int _v; | |
8865 | { | |
4d5c3d91 | 8866 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
cc6dd355 RD |
8867 | } |
8868 | if (_v) { | |
8869 | { | |
4d5c3d91 | 8870 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
cc6dd355 RD |
8871 | } |
8872 | if (_v) { | |
8873 | return _wrap_LogTrace__SWIG_1(self,args); | |
8874 | } | |
8875 | } | |
8876 | } | |
8877 | if (argc == 2) { | |
8878 | int _v; | |
15afbcd0 | 8879 | _v = SWIG_CheckUnsignedLong(argv[0]); |
cc6dd355 RD |
8880 | if (_v) { |
8881 | { | |
4d5c3d91 | 8882 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
cc6dd355 RD |
8883 | } |
8884 | if (_v) { | |
8885 | return _wrap_LogTrace__SWIG_0(self,args); | |
8886 | } | |
8887 | } | |
8888 | } | |
8889 | ||
8890 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
8891 | return NULL; | |
8892 | } | |
8893 | ||
8894 | ||
d14a1e28 RD |
8895 | static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { |
8896 | PyObject *resultobj; | |
8897 | unsigned long arg1 ; | |
8898 | wxString *arg2 = 0 ; | |
e811c8ce | 8899 | bool temp2 = False ; |
d14a1e28 RD |
8900 | PyObject * obj0 = 0 ; |
8901 | PyObject * obj1 = 0 ; | |
8902 | char *kwnames[] = { | |
8903 | (char *) "level",(char *) "msg", NULL | |
8904 | }; | |
8905 | ||
8906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8907 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
8908 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8909 | { |
8910 | arg2 = wxString_in_helper(obj1); | |
8911 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8912 | temp2 = True; |
d14a1e28 RD |
8913 | } |
8914 | { | |
8915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8916 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
8917 | ||
8918 | wxPyEndAllowThreads(__tstate); | |
8919 | if (PyErr_Occurred()) SWIG_fail; | |
8920 | } | |
8921 | Py_INCREF(Py_None); resultobj = Py_None; | |
8922 | { | |
8923 | if (temp2) | |
8924 | delete arg2; | |
8925 | } | |
8926 | return resultobj; | |
8927 | fail: | |
8928 | { | |
8929 | if (temp2) | |
8930 | delete arg2; | |
8931 | } | |
8932 | return NULL; | |
8933 | } | |
8934 | ||
8935 | ||
8936 | static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8937 | PyObject *resultobj; | |
8938 | wxString *arg1 = 0 ; | |
8939 | wxString *arg2 = 0 ; | |
e811c8ce RD |
8940 | bool temp1 = False ; |
8941 | bool temp2 = False ; | |
d14a1e28 RD |
8942 | PyObject * obj0 = 0 ; |
8943 | PyObject * obj1 = 0 ; | |
8944 | char *kwnames[] = { | |
8945 | (char *) "title",(char *) "text", NULL | |
8946 | }; | |
8947 | ||
8948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
8949 | { | |
8950 | arg1 = wxString_in_helper(obj0); | |
8951 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8952 | temp1 = True; |
d14a1e28 RD |
8953 | } |
8954 | { | |
8955 | arg2 = wxString_in_helper(obj1); | |
8956 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8957 | temp2 = True; |
d14a1e28 RD |
8958 | } |
8959 | { | |
8960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8961 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
8962 | ||
8963 | wxPyEndAllowThreads(__tstate); | |
8964 | if (PyErr_Occurred()) SWIG_fail; | |
8965 | } | |
8966 | Py_INCREF(Py_None); resultobj = Py_None; | |
8967 | { | |
8968 | if (temp1) | |
8969 | delete arg1; | |
8970 | } | |
8971 | { | |
8972 | if (temp2) | |
8973 | delete arg2; | |
8974 | } | |
8975 | return resultobj; | |
8976 | fail: | |
8977 | { | |
8978 | if (temp1) | |
8979 | delete arg1; | |
8980 | } | |
8981 | { | |
8982 | if (temp2) | |
8983 | delete arg2; | |
8984 | } | |
8985 | return NULL; | |
8986 | } | |
8987 | ||
8988 | ||
8989 | static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8990 | PyObject *resultobj; | |
8991 | wxLogNull *result; | |
8992 | char *kwnames[] = { | |
8993 | NULL | |
8994 | }; | |
8995 | ||
8996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
8997 | { | |
8998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8999 | result = (wxLogNull *)new wxLogNull(); | |
9000 | ||
9001 | wxPyEndAllowThreads(__tstate); | |
9002 | if (PyErr_Occurred()) SWIG_fail; | |
9003 | } | |
15afbcd0 | 9004 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1); |
d14a1e28 RD |
9005 | return resultobj; |
9006 | fail: | |
9007 | return NULL; | |
9008 | } | |
9009 | ||
9010 | ||
9011 | static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9012 | PyObject *resultobj; | |
9013 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
9014 | PyObject * obj0 = 0 ; | |
9015 | char *kwnames[] = { | |
9016 | (char *) "self", NULL | |
9017 | }; | |
9018 | ||
9019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull, |
9021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9022 | { |
9023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9024 | delete arg1; | |
9025 | ||
9026 | wxPyEndAllowThreads(__tstate); | |
9027 | if (PyErr_Occurred()) SWIG_fail; | |
9028 | } | |
9029 | Py_INCREF(Py_None); resultobj = Py_None; | |
9030 | return resultobj; | |
9031 | fail: | |
9032 | return NULL; | |
9033 | } | |
9034 | ||
9035 | ||
9036 | static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) { | |
9037 | PyObject *obj; | |
9038 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9039 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
9040 | Py_INCREF(obj); | |
9041 | return Py_BuildValue((char *)""); | |
9042 | } | |
9043 | static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9044 | PyObject *resultobj; | |
9045 | wxPyLog *result; | |
9046 | char *kwnames[] = { | |
9047 | NULL | |
9048 | }; | |
9049 | ||
9050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
9051 | { | |
9052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9053 | result = (wxPyLog *)new wxPyLog(); | |
9054 | ||
9055 | wxPyEndAllowThreads(__tstate); | |
9056 | if (PyErr_Occurred()) SWIG_fail; | |
9057 | } | |
15afbcd0 | 9058 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1); |
d14a1e28 RD |
9059 | return resultobj; |
9060 | fail: | |
9061 | return NULL; | |
9062 | } | |
9063 | ||
9064 | ||
9065 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9066 | PyObject *resultobj; | |
9067 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
9068 | PyObject *arg2 = (PyObject *) 0 ; | |
9069 | PyObject *arg3 = (PyObject *) 0 ; | |
9070 | PyObject * obj0 = 0 ; | |
9071 | PyObject * obj1 = 0 ; | |
9072 | PyObject * obj2 = 0 ; | |
9073 | char *kwnames[] = { | |
9074 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9075 | }; | |
9076 | ||
9077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
9078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog, |
9079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9080 | arg2 = obj1; |
9081 | arg3 = obj2; | |
9082 | { | |
9083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9084 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9085 | ||
9086 | wxPyEndAllowThreads(__tstate); | |
9087 | if (PyErr_Occurred()) SWIG_fail; | |
9088 | } | |
9089 | Py_INCREF(Py_None); resultobj = Py_None; | |
9090 | return resultobj; | |
9091 | fail: | |
9092 | return NULL; | |
9093 | } | |
9094 | ||
9095 | ||
9096 | static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) { | |
9097 | PyObject *obj; | |
9098 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9099 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
9100 | Py_INCREF(obj); | |
9101 | return Py_BuildValue((char *)""); | |
9102 | } | |
9103 | static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9104 | PyObject *resultobj; | |
9105 | int arg1 ; | |
9106 | int arg2 = (int) wxSIGTERM ; | |
9107 | int result; | |
994141e6 RD |
9108 | PyObject * obj0 = 0 ; |
9109 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
9110 | char *kwnames[] = { |
9111 | (char *) "pid",(char *) "sig", NULL | |
9112 | }; | |
9113 | ||
994141e6 | 9114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9115 | arg1 = (int) SWIG_AsInt(obj0); |
9116 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9117 | if (obj1) { |
15afbcd0 RD |
9118 | arg2 = (wxSignal) SWIG_AsInt(obj1); |
9119 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9120 | } |
d14a1e28 RD |
9121 | { |
9122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9123 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
9124 | ||
9125 | wxPyEndAllowThreads(__tstate); | |
9126 | if (PyErr_Occurred()) SWIG_fail; | |
9127 | } | |
15afbcd0 | 9128 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9129 | return resultobj; |
9130 | fail: | |
9131 | return NULL; | |
9132 | } | |
9133 | ||
9134 | ||
9135 | static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9136 | PyObject *resultobj; | |
9137 | int arg1 ; | |
9138 | bool result; | |
994141e6 | 9139 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9140 | char *kwnames[] = { |
9141 | (char *) "pid", NULL | |
9142 | }; | |
9143 | ||
994141e6 | 9144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
9145 | arg1 = (int) SWIG_AsInt(obj0); |
9146 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9147 | { |
9148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9149 | result = (bool)wxPyProcess::Exists(arg1); | |
9150 | ||
9151 | wxPyEndAllowThreads(__tstate); | |
9152 | if (PyErr_Occurred()) SWIG_fail; | |
9153 | } | |
4f89f6a3 RD |
9154 | { |
9155 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9156 | } | |
d14a1e28 RD |
9157 | return resultobj; |
9158 | fail: | |
9159 | return NULL; | |
9160 | } | |
9161 | ||
9162 | ||
9163 | static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9164 | PyObject *resultobj; | |
9165 | wxString *arg1 = 0 ; | |
9166 | int arg2 = (int) wxEXEC_ASYNC ; | |
9167 | wxPyProcess *result; | |
e811c8ce | 9168 | bool temp1 = False ; |
d14a1e28 | 9169 | PyObject * obj0 = 0 ; |
994141e6 | 9170 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9171 | char *kwnames[] = { |
9172 | (char *) "cmd",(char *) "flags", NULL | |
9173 | }; | |
9174 | ||
994141e6 | 9175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
9176 | { |
9177 | arg1 = wxString_in_helper(obj0); | |
9178 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9179 | temp1 = True; |
d14a1e28 | 9180 | } |
994141e6 | 9181 | if (obj1) { |
15afbcd0 RD |
9182 | arg2 = (int) SWIG_AsInt(obj1); |
9183 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9184 | } |
d14a1e28 RD |
9185 | { |
9186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9187 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
9188 | ||
9189 | wxPyEndAllowThreads(__tstate); | |
9190 | if (PyErr_Occurred()) SWIG_fail; | |
9191 | } | |
15afbcd0 | 9192 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0); |
d14a1e28 RD |
9193 | { |
9194 | if (temp1) | |
9195 | delete arg1; | |
9196 | } | |
9197 | return resultobj; | |
9198 | fail: | |
9199 | { | |
9200 | if (temp1) | |
9201 | delete arg1; | |
9202 | } | |
9203 | return NULL; | |
9204 | } | |
9205 | ||
9206 | ||
9207 | static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9208 | PyObject *resultobj; | |
9209 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
9210 | int arg2 = (int) -1 ; | |
9211 | wxPyProcess *result; | |
9212 | PyObject * obj0 = 0 ; | |
994141e6 | 9213 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9214 | char *kwnames[] = { |
9215 | (char *) "parent",(char *) "id", NULL | |
9216 | }; | |
9217 | ||
994141e6 | 9218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9219 | if (obj0) { |
15afbcd0 RD |
9220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
9221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 9222 | } |
994141e6 | 9223 | if (obj1) { |
15afbcd0 RD |
9224 | arg2 = (int) SWIG_AsInt(obj1); |
9225 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9226 | } |
d14a1e28 RD |
9227 | { |
9228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9229 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
9230 | ||
9231 | wxPyEndAllowThreads(__tstate); | |
9232 | if (PyErr_Occurred()) SWIG_fail; | |
9233 | } | |
15afbcd0 | 9234 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1); |
d14a1e28 RD |
9235 | return resultobj; |
9236 | fail: | |
9237 | return NULL; | |
9238 | } | |
9239 | ||
9240 | ||
9241 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9242 | PyObject *resultobj; | |
9243 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9244 | PyObject *arg2 = (PyObject *) 0 ; | |
9245 | PyObject *arg3 = (PyObject *) 0 ; | |
9246 | PyObject * obj0 = 0 ; | |
9247 | PyObject * obj1 = 0 ; | |
9248 | PyObject * obj2 = 0 ; | |
9249 | char *kwnames[] = { | |
9250 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9251 | }; | |
9252 | ||
9253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
9254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9256 | arg2 = obj1; |
9257 | arg3 = obj2; | |
9258 | { | |
9259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9260 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9261 | ||
9262 | wxPyEndAllowThreads(__tstate); | |
9263 | if (PyErr_Occurred()) SWIG_fail; | |
9264 | } | |
9265 | Py_INCREF(Py_None); resultobj = Py_None; | |
9266 | return resultobj; | |
9267 | fail: | |
9268 | return NULL; | |
9269 | } | |
9270 | ||
9271 | ||
9272 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9273 | PyObject *resultobj; | |
9274 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9275 | int arg2 ; | |
9276 | int arg3 ; | |
9277 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9278 | PyObject * obj1 = 0 ; |
9279 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9280 | char *kwnames[] = { |
9281 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
9282 | }; | |
9283 | ||
994141e6 | 9284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9287 | arg2 = (int) SWIG_AsInt(obj1); | |
9288 | if (PyErr_Occurred()) SWIG_fail; | |
9289 | arg3 = (int) SWIG_AsInt(obj2); | |
9290 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9291 | { |
9292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9293 | (arg1)->base_OnTerminate(arg2,arg3); | |
9294 | ||
9295 | wxPyEndAllowThreads(__tstate); | |
9296 | if (PyErr_Occurred()) SWIG_fail; | |
9297 | } | |
9298 | Py_INCREF(Py_None); resultobj = Py_None; | |
9299 | return resultobj; | |
9300 | fail: | |
9301 | return NULL; | |
9302 | } | |
9303 | ||
9304 | ||
9305 | static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9306 | PyObject *resultobj; | |
9307 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9308 | PyObject * obj0 = 0 ; | |
9309 | char *kwnames[] = { | |
9310 | (char *) "self", NULL | |
9311 | }; | |
9312 | ||
9313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9316 | { |
9317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9318 | (arg1)->Redirect(); | |
9319 | ||
9320 | wxPyEndAllowThreads(__tstate); | |
9321 | if (PyErr_Occurred()) SWIG_fail; | |
9322 | } | |
9323 | Py_INCREF(Py_None); resultobj = Py_None; | |
9324 | return resultobj; | |
9325 | fail: | |
9326 | return NULL; | |
9327 | } | |
9328 | ||
9329 | ||
9330 | static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9331 | PyObject *resultobj; | |
9332 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9333 | bool result; | |
9334 | PyObject * obj0 = 0 ; | |
9335 | char *kwnames[] = { | |
9336 | (char *) "self", NULL | |
9337 | }; | |
9338 | ||
9339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9342 | { |
9343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9344 | result = (bool)(arg1)->IsRedirected(); | |
9345 | ||
9346 | wxPyEndAllowThreads(__tstate); | |
9347 | if (PyErr_Occurred()) SWIG_fail; | |
9348 | } | |
4f89f6a3 RD |
9349 | { |
9350 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9351 | } | |
d14a1e28 RD |
9352 | return resultobj; |
9353 | fail: | |
9354 | return NULL; | |
9355 | } | |
9356 | ||
9357 | ||
9358 | static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9359 | PyObject *resultobj; | |
9360 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9361 | PyObject * obj0 = 0 ; | |
9362 | char *kwnames[] = { | |
9363 | (char *) "self", NULL | |
9364 | }; | |
9365 | ||
9366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9369 | { |
9370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9371 | (arg1)->Detach(); | |
9372 | ||
9373 | wxPyEndAllowThreads(__tstate); | |
9374 | if (PyErr_Occurred()) SWIG_fail; | |
9375 | } | |
9376 | Py_INCREF(Py_None); resultobj = Py_None; | |
9377 | return resultobj; | |
9378 | fail: | |
9379 | return NULL; | |
9380 | } | |
9381 | ||
9382 | ||
9383 | static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9384 | PyObject *resultobj; | |
9385 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9386 | wxInputStream *result; | |
9387 | PyObject * obj0 = 0 ; | |
9388 | char *kwnames[] = { | |
9389 | (char *) "self", NULL | |
9390 | }; | |
9391 | ||
9392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9395 | { |
9396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9397 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
9398 | ||
9399 | wxPyEndAllowThreads(__tstate); | |
9400 | if (PyErr_Occurred()) SWIG_fail; | |
9401 | } | |
9402 | { | |
9403 | wxPyInputStream * _ptr = NULL; | |
9404 | ||
9405 | if (result) { | |
9406 | _ptr = new wxPyInputStream(result); | |
9407 | } | |
e811c8ce | 9408 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
9409 | } |
9410 | return resultobj; | |
9411 | fail: | |
9412 | return NULL; | |
9413 | } | |
9414 | ||
9415 | ||
9416 | static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9417 | PyObject *resultobj; | |
9418 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9419 | wxInputStream *result; | |
9420 | PyObject * obj0 = 0 ; | |
9421 | char *kwnames[] = { | |
9422 | (char *) "self", NULL | |
9423 | }; | |
9424 | ||
9425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9428 | { |
9429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9430 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
9431 | ||
9432 | wxPyEndAllowThreads(__tstate); | |
9433 | if (PyErr_Occurred()) SWIG_fail; | |
9434 | } | |
9435 | { | |
9436 | wxPyInputStream * _ptr = NULL; | |
9437 | ||
9438 | if (result) { | |
9439 | _ptr = new wxPyInputStream(result); | |
9440 | } | |
e811c8ce | 9441 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
9442 | } |
9443 | return resultobj; | |
9444 | fail: | |
9445 | return NULL; | |
9446 | } | |
9447 | ||
9448 | ||
9449 | static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9450 | PyObject *resultobj; | |
9451 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9452 | wxOutputStream *result; | |
9453 | PyObject * obj0 = 0 ; | |
9454 | char *kwnames[] = { | |
9455 | (char *) "self", NULL | |
9456 | }; | |
9457 | ||
9458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9461 | { |
9462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9463 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
9464 | ||
9465 | wxPyEndAllowThreads(__tstate); | |
9466 | if (PyErr_Occurred()) SWIG_fail; | |
9467 | } | |
15afbcd0 | 9468 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); |
d14a1e28 RD |
9469 | return resultobj; |
9470 | fail: | |
9471 | return NULL; | |
9472 | } | |
9473 | ||
9474 | ||
9475 | static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9476 | PyObject *resultobj; | |
9477 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9478 | PyObject * obj0 = 0 ; | |
9479 | char *kwnames[] = { | |
9480 | (char *) "self", NULL | |
9481 | }; | |
9482 | ||
9483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9486 | { |
9487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9488 | (arg1)->CloseOutput(); | |
9489 | ||
9490 | wxPyEndAllowThreads(__tstate); | |
9491 | if (PyErr_Occurred()) SWIG_fail; | |
9492 | } | |
9493 | Py_INCREF(Py_None); resultobj = Py_None; | |
9494 | return resultobj; | |
9495 | fail: | |
9496 | return NULL; | |
9497 | } | |
9498 | ||
9499 | ||
9500 | static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9501 | PyObject *resultobj; | |
9502 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9503 | bool result; | |
9504 | PyObject * obj0 = 0 ; | |
9505 | char *kwnames[] = { | |
9506 | (char *) "self", NULL | |
9507 | }; | |
9508 | ||
9509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9512 | { |
9513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9514 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
9515 | ||
9516 | wxPyEndAllowThreads(__tstate); | |
9517 | if (PyErr_Occurred()) SWIG_fail; | |
9518 | } | |
4f89f6a3 RD |
9519 | { |
9520 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9521 | } | |
d14a1e28 RD |
9522 | return resultobj; |
9523 | fail: | |
9524 | return NULL; | |
9525 | } | |
9526 | ||
9527 | ||
9528 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9529 | PyObject *resultobj; | |
9530 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9531 | bool result; | |
9532 | PyObject * obj0 = 0 ; | |
9533 | char *kwnames[] = { | |
9534 | (char *) "self", NULL | |
9535 | }; | |
9536 | ||
9537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9540 | { |
9541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9542 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
9543 | ||
9544 | wxPyEndAllowThreads(__tstate); | |
9545 | if (PyErr_Occurred()) SWIG_fail; | |
9546 | } | |
4f89f6a3 RD |
9547 | { |
9548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9549 | } | |
d14a1e28 RD |
9550 | return resultobj; |
9551 | fail: | |
9552 | return NULL; | |
9553 | } | |
9554 | ||
9555 | ||
9556 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9557 | PyObject *resultobj; | |
9558 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9559 | bool result; | |
9560 | PyObject * obj0 = 0 ; | |
9561 | char *kwnames[] = { | |
9562 | (char *) "self", NULL | |
9563 | }; | |
9564 | ||
9565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9568 | { |
9569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9570 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
9571 | ||
9572 | wxPyEndAllowThreads(__tstate); | |
9573 | if (PyErr_Occurred()) SWIG_fail; | |
9574 | } | |
4f89f6a3 RD |
9575 | { |
9576 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9577 | } | |
d14a1e28 RD |
9578 | return resultobj; |
9579 | fail: | |
9580 | return NULL; | |
9581 | } | |
9582 | ||
9583 | ||
9584 | static PyObject * Process_swigregister(PyObject *self, PyObject *args) { | |
9585 | PyObject *obj; | |
9586 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9587 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
9588 | Py_INCREF(obj); | |
9589 | return Py_BuildValue((char *)""); | |
9590 | } | |
9591 | static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9592 | PyObject *resultobj; | |
9593 | int arg1 = (int) 0 ; | |
9594 | int arg2 = (int) 0 ; | |
9595 | int arg3 = (int) 0 ; | |
9596 | wxProcessEvent *result; | |
994141e6 RD |
9597 | PyObject * obj0 = 0 ; |
9598 | PyObject * obj1 = 0 ; | |
9599 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9600 | char *kwnames[] = { |
9601 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
9602 | }; | |
9603 | ||
994141e6 RD |
9604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
9605 | if (obj0) { | |
15afbcd0 RD |
9606 | arg1 = (int) SWIG_AsInt(obj0); |
9607 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
9608 | } |
9609 | if (obj1) { | |
15afbcd0 RD |
9610 | arg2 = (int) SWIG_AsInt(obj1); |
9611 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
9612 | } |
9613 | if (obj2) { | |
15afbcd0 RD |
9614 | arg3 = (int) SWIG_AsInt(obj2); |
9615 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9616 | } |
d14a1e28 RD |
9617 | { |
9618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9619 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
9620 | ||
9621 | wxPyEndAllowThreads(__tstate); | |
9622 | if (PyErr_Occurred()) SWIG_fail; | |
9623 | } | |
15afbcd0 | 9624 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1); |
d14a1e28 RD |
9625 | return resultobj; |
9626 | fail: | |
9627 | return NULL; | |
9628 | } | |
9629 | ||
9630 | ||
9631 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9632 | PyObject *resultobj; | |
9633 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9634 | int result; | |
9635 | PyObject * obj0 = 0 ; | |
9636 | char *kwnames[] = { | |
9637 | (char *) "self", NULL | |
9638 | }; | |
9639 | ||
9640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9643 | { |
9644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9645 | result = (int)(arg1)->GetPid(); | |
9646 | ||
9647 | wxPyEndAllowThreads(__tstate); | |
9648 | if (PyErr_Occurred()) SWIG_fail; | |
9649 | } | |
15afbcd0 | 9650 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9651 | return resultobj; |
9652 | fail: | |
9653 | return NULL; | |
9654 | } | |
9655 | ||
9656 | ||
9657 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9658 | PyObject *resultobj; | |
9659 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9660 | int result; | |
9661 | PyObject * obj0 = 0 ; | |
9662 | char *kwnames[] = { | |
9663 | (char *) "self", NULL | |
9664 | }; | |
9665 | ||
9666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9669 | { |
9670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9671 | result = (int)(arg1)->GetExitCode(); | |
9672 | ||
9673 | wxPyEndAllowThreads(__tstate); | |
9674 | if (PyErr_Occurred()) SWIG_fail; | |
9675 | } | |
15afbcd0 | 9676 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9677 | return resultobj; |
9678 | fail: | |
9679 | return NULL; | |
9680 | } | |
9681 | ||
9682 | ||
9683 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9684 | PyObject *resultobj; | |
9685 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9686 | int arg2 ; | |
9687 | PyObject * obj0 = 0 ; | |
994141e6 | 9688 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9689 | char *kwnames[] = { |
9690 | (char *) "self",(char *) "m_pid", NULL | |
9691 | }; | |
9692 | ||
994141e6 | 9693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9696 | arg2 = (int) SWIG_AsInt(obj1); | |
9697 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9698 | if (arg1) (arg1)->m_pid = arg2; |
9699 | ||
9700 | Py_INCREF(Py_None); resultobj = Py_None; | |
9701 | return resultobj; | |
9702 | fail: | |
9703 | return NULL; | |
9704 | } | |
9705 | ||
9706 | ||
9707 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9708 | PyObject *resultobj; | |
9709 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9710 | int result; | |
9711 | PyObject * obj0 = 0 ; | |
9712 | char *kwnames[] = { | |
9713 | (char *) "self", NULL | |
9714 | }; | |
9715 | ||
9716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9719 | result = (int) ((arg1)->m_pid); |
9720 | ||
15afbcd0 | 9721 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9722 | return resultobj; |
9723 | fail: | |
9724 | return NULL; | |
9725 | } | |
9726 | ||
9727 | ||
9728 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9729 | PyObject *resultobj; | |
9730 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9731 | int arg2 ; | |
9732 | PyObject * obj0 = 0 ; | |
994141e6 | 9733 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9734 | char *kwnames[] = { |
9735 | (char *) "self",(char *) "m_exitcode", NULL | |
9736 | }; | |
9737 | ||
994141e6 | 9738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9741 | arg2 = (int) SWIG_AsInt(obj1); | |
9742 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9743 | if (arg1) (arg1)->m_exitcode = arg2; |
9744 | ||
9745 | Py_INCREF(Py_None); resultobj = Py_None; | |
9746 | return resultobj; | |
9747 | fail: | |
9748 | return NULL; | |
9749 | } | |
9750 | ||
9751 | ||
9752 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9753 | PyObject *resultobj; | |
9754 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9755 | int result; | |
9756 | PyObject * obj0 = 0 ; | |
9757 | char *kwnames[] = { | |
9758 | (char *) "self", NULL | |
9759 | }; | |
9760 | ||
9761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9764 | result = (int) ((arg1)->m_exitcode); |
9765 | ||
15afbcd0 | 9766 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9767 | return resultobj; |
9768 | fail: | |
9769 | return NULL; | |
9770 | } | |
9771 | ||
9772 | ||
9773 | static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) { | |
9774 | PyObject *obj; | |
9775 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9776 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
9777 | Py_INCREF(obj); | |
9778 | return Py_BuildValue((char *)""); | |
9779 | } | |
9780 | static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9781 | PyObject *resultobj; | |
9782 | wxString *arg1 = 0 ; | |
9783 | int arg2 = (int) wxEXEC_ASYNC ; | |
9784 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
9785 | long result; | |
e811c8ce | 9786 | bool temp1 = False ; |
d14a1e28 | 9787 | PyObject * obj0 = 0 ; |
994141e6 | 9788 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9789 | PyObject * obj2 = 0 ; |
9790 | char *kwnames[] = { | |
9791 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
9792 | }; | |
9793 | ||
994141e6 | 9794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
9795 | { |
9796 | arg1 = wxString_in_helper(obj0); | |
9797 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9798 | temp1 = True; |
d14a1e28 | 9799 | } |
994141e6 | 9800 | if (obj1) { |
15afbcd0 RD |
9801 | arg2 = (int) SWIG_AsInt(obj1); |
9802 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9803 | } |
d14a1e28 | 9804 | if (obj2) { |
15afbcd0 RD |
9805 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess, |
9806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9807 | } |
9808 | { | |
e3b71cb8 | 9809 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
9810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9811 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
9812 | ||
9813 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9814 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 9815 | } |
15afbcd0 | 9816 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9817 | { |
9818 | if (temp1) | |
9819 | delete arg1; | |
9820 | } | |
9821 | return resultobj; | |
9822 | fail: | |
9823 | { | |
9824 | if (temp1) | |
9825 | delete arg1; | |
9826 | } | |
9827 | return NULL; | |
9828 | } | |
9829 | ||
9830 | ||
9831 | static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9832 | PyObject *resultobj; | |
9833 | int arg1 = (int) wxJOYSTICK1 ; | |
9834 | wxJoystick *result; | |
994141e6 | 9835 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9836 | char *kwnames[] = { |
9837 | (char *) "joystick", NULL | |
9838 | }; | |
9839 | ||
994141e6 RD |
9840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; |
9841 | if (obj0) { | |
15afbcd0 RD |
9842 | arg1 = (int) SWIG_AsInt(obj0); |
9843 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9844 | } |
d14a1e28 | 9845 | { |
e3b71cb8 | 9846 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
9847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9848 | result = (wxJoystick *)new wxJoystick(arg1); | |
9849 | ||
9850 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9851 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 9852 | } |
15afbcd0 | 9853 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1); |
d14a1e28 RD |
9854 | return resultobj; |
9855 | fail: | |
9856 | return NULL; | |
9857 | } | |
9858 | ||
9859 | ||
9860 | static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9861 | PyObject *resultobj; | |
9862 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9863 | PyObject * obj0 = 0 ; | |
9864 | char *kwnames[] = { | |
9865 | (char *) "self", NULL | |
9866 | }; | |
9867 | ||
9868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9871 | { |
9872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9873 | delete arg1; | |
9874 | ||
9875 | wxPyEndAllowThreads(__tstate); | |
9876 | if (PyErr_Occurred()) SWIG_fail; | |
9877 | } | |
9878 | Py_INCREF(Py_None); resultobj = Py_None; | |
9879 | return resultobj; | |
9880 | fail: | |
9881 | return NULL; | |
9882 | } | |
9883 | ||
9884 | ||
9885 | static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9886 | PyObject *resultobj; | |
9887 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9888 | wxPoint result; | |
9889 | PyObject * obj0 = 0 ; | |
9890 | char *kwnames[] = { | |
9891 | (char *) "self", NULL | |
9892 | }; | |
9893 | ||
9894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9897 | { |
9898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9899 | result = (arg1)->GetPosition(); | |
9900 | ||
9901 | wxPyEndAllowThreads(__tstate); | |
9902 | if (PyErr_Occurred()) SWIG_fail; | |
9903 | } | |
9904 | { | |
9905 | wxPoint * resultptr; | |
9906 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 9907 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
9908 | } |
9909 | return resultobj; | |
9910 | fail: | |
9911 | return NULL; | |
9912 | } | |
9913 | ||
9914 | ||
9915 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9916 | PyObject *resultobj; | |
9917 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9918 | int result; | |
9919 | PyObject * obj0 = 0 ; | |
9920 | char *kwnames[] = { | |
9921 | (char *) "self", NULL | |
9922 | }; | |
9923 | ||
9924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9927 | { |
9928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9929 | result = (int)(arg1)->GetZPosition(); | |
9930 | ||
9931 | wxPyEndAllowThreads(__tstate); | |
9932 | if (PyErr_Occurred()) SWIG_fail; | |
9933 | } | |
15afbcd0 | 9934 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9935 | return resultobj; |
9936 | fail: | |
9937 | return NULL; | |
9938 | } | |
9939 | ||
9940 | ||
9941 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9942 | PyObject *resultobj; | |
9943 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9944 | int result; | |
9945 | PyObject * obj0 = 0 ; | |
9946 | char *kwnames[] = { | |
9947 | (char *) "self", NULL | |
9948 | }; | |
9949 | ||
9950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9953 | { |
9954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9955 | result = (int)(arg1)->GetButtonState(); | |
9956 | ||
9957 | wxPyEndAllowThreads(__tstate); | |
9958 | if (PyErr_Occurred()) SWIG_fail; | |
9959 | } | |
15afbcd0 | 9960 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9961 | return resultobj; |
9962 | fail: | |
9963 | return NULL; | |
9964 | } | |
9965 | ||
9966 | ||
9967 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9968 | PyObject *resultobj; | |
9969 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9970 | int result; | |
9971 | PyObject * obj0 = 0 ; | |
9972 | char *kwnames[] = { | |
9973 | (char *) "self", NULL | |
9974 | }; | |
9975 | ||
9976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9979 | { |
9980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9981 | result = (int)(arg1)->GetPOVPosition(); | |
9982 | ||
9983 | wxPyEndAllowThreads(__tstate); | |
9984 | if (PyErr_Occurred()) SWIG_fail; | |
9985 | } | |
15afbcd0 | 9986 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9987 | return resultobj; |
9988 | fail: | |
9989 | return NULL; | |
9990 | } | |
9991 | ||
9992 | ||
9993 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9994 | PyObject *resultobj; | |
9995 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9996 | int result; | |
9997 | PyObject * obj0 = 0 ; | |
9998 | char *kwnames[] = { | |
9999 | (char *) "self", NULL | |
10000 | }; | |
10001 | ||
10002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10005 | { |
10006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10007 | result = (int)(arg1)->GetPOVCTSPosition(); | |
10008 | ||
10009 | wxPyEndAllowThreads(__tstate); | |
10010 | if (PyErr_Occurred()) SWIG_fail; | |
10011 | } | |
15afbcd0 | 10012 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10013 | return resultobj; |
10014 | fail: | |
10015 | return NULL; | |
10016 | } | |
10017 | ||
10018 | ||
10019 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10020 | PyObject *resultobj; | |
10021 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10022 | int result; | |
10023 | PyObject * obj0 = 0 ; | |
10024 | char *kwnames[] = { | |
10025 | (char *) "self", NULL | |
10026 | }; | |
10027 | ||
10028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10031 | { |
10032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10033 | result = (int)(arg1)->GetRudderPosition(); | |
10034 | ||
10035 | wxPyEndAllowThreads(__tstate); | |
10036 | if (PyErr_Occurred()) SWIG_fail; | |
10037 | } | |
15afbcd0 | 10038 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10039 | return resultobj; |
10040 | fail: | |
10041 | return NULL; | |
10042 | } | |
10043 | ||
10044 | ||
10045 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10046 | PyObject *resultobj; | |
10047 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10048 | int result; | |
10049 | PyObject * obj0 = 0 ; | |
10050 | char *kwnames[] = { | |
10051 | (char *) "self", NULL | |
10052 | }; | |
10053 | ||
10054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10057 | { |
10058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10059 | result = (int)(arg1)->GetUPosition(); | |
10060 | ||
10061 | wxPyEndAllowThreads(__tstate); | |
10062 | if (PyErr_Occurred()) SWIG_fail; | |
10063 | } | |
15afbcd0 | 10064 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10065 | return resultobj; |
10066 | fail: | |
10067 | return NULL; | |
10068 | } | |
10069 | ||
10070 | ||
10071 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10072 | PyObject *resultobj; | |
10073 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10074 | int result; | |
10075 | PyObject * obj0 = 0 ; | |
10076 | char *kwnames[] = { | |
10077 | (char *) "self", NULL | |
10078 | }; | |
10079 | ||
10080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10083 | { |
10084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10085 | result = (int)(arg1)->GetVPosition(); | |
10086 | ||
10087 | wxPyEndAllowThreads(__tstate); | |
10088 | if (PyErr_Occurred()) SWIG_fail; | |
10089 | } | |
15afbcd0 | 10090 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10091 | return resultobj; |
10092 | fail: | |
10093 | return NULL; | |
10094 | } | |
10095 | ||
10096 | ||
10097 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10098 | PyObject *resultobj; | |
10099 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10100 | int result; | |
10101 | PyObject * obj0 = 0 ; | |
10102 | char *kwnames[] = { | |
10103 | (char *) "self", NULL | |
10104 | }; | |
10105 | ||
10106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10109 | { |
10110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10111 | result = (int)(arg1)->GetMovementThreshold(); | |
10112 | ||
10113 | wxPyEndAllowThreads(__tstate); | |
10114 | if (PyErr_Occurred()) SWIG_fail; | |
10115 | } | |
15afbcd0 | 10116 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10117 | return resultobj; |
10118 | fail: | |
10119 | return NULL; | |
10120 | } | |
10121 | ||
10122 | ||
10123 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10124 | PyObject *resultobj; | |
10125 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10126 | int arg2 ; | |
10127 | PyObject * obj0 = 0 ; | |
994141e6 | 10128 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10129 | char *kwnames[] = { |
10130 | (char *) "self",(char *) "threshold", NULL | |
10131 | }; | |
10132 | ||
994141e6 | 10133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10136 | arg2 = (int) SWIG_AsInt(obj1); | |
10137 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10138 | { |
10139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10140 | (arg1)->SetMovementThreshold(arg2); | |
10141 | ||
10142 | wxPyEndAllowThreads(__tstate); | |
10143 | if (PyErr_Occurred()) SWIG_fail; | |
10144 | } | |
10145 | Py_INCREF(Py_None); resultobj = Py_None; | |
10146 | return resultobj; | |
10147 | fail: | |
10148 | return NULL; | |
10149 | } | |
10150 | ||
10151 | ||
10152 | static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10153 | PyObject *resultobj; | |
10154 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10155 | bool result; | |
10156 | PyObject * obj0 = 0 ; | |
10157 | char *kwnames[] = { | |
10158 | (char *) "self", NULL | |
10159 | }; | |
10160 | ||
10161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10164 | { |
10165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10166 | result = (bool)(arg1)->IsOk(); | |
10167 | ||
10168 | wxPyEndAllowThreads(__tstate); | |
10169 | if (PyErr_Occurred()) SWIG_fail; | |
10170 | } | |
4f89f6a3 RD |
10171 | { |
10172 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10173 | } | |
d14a1e28 RD |
10174 | return resultobj; |
10175 | fail: | |
10176 | return NULL; | |
10177 | } | |
10178 | ||
10179 | ||
10180 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10181 | PyObject *resultobj; | |
10182 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10183 | int result; | |
10184 | PyObject * obj0 = 0 ; | |
10185 | char *kwnames[] = { | |
10186 | (char *) "self", NULL | |
10187 | }; | |
10188 | ||
10189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10192 | { |
10193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10194 | result = (int)(arg1)->GetNumberJoysticks(); | |
10195 | ||
10196 | wxPyEndAllowThreads(__tstate); | |
10197 | if (PyErr_Occurred()) SWIG_fail; | |
10198 | } | |
15afbcd0 | 10199 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10200 | return resultobj; |
10201 | fail: | |
10202 | return NULL; | |
10203 | } | |
10204 | ||
10205 | ||
10206 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10207 | PyObject *resultobj; | |
10208 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10209 | int result; | |
10210 | PyObject * obj0 = 0 ; | |
10211 | char *kwnames[] = { | |
10212 | (char *) "self", NULL | |
10213 | }; | |
10214 | ||
10215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10218 | { |
10219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10220 | result = (int)(arg1)->GetManufacturerId(); | |
10221 | ||
10222 | wxPyEndAllowThreads(__tstate); | |
10223 | if (PyErr_Occurred()) SWIG_fail; | |
10224 | } | |
15afbcd0 | 10225 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10226 | return resultobj; |
10227 | fail: | |
10228 | return NULL; | |
10229 | } | |
10230 | ||
10231 | ||
10232 | static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10233 | PyObject *resultobj; | |
10234 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10235 | int result; | |
10236 | PyObject * obj0 = 0 ; | |
10237 | char *kwnames[] = { | |
10238 | (char *) "self", NULL | |
10239 | }; | |
10240 | ||
10241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10244 | { |
10245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10246 | result = (int)(arg1)->GetProductId(); | |
10247 | ||
10248 | wxPyEndAllowThreads(__tstate); | |
10249 | if (PyErr_Occurred()) SWIG_fail; | |
10250 | } | |
15afbcd0 | 10251 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10252 | return resultobj; |
10253 | fail: | |
10254 | return NULL; | |
10255 | } | |
10256 | ||
10257 | ||
10258 | static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10259 | PyObject *resultobj; | |
10260 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10261 | wxString result; | |
10262 | PyObject * obj0 = 0 ; | |
10263 | char *kwnames[] = { | |
10264 | (char *) "self", NULL | |
10265 | }; | |
10266 | ||
10267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10270 | { |
10271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10272 | result = (arg1)->GetProductName(); | |
10273 | ||
10274 | wxPyEndAllowThreads(__tstate); | |
10275 | if (PyErr_Occurred()) SWIG_fail; | |
10276 | } | |
10277 | { | |
10278 | #if wxUSE_UNICODE | |
10279 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10280 | #else | |
10281 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10282 | #endif | |
10283 | } | |
10284 | return resultobj; | |
10285 | fail: | |
10286 | return NULL; | |
10287 | } | |
10288 | ||
10289 | ||
10290 | static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10291 | PyObject *resultobj; | |
10292 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10293 | int result; | |
10294 | PyObject * obj0 = 0 ; | |
10295 | char *kwnames[] = { | |
10296 | (char *) "self", NULL | |
10297 | }; | |
10298 | ||
10299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10302 | { |
10303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10304 | result = (int)(arg1)->GetXMin(); | |
10305 | ||
10306 | wxPyEndAllowThreads(__tstate); | |
10307 | if (PyErr_Occurred()) SWIG_fail; | |
10308 | } | |
15afbcd0 | 10309 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10310 | return resultobj; |
10311 | fail: | |
10312 | return NULL; | |
10313 | } | |
10314 | ||
10315 | ||
10316 | static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10317 | PyObject *resultobj; | |
10318 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10319 | int result; | |
10320 | PyObject * obj0 = 0 ; | |
10321 | char *kwnames[] = { | |
10322 | (char *) "self", NULL | |
10323 | }; | |
10324 | ||
10325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10328 | { |
10329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10330 | result = (int)(arg1)->GetYMin(); | |
10331 | ||
10332 | wxPyEndAllowThreads(__tstate); | |
10333 | if (PyErr_Occurred()) SWIG_fail; | |
10334 | } | |
15afbcd0 | 10335 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10336 | return resultobj; |
10337 | fail: | |
10338 | return NULL; | |
10339 | } | |
10340 | ||
10341 | ||
10342 | static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10343 | PyObject *resultobj; | |
10344 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10345 | int result; | |
10346 | PyObject * obj0 = 0 ; | |
10347 | char *kwnames[] = { | |
10348 | (char *) "self", NULL | |
10349 | }; | |
10350 | ||
10351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10354 | { |
10355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10356 | result = (int)(arg1)->GetZMin(); | |
10357 | ||
10358 | wxPyEndAllowThreads(__tstate); | |
10359 | if (PyErr_Occurred()) SWIG_fail; | |
10360 | } | |
15afbcd0 | 10361 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10362 | return resultobj; |
10363 | fail: | |
10364 | return NULL; | |
10365 | } | |
10366 | ||
10367 | ||
10368 | static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10369 | PyObject *resultobj; | |
10370 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10371 | int result; | |
10372 | PyObject * obj0 = 0 ; | |
10373 | char *kwnames[] = { | |
10374 | (char *) "self", NULL | |
10375 | }; | |
10376 | ||
10377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10380 | { |
10381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10382 | result = (int)(arg1)->GetXMax(); | |
10383 | ||
10384 | wxPyEndAllowThreads(__tstate); | |
10385 | if (PyErr_Occurred()) SWIG_fail; | |
10386 | } | |
15afbcd0 | 10387 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10388 | return resultobj; |
10389 | fail: | |
10390 | return NULL; | |
10391 | } | |
10392 | ||
10393 | ||
10394 | static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10395 | PyObject *resultobj; | |
10396 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10397 | int result; | |
10398 | PyObject * obj0 = 0 ; | |
10399 | char *kwnames[] = { | |
10400 | (char *) "self", NULL | |
10401 | }; | |
10402 | ||
10403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10406 | { |
10407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10408 | result = (int)(arg1)->GetYMax(); | |
10409 | ||
10410 | wxPyEndAllowThreads(__tstate); | |
10411 | if (PyErr_Occurred()) SWIG_fail; | |
10412 | } | |
15afbcd0 | 10413 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10414 | return resultobj; |
10415 | fail: | |
10416 | return NULL; | |
10417 | } | |
10418 | ||
10419 | ||
10420 | static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10421 | PyObject *resultobj; | |
10422 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10423 | int result; | |
10424 | PyObject * obj0 = 0 ; | |
10425 | char *kwnames[] = { | |
10426 | (char *) "self", NULL | |
10427 | }; | |
10428 | ||
10429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10432 | { |
10433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10434 | result = (int)(arg1)->GetZMax(); | |
10435 | ||
10436 | wxPyEndAllowThreads(__tstate); | |
10437 | if (PyErr_Occurred()) SWIG_fail; | |
10438 | } | |
15afbcd0 | 10439 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10440 | return resultobj; |
10441 | fail: | |
10442 | return NULL; | |
10443 | } | |
10444 | ||
10445 | ||
10446 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10447 | PyObject *resultobj; | |
10448 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10449 | int result; | |
10450 | PyObject * obj0 = 0 ; | |
10451 | char *kwnames[] = { | |
10452 | (char *) "self", NULL | |
10453 | }; | |
10454 | ||
10455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10458 | { |
10459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10460 | result = (int)(arg1)->GetNumberButtons(); | |
10461 | ||
10462 | wxPyEndAllowThreads(__tstate); | |
10463 | if (PyErr_Occurred()) SWIG_fail; | |
10464 | } | |
15afbcd0 | 10465 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10466 | return resultobj; |
10467 | fail: | |
10468 | return NULL; | |
10469 | } | |
10470 | ||
10471 | ||
10472 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10473 | PyObject *resultobj; | |
10474 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10475 | int result; | |
10476 | PyObject * obj0 = 0 ; | |
10477 | char *kwnames[] = { | |
10478 | (char *) "self", NULL | |
10479 | }; | |
10480 | ||
10481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10484 | { |
10485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10486 | result = (int)(arg1)->GetNumberAxes(); | |
10487 | ||
10488 | wxPyEndAllowThreads(__tstate); | |
10489 | if (PyErr_Occurred()) SWIG_fail; | |
10490 | } | |
15afbcd0 | 10491 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10492 | return resultobj; |
10493 | fail: | |
10494 | return NULL; | |
10495 | } | |
10496 | ||
10497 | ||
10498 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10499 | PyObject *resultobj; | |
10500 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10501 | int result; | |
10502 | PyObject * obj0 = 0 ; | |
10503 | char *kwnames[] = { | |
10504 | (char *) "self", NULL | |
10505 | }; | |
10506 | ||
10507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10510 | { |
10511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10512 | result = (int)(arg1)->GetMaxButtons(); | |
10513 | ||
10514 | wxPyEndAllowThreads(__tstate); | |
10515 | if (PyErr_Occurred()) SWIG_fail; | |
10516 | } | |
15afbcd0 | 10517 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10518 | return resultobj; |
10519 | fail: | |
10520 | return NULL; | |
10521 | } | |
10522 | ||
10523 | ||
10524 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10525 | PyObject *resultobj; | |
10526 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10527 | int result; | |
10528 | PyObject * obj0 = 0 ; | |
10529 | char *kwnames[] = { | |
10530 | (char *) "self", NULL | |
10531 | }; | |
10532 | ||
10533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10536 | { |
10537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10538 | result = (int)(arg1)->GetMaxAxes(); | |
10539 | ||
10540 | wxPyEndAllowThreads(__tstate); | |
10541 | if (PyErr_Occurred()) SWIG_fail; | |
10542 | } | |
15afbcd0 | 10543 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10544 | return resultobj; |
10545 | fail: | |
10546 | return NULL; | |
10547 | } | |
10548 | ||
10549 | ||
10550 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10551 | PyObject *resultobj; | |
10552 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10553 | int result; | |
10554 | PyObject * obj0 = 0 ; | |
10555 | char *kwnames[] = { | |
10556 | (char *) "self", NULL | |
10557 | }; | |
10558 | ||
10559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10562 | { |
10563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10564 | result = (int)(arg1)->GetPollingMin(); | |
10565 | ||
10566 | wxPyEndAllowThreads(__tstate); | |
10567 | if (PyErr_Occurred()) SWIG_fail; | |
10568 | } | |
15afbcd0 | 10569 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10570 | return resultobj; |
10571 | fail: | |
10572 | return NULL; | |
10573 | } | |
10574 | ||
10575 | ||
10576 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10577 | PyObject *resultobj; | |
10578 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10579 | int result; | |
10580 | PyObject * obj0 = 0 ; | |
10581 | char *kwnames[] = { | |
10582 | (char *) "self", NULL | |
10583 | }; | |
10584 | ||
10585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10588 | { |
10589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10590 | result = (int)(arg1)->GetPollingMax(); | |
10591 | ||
10592 | wxPyEndAllowThreads(__tstate); | |
10593 | if (PyErr_Occurred()) SWIG_fail; | |
10594 | } | |
15afbcd0 | 10595 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10596 | return resultobj; |
10597 | fail: | |
10598 | return NULL; | |
10599 | } | |
10600 | ||
10601 | ||
10602 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10603 | PyObject *resultobj; | |
10604 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10605 | int result; | |
10606 | PyObject * obj0 = 0 ; | |
10607 | char *kwnames[] = { | |
10608 | (char *) "self", NULL | |
10609 | }; | |
10610 | ||
10611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10614 | { |
10615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10616 | result = (int)(arg1)->GetRudderMin(); | |
10617 | ||
10618 | wxPyEndAllowThreads(__tstate); | |
10619 | if (PyErr_Occurred()) SWIG_fail; | |
10620 | } | |
15afbcd0 | 10621 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10622 | return resultobj; |
10623 | fail: | |
10624 | return NULL; | |
10625 | } | |
10626 | ||
10627 | ||
10628 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10629 | PyObject *resultobj; | |
10630 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10631 | int result; | |
10632 | PyObject * obj0 = 0 ; | |
10633 | char *kwnames[] = { | |
10634 | (char *) "self", NULL | |
10635 | }; | |
10636 | ||
10637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10640 | { |
10641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10642 | result = (int)(arg1)->GetRudderMax(); | |
10643 | ||
10644 | wxPyEndAllowThreads(__tstate); | |
10645 | if (PyErr_Occurred()) SWIG_fail; | |
10646 | } | |
15afbcd0 | 10647 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10648 | return resultobj; |
10649 | fail: | |
10650 | return NULL; | |
10651 | } | |
10652 | ||
10653 | ||
10654 | static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10655 | PyObject *resultobj; | |
10656 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10657 | int result; | |
10658 | PyObject * obj0 = 0 ; | |
10659 | char *kwnames[] = { | |
10660 | (char *) "self", NULL | |
10661 | }; | |
10662 | ||
10663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10666 | { |
10667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10668 | result = (int)(arg1)->GetUMin(); | |
10669 | ||
10670 | wxPyEndAllowThreads(__tstate); | |
10671 | if (PyErr_Occurred()) SWIG_fail; | |
10672 | } | |
15afbcd0 | 10673 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10674 | return resultobj; |
10675 | fail: | |
10676 | return NULL; | |
10677 | } | |
10678 | ||
10679 | ||
10680 | static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10681 | PyObject *resultobj; | |
10682 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10683 | int result; | |
10684 | PyObject * obj0 = 0 ; | |
10685 | char *kwnames[] = { | |
10686 | (char *) "self", NULL | |
10687 | }; | |
10688 | ||
10689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10692 | { |
10693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10694 | result = (int)(arg1)->GetUMax(); | |
10695 | ||
10696 | wxPyEndAllowThreads(__tstate); | |
10697 | if (PyErr_Occurred()) SWIG_fail; | |
10698 | } | |
15afbcd0 | 10699 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10700 | return resultobj; |
10701 | fail: | |
10702 | return NULL; | |
10703 | } | |
10704 | ||
10705 | ||
10706 | static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10707 | PyObject *resultobj; | |
10708 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10709 | int result; | |
10710 | PyObject * obj0 = 0 ; | |
10711 | char *kwnames[] = { | |
10712 | (char *) "self", NULL | |
10713 | }; | |
10714 | ||
10715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10718 | { |
10719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10720 | result = (int)(arg1)->GetVMin(); | |
10721 | ||
10722 | wxPyEndAllowThreads(__tstate); | |
10723 | if (PyErr_Occurred()) SWIG_fail; | |
10724 | } | |
15afbcd0 | 10725 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10726 | return resultobj; |
10727 | fail: | |
10728 | return NULL; | |
10729 | } | |
10730 | ||
10731 | ||
10732 | static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10733 | PyObject *resultobj; | |
10734 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10735 | int result; | |
10736 | PyObject * obj0 = 0 ; | |
10737 | char *kwnames[] = { | |
10738 | (char *) "self", NULL | |
10739 | }; | |
10740 | ||
10741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10744 | { |
10745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10746 | result = (int)(arg1)->GetVMax(); | |
10747 | ||
10748 | wxPyEndAllowThreads(__tstate); | |
10749 | if (PyErr_Occurred()) SWIG_fail; | |
10750 | } | |
15afbcd0 | 10751 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10752 | return resultobj; |
10753 | fail: | |
10754 | return NULL; | |
10755 | } | |
10756 | ||
10757 | ||
10758 | static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10759 | PyObject *resultobj; | |
10760 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10761 | bool result; | |
10762 | PyObject * obj0 = 0 ; | |
10763 | char *kwnames[] = { | |
10764 | (char *) "self", NULL | |
10765 | }; | |
10766 | ||
10767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10770 | { |
10771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10772 | result = (bool)(arg1)->HasRudder(); | |
10773 | ||
10774 | wxPyEndAllowThreads(__tstate); | |
10775 | if (PyErr_Occurred()) SWIG_fail; | |
10776 | } | |
4f89f6a3 RD |
10777 | { |
10778 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10779 | } | |
d14a1e28 RD |
10780 | return resultobj; |
10781 | fail: | |
10782 | return NULL; | |
10783 | } | |
10784 | ||
10785 | ||
10786 | static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10787 | PyObject *resultobj; | |
10788 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10789 | bool result; | |
10790 | PyObject * obj0 = 0 ; | |
10791 | char *kwnames[] = { | |
10792 | (char *) "self", NULL | |
10793 | }; | |
10794 | ||
10795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10798 | { |
10799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10800 | result = (bool)(arg1)->HasZ(); | |
10801 | ||
10802 | wxPyEndAllowThreads(__tstate); | |
10803 | if (PyErr_Occurred()) SWIG_fail; | |
10804 | } | |
4f89f6a3 RD |
10805 | { |
10806 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10807 | } | |
d14a1e28 RD |
10808 | return resultobj; |
10809 | fail: | |
10810 | return NULL; | |
10811 | } | |
10812 | ||
10813 | ||
10814 | static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10815 | PyObject *resultobj; | |
10816 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10817 | bool result; | |
10818 | PyObject * obj0 = 0 ; | |
10819 | char *kwnames[] = { | |
10820 | (char *) "self", NULL | |
10821 | }; | |
10822 | ||
10823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10826 | { |
10827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10828 | result = (bool)(arg1)->HasU(); | |
10829 | ||
10830 | wxPyEndAllowThreads(__tstate); | |
10831 | if (PyErr_Occurred()) SWIG_fail; | |
10832 | } | |
4f89f6a3 RD |
10833 | { |
10834 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10835 | } | |
d14a1e28 RD |
10836 | return resultobj; |
10837 | fail: | |
10838 | return NULL; | |
10839 | } | |
10840 | ||
10841 | ||
10842 | static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10843 | PyObject *resultobj; | |
10844 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10845 | bool result; | |
10846 | PyObject * obj0 = 0 ; | |
10847 | char *kwnames[] = { | |
10848 | (char *) "self", NULL | |
10849 | }; | |
10850 | ||
10851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10854 | { |
10855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10856 | result = (bool)(arg1)->HasV(); | |
10857 | ||
10858 | wxPyEndAllowThreads(__tstate); | |
10859 | if (PyErr_Occurred()) SWIG_fail; | |
10860 | } | |
4f89f6a3 RD |
10861 | { |
10862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10863 | } | |
d14a1e28 RD |
10864 | return resultobj; |
10865 | fail: | |
10866 | return NULL; | |
10867 | } | |
10868 | ||
10869 | ||
10870 | static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10871 | PyObject *resultobj; | |
10872 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10873 | bool result; | |
10874 | PyObject * obj0 = 0 ; | |
10875 | char *kwnames[] = { | |
10876 | (char *) "self", NULL | |
10877 | }; | |
10878 | ||
10879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10882 | { |
10883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10884 | result = (bool)(arg1)->HasPOV(); | |
10885 | ||
10886 | wxPyEndAllowThreads(__tstate); | |
10887 | if (PyErr_Occurred()) SWIG_fail; | |
10888 | } | |
4f89f6a3 RD |
10889 | { |
10890 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10891 | } | |
d14a1e28 RD |
10892 | return resultobj; |
10893 | fail: | |
10894 | return NULL; | |
10895 | } | |
10896 | ||
10897 | ||
10898 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10899 | PyObject *resultobj; | |
10900 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10901 | bool result; | |
10902 | PyObject * obj0 = 0 ; | |
10903 | char *kwnames[] = { | |
10904 | (char *) "self", NULL | |
10905 | }; | |
10906 | ||
10907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10910 | { |
10911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10912 | result = (bool)(arg1)->HasPOV4Dir(); | |
10913 | ||
10914 | wxPyEndAllowThreads(__tstate); | |
10915 | if (PyErr_Occurred()) SWIG_fail; | |
10916 | } | |
4f89f6a3 RD |
10917 | { |
10918 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10919 | } | |
d14a1e28 RD |
10920 | return resultobj; |
10921 | fail: | |
10922 | return NULL; | |
10923 | } | |
10924 | ||
10925 | ||
10926 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10927 | PyObject *resultobj; | |
10928 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10929 | bool result; | |
10930 | PyObject * obj0 = 0 ; | |
10931 | char *kwnames[] = { | |
10932 | (char *) "self", NULL | |
10933 | }; | |
10934 | ||
10935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10938 | { |
10939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10940 | result = (bool)(arg1)->HasPOVCTS(); | |
10941 | ||
10942 | wxPyEndAllowThreads(__tstate); | |
10943 | if (PyErr_Occurred()) SWIG_fail; | |
10944 | } | |
4f89f6a3 RD |
10945 | { |
10946 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10947 | } | |
d14a1e28 RD |
10948 | return resultobj; |
10949 | fail: | |
10950 | return NULL; | |
10951 | } | |
10952 | ||
10953 | ||
10954 | static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10955 | PyObject *resultobj; | |
10956 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10957 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10958 | int arg3 = (int) 0 ; | |
10959 | bool result; | |
10960 | PyObject * obj0 = 0 ; | |
10961 | PyObject * obj1 = 0 ; | |
994141e6 | 10962 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10963 | char *kwnames[] = { |
10964 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
10965 | }; | |
10966 | ||
994141e6 | 10967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10970 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10972 | if (obj2) { |
15afbcd0 RD |
10973 | arg3 = (int) SWIG_AsInt(obj2); |
10974 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10975 | } |
d14a1e28 RD |
10976 | { |
10977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10978 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
10979 | ||
10980 | wxPyEndAllowThreads(__tstate); | |
10981 | if (PyErr_Occurred()) SWIG_fail; | |
10982 | } | |
4f89f6a3 RD |
10983 | { |
10984 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10985 | } | |
d14a1e28 RD |
10986 | return resultobj; |
10987 | fail: | |
10988 | return NULL; | |
10989 | } | |
10990 | ||
10991 | ||
10992 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10993 | PyObject *resultobj; | |
10994 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10995 | bool result; | |
10996 | PyObject * obj0 = 0 ; | |
10997 | char *kwnames[] = { | |
10998 | (char *) "self", NULL | |
10999 | }; | |
11000 | ||
11001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
11003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11004 | { |
11005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11006 | result = (bool)(arg1)->ReleaseCapture(); | |
11007 | ||
11008 | wxPyEndAllowThreads(__tstate); | |
11009 | if (PyErr_Occurred()) SWIG_fail; | |
11010 | } | |
4f89f6a3 RD |
11011 | { |
11012 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11013 | } | |
d14a1e28 RD |
11014 | return resultobj; |
11015 | fail: | |
11016 | return NULL; | |
11017 | } | |
11018 | ||
11019 | ||
11020 | static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) { | |
11021 | PyObject *obj; | |
11022 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11023 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
11024 | Py_INCREF(obj); | |
11025 | return Py_BuildValue((char *)""); | |
11026 | } | |
11027 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11028 | PyObject *resultobj; | |
11029 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11030 | wxPoint *arg2 = (wxPoint *) 0 ; | |
11031 | PyObject * obj0 = 0 ; | |
11032 | PyObject * obj1 = 0 ; | |
11033 | char *kwnames[] = { | |
11034 | (char *) "self",(char *) "m_pos", NULL | |
11035 | }; | |
11036 | ||
11037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11040 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
11041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11042 | if (arg1) (arg1)->m_pos = *arg2; |
11043 | ||
11044 | Py_INCREF(Py_None); resultobj = Py_None; | |
11045 | return resultobj; | |
11046 | fail: | |
11047 | return NULL; | |
11048 | } | |
11049 | ||
11050 | ||
11051 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11052 | PyObject *resultobj; | |
11053 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11054 | wxPoint *result; | |
11055 | PyObject * obj0 = 0 ; | |
11056 | char *kwnames[] = { | |
11057 | (char *) "self", NULL | |
11058 | }; | |
11059 | ||
11060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11063 | result = (wxPoint *)& ((arg1)->m_pos); |
11064 | ||
15afbcd0 | 11065 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
11066 | return resultobj; |
11067 | fail: | |
11068 | return NULL; | |
11069 | } | |
11070 | ||
11071 | ||
11072 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11073 | PyObject *resultobj; | |
11074 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11075 | int arg2 ; | |
11076 | PyObject * obj0 = 0 ; | |
994141e6 | 11077 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11078 | char *kwnames[] = { |
11079 | (char *) "self",(char *) "m_zPosition", NULL | |
11080 | }; | |
11081 | ||
994141e6 | 11082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11085 | arg2 = (int) SWIG_AsInt(obj1); | |
11086 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11087 | if (arg1) (arg1)->m_zPosition = arg2; |
11088 | ||
11089 | Py_INCREF(Py_None); resultobj = Py_None; | |
11090 | return resultobj; | |
11091 | fail: | |
11092 | return NULL; | |
11093 | } | |
11094 | ||
11095 | ||
11096 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11097 | PyObject *resultobj; | |
11098 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11099 | int result; | |
11100 | PyObject * obj0 = 0 ; | |
11101 | char *kwnames[] = { | |
11102 | (char *) "self", NULL | |
11103 | }; | |
11104 | ||
11105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11108 | result = (int) ((arg1)->m_zPosition); |
11109 | ||
15afbcd0 | 11110 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11111 | return resultobj; |
11112 | fail: | |
11113 | return NULL; | |
11114 | } | |
11115 | ||
11116 | ||
11117 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11118 | PyObject *resultobj; | |
11119 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11120 | int arg2 ; | |
11121 | PyObject * obj0 = 0 ; | |
994141e6 | 11122 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11123 | char *kwnames[] = { |
11124 | (char *) "self",(char *) "m_buttonChange", NULL | |
11125 | }; | |
11126 | ||
994141e6 | 11127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11130 | arg2 = (int) SWIG_AsInt(obj1); | |
11131 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11132 | if (arg1) (arg1)->m_buttonChange = arg2; |
11133 | ||
11134 | Py_INCREF(Py_None); resultobj = Py_None; | |
11135 | return resultobj; | |
11136 | fail: | |
11137 | return NULL; | |
11138 | } | |
11139 | ||
11140 | ||
11141 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11142 | PyObject *resultobj; | |
11143 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11144 | int result; | |
11145 | PyObject * obj0 = 0 ; | |
11146 | char *kwnames[] = { | |
11147 | (char *) "self", NULL | |
11148 | }; | |
11149 | ||
11150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11153 | result = (int) ((arg1)->m_buttonChange); |
11154 | ||
15afbcd0 | 11155 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11156 | return resultobj; |
11157 | fail: | |
11158 | return NULL; | |
11159 | } | |
11160 | ||
11161 | ||
11162 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11163 | PyObject *resultobj; | |
11164 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11165 | int arg2 ; | |
11166 | PyObject * obj0 = 0 ; | |
994141e6 | 11167 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11168 | char *kwnames[] = { |
11169 | (char *) "self",(char *) "m_buttonState", NULL | |
11170 | }; | |
11171 | ||
994141e6 | 11172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11175 | arg2 = (int) SWIG_AsInt(obj1); | |
11176 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11177 | if (arg1) (arg1)->m_buttonState = arg2; |
11178 | ||
11179 | Py_INCREF(Py_None); resultobj = Py_None; | |
11180 | return resultobj; | |
11181 | fail: | |
11182 | return NULL; | |
11183 | } | |
11184 | ||
11185 | ||
11186 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11187 | PyObject *resultobj; | |
11188 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11189 | int result; | |
11190 | PyObject * obj0 = 0 ; | |
11191 | char *kwnames[] = { | |
11192 | (char *) "self", NULL | |
11193 | }; | |
11194 | ||
11195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11198 | result = (int) ((arg1)->m_buttonState); |
11199 | ||
15afbcd0 | 11200 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11201 | return resultobj; |
11202 | fail: | |
11203 | return NULL; | |
11204 | } | |
11205 | ||
11206 | ||
11207 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11208 | PyObject *resultobj; | |
11209 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11210 | int arg2 ; | |
11211 | PyObject * obj0 = 0 ; | |
994141e6 | 11212 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11213 | char *kwnames[] = { |
11214 | (char *) "self",(char *) "m_joyStick", NULL | |
11215 | }; | |
11216 | ||
994141e6 | 11217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11220 | arg2 = (int) SWIG_AsInt(obj1); | |
11221 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11222 | if (arg1) (arg1)->m_joyStick = arg2; |
11223 | ||
11224 | Py_INCREF(Py_None); resultobj = Py_None; | |
11225 | return resultobj; | |
11226 | fail: | |
11227 | return NULL; | |
11228 | } | |
11229 | ||
11230 | ||
11231 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11232 | PyObject *resultobj; | |
11233 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11234 | int result; | |
11235 | PyObject * obj0 = 0 ; | |
11236 | char *kwnames[] = { | |
11237 | (char *) "self", NULL | |
11238 | }; | |
11239 | ||
11240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11243 | result = (int) ((arg1)->m_joyStick); |
11244 | ||
15afbcd0 | 11245 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11246 | return resultobj; |
11247 | fail: | |
11248 | return NULL; | |
11249 | } | |
11250 | ||
11251 | ||
11252 | static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11253 | PyObject *resultobj; | |
11254 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11255 | int arg2 = (int) 0 ; | |
11256 | int arg3 = (int) wxJOYSTICK1 ; | |
11257 | int arg4 = (int) 0 ; | |
11258 | wxJoystickEvent *result; | |
994141e6 RD |
11259 | PyObject * obj0 = 0 ; |
11260 | PyObject * obj1 = 0 ; | |
11261 | PyObject * obj2 = 0 ; | |
11262 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11263 | char *kwnames[] = { |
11264 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
11265 | }; | |
11266 | ||
994141e6 RD |
11267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
11268 | if (obj0) { | |
15afbcd0 RD |
11269 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
11270 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11271 | } |
11272 | if (obj1) { | |
15afbcd0 RD |
11273 | arg2 = (int) SWIG_AsInt(obj1); |
11274 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11275 | } |
11276 | if (obj2) { | |
15afbcd0 RD |
11277 | arg3 = (int) SWIG_AsInt(obj2); |
11278 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11279 | } |
11280 | if (obj3) { | |
15afbcd0 RD |
11281 | arg4 = (int) SWIG_AsInt(obj3); |
11282 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11283 | } |
d14a1e28 RD |
11284 | { |
11285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11286 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
11287 | ||
11288 | wxPyEndAllowThreads(__tstate); | |
11289 | if (PyErr_Occurred()) SWIG_fail; | |
11290 | } | |
15afbcd0 | 11291 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1); |
d14a1e28 RD |
11292 | return resultobj; |
11293 | fail: | |
11294 | return NULL; | |
11295 | } | |
11296 | ||
11297 | ||
11298 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11299 | PyObject *resultobj; | |
11300 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11301 | wxPoint result; | |
11302 | PyObject * obj0 = 0 ; | |
11303 | char *kwnames[] = { | |
11304 | (char *) "self", NULL | |
11305 | }; | |
11306 | ||
11307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11310 | { |
11311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11312 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
11313 | ||
11314 | wxPyEndAllowThreads(__tstate); | |
11315 | if (PyErr_Occurred()) SWIG_fail; | |
11316 | } | |
11317 | { | |
11318 | wxPoint * resultptr; | |
11319 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 11320 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
11321 | } |
11322 | return resultobj; | |
11323 | fail: | |
11324 | return NULL; | |
11325 | } | |
11326 | ||
11327 | ||
11328 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11329 | PyObject *resultobj; | |
11330 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11331 | int result; | |
11332 | PyObject * obj0 = 0 ; | |
11333 | char *kwnames[] = { | |
11334 | (char *) "self", NULL | |
11335 | }; | |
11336 | ||
11337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11340 | { |
11341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11342 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
11343 | ||
11344 | wxPyEndAllowThreads(__tstate); | |
11345 | if (PyErr_Occurred()) SWIG_fail; | |
11346 | } | |
15afbcd0 | 11347 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11348 | return resultobj; |
11349 | fail: | |
11350 | return NULL; | |
11351 | } | |
11352 | ||
11353 | ||
11354 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11355 | PyObject *resultobj; | |
11356 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11357 | int result; | |
11358 | PyObject * obj0 = 0 ; | |
11359 | char *kwnames[] = { | |
11360 | (char *) "self", NULL | |
11361 | }; | |
11362 | ||
11363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11366 | { |
11367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11368 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
11369 | ||
11370 | wxPyEndAllowThreads(__tstate); | |
11371 | if (PyErr_Occurred()) SWIG_fail; | |
11372 | } | |
15afbcd0 | 11373 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11374 | return resultobj; |
11375 | fail: | |
11376 | return NULL; | |
11377 | } | |
11378 | ||
11379 | ||
11380 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11381 | PyObject *resultobj; | |
11382 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11383 | int result; | |
11384 | PyObject * obj0 = 0 ; | |
11385 | char *kwnames[] = { | |
11386 | (char *) "self", NULL | |
11387 | }; | |
11388 | ||
11389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11392 | { |
11393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11394 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
11395 | ||
11396 | wxPyEndAllowThreads(__tstate); | |
11397 | if (PyErr_Occurred()) SWIG_fail; | |
11398 | } | |
15afbcd0 | 11399 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11400 | return resultobj; |
11401 | fail: | |
11402 | return NULL; | |
11403 | } | |
11404 | ||
11405 | ||
11406 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11407 | PyObject *resultobj; | |
11408 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11409 | int result; | |
11410 | PyObject * obj0 = 0 ; | |
11411 | char *kwnames[] = { | |
11412 | (char *) "self", NULL | |
11413 | }; | |
11414 | ||
11415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11418 | { |
11419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11420 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
11421 | ||
11422 | wxPyEndAllowThreads(__tstate); | |
11423 | if (PyErr_Occurred()) SWIG_fail; | |
11424 | } | |
15afbcd0 | 11425 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11426 | return resultobj; |
11427 | fail: | |
11428 | return NULL; | |
11429 | } | |
11430 | ||
11431 | ||
11432 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11433 | PyObject *resultobj; | |
11434 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11435 | int arg2 ; | |
11436 | PyObject * obj0 = 0 ; | |
994141e6 | 11437 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11438 | char *kwnames[] = { |
11439 | (char *) "self",(char *) "stick", NULL | |
11440 | }; | |
11441 | ||
994141e6 | 11442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",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; | |
11445 | arg2 = (int) SWIG_AsInt(obj1); | |
11446 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11447 | { |
11448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11449 | (arg1)->SetJoystick(arg2); | |
11450 | ||
11451 | wxPyEndAllowThreads(__tstate); | |
11452 | if (PyErr_Occurred()) SWIG_fail; | |
11453 | } | |
11454 | Py_INCREF(Py_None); resultobj = Py_None; | |
11455 | return resultobj; | |
11456 | fail: | |
11457 | return NULL; | |
11458 | } | |
11459 | ||
11460 | ||
11461 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11462 | PyObject *resultobj; | |
11463 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11464 | int arg2 ; | |
11465 | PyObject * obj0 = 0 ; | |
994141e6 | 11466 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11467 | char *kwnames[] = { |
11468 | (char *) "self",(char *) "state", NULL | |
11469 | }; | |
11470 | ||
994141e6 | 11471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11474 | arg2 = (int) SWIG_AsInt(obj1); | |
11475 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11476 | { |
11477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11478 | (arg1)->SetButtonState(arg2); | |
11479 | ||
11480 | wxPyEndAllowThreads(__tstate); | |
11481 | if (PyErr_Occurred()) SWIG_fail; | |
11482 | } | |
11483 | Py_INCREF(Py_None); resultobj = Py_None; | |
11484 | return resultobj; | |
11485 | fail: | |
11486 | return NULL; | |
11487 | } | |
11488 | ||
11489 | ||
11490 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11491 | PyObject *resultobj; | |
11492 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11493 | int arg2 ; | |
11494 | PyObject * obj0 = 0 ; | |
994141e6 | 11495 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11496 | char *kwnames[] = { |
11497 | (char *) "self",(char *) "change", NULL | |
11498 | }; | |
11499 | ||
994141e6 | 11500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11503 | arg2 = (int) SWIG_AsInt(obj1); | |
11504 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11505 | { |
11506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11507 | (arg1)->SetButtonChange(arg2); | |
11508 | ||
11509 | wxPyEndAllowThreads(__tstate); | |
11510 | if (PyErr_Occurred()) SWIG_fail; | |
11511 | } | |
11512 | Py_INCREF(Py_None); resultobj = Py_None; | |
11513 | return resultobj; | |
11514 | fail: | |
11515 | return NULL; | |
11516 | } | |
11517 | ||
11518 | ||
11519 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11520 | PyObject *resultobj; | |
11521 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11522 | wxPoint *arg2 = 0 ; | |
11523 | wxPoint temp2 ; | |
11524 | PyObject * obj0 = 0 ; | |
11525 | PyObject * obj1 = 0 ; | |
11526 | char *kwnames[] = { | |
11527 | (char *) "self",(char *) "pos", NULL | |
11528 | }; | |
11529 | ||
11530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11533 | { |
11534 | arg2 = &temp2; | |
11535 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11536 | } | |
11537 | { | |
11538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11539 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
11540 | ||
11541 | wxPyEndAllowThreads(__tstate); | |
11542 | if (PyErr_Occurred()) SWIG_fail; | |
11543 | } | |
11544 | Py_INCREF(Py_None); resultobj = Py_None; | |
11545 | return resultobj; | |
11546 | fail: | |
11547 | return NULL; | |
11548 | } | |
11549 | ||
11550 | ||
11551 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11552 | PyObject *resultobj; | |
11553 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11554 | int arg2 ; | |
11555 | PyObject * obj0 = 0 ; | |
994141e6 | 11556 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11557 | char *kwnames[] = { |
11558 | (char *) "self",(char *) "zPos", NULL | |
11559 | }; | |
11560 | ||
994141e6 | 11561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11564 | arg2 = (int) SWIG_AsInt(obj1); | |
11565 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11566 | { |
11567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11568 | (arg1)->SetZPosition(arg2); | |
11569 | ||
11570 | wxPyEndAllowThreads(__tstate); | |
11571 | if (PyErr_Occurred()) SWIG_fail; | |
11572 | } | |
11573 | Py_INCREF(Py_None); resultobj = Py_None; | |
11574 | return resultobj; | |
11575 | fail: | |
11576 | return NULL; | |
11577 | } | |
11578 | ||
11579 | ||
11580 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11581 | PyObject *resultobj; | |
11582 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11583 | bool result; | |
11584 | PyObject * obj0 = 0 ; | |
11585 | char *kwnames[] = { | |
11586 | (char *) "self", NULL | |
11587 | }; | |
11588 | ||
11589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11592 | { |
11593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11594 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
11595 | ||
11596 | wxPyEndAllowThreads(__tstate); | |
11597 | if (PyErr_Occurred()) SWIG_fail; | |
11598 | } | |
4f89f6a3 RD |
11599 | { |
11600 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11601 | } | |
d14a1e28 RD |
11602 | return resultobj; |
11603 | fail: | |
11604 | return NULL; | |
11605 | } | |
11606 | ||
11607 | ||
11608 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11609 | PyObject *resultobj; | |
11610 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11611 | bool result; | |
11612 | PyObject * obj0 = 0 ; | |
11613 | char *kwnames[] = { | |
11614 | (char *) "self", NULL | |
11615 | }; | |
11616 | ||
11617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11620 | { |
11621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11622 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
11623 | ||
11624 | wxPyEndAllowThreads(__tstate); | |
11625 | if (PyErr_Occurred()) SWIG_fail; | |
11626 | } | |
4f89f6a3 RD |
11627 | { |
11628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11629 | } | |
d14a1e28 RD |
11630 | return resultobj; |
11631 | fail: | |
11632 | return NULL; | |
11633 | } | |
11634 | ||
11635 | ||
11636 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11637 | PyObject *resultobj; | |
11638 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11639 | bool result; | |
11640 | PyObject * obj0 = 0 ; | |
11641 | char *kwnames[] = { | |
11642 | (char *) "self", NULL | |
11643 | }; | |
11644 | ||
11645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11648 | { |
11649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11650 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
11651 | ||
11652 | wxPyEndAllowThreads(__tstate); | |
11653 | if (PyErr_Occurred()) SWIG_fail; | |
11654 | } | |
4f89f6a3 RD |
11655 | { |
11656 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11657 | } | |
d14a1e28 RD |
11658 | return resultobj; |
11659 | fail: | |
11660 | return NULL; | |
11661 | } | |
11662 | ||
11663 | ||
11664 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11665 | PyObject *resultobj; | |
11666 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11667 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11668 | bool result; | |
11669 | PyObject * obj0 = 0 ; | |
994141e6 | 11670 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11671 | char *kwnames[] = { |
11672 | (char *) "self",(char *) "but", NULL | |
11673 | }; | |
11674 | ||
994141e6 | 11675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11678 | if (obj1) { |
15afbcd0 RD |
11679 | arg2 = (int) SWIG_AsInt(obj1); |
11680 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11681 | } |
d14a1e28 RD |
11682 | { |
11683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11684 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
11685 | ||
11686 | wxPyEndAllowThreads(__tstate); | |
11687 | if (PyErr_Occurred()) SWIG_fail; | |
11688 | } | |
4f89f6a3 RD |
11689 | { |
11690 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11691 | } | |
d14a1e28 RD |
11692 | return resultobj; |
11693 | fail: | |
11694 | return NULL; | |
11695 | } | |
11696 | ||
11697 | ||
11698 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11699 | PyObject *resultobj; | |
11700 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11701 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11702 | bool result; | |
11703 | PyObject * obj0 = 0 ; | |
994141e6 | 11704 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11705 | char *kwnames[] = { |
11706 | (char *) "self",(char *) "but", NULL | |
11707 | }; | |
11708 | ||
994141e6 | 11709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11712 | if (obj1) { |
15afbcd0 RD |
11713 | arg2 = (int) SWIG_AsInt(obj1); |
11714 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11715 | } |
d14a1e28 RD |
11716 | { |
11717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11718 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
11719 | ||
11720 | wxPyEndAllowThreads(__tstate); | |
11721 | if (PyErr_Occurred()) SWIG_fail; | |
11722 | } | |
4f89f6a3 RD |
11723 | { |
11724 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11725 | } | |
d14a1e28 RD |
11726 | return resultobj; |
11727 | fail: | |
11728 | return NULL; | |
11729 | } | |
11730 | ||
11731 | ||
11732 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11733 | PyObject *resultobj; | |
11734 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11735 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11736 | bool result; | |
11737 | PyObject * obj0 = 0 ; | |
994141e6 | 11738 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11739 | char *kwnames[] = { |
11740 | (char *) "self",(char *) "but", NULL | |
11741 | }; | |
11742 | ||
994141e6 | 11743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11746 | if (obj1) { |
15afbcd0 RD |
11747 | arg2 = (int) SWIG_AsInt(obj1); |
11748 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11749 | } |
d14a1e28 RD |
11750 | { |
11751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11752 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
11753 | ||
11754 | wxPyEndAllowThreads(__tstate); | |
11755 | if (PyErr_Occurred()) SWIG_fail; | |
11756 | } | |
4f89f6a3 RD |
11757 | { |
11758 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11759 | } | |
d14a1e28 RD |
11760 | return resultobj; |
11761 | fail: | |
11762 | return NULL; | |
11763 | } | |
11764 | ||
11765 | ||
11766 | static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) { | |
11767 | PyObject *obj; | |
11768 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11769 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
11770 | Py_INCREF(obj); | |
11771 | return Py_BuildValue((char *)""); | |
11772 | } | |
36cadbf7 | 11773 | static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11774 | PyObject *resultobj; |
36cadbf7 RD |
11775 | wxString const &arg1_defvalue = wxPyEmptyString ; |
11776 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
4d5c3d91 | 11777 | wxSound *result; |
e811c8ce | 11778 | bool temp1 = False ; |
d14a1e28 | 11779 | PyObject * obj0 = 0 ; |
36cadbf7 RD |
11780 | char *kwnames[] = { |
11781 | (char *) "fileName", NULL | |
11782 | }; | |
d14a1e28 | 11783 | |
36cadbf7 RD |
11784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail; |
11785 | if (obj0) { | |
11786 | { | |
11787 | arg1 = wxString_in_helper(obj0); | |
11788 | if (arg1 == NULL) SWIG_fail; | |
11789 | temp1 = True; | |
11790 | } | |
d14a1e28 RD |
11791 | } |
11792 | { | |
e3b71cb8 | 11793 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 11794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36cadbf7 | 11795 | result = (wxSound *)new_wxSound((wxString const &)*arg1); |
d14a1e28 RD |
11796 | |
11797 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11798 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11799 | } |
15afbcd0 | 11800 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); |
d14a1e28 RD |
11801 | { |
11802 | if (temp1) | |
11803 | delete arg1; | |
11804 | } | |
11805 | return resultobj; | |
11806 | fail: | |
11807 | { | |
11808 | if (temp1) | |
11809 | delete arg1; | |
11810 | } | |
11811 | return NULL; | |
11812 | } | |
11813 | ||
11814 | ||
36cadbf7 | 11815 | static PyObject *_wrap_new_SoundFromData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11816 | PyObject *resultobj; |
36cadbf7 | 11817 | PyObject *arg1 = (PyObject *) 0 ; |
4d5c3d91 | 11818 | wxSound *result; |
d14a1e28 | 11819 | PyObject * obj0 = 0 ; |
36cadbf7 RD |
11820 | char *kwnames[] = { |
11821 | (char *) "data", NULL | |
11822 | }; | |
d14a1e28 | 11823 | |
36cadbf7 RD |
11824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail; |
11825 | arg1 = obj0; | |
d14a1e28 | 11826 | { |
e3b71cb8 | 11827 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 11828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36cadbf7 | 11829 | result = (wxSound *)new_wxSound(arg1); |
d14a1e28 RD |
11830 | |
11831 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11832 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11833 | } |
15afbcd0 | 11834 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); |
d14a1e28 RD |
11835 | return resultobj; |
11836 | fail: | |
4d5c3d91 RD |
11837 | return NULL; |
11838 | } | |
11839 | ||
11840 | ||
4d5c3d91 | 11841 | static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11842 | PyObject *resultobj; |
4d5c3d91 | 11843 | wxSound *arg1 = (wxSound *) 0 ; |
d14a1e28 RD |
11844 | PyObject * obj0 = 0 ; |
11845 | char *kwnames[] = { | |
11846 | (char *) "self", NULL | |
11847 | }; | |
11848 | ||
4d5c3d91 | 11849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
11850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11852 | { |
11853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11854 | delete arg1; | |
11855 | ||
11856 | wxPyEndAllowThreads(__tstate); | |
11857 | if (PyErr_Occurred()) SWIG_fail; | |
11858 | } | |
11859 | Py_INCREF(Py_None); resultobj = Py_None; | |
11860 | return resultobj; | |
11861 | fail: | |
11862 | return NULL; | |
11863 | } | |
11864 | ||
11865 | ||
36cadbf7 | 11866 | static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11867 | PyObject *resultobj; |
4d5c3d91 RD |
11868 | wxSound *arg1 = (wxSound *) 0 ; |
11869 | wxString *arg2 = 0 ; | |
d14a1e28 | 11870 | bool result; |
4d5c3d91 | 11871 | bool temp2 = False ; |
d14a1e28 | 11872 | PyObject * obj0 = 0 ; |
4d5c3d91 | 11873 | PyObject * obj1 = 0 ; |
36cadbf7 RD |
11874 | char *kwnames[] = { |
11875 | (char *) "self",(char *) "fileName", NULL | |
11876 | }; | |
d14a1e28 | 11877 | |
36cadbf7 | 11878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4d5c3d91 RD |
11881 | { |
11882 | arg2 = wxString_in_helper(obj1); | |
11883 | if (arg2 == NULL) SWIG_fail; | |
11884 | temp2 = True; | |
11885 | } | |
d14a1e28 RD |
11886 | { |
11887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36cadbf7 | 11888 | result = (bool)(arg1)->Create((wxString const &)*arg2); |
d14a1e28 RD |
11889 | |
11890 | wxPyEndAllowThreads(__tstate); | |
11891 | if (PyErr_Occurred()) SWIG_fail; | |
11892 | } | |
4f89f6a3 RD |
11893 | { |
11894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11895 | } | |
4d5c3d91 RD |
11896 | { |
11897 | if (temp2) | |
11898 | delete arg2; | |
11899 | } | |
d14a1e28 RD |
11900 | return resultobj; |
11901 | fail: | |
4d5c3d91 RD |
11902 | { |
11903 | if (temp2) | |
11904 | delete arg2; | |
11905 | } | |
d14a1e28 RD |
11906 | return NULL; |
11907 | } | |
11908 | ||
11909 | ||
36cadbf7 | 11910 | static PyObject *_wrap_Sound_CreateFromData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11911 | PyObject *resultobj; |
4d5c3d91 | 11912 | wxSound *arg1 = (wxSound *) 0 ; |
36cadbf7 | 11913 | PyObject *arg2 = (PyObject *) 0 ; |
d14a1e28 RD |
11914 | bool result; |
11915 | PyObject * obj0 = 0 ; | |
11916 | PyObject * obj1 = 0 ; | |
36cadbf7 RD |
11917 | char *kwnames[] = { |
11918 | (char *) "self",(char *) "data", NULL | |
11919 | }; | |
4d5c3d91 | 11920 | |
36cadbf7 | 11921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36cadbf7 | 11924 | arg2 = obj1; |
4d5c3d91 RD |
11925 | { |
11926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36cadbf7 | 11927 | result = (bool)wxSound_CreateFromData(arg1,arg2); |
4d5c3d91 RD |
11928 | |
11929 | wxPyEndAllowThreads(__tstate); | |
11930 | if (PyErr_Occurred()) SWIG_fail; | |
11931 | } | |
4f89f6a3 RD |
11932 | { |
11933 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11934 | } | |
4d5c3d91 RD |
11935 | return resultobj; |
11936 | fail: | |
11937 | return NULL; | |
11938 | } | |
11939 | ||
11940 | ||
4d5c3d91 RD |
11941 | static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { |
11942 | PyObject *resultobj; | |
11943 | wxSound *arg1 = (wxSound *) 0 ; | |
11944 | bool result; | |
11945 | PyObject * obj0 = 0 ; | |
d14a1e28 | 11946 | char *kwnames[] = { |
4d5c3d91 | 11947 | (char *) "self", NULL |
d14a1e28 RD |
11948 | }; |
11949 | ||
4d5c3d91 | 11950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
11951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4d5c3d91 RD |
11953 | { |
11954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11955 | result = (bool)(arg1)->IsOk(); | |
11956 | ||
11957 | wxPyEndAllowThreads(__tstate); | |
11958 | if (PyErr_Occurred()) SWIG_fail; | |
11959 | } | |
4f89f6a3 RD |
11960 | { |
11961 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11962 | } | |
4d5c3d91 RD |
11963 | return resultobj; |
11964 | fail: | |
11965 | return NULL; | |
11966 | } | |
11967 | ||
11968 | ||
36cadbf7 | 11969 | static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args, PyObject *kwargs) { |
4d5c3d91 RD |
11970 | PyObject *resultobj; |
11971 | wxSound *arg1 = (wxSound *) 0 ; | |
11972 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11973 | bool result; | |
11974 | PyObject * obj0 = 0 ; | |
11975 | PyObject * obj1 = 0 ; | |
36cadbf7 RD |
11976 | char *kwnames[] = { |
11977 | (char *) "self",(char *) "flags", NULL | |
11978 | }; | |
4d5c3d91 | 11979 | |
36cadbf7 | 11980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 11983 | if (obj1) { |
15afbcd0 RD |
11984 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); |
11985 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 11986 | } |
4d5c3d91 | 11987 | { |
e3b71cb8 | 11988 | if (!wxPyCheckForApp()) SWIG_fail; |
4d5c3d91 RD |
11989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11990 | result = (bool)((wxSound const *)arg1)->Play(arg2); | |
11991 | ||
11992 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11993 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 | 11994 | } |
4f89f6a3 RD |
11995 | { |
11996 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11997 | } | |
4d5c3d91 RD |
11998 | return resultobj; |
11999 | fail: | |
12000 | return NULL; | |
12001 | } | |
12002 | ||
12003 | ||
36cadbf7 | 12004 | static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args, PyObject *kwargs) { |
4d5c3d91 RD |
12005 | PyObject *resultobj; |
12006 | wxString *arg1 = 0 ; | |
12007 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
12008 | bool result; | |
12009 | bool temp1 = False ; | |
12010 | PyObject * obj0 = 0 ; | |
12011 | PyObject * obj1 = 0 ; | |
36cadbf7 RD |
12012 | char *kwnames[] = { |
12013 | (char *) "filename",(char *) "flags", NULL | |
12014 | }; | |
4d5c3d91 | 12015 | |
36cadbf7 | 12016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail; |
4d5c3d91 RD |
12017 | { |
12018 | arg1 = wxString_in_helper(obj0); | |
12019 | if (arg1 == NULL) SWIG_fail; | |
12020 | temp1 = True; | |
12021 | } | |
12022 | if (obj1) { | |
15afbcd0 RD |
12023 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); |
12024 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12025 | } |
12026 | { | |
e3b71cb8 | 12027 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 12028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 12029 | result = (bool)wxSound::Play((wxString const &)*arg1,arg2); |
d14a1e28 RD |
12030 | |
12031 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12032 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12033 | } |
4f89f6a3 RD |
12034 | { |
12035 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12036 | } | |
4d5c3d91 RD |
12037 | { |
12038 | if (temp1) | |
12039 | delete arg1; | |
12040 | } | |
d14a1e28 RD |
12041 | return resultobj; |
12042 | fail: | |
4d5c3d91 RD |
12043 | { |
12044 | if (temp1) | |
12045 | delete arg1; | |
12046 | } | |
d14a1e28 RD |
12047 | return NULL; |
12048 | } | |
12049 | ||
12050 | ||
4d5c3d91 RD |
12051 | static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { |
12052 | PyObject *resultobj; | |
12053 | char *kwnames[] = { | |
12054 | NULL | |
12055 | }; | |
12056 | ||
12057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; | |
12058 | { | |
e3b71cb8 | 12059 | if (!wxPyCheckForApp()) SWIG_fail; |
4d5c3d91 RD |
12060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12061 | wxSound::Stop(); | |
12062 | ||
12063 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12064 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
12065 | } |
12066 | Py_INCREF(Py_None); resultobj = Py_None; | |
12067 | return resultobj; | |
12068 | fail: | |
12069 | return NULL; | |
12070 | } | |
12071 | ||
12072 | ||
12073 | static PyObject * Sound_swigregister(PyObject *self, PyObject *args) { | |
d14a1e28 RD |
12074 | PyObject *obj; |
12075 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4d5c3d91 | 12076 | SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); |
d14a1e28 RD |
12077 | Py_INCREF(obj); |
12078 | return Py_BuildValue((char *)""); | |
12079 | } | |
12080 | static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12081 | PyObject *resultobj; | |
12082 | wxString *arg1 = 0 ; | |
12083 | wxString *arg2 = 0 ; | |
12084 | wxString *arg3 = 0 ; | |
12085 | wxString *arg4 = 0 ; | |
12086 | wxFileTypeInfo *result; | |
e811c8ce RD |
12087 | bool temp1 = False ; |
12088 | bool temp2 = False ; | |
12089 | bool temp3 = False ; | |
12090 | bool temp4 = False ; | |
d14a1e28 RD |
12091 | PyObject * obj0 = 0 ; |
12092 | PyObject * obj1 = 0 ; | |
12093 | PyObject * obj2 = 0 ; | |
12094 | PyObject * obj3 = 0 ; | |
12095 | char *kwnames[] = { | |
12096 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
12097 | }; | |
12098 | ||
12099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12100 | { | |
12101 | arg1 = wxString_in_helper(obj0); | |
12102 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 12103 | temp1 = True; |
d14a1e28 RD |
12104 | } |
12105 | { | |
12106 | arg2 = wxString_in_helper(obj1); | |
12107 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12108 | temp2 = True; |
d14a1e28 RD |
12109 | } |
12110 | { | |
12111 | arg3 = wxString_in_helper(obj2); | |
12112 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12113 | temp3 = True; |
d14a1e28 RD |
12114 | } |
12115 | { | |
12116 | arg4 = wxString_in_helper(obj3); | |
12117 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 12118 | temp4 = True; |
d14a1e28 RD |
12119 | } |
12120 | { | |
12121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12122 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
12123 | ||
12124 | wxPyEndAllowThreads(__tstate); | |
12125 | if (PyErr_Occurred()) SWIG_fail; | |
12126 | } | |
15afbcd0 | 12127 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 RD |
12128 | { |
12129 | if (temp1) | |
12130 | delete arg1; | |
12131 | } | |
12132 | { | |
12133 | if (temp2) | |
12134 | delete arg2; | |
12135 | } | |
12136 | { | |
12137 | if (temp3) | |
12138 | delete arg3; | |
12139 | } | |
12140 | { | |
12141 | if (temp4) | |
12142 | delete arg4; | |
12143 | } | |
12144 | return resultobj; | |
12145 | fail: | |
12146 | { | |
12147 | if (temp1) | |
12148 | delete arg1; | |
12149 | } | |
12150 | { | |
12151 | if (temp2) | |
12152 | delete arg2; | |
12153 | } | |
12154 | { | |
12155 | if (temp3) | |
12156 | delete arg3; | |
12157 | } | |
12158 | { | |
12159 | if (temp4) | |
12160 | delete arg4; | |
12161 | } | |
12162 | return NULL; | |
12163 | } | |
12164 | ||
12165 | ||
12166 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12167 | PyObject *resultobj; | |
12168 | wxArrayString *arg1 = 0 ; | |
12169 | wxFileTypeInfo *result; | |
3adfb63b | 12170 | bool temp1 = False ; |
d14a1e28 RD |
12171 | PyObject * obj0 = 0 ; |
12172 | char *kwnames[] = { | |
12173 | (char *) "sArray", NULL | |
12174 | }; | |
12175 | ||
12176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
12177 | { | |
12178 | if (! PySequence_Check(obj0)) { | |
12179 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
12180 | SWIG_fail; | |
12181 | } | |
12182 | arg1 = new wxArrayString; | |
3adfb63b | 12183 | temp1 = True; |
d14a1e28 RD |
12184 | int i, len=PySequence_Length(obj0); |
12185 | for (i=0; i<len; i++) { | |
12186 | PyObject* item = PySequence_GetItem(obj0, i); | |
12187 | #if wxUSE_UNICODE | |
12188 | PyObject* str = PyObject_Unicode(item); | |
12189 | #else | |
12190 | PyObject* str = PyObject_Str(item); | |
12191 | #endif | |
74a57fcd | 12192 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12193 | arg1->Add(Py2wxString(str)); |
12194 | Py_DECREF(item); | |
12195 | Py_DECREF(str); | |
12196 | } | |
12197 | } | |
12198 | { | |
12199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12200 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
12201 | ||
12202 | wxPyEndAllowThreads(__tstate); | |
12203 | if (PyErr_Occurred()) SWIG_fail; | |
12204 | } | |
15afbcd0 | 12205 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 | 12206 | { |
3adfb63b | 12207 | if (temp1) delete arg1; |
d14a1e28 RD |
12208 | } |
12209 | return resultobj; | |
12210 | fail: | |
12211 | { | |
3adfb63b | 12212 | if (temp1) delete arg1; |
d14a1e28 RD |
12213 | } |
12214 | return NULL; | |
12215 | } | |
12216 | ||
12217 | ||
12218 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12219 | PyObject *resultobj; | |
12220 | wxFileTypeInfo *result; | |
12221 | char *kwnames[] = { | |
12222 | NULL | |
12223 | }; | |
12224 | ||
12225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
12226 | { | |
12227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12228 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
12229 | ||
12230 | wxPyEndAllowThreads(__tstate); | |
12231 | if (PyErr_Occurred()) SWIG_fail; | |
12232 | } | |
15afbcd0 | 12233 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 RD |
12234 | return resultobj; |
12235 | fail: | |
12236 | return NULL; | |
12237 | } | |
12238 | ||
12239 | ||
12240 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12241 | PyObject *resultobj; | |
12242 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12243 | bool result; | |
12244 | PyObject * obj0 = 0 ; | |
12245 | char *kwnames[] = { | |
12246 | (char *) "self", NULL | |
12247 | }; | |
12248 | ||
12249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12252 | { |
12253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12254 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
12255 | ||
12256 | wxPyEndAllowThreads(__tstate); | |
12257 | if (PyErr_Occurred()) SWIG_fail; | |
12258 | } | |
4f89f6a3 RD |
12259 | { |
12260 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12261 | } | |
d14a1e28 RD |
12262 | return resultobj; |
12263 | fail: | |
12264 | return NULL; | |
12265 | } | |
12266 | ||
12267 | ||
12268 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12269 | PyObject *resultobj; | |
12270 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12271 | wxString *arg2 = 0 ; | |
12272 | int arg3 = (int) 0 ; | |
e811c8ce | 12273 | bool temp2 = False ; |
d14a1e28 RD |
12274 | PyObject * obj0 = 0 ; |
12275 | PyObject * obj1 = 0 ; | |
994141e6 | 12276 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12277 | char *kwnames[] = { |
12278 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
12279 | }; | |
12280 | ||
994141e6 | 12281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12284 | { |
12285 | arg2 = wxString_in_helper(obj1); | |
12286 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12287 | temp2 = True; |
d14a1e28 | 12288 | } |
994141e6 | 12289 | if (obj2) { |
15afbcd0 RD |
12290 | arg3 = (int) SWIG_AsInt(obj2); |
12291 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12292 | } |
d14a1e28 RD |
12293 | { |
12294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12295 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
12296 | ||
12297 | wxPyEndAllowThreads(__tstate); | |
12298 | if (PyErr_Occurred()) SWIG_fail; | |
12299 | } | |
12300 | Py_INCREF(Py_None); resultobj = Py_None; | |
12301 | { | |
12302 | if (temp2) | |
12303 | delete arg2; | |
12304 | } | |
12305 | return resultobj; | |
12306 | fail: | |
12307 | { | |
12308 | if (temp2) | |
12309 | delete arg2; | |
12310 | } | |
12311 | return NULL; | |
12312 | } | |
12313 | ||
12314 | ||
12315 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12316 | PyObject *resultobj; | |
12317 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12318 | wxString *arg2 = 0 ; | |
e811c8ce | 12319 | bool temp2 = False ; |
d14a1e28 RD |
12320 | PyObject * obj0 = 0 ; |
12321 | PyObject * obj1 = 0 ; | |
12322 | char *kwnames[] = { | |
12323 | (char *) "self",(char *) "shortDesc", NULL | |
12324 | }; | |
12325 | ||
12326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12329 | { |
12330 | arg2 = wxString_in_helper(obj1); | |
12331 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12332 | temp2 = True; |
d14a1e28 RD |
12333 | } |
12334 | { | |
12335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12336 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
12337 | ||
12338 | wxPyEndAllowThreads(__tstate); | |
12339 | if (PyErr_Occurred()) SWIG_fail; | |
12340 | } | |
12341 | Py_INCREF(Py_None); resultobj = Py_None; | |
12342 | { | |
12343 | if (temp2) | |
12344 | delete arg2; | |
12345 | } | |
12346 | return resultobj; | |
12347 | fail: | |
12348 | { | |
12349 | if (temp2) | |
12350 | delete arg2; | |
12351 | } | |
12352 | return NULL; | |
12353 | } | |
12354 | ||
12355 | ||
12356 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12357 | PyObject *resultobj; | |
12358 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12359 | wxString *result; | |
12360 | PyObject * obj0 = 0 ; | |
12361 | char *kwnames[] = { | |
12362 | (char *) "self", NULL | |
12363 | }; | |
12364 | ||
12365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12368 | { |
12369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12370 | { | |
12371 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
12372 | result = (wxString *) &_result_ref; | |
12373 | } | |
12374 | ||
12375 | wxPyEndAllowThreads(__tstate); | |
12376 | if (PyErr_Occurred()) SWIG_fail; | |
12377 | } | |
cc6dd355 RD |
12378 | { |
12379 | #if wxUSE_UNICODE | |
12380 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12381 | #else | |
12382 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12383 | #endif | |
12384 | } | |
d14a1e28 RD |
12385 | return resultobj; |
12386 | fail: | |
12387 | return NULL; | |
12388 | } | |
12389 | ||
12390 | ||
12391 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12392 | PyObject *resultobj; | |
12393 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12394 | wxString *result; | |
12395 | PyObject * obj0 = 0 ; | |
12396 | char *kwnames[] = { | |
12397 | (char *) "self", NULL | |
12398 | }; | |
12399 | ||
12400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12403 | { |
12404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12405 | { | |
12406 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
12407 | result = (wxString *) &_result_ref; | |
12408 | } | |
12409 | ||
12410 | wxPyEndAllowThreads(__tstate); | |
12411 | if (PyErr_Occurred()) SWIG_fail; | |
12412 | } | |
cc6dd355 RD |
12413 | { |
12414 | #if wxUSE_UNICODE | |
12415 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12416 | #else | |
12417 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12418 | #endif | |
12419 | } | |
d14a1e28 RD |
12420 | return resultobj; |
12421 | fail: | |
12422 | return NULL; | |
12423 | } | |
12424 | ||
12425 | ||
12426 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12427 | PyObject *resultobj; | |
12428 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12429 | wxString *result; | |
12430 | PyObject * obj0 = 0 ; | |
12431 | char *kwnames[] = { | |
12432 | (char *) "self", NULL | |
12433 | }; | |
12434 | ||
12435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12438 | { |
12439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12440 | { | |
12441 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
12442 | result = (wxString *) &_result_ref; | |
12443 | } | |
12444 | ||
12445 | wxPyEndAllowThreads(__tstate); | |
12446 | if (PyErr_Occurred()) SWIG_fail; | |
12447 | } | |
cc6dd355 RD |
12448 | { |
12449 | #if wxUSE_UNICODE | |
12450 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12451 | #else | |
12452 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12453 | #endif | |
12454 | } | |
d14a1e28 RD |
12455 | return resultobj; |
12456 | fail: | |
12457 | return NULL; | |
12458 | } | |
12459 | ||
12460 | ||
12461 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12462 | PyObject *resultobj; | |
12463 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12464 | wxString *result; | |
12465 | PyObject * obj0 = 0 ; | |
12466 | char *kwnames[] = { | |
12467 | (char *) "self", NULL | |
12468 | }; | |
12469 | ||
12470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12473 | { |
12474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12475 | { | |
12476 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
12477 | result = (wxString *) &_result_ref; | |
12478 | } | |
12479 | ||
12480 | wxPyEndAllowThreads(__tstate); | |
12481 | if (PyErr_Occurred()) SWIG_fail; | |
12482 | } | |
cc6dd355 RD |
12483 | { |
12484 | #if wxUSE_UNICODE | |
12485 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12486 | #else | |
12487 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12488 | #endif | |
12489 | } | |
d14a1e28 RD |
12490 | return resultobj; |
12491 | fail: | |
12492 | return NULL; | |
12493 | } | |
12494 | ||
12495 | ||
12496 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12497 | PyObject *resultobj; | |
12498 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12499 | wxString *result; | |
12500 | PyObject * obj0 = 0 ; | |
12501 | char *kwnames[] = { | |
12502 | (char *) "self", NULL | |
12503 | }; | |
12504 | ||
12505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12508 | { |
12509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12510 | { | |
12511 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
12512 | result = (wxString *) &_result_ref; | |
12513 | } | |
12514 | ||
12515 | wxPyEndAllowThreads(__tstate); | |
12516 | if (PyErr_Occurred()) SWIG_fail; | |
12517 | } | |
cc6dd355 RD |
12518 | { |
12519 | #if wxUSE_UNICODE | |
12520 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12521 | #else | |
12522 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12523 | #endif | |
12524 | } | |
d14a1e28 RD |
12525 | return resultobj; |
12526 | fail: | |
12527 | return NULL; | |
12528 | } | |
12529 | ||
12530 | ||
12531 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12532 | PyObject *resultobj; | |
12533 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12534 | wxArrayString *result; | |
12535 | PyObject * obj0 = 0 ; | |
12536 | char *kwnames[] = { | |
12537 | (char *) "self", NULL | |
12538 | }; | |
12539 | ||
12540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12543 | { |
12544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12545 | { | |
12546 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
12547 | result = (wxArrayString *) &_result_ref; | |
12548 | } | |
12549 | ||
12550 | wxPyEndAllowThreads(__tstate); | |
12551 | if (PyErr_Occurred()) SWIG_fail; | |
12552 | } | |
12553 | { | |
12554 | resultobj = wxArrayString2PyList_helper(*result); | |
12555 | } | |
12556 | return resultobj; | |
12557 | fail: | |
12558 | return NULL; | |
12559 | } | |
12560 | ||
12561 | ||
12562 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12563 | PyObject *resultobj; | |
12564 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12565 | int result; | |
12566 | PyObject * obj0 = 0 ; | |
12567 | char *kwnames[] = { | |
12568 | (char *) "self", NULL | |
12569 | }; | |
12570 | ||
12571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12574 | { |
12575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12576 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
12577 | ||
12578 | wxPyEndAllowThreads(__tstate); | |
12579 | if (PyErr_Occurred()) SWIG_fail; | |
12580 | } | |
15afbcd0 | 12581 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12582 | return resultobj; |
12583 | fail: | |
12584 | return NULL; | |
12585 | } | |
12586 | ||
12587 | ||
12588 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12589 | PyObject *resultobj; | |
12590 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12591 | wxString *result; | |
12592 | PyObject * obj0 = 0 ; | |
12593 | char *kwnames[] = { | |
12594 | (char *) "self", NULL | |
12595 | }; | |
12596 | ||
12597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12600 | { |
12601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12602 | { | |
12603 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
12604 | result = (wxString *) &_result_ref; | |
12605 | } | |
12606 | ||
12607 | wxPyEndAllowThreads(__tstate); | |
12608 | if (PyErr_Occurred()) SWIG_fail; | |
12609 | } | |
cc6dd355 RD |
12610 | { |
12611 | #if wxUSE_UNICODE | |
12612 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12613 | #else | |
12614 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12615 | #endif | |
12616 | } | |
d14a1e28 RD |
12617 | return resultobj; |
12618 | fail: | |
12619 | return NULL; | |
12620 | } | |
12621 | ||
12622 | ||
12623 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12624 | PyObject *resultobj; | |
12625 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12626 | int result; | |
12627 | PyObject * obj0 = 0 ; | |
12628 | char *kwnames[] = { | |
12629 | (char *) "self", NULL | |
12630 | }; | |
12631 | ||
12632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12635 | { |
12636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12637 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
12638 | ||
12639 | wxPyEndAllowThreads(__tstate); | |
12640 | if (PyErr_Occurred()) SWIG_fail; | |
12641 | } | |
15afbcd0 | 12642 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12643 | return resultobj; |
12644 | fail: | |
12645 | return NULL; | |
12646 | } | |
12647 | ||
12648 | ||
12649 | static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) { | |
12650 | PyObject *obj; | |
12651 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12652 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
12653 | Py_INCREF(obj); | |
12654 | return Py_BuildValue((char *)""); | |
12655 | } | |
12656 | static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12657 | PyObject *resultobj; | |
12658 | wxFileTypeInfo *arg1 = 0 ; | |
12659 | wxFileType *result; | |
12660 | PyObject * obj0 = 0 ; | |
12661 | char *kwnames[] = { | |
12662 | (char *) "ftInfo", NULL | |
12663 | }; | |
12664 | ||
12665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12667 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12668 | SWIG_fail; | |
d14a1e28 | 12669 | if (arg1 == NULL) { |
15afbcd0 RD |
12670 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12671 | SWIG_fail; | |
d14a1e28 RD |
12672 | } |
12673 | { | |
12674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12675 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
12676 | ||
12677 | wxPyEndAllowThreads(__tstate); | |
12678 | if (PyErr_Occurred()) SWIG_fail; | |
12679 | } | |
15afbcd0 | 12680 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
12681 | return resultobj; |
12682 | fail: | |
12683 | return NULL; | |
12684 | } | |
12685 | ||
12686 | ||
12687 | static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12688 | PyObject *resultobj; | |
12689 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12690 | PyObject * obj0 = 0 ; | |
12691 | char *kwnames[] = { | |
12692 | (char *) "self", NULL | |
12693 | }; | |
12694 | ||
12695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12698 | { |
12699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12700 | delete arg1; | |
12701 | ||
12702 | wxPyEndAllowThreads(__tstate); | |
12703 | if (PyErr_Occurred()) SWIG_fail; | |
12704 | } | |
12705 | Py_INCREF(Py_None); resultobj = Py_None; | |
12706 | return resultobj; | |
12707 | fail: | |
12708 | return NULL; | |
12709 | } | |
12710 | ||
12711 | ||
12712 | static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12713 | PyObject *resultobj; | |
12714 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12715 | PyObject *result; | |
12716 | PyObject * obj0 = 0 ; | |
12717 | char *kwnames[] = { | |
12718 | (char *) "self", NULL | |
12719 | }; | |
12720 | ||
12721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12724 | { |
12725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12726 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
12727 | ||
12728 | wxPyEndAllowThreads(__tstate); | |
12729 | if (PyErr_Occurred()) SWIG_fail; | |
12730 | } | |
12731 | resultobj = result; | |
12732 | return resultobj; | |
12733 | fail: | |
12734 | return NULL; | |
12735 | } | |
12736 | ||
12737 | ||
12738 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12739 | PyObject *resultobj; | |
12740 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12741 | PyObject *result; | |
12742 | PyObject * obj0 = 0 ; | |
12743 | char *kwnames[] = { | |
12744 | (char *) "self", NULL | |
12745 | }; | |
12746 | ||
12747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12750 | { |
12751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12752 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
12753 | ||
12754 | wxPyEndAllowThreads(__tstate); | |
12755 | if (PyErr_Occurred()) SWIG_fail; | |
12756 | } | |
12757 | resultobj = result; | |
12758 | return resultobj; | |
12759 | fail: | |
12760 | return NULL; | |
12761 | } | |
12762 | ||
12763 | ||
12764 | static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12765 | PyObject *resultobj; | |
12766 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12767 | PyObject *result; | |
12768 | PyObject * obj0 = 0 ; | |
12769 | char *kwnames[] = { | |
12770 | (char *) "self", NULL | |
12771 | }; | |
12772 | ||
12773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12776 | { |
12777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12778 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
12779 | ||
12780 | wxPyEndAllowThreads(__tstate); | |
12781 | if (PyErr_Occurred()) SWIG_fail; | |
12782 | } | |
12783 | resultobj = result; | |
12784 | return resultobj; | |
12785 | fail: | |
12786 | return NULL; | |
12787 | } | |
12788 | ||
12789 | ||
12790 | static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12791 | PyObject *resultobj; | |
12792 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12793 | wxIcon *result; | |
12794 | PyObject * obj0 = 0 ; | |
12795 | char *kwnames[] = { | |
12796 | (char *) "self", NULL | |
12797 | }; | |
12798 | ||
12799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12802 | { |
12803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12804 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
12805 | ||
12806 | wxPyEndAllowThreads(__tstate); | |
12807 | if (PyErr_Occurred()) SWIG_fail; | |
12808 | } | |
15afbcd0 | 12809 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
12810 | return resultobj; |
12811 | fail: | |
12812 | return NULL; | |
12813 | } | |
12814 | ||
12815 | ||
12816 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12817 | PyObject *resultobj; | |
12818 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12819 | PyObject *result; | |
12820 | PyObject * obj0 = 0 ; | |
12821 | char *kwnames[] = { | |
12822 | (char *) "self", NULL | |
12823 | }; | |
12824 | ||
12825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12828 | { |
12829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12830 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
12831 | ||
12832 | wxPyEndAllowThreads(__tstate); | |
12833 | if (PyErr_Occurred()) SWIG_fail; | |
12834 | } | |
12835 | resultobj = result; | |
12836 | return resultobj; | |
12837 | fail: | |
12838 | return NULL; | |
12839 | } | |
12840 | ||
12841 | ||
12842 | static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12843 | PyObject *resultobj; | |
12844 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12845 | PyObject *result; | |
12846 | PyObject * obj0 = 0 ; | |
12847 | char *kwnames[] = { | |
12848 | (char *) "self", NULL | |
12849 | }; | |
12850 | ||
12851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12854 | { |
12855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12856 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
12857 | ||
12858 | wxPyEndAllowThreads(__tstate); | |
12859 | if (PyErr_Occurred()) SWIG_fail; | |
12860 | } | |
12861 | resultobj = result; | |
12862 | return resultobj; | |
12863 | fail: | |
12864 | return NULL; | |
12865 | } | |
12866 | ||
12867 | ||
12868 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12869 | PyObject *resultobj; | |
12870 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12871 | wxString *arg2 = 0 ; | |
12872 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12873 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12874 | PyObject *result; | |
e811c8ce RD |
12875 | bool temp2 = False ; |
12876 | bool temp3 = False ; | |
d14a1e28 RD |
12877 | PyObject * obj0 = 0 ; |
12878 | PyObject * obj1 = 0 ; | |
12879 | PyObject * obj2 = 0 ; | |
12880 | char *kwnames[] = { | |
12881 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12882 | }; | |
12883 | ||
12884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
12885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12887 | { |
12888 | arg2 = wxString_in_helper(obj1); | |
12889 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12890 | temp2 = True; |
d14a1e28 RD |
12891 | } |
12892 | if (obj2) { | |
12893 | { | |
12894 | arg3 = wxString_in_helper(obj2); | |
12895 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12896 | temp3 = True; |
d14a1e28 RD |
12897 | } |
12898 | } | |
12899 | { | |
12900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12901 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12902 | ||
12903 | wxPyEndAllowThreads(__tstate); | |
12904 | if (PyErr_Occurred()) SWIG_fail; | |
12905 | } | |
12906 | resultobj = result; | |
12907 | { | |
12908 | if (temp2) | |
12909 | delete arg2; | |
12910 | } | |
12911 | { | |
12912 | if (temp3) | |
12913 | delete arg3; | |
12914 | } | |
12915 | return resultobj; | |
12916 | fail: | |
12917 | { | |
12918 | if (temp2) | |
12919 | delete arg2; | |
12920 | } | |
12921 | { | |
12922 | if (temp3) | |
12923 | delete arg3; | |
12924 | } | |
12925 | return NULL; | |
12926 | } | |
12927 | ||
12928 | ||
12929 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12930 | PyObject *resultobj; | |
12931 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12932 | wxString *arg2 = 0 ; | |
12933 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12934 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12935 | PyObject *result; | |
e811c8ce RD |
12936 | bool temp2 = False ; |
12937 | bool temp3 = False ; | |
d14a1e28 RD |
12938 | PyObject * obj0 = 0 ; |
12939 | PyObject * obj1 = 0 ; | |
12940 | PyObject * obj2 = 0 ; | |
12941 | char *kwnames[] = { | |
12942 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12943 | }; | |
12944 | ||
12945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
12946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12948 | { |
12949 | arg2 = wxString_in_helper(obj1); | |
12950 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12951 | temp2 = True; |
d14a1e28 RD |
12952 | } |
12953 | if (obj2) { | |
12954 | { | |
12955 | arg3 = wxString_in_helper(obj2); | |
12956 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12957 | temp3 = True; |
d14a1e28 RD |
12958 | } |
12959 | } | |
12960 | { | |
12961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12962 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12963 | ||
12964 | wxPyEndAllowThreads(__tstate); | |
12965 | if (PyErr_Occurred()) SWIG_fail; | |
12966 | } | |
12967 | resultobj = result; | |
12968 | { | |
12969 | if (temp2) | |
12970 | delete arg2; | |
12971 | } | |
12972 | { | |
12973 | if (temp3) | |
12974 | delete arg3; | |
12975 | } | |
12976 | return resultobj; | |
12977 | fail: | |
12978 | { | |
12979 | if (temp2) | |
12980 | delete arg2; | |
12981 | } | |
12982 | { | |
12983 | if (temp3) | |
12984 | delete arg3; | |
12985 | } | |
12986 | return NULL; | |
12987 | } | |
12988 | ||
12989 | ||
12990 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12991 | PyObject *resultobj; | |
12992 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12993 | wxString *arg2 = 0 ; | |
12994 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12995 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12996 | PyObject *result; | |
e811c8ce RD |
12997 | bool temp2 = False ; |
12998 | bool temp3 = False ; | |
d14a1e28 RD |
12999 | PyObject * obj0 = 0 ; |
13000 | PyObject * obj1 = 0 ; | |
13001 | PyObject * obj2 = 0 ; | |
13002 | char *kwnames[] = { | |
13003 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
13004 | }; | |
13005 | ||
13006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
13007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
13008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13009 | { |
13010 | arg2 = wxString_in_helper(obj1); | |
13011 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13012 | temp2 = True; |
d14a1e28 RD |
13013 | } |
13014 | if (obj2) { | |
13015 | { | |
13016 | arg3 = wxString_in_helper(obj2); | |
13017 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 13018 | temp3 = True; |
d14a1e28 RD |
13019 | } |
13020 | } | |
13021 | { | |
13022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13023 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13024 | ||
13025 | wxPyEndAllowThreads(__tstate); | |
13026 | if (PyErr_Occurred()) SWIG_fail; | |
13027 | } | |
13028 | resultobj = result; | |
13029 | { | |
13030 | if (temp2) | |
13031 | delete arg2; | |
13032 | } | |
13033 | { | |
13034 | if (temp3) | |
13035 | delete arg3; | |
13036 | } | |
13037 | return resultobj; | |
13038 | fail: | |
13039 | { | |
13040 | if (temp2) | |
13041 | delete arg2; | |
13042 | } | |
13043 | { | |
13044 | if (temp3) | |
13045 | delete arg3; | |
13046 | } | |
13047 | return NULL; | |
13048 | } | |
13049 | ||
13050 | ||
13051 | static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13052 | PyObject *resultobj; | |
13053 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13054 | wxString *arg2 = 0 ; | |
13055 | wxString *arg3 = 0 ; | |
e811c8ce | 13056 | bool arg4 = (bool) True ; |
d14a1e28 | 13057 | bool result; |
e811c8ce RD |
13058 | bool temp2 = False ; |
13059 | bool temp3 = False ; | |
d14a1e28 RD |
13060 | PyObject * obj0 = 0 ; |
13061 | PyObject * obj1 = 0 ; | |
13062 | PyObject * obj2 = 0 ; | |
13063 | PyObject * obj3 = 0 ; | |
13064 | char *kwnames[] = { | |
13065 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
13066 | }; | |
13067 | ||
13068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
13069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
13070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13071 | { |
13072 | arg2 = wxString_in_helper(obj1); | |
13073 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13074 | temp2 = True; |
d14a1e28 RD |
13075 | } |
13076 | { | |
13077 | arg3 = wxString_in_helper(obj2); | |
13078 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 13079 | temp3 = True; |
d14a1e28 RD |
13080 | } |
13081 | if (obj3) { | |
15afbcd0 RD |
13082 | arg4 = (bool) SWIG_AsBool(obj3); |
13083 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13084 | } |
13085 | { | |
13086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13087 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
13088 | ||
13089 | wxPyEndAllowThreads(__tstate); | |
13090 | if (PyErr_Occurred()) SWIG_fail; | |
13091 | } | |
4f89f6a3 RD |
13092 | { |
13093 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13094 | } | |
d14a1e28 RD |
13095 | { |
13096 | if (temp2) | |
13097 | delete arg2; | |
13098 | } | |
13099 | { | |
13100 | if (temp3) | |
13101 | delete arg3; | |
13102 | } | |
13103 | return resultobj; | |
13104 | fail: | |
13105 | { | |
13106 | if (temp2) | |
13107 | delete arg2; | |
13108 | } | |
13109 | { | |
13110 | if (temp3) | |
13111 | delete arg3; | |
13112 | } | |
13113 | return NULL; | |
13114 | } | |
13115 | ||
13116 | ||
13117 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13118 | PyObject *resultobj; | |
13119 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13120 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
13121 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
13122 | int arg3 = (int) 0 ; | |
13123 | bool result; | |
e811c8ce | 13124 | bool temp2 = False ; |
d14a1e28 RD |
13125 | PyObject * obj0 = 0 ; |
13126 | PyObject * obj1 = 0 ; | |
994141e6 | 13127 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13128 | char *kwnames[] = { |
13129 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
13130 | }; | |
13131 | ||
994141e6 | 13132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
13134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13135 | if (obj1) { |
13136 | { | |
13137 | arg2 = wxString_in_helper(obj1); | |
13138 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13139 | temp2 = True; |
d14a1e28 RD |
13140 | } |
13141 | } | |
994141e6 | 13142 | if (obj2) { |
15afbcd0 RD |
13143 | arg3 = (int) SWIG_AsInt(obj2); |
13144 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13145 | } |
d14a1e28 RD |
13146 | { |
13147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13148 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
13149 | ||
13150 | wxPyEndAllowThreads(__tstate); | |
13151 | if (PyErr_Occurred()) SWIG_fail; | |
13152 | } | |
4f89f6a3 RD |
13153 | { |
13154 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13155 | } | |
d14a1e28 RD |
13156 | { |
13157 | if (temp2) | |
13158 | delete arg2; | |
13159 | } | |
13160 | return resultobj; | |
13161 | fail: | |
13162 | { | |
13163 | if (temp2) | |
13164 | delete arg2; | |
13165 | } | |
13166 | return NULL; | |
13167 | } | |
13168 | ||
13169 | ||
13170 | static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13171 | PyObject *resultobj; | |
13172 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13173 | bool result; | |
13174 | PyObject * obj0 = 0 ; | |
13175 | char *kwnames[] = { | |
13176 | (char *) "self", NULL | |
13177 | }; | |
13178 | ||
13179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
13181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13182 | { |
13183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13184 | result = (bool)(arg1)->Unassociate(); | |
13185 | ||
13186 | wxPyEndAllowThreads(__tstate); | |
13187 | if (PyErr_Occurred()) SWIG_fail; | |
13188 | } | |
4f89f6a3 RD |
13189 | { |
13190 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13191 | } | |
d14a1e28 RD |
13192 | return resultobj; |
13193 | fail: | |
13194 | return NULL; | |
13195 | } | |
13196 | ||
13197 | ||
13198 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13199 | PyObject *resultobj; | |
13200 | wxString *arg1 = 0 ; | |
13201 | wxString *arg2 = 0 ; | |
13202 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13203 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13204 | wxString result; | |
e811c8ce RD |
13205 | bool temp1 = False ; |
13206 | bool temp2 = False ; | |
13207 | bool temp3 = False ; | |
d14a1e28 RD |
13208 | PyObject * obj0 = 0 ; |
13209 | PyObject * obj1 = 0 ; | |
13210 | PyObject * obj2 = 0 ; | |
13211 | char *kwnames[] = { | |
13212 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
13213 | }; | |
13214 | ||
13215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13216 | { | |
13217 | arg1 = wxString_in_helper(obj0); | |
13218 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 13219 | temp1 = True; |
d14a1e28 RD |
13220 | } |
13221 | { | |
13222 | arg2 = wxString_in_helper(obj1); | |
13223 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13224 | temp2 = True; |
d14a1e28 RD |
13225 | } |
13226 | if (obj2) { | |
13227 | { | |
13228 | arg3 = wxString_in_helper(obj2); | |
13229 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 13230 | temp3 = True; |
d14a1e28 RD |
13231 | } |
13232 | } | |
13233 | { | |
13234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13235 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13236 | ||
13237 | wxPyEndAllowThreads(__tstate); | |
13238 | if (PyErr_Occurred()) SWIG_fail; | |
13239 | } | |
13240 | { | |
13241 | #if wxUSE_UNICODE | |
13242 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13243 | #else | |
13244 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13245 | #endif | |
13246 | } | |
13247 | { | |
13248 | if (temp1) | |
13249 | delete arg1; | |
13250 | } | |
13251 | { | |
13252 | if (temp2) | |
13253 | delete arg2; | |
13254 | } | |
13255 | { | |
13256 | if (temp3) | |
13257 | delete arg3; | |
13258 | } | |
13259 | return resultobj; | |
13260 | fail: | |
13261 | { | |
13262 | if (temp1) | |
13263 | delete arg1; | |
13264 | } | |
13265 | { | |
13266 | if (temp2) | |
13267 | delete arg2; | |
13268 | } | |
13269 | { | |
13270 | if (temp3) | |
13271 | delete arg3; | |
13272 | } | |
13273 | return NULL; | |
13274 | } | |
13275 | ||
13276 | ||
13277 | static PyObject * FileType_swigregister(PyObject *self, PyObject *args) { | |
13278 | PyObject *obj; | |
13279 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13280 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
13281 | Py_INCREF(obj); | |
13282 | return Py_BuildValue((char *)""); | |
13283 | } | |
13284 | static int _wrap_TheMimeTypesManager_set(PyObject *_val) { | |
13285 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); | |
13286 | return 1; | |
13287 | } | |
13288 | ||
13289 | ||
13290 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
13291 | PyObject *pyobj; | |
13292 | ||
15afbcd0 | 13293 | pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0); |
d14a1e28 RD |
13294 | return pyobj; |
13295 | } | |
13296 | ||
13297 | ||
13298 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13299 | PyObject *resultobj; | |
13300 | wxString *arg1 = 0 ; | |
13301 | wxString *arg2 = 0 ; | |
13302 | bool result; | |
e811c8ce RD |
13303 | bool temp1 = False ; |
13304 | bool temp2 = False ; | |
d14a1e28 RD |
13305 | PyObject * obj0 = 0 ; |
13306 | PyObject * obj1 = 0 ; | |
13307 | char *kwnames[] = { | |
13308 | (char *) "mimeType",(char *) "wildcard", NULL | |
13309 | }; | |
13310 | ||
13311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
13312 | { | |
13313 | arg1 = wxString_in_helper(obj0); | |
13314 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 13315 | temp1 = True; |
d14a1e28 RD |
13316 | } |
13317 | { | |
13318 | arg2 = wxString_in_helper(obj1); | |
13319 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13320 | temp2 = True; |
d14a1e28 RD |
13321 | } |
13322 | { | |
13323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13324 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
13325 | ||
13326 | wxPyEndAllowThreads(__tstate); | |
13327 | if (PyErr_Occurred()) SWIG_fail; | |
13328 | } | |
4f89f6a3 RD |
13329 | { |
13330 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13331 | } | |
d14a1e28 RD |
13332 | { |
13333 | if (temp1) | |
13334 | delete arg1; | |
13335 | } | |
13336 | { | |
13337 | if (temp2) | |
13338 | delete arg2; | |
13339 | } | |
13340 | return resultobj; | |
13341 | fail: | |
13342 | { | |
13343 | if (temp1) | |
13344 | delete arg1; | |
13345 | } | |
13346 | { | |
13347 | if (temp2) | |
13348 | delete arg2; | |
13349 | } | |
13350 | return NULL; | |
13351 | } | |
13352 | ||
13353 | ||
13354 | static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13355 | PyObject *resultobj; | |
13356 | wxMimeTypesManager *result; | |
13357 | char *kwnames[] = { | |
13358 | NULL | |
13359 | }; | |
13360 | ||
13361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
13362 | { | |
13363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13364 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
13365 | ||
13366 | wxPyEndAllowThreads(__tstate); | |
13367 | if (PyErr_Occurred()) SWIG_fail; | |
13368 | } | |
15afbcd0 | 13369 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1); |
d14a1e28 RD |
13370 | return resultobj; |
13371 | fail: | |
13372 | return NULL; | |
13373 | } | |
13374 | ||
13375 | ||
13376 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13377 | PyObject *resultobj; | |
13378 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13379 | int arg2 = (int) wxMAILCAP_ALL ; | |
13380 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13381 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
e811c8ce | 13382 | bool temp3 = False ; |
d14a1e28 | 13383 | PyObject * obj0 = 0 ; |
994141e6 | 13384 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13385 | PyObject * obj2 = 0 ; |
13386 | char *kwnames[] = { | |
13387 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
13388 | }; | |
13389 | ||
994141e6 | 13390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 13393 | if (obj1) { |
15afbcd0 RD |
13394 | arg2 = (int) SWIG_AsInt(obj1); |
13395 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13396 | } |
d14a1e28 RD |
13397 | if (obj2) { |
13398 | { | |
13399 | arg3 = wxString_in_helper(obj2); | |
13400 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 13401 | temp3 = True; |
d14a1e28 RD |
13402 | } |
13403 | } | |
13404 | { | |
13405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13406 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
13407 | ||
13408 | wxPyEndAllowThreads(__tstate); | |
13409 | if (PyErr_Occurred()) SWIG_fail; | |
13410 | } | |
13411 | Py_INCREF(Py_None); resultobj = Py_None; | |
13412 | { | |
13413 | if (temp3) | |
13414 | delete arg3; | |
13415 | } | |
13416 | return resultobj; | |
13417 | fail: | |
13418 | { | |
13419 | if (temp3) | |
13420 | delete arg3; | |
13421 | } | |
13422 | return NULL; | |
13423 | } | |
13424 | ||
13425 | ||
13426 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13427 | PyObject *resultobj; | |
13428 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13429 | PyObject * obj0 = 0 ; | |
13430 | char *kwnames[] = { | |
13431 | (char *) "self", NULL | |
13432 | }; | |
13433 | ||
13434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13437 | { |
13438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13439 | (arg1)->ClearData(); | |
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_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13452 | PyObject *resultobj; | |
13453 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13454 | wxString *arg2 = 0 ; | |
13455 | wxFileType *result; | |
e811c8ce | 13456 | bool temp2 = False ; |
d14a1e28 RD |
13457 | PyObject * obj0 = 0 ; |
13458 | PyObject * obj1 = 0 ; | |
13459 | char *kwnames[] = { | |
13460 | (char *) "self",(char *) "ext", NULL | |
13461 | }; | |
13462 | ||
13463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13466 | { |
13467 | arg2 = wxString_in_helper(obj1); | |
13468 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13469 | temp2 = True; |
d14a1e28 RD |
13470 | } |
13471 | { | |
13472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13473 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
13474 | ||
13475 | wxPyEndAllowThreads(__tstate); | |
13476 | if (PyErr_Occurred()) SWIG_fail; | |
13477 | } | |
15afbcd0 | 13478 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
13479 | { |
13480 | if (temp2) | |
13481 | delete arg2; | |
13482 | } | |
13483 | return resultobj; | |
13484 | fail: | |
13485 | { | |
13486 | if (temp2) | |
13487 | delete arg2; | |
13488 | } | |
13489 | return NULL; | |
13490 | } | |
13491 | ||
13492 | ||
13493 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13494 | PyObject *resultobj; | |
13495 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13496 | wxString *arg2 = 0 ; | |
13497 | wxFileType *result; | |
e811c8ce | 13498 | bool temp2 = False ; |
d14a1e28 RD |
13499 | PyObject * obj0 = 0 ; |
13500 | PyObject * obj1 = 0 ; | |
13501 | char *kwnames[] = { | |
13502 | (char *) "self",(char *) "mimeType", NULL | |
13503 | }; | |
13504 | ||
13505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13508 | { |
13509 | arg2 = wxString_in_helper(obj1); | |
13510 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13511 | temp2 = True; |
d14a1e28 RD |
13512 | } |
13513 | { | |
13514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13515 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
13516 | ||
13517 | wxPyEndAllowThreads(__tstate); | |
13518 | if (PyErr_Occurred()) SWIG_fail; | |
13519 | } | |
15afbcd0 | 13520 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
13521 | { |
13522 | if (temp2) | |
13523 | delete arg2; | |
13524 | } | |
13525 | return resultobj; | |
13526 | fail: | |
13527 | { | |
13528 | if (temp2) | |
13529 | delete arg2; | |
13530 | } | |
13531 | return NULL; | |
13532 | } | |
13533 | ||
13534 | ||
13535 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13536 | PyObject *resultobj; | |
13537 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13538 | wxString *arg2 = 0 ; | |
e811c8ce | 13539 | bool arg3 = (bool) False ; |
d14a1e28 | 13540 | bool result; |
e811c8ce | 13541 | bool temp2 = False ; |
d14a1e28 RD |
13542 | PyObject * obj0 = 0 ; |
13543 | PyObject * obj1 = 0 ; | |
13544 | PyObject * obj2 = 0 ; | |
13545 | char *kwnames[] = { | |
13546 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
13547 | }; | |
13548 | ||
13549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
13550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13552 | { |
13553 | arg2 = wxString_in_helper(obj1); | |
13554 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13555 | temp2 = True; |
d14a1e28 RD |
13556 | } |
13557 | if (obj2) { | |
15afbcd0 RD |
13558 | arg3 = (bool) SWIG_AsBool(obj2); |
13559 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13560 | } |
13561 | { | |
13562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13563 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
13564 | ||
13565 | wxPyEndAllowThreads(__tstate); | |
13566 | if (PyErr_Occurred()) SWIG_fail; | |
13567 | } | |
4f89f6a3 RD |
13568 | { |
13569 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13570 | } | |
d14a1e28 RD |
13571 | { |
13572 | if (temp2) | |
13573 | delete arg2; | |
13574 | } | |
13575 | return resultobj; | |
13576 | fail: | |
13577 | { | |
13578 | if (temp2) | |
13579 | delete arg2; | |
13580 | } | |
13581 | return NULL; | |
13582 | } | |
13583 | ||
13584 | ||
13585 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13586 | PyObject *resultobj; | |
13587 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13588 | wxString *arg2 = 0 ; | |
13589 | bool result; | |
e811c8ce | 13590 | bool temp2 = False ; |
d14a1e28 RD |
13591 | PyObject * obj0 = 0 ; |
13592 | PyObject * obj1 = 0 ; | |
13593 | char *kwnames[] = { | |
13594 | (char *) "self",(char *) "filename", NULL | |
13595 | }; | |
13596 | ||
13597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13600 | { |
13601 | arg2 = wxString_in_helper(obj1); | |
13602 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13603 | temp2 = True; |
d14a1e28 RD |
13604 | } |
13605 | { | |
13606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13607 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
13608 | ||
13609 | wxPyEndAllowThreads(__tstate); | |
13610 | if (PyErr_Occurred()) SWIG_fail; | |
13611 | } | |
4f89f6a3 RD |
13612 | { |
13613 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13614 | } | |
d14a1e28 RD |
13615 | { |
13616 | if (temp2) | |
13617 | delete arg2; | |
13618 | } | |
13619 | return resultobj; | |
13620 | fail: | |
13621 | { | |
13622 | if (temp2) | |
13623 | delete arg2; | |
13624 | } | |
13625 | return NULL; | |
13626 | } | |
13627 | ||
13628 | ||
13629 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13630 | PyObject *resultobj; | |
13631 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13632 | PyObject *result; | |
13633 | PyObject * obj0 = 0 ; | |
13634 | char *kwnames[] = { | |
13635 | (char *) "self", NULL | |
13636 | }; | |
13637 | ||
13638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13641 | { |
13642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13643 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
13644 | ||
13645 | wxPyEndAllowThreads(__tstate); | |
13646 | if (PyErr_Occurred()) SWIG_fail; | |
13647 | } | |
13648 | resultobj = result; | |
13649 | return resultobj; | |
13650 | fail: | |
13651 | return NULL; | |
13652 | } | |
13653 | ||
13654 | ||
13655 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13656 | PyObject *resultobj; | |
13657 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13658 | wxFileTypeInfo *arg2 = 0 ; | |
13659 | PyObject * obj0 = 0 ; | |
13660 | PyObject * obj1 = 0 ; | |
13661 | char *kwnames[] = { | |
13662 | (char *) "self",(char *) "ft", NULL | |
13663 | }; | |
13664 | ||
13665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13668 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13669 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13670 | SWIG_fail; | |
d14a1e28 | 13671 | if (arg2 == NULL) { |
15afbcd0 RD |
13672 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13673 | SWIG_fail; | |
d14a1e28 RD |
13674 | } |
13675 | { | |
13676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13677 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
13678 | ||
13679 | wxPyEndAllowThreads(__tstate); | |
13680 | if (PyErr_Occurred()) SWIG_fail; | |
13681 | } | |
13682 | Py_INCREF(Py_None); resultobj = Py_None; | |
13683 | return resultobj; | |
13684 | fail: | |
13685 | return NULL; | |
13686 | } | |
13687 | ||
13688 | ||
13689 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13690 | PyObject *resultobj; | |
13691 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13692 | wxFileTypeInfo *arg2 = 0 ; | |
13693 | wxFileType *result; | |
13694 | PyObject * obj0 = 0 ; | |
13695 | PyObject * obj1 = 0 ; | |
13696 | char *kwnames[] = { | |
13697 | (char *) "self",(char *) "ftInfo", NULL | |
13698 | }; | |
13699 | ||
13700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13703 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13704 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13705 | SWIG_fail; | |
d14a1e28 | 13706 | if (arg2 == NULL) { |
15afbcd0 RD |
13707 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13708 | SWIG_fail; | |
d14a1e28 RD |
13709 | } |
13710 | { | |
13711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13712 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
13713 | ||
13714 | wxPyEndAllowThreads(__tstate); | |
13715 | if (PyErr_Occurred()) SWIG_fail; | |
13716 | } | |
15afbcd0 | 13717 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
13718 | return resultobj; |
13719 | fail: | |
13720 | return NULL; | |
13721 | } | |
13722 | ||
13723 | ||
13724 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13725 | PyObject *resultobj; | |
13726 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13727 | wxFileType *arg2 = (wxFileType *) 0 ; | |
13728 | bool result; | |
13729 | PyObject * obj0 = 0 ; | |
13730 | PyObject * obj1 = 0 ; | |
13731 | char *kwnames[] = { | |
13732 | (char *) "self",(char *) "ft", NULL | |
13733 | }; | |
13734 | ||
13735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13738 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType, | |
13739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13740 | { |
13741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13742 | result = (bool)(arg1)->Unassociate(arg2); | |
13743 | ||
13744 | wxPyEndAllowThreads(__tstate); | |
13745 | if (PyErr_Occurred()) SWIG_fail; | |
13746 | } | |
4f89f6a3 RD |
13747 | { |
13748 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13749 | } | |
d14a1e28 RD |
13750 | return resultobj; |
13751 | fail: | |
13752 | return NULL; | |
13753 | } | |
13754 | ||
13755 | ||
13756 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13757 | PyObject *resultobj; | |
13758 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13759 | PyObject * obj0 = 0 ; | |
13760 | char *kwnames[] = { | |
13761 | (char *) "self", NULL | |
13762 | }; | |
13763 | ||
13764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13767 | { |
13768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13769 | delete arg1; | |
13770 | ||
13771 | wxPyEndAllowThreads(__tstate); | |
13772 | if (PyErr_Occurred()) SWIG_fail; | |
13773 | } | |
13774 | Py_INCREF(Py_None); resultobj = Py_None; | |
13775 | return resultobj; | |
13776 | fail: | |
13777 | return NULL; | |
13778 | } | |
13779 | ||
13780 | ||
13781 | static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) { | |
13782 | PyObject *obj; | |
13783 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13784 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
13785 | Py_INCREF(obj); | |
13786 | return Py_BuildValue((char *)""); | |
13787 | } | |
13788 | static int _wrap_ART_TOOLBAR_set(PyObject *_val) { | |
13789 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); | |
13790 | return 1; | |
13791 | } | |
13792 | ||
13793 | ||
13794 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
13795 | PyObject *pyobj; | |
13796 | ||
13797 | { | |
13798 | #if wxUSE_UNICODE | |
13799 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13800 | #else | |
13801 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13802 | #endif | |
13803 | } | |
13804 | return pyobj; | |
13805 | } | |
13806 | ||
13807 | ||
13808 | static int _wrap_ART_MENU_set(PyObject *_val) { | |
13809 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); | |
13810 | return 1; | |
13811 | } | |
13812 | ||
13813 | ||
13814 | static PyObject *_wrap_ART_MENU_get() { | |
13815 | PyObject *pyobj; | |
13816 | ||
13817 | { | |
13818 | #if wxUSE_UNICODE | |
13819 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13820 | #else | |
13821 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13822 | #endif | |
13823 | } | |
13824 | return pyobj; | |
13825 | } | |
13826 | ||
13827 | ||
13828 | static int _wrap_ART_FRAME_ICON_set(PyObject *_val) { | |
13829 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); | |
13830 | return 1; | |
13831 | } | |
13832 | ||
13833 | ||
13834 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
13835 | PyObject *pyobj; | |
13836 | ||
13837 | { | |
13838 | #if wxUSE_UNICODE | |
13839 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13840 | #else | |
13841 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13842 | #endif | |
13843 | } | |
13844 | return pyobj; | |
13845 | } | |
13846 | ||
13847 | ||
13848 | static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) { | |
13849 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); | |
13850 | return 1; | |
13851 | } | |
13852 | ||
13853 | ||
13854 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
13855 | PyObject *pyobj; | |
13856 | ||
13857 | { | |
13858 | #if wxUSE_UNICODE | |
13859 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13860 | #else | |
13861 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13862 | #endif | |
13863 | } | |
13864 | return pyobj; | |
13865 | } | |
13866 | ||
13867 | ||
13868 | static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) { | |
13869 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); | |
13870 | return 1; | |
13871 | } | |
13872 | ||
13873 | ||
13874 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
13875 | PyObject *pyobj; | |
13876 | ||
13877 | { | |
13878 | #if wxUSE_UNICODE | |
13879 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13880 | #else | |
13881 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13882 | #endif | |
13883 | } | |
13884 | return pyobj; | |
13885 | } | |
13886 | ||
13887 | ||
13888 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) { | |
13889 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); | |
13890 | return 1; | |
13891 | } | |
13892 | ||
13893 | ||
13894 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
13895 | PyObject *pyobj; | |
13896 | ||
13897 | { | |
13898 | #if wxUSE_UNICODE | |
13899 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13900 | #else | |
13901 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13902 | #endif | |
13903 | } | |
13904 | return pyobj; | |
13905 | } | |
13906 | ||
13907 | ||
4cf4100f RD |
13908 | static int _wrap_ART_BUTTON_set(PyObject *_val) { |
13909 | PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only."); | |
13910 | return 1; | |
13911 | } | |
13912 | ||
13913 | ||
13914 | static PyObject *_wrap_ART_BUTTON_get() { | |
13915 | PyObject *pyobj; | |
13916 | ||
13917 | { | |
13918 | #if wxUSE_UNICODE | |
13919 | pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len()); | |
13920 | #else | |
13921 | pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len()); | |
13922 | #endif | |
13923 | } | |
13924 | return pyobj; | |
13925 | } | |
13926 | ||
13927 | ||
d14a1e28 RD |
13928 | static int _wrap_ART_OTHER_set(PyObject *_val) { |
13929 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); | |
13930 | return 1; | |
13931 | } | |
13932 | ||
13933 | ||
13934 | static PyObject *_wrap_ART_OTHER_get() { | |
13935 | PyObject *pyobj; | |
13936 | ||
13937 | { | |
13938 | #if wxUSE_UNICODE | |
13939 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13940 | #else | |
13941 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13942 | #endif | |
13943 | } | |
13944 | return pyobj; | |
13945 | } | |
13946 | ||
13947 | ||
13948 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) { | |
13949 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); | |
13950 | return 1; | |
13951 | } | |
13952 | ||
13953 | ||
13954 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
13955 | PyObject *pyobj; | |
13956 | ||
13957 | { | |
13958 | #if wxUSE_UNICODE | |
13959 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13960 | #else | |
13961 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13962 | #endif | |
13963 | } | |
13964 | return pyobj; | |
13965 | } | |
13966 | ||
13967 | ||
13968 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) { | |
13969 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); | |
13970 | return 1; | |
13971 | } | |
13972 | ||
13973 | ||
13974 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
13975 | PyObject *pyobj; | |
13976 | ||
13977 | { | |
13978 | #if wxUSE_UNICODE | |
13979 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13980 | #else | |
13981 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13982 | #endif | |
13983 | } | |
13984 | return pyobj; | |
13985 | } | |
13986 | ||
13987 | ||
13988 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) { | |
13989 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); | |
13990 | return 1; | |
13991 | } | |
13992 | ||
13993 | ||
13994 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
13995 | PyObject *pyobj; | |
13996 | ||
13997 | { | |
13998 | #if wxUSE_UNICODE | |
13999 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
14000 | #else | |
14001 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
14002 | #endif | |
14003 | } | |
14004 | return pyobj; | |
14005 | } | |
14006 | ||
14007 | ||
14008 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) { | |
14009 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); | |
14010 | return 1; | |
14011 | } | |
14012 | ||
14013 | ||
14014 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
14015 | PyObject *pyobj; | |
14016 | ||
14017 | { | |
14018 | #if wxUSE_UNICODE | |
14019 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
14020 | #else | |
14021 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
14022 | #endif | |
14023 | } | |
14024 | return pyobj; | |
14025 | } | |
14026 | ||
14027 | ||
14028 | static int _wrap_ART_HELP_BOOK_set(PyObject *_val) { | |
14029 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); | |
14030 | return 1; | |
14031 | } | |
14032 | ||
14033 | ||
14034 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
14035 | PyObject *pyobj; | |
14036 | ||
14037 | { | |
14038 | #if wxUSE_UNICODE | |
14039 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
14040 | #else | |
14041 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
14042 | #endif | |
14043 | } | |
14044 | return pyobj; | |
14045 | } | |
14046 | ||
14047 | ||
14048 | static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) { | |
14049 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); | |
14050 | return 1; | |
14051 | } | |
14052 | ||
14053 | ||
14054 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
14055 | PyObject *pyobj; | |
14056 | ||
14057 | { | |
14058 | #if wxUSE_UNICODE | |
14059 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
14060 | #else | |
14061 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
14062 | #endif | |
14063 | } | |
14064 | return pyobj; | |
14065 | } | |
14066 | ||
14067 | ||
14068 | static int _wrap_ART_HELP_PAGE_set(PyObject *_val) { | |
14069 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); | |
14070 | return 1; | |
14071 | } | |
14072 | ||
14073 | ||
14074 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
14075 | PyObject *pyobj; | |
14076 | ||
14077 | { | |
14078 | #if wxUSE_UNICODE | |
14079 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
14080 | #else | |
14081 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
14082 | #endif | |
14083 | } | |
14084 | return pyobj; | |
14085 | } | |
14086 | ||
14087 | ||
14088 | static int _wrap_ART_GO_BACK_set(PyObject *_val) { | |
14089 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); | |
14090 | return 1; | |
14091 | } | |
14092 | ||
14093 | ||
14094 | static PyObject *_wrap_ART_GO_BACK_get() { | |
14095 | PyObject *pyobj; | |
14096 | ||
14097 | { | |
14098 | #if wxUSE_UNICODE | |
14099 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
14100 | #else | |
14101 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
14102 | #endif | |
14103 | } | |
14104 | return pyobj; | |
14105 | } | |
14106 | ||
14107 | ||
14108 | static int _wrap_ART_GO_FORWARD_set(PyObject *_val) { | |
14109 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); | |
14110 | return 1; | |
14111 | } | |
14112 | ||
14113 | ||
14114 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
14115 | PyObject *pyobj; | |
14116 | ||
14117 | { | |
14118 | #if wxUSE_UNICODE | |
14119 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
14120 | #else | |
14121 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
14122 | #endif | |
14123 | } | |
14124 | return pyobj; | |
14125 | } | |
14126 | ||
14127 | ||
14128 | static int _wrap_ART_GO_UP_set(PyObject *_val) { | |
14129 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); | |
14130 | return 1; | |
14131 | } | |
14132 | ||
14133 | ||
14134 | static PyObject *_wrap_ART_GO_UP_get() { | |
14135 | PyObject *pyobj; | |
14136 | ||
14137 | { | |
14138 | #if wxUSE_UNICODE | |
14139 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
14140 | #else | |
14141 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
14142 | #endif | |
14143 | } | |
14144 | return pyobj; | |
14145 | } | |
14146 | ||
14147 | ||
14148 | static int _wrap_ART_GO_DOWN_set(PyObject *_val) { | |
14149 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); | |
14150 | return 1; | |
14151 | } | |
14152 | ||
14153 | ||
14154 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
14155 | PyObject *pyobj; | |
14156 | ||
14157 | { | |
14158 | #if wxUSE_UNICODE | |
14159 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
14160 | #else | |
14161 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
14162 | #endif | |
14163 | } | |
14164 | return pyobj; | |
14165 | } | |
14166 | ||
14167 | ||
14168 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) { | |
14169 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); | |
14170 | return 1; | |
14171 | } | |
14172 | ||
14173 | ||
14174 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
14175 | PyObject *pyobj; | |
14176 | ||
14177 | { | |
14178 | #if wxUSE_UNICODE | |
14179 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
14180 | #else | |
14181 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
14182 | #endif | |
14183 | } | |
14184 | return pyobj; | |
14185 | } | |
14186 | ||
14187 | ||
14188 | static int _wrap_ART_GO_HOME_set(PyObject *_val) { | |
14189 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); | |
14190 | return 1; | |
14191 | } | |
14192 | ||
14193 | ||
14194 | static PyObject *_wrap_ART_GO_HOME_get() { | |
14195 | PyObject *pyobj; | |
14196 | ||
14197 | { | |
14198 | #if wxUSE_UNICODE | |
14199 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
14200 | #else | |
14201 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
14202 | #endif | |
14203 | } | |
14204 | return pyobj; | |
14205 | } | |
14206 | ||
14207 | ||
14208 | static int _wrap_ART_FILE_OPEN_set(PyObject *_val) { | |
14209 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); | |
14210 | return 1; | |
14211 | } | |
14212 | ||
14213 | ||
14214 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
14215 | PyObject *pyobj; | |
14216 | ||
14217 | { | |
14218 | #if wxUSE_UNICODE | |
14219 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
14220 | #else | |
14221 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
14222 | #endif | |
14223 | } | |
14224 | return pyobj; | |
14225 | } | |
14226 | ||
14227 | ||
14228 | static int _wrap_ART_PRINT_set(PyObject *_val) { | |
14229 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); | |
14230 | return 1; | |
14231 | } | |
14232 | ||
14233 | ||
14234 | static PyObject *_wrap_ART_PRINT_get() { | |
14235 | PyObject *pyobj; | |
14236 | ||
14237 | { | |
14238 | #if wxUSE_UNICODE | |
14239 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
14240 | #else | |
14241 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
14242 | #endif | |
14243 | } | |
14244 | return pyobj; | |
14245 | } | |
14246 | ||
14247 | ||
14248 | static int _wrap_ART_HELP_set(PyObject *_val) { | |
14249 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); | |
14250 | return 1; | |
14251 | } | |
14252 | ||
14253 | ||
14254 | static PyObject *_wrap_ART_HELP_get() { | |
14255 | PyObject *pyobj; | |
14256 | ||
14257 | { | |
14258 | #if wxUSE_UNICODE | |
14259 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
14260 | #else | |
14261 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
14262 | #endif | |
14263 | } | |
14264 | return pyobj; | |
14265 | } | |
14266 | ||
14267 | ||
14268 | static int _wrap_ART_TIP_set(PyObject *_val) { | |
14269 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); | |
14270 | return 1; | |
14271 | } | |
14272 | ||
14273 | ||
14274 | static PyObject *_wrap_ART_TIP_get() { | |
14275 | PyObject *pyobj; | |
14276 | ||
14277 | { | |
14278 | #if wxUSE_UNICODE | |
14279 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14280 | #else | |
14281 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14282 | #endif | |
14283 | } | |
14284 | return pyobj; | |
14285 | } | |
14286 | ||
14287 | ||
14288 | static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) { | |
14289 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); | |
14290 | return 1; | |
14291 | } | |
14292 | ||
14293 | ||
14294 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
14295 | PyObject *pyobj; | |
14296 | ||
14297 | { | |
14298 | #if wxUSE_UNICODE | |
14299 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14300 | #else | |
14301 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14302 | #endif | |
14303 | } | |
14304 | return pyobj; | |
14305 | } | |
14306 | ||
14307 | ||
14308 | static int _wrap_ART_LIST_VIEW_set(PyObject *_val) { | |
14309 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); | |
14310 | return 1; | |
14311 | } | |
14312 | ||
14313 | ||
14314 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
14315 | PyObject *pyobj; | |
14316 | ||
14317 | { | |
14318 | #if wxUSE_UNICODE | |
14319 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14320 | #else | |
14321 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14322 | #endif | |
14323 | } | |
14324 | return pyobj; | |
14325 | } | |
14326 | ||
14327 | ||
14328 | static int _wrap_ART_NEW_DIR_set(PyObject *_val) { | |
14329 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); | |
14330 | return 1; | |
14331 | } | |
14332 | ||
14333 | ||
14334 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
14335 | PyObject *pyobj; | |
14336 | ||
14337 | { | |
14338 | #if wxUSE_UNICODE | |
14339 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14340 | #else | |
14341 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14342 | #endif | |
14343 | } | |
14344 | return pyobj; | |
14345 | } | |
14346 | ||
14347 | ||
14348 | static int _wrap_ART_FOLDER_set(PyObject *_val) { | |
14349 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); | |
14350 | return 1; | |
14351 | } | |
14352 | ||
14353 | ||
14354 | static PyObject *_wrap_ART_FOLDER_get() { | |
14355 | PyObject *pyobj; | |
14356 | ||
14357 | { | |
14358 | #if wxUSE_UNICODE | |
14359 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14360 | #else | |
14361 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14362 | #endif | |
14363 | } | |
14364 | return pyobj; | |
14365 | } | |
14366 | ||
14367 | ||
14368 | static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) { | |
14369 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); | |
14370 | return 1; | |
14371 | } | |
14372 | ||
14373 | ||
14374 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
14375 | PyObject *pyobj; | |
14376 | ||
14377 | { | |
14378 | #if wxUSE_UNICODE | |
14379 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14380 | #else | |
14381 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14382 | #endif | |
14383 | } | |
14384 | return pyobj; | |
14385 | } | |
14386 | ||
14387 | ||
14388 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) { | |
14389 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); | |
14390 | return 1; | |
14391 | } | |
14392 | ||
14393 | ||
14394 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
14395 | PyObject *pyobj; | |
14396 | ||
14397 | { | |
14398 | #if wxUSE_UNICODE | |
14399 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14400 | #else | |
14401 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14402 | #endif | |
14403 | } | |
14404 | return pyobj; | |
14405 | } | |
14406 | ||
14407 | ||
14408 | static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) { | |
14409 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); | |
14410 | return 1; | |
14411 | } | |
14412 | ||
14413 | ||
14414 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
14415 | PyObject *pyobj; | |
14416 | ||
14417 | { | |
14418 | #if wxUSE_UNICODE | |
14419 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14420 | #else | |
14421 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14422 | #endif | |
14423 | } | |
14424 | return pyobj; | |
14425 | } | |
14426 | ||
14427 | ||
14428 | static int _wrap_ART_TICK_MARK_set(PyObject *_val) { | |
14429 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); | |
14430 | return 1; | |
14431 | } | |
14432 | ||
14433 | ||
14434 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
14435 | PyObject *pyobj; | |
14436 | ||
14437 | { | |
14438 | #if wxUSE_UNICODE | |
14439 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14440 | #else | |
14441 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14442 | #endif | |
14443 | } | |
14444 | return pyobj; | |
14445 | } | |
14446 | ||
14447 | ||
14448 | static int _wrap_ART_CROSS_MARK_set(PyObject *_val) { | |
14449 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); | |
14450 | return 1; | |
14451 | } | |
14452 | ||
14453 | ||
14454 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
14455 | PyObject *pyobj; | |
14456 | ||
14457 | { | |
14458 | #if wxUSE_UNICODE | |
14459 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14460 | #else | |
14461 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14462 | #endif | |
14463 | } | |
14464 | return pyobj; | |
14465 | } | |
14466 | ||
14467 | ||
14468 | static int _wrap_ART_ERROR_set(PyObject *_val) { | |
14469 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); | |
14470 | return 1; | |
14471 | } | |
14472 | ||
14473 | ||
14474 | static PyObject *_wrap_ART_ERROR_get() { | |
14475 | PyObject *pyobj; | |
14476 | ||
14477 | { | |
14478 | #if wxUSE_UNICODE | |
14479 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14480 | #else | |
14481 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14482 | #endif | |
14483 | } | |
14484 | return pyobj; | |
14485 | } | |
14486 | ||
14487 | ||
14488 | static int _wrap_ART_QUESTION_set(PyObject *_val) { | |
14489 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); | |
14490 | return 1; | |
14491 | } | |
14492 | ||
14493 | ||
14494 | static PyObject *_wrap_ART_QUESTION_get() { | |
14495 | PyObject *pyobj; | |
14496 | ||
14497 | { | |
14498 | #if wxUSE_UNICODE | |
14499 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14500 | #else | |
14501 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14502 | #endif | |
14503 | } | |
14504 | return pyobj; | |
14505 | } | |
14506 | ||
14507 | ||
14508 | static int _wrap_ART_WARNING_set(PyObject *_val) { | |
14509 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); | |
14510 | return 1; | |
14511 | } | |
14512 | ||
14513 | ||
14514 | static PyObject *_wrap_ART_WARNING_get() { | |
14515 | PyObject *pyobj; | |
14516 | ||
14517 | { | |
14518 | #if wxUSE_UNICODE | |
14519 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14520 | #else | |
14521 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14522 | #endif | |
14523 | } | |
14524 | return pyobj; | |
14525 | } | |
14526 | ||
14527 | ||
14528 | static int _wrap_ART_INFORMATION_set(PyObject *_val) { | |
14529 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); | |
14530 | return 1; | |
14531 | } | |
14532 | ||
14533 | ||
14534 | static PyObject *_wrap_ART_INFORMATION_get() { | |
14535 | PyObject *pyobj; | |
14536 | ||
14537 | { | |
14538 | #if wxUSE_UNICODE | |
14539 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14540 | #else | |
14541 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14542 | #endif | |
14543 | } | |
14544 | return pyobj; | |
14545 | } | |
14546 | ||
14547 | ||
14548 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) { | |
14549 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); | |
14550 | return 1; | |
14551 | } | |
14552 | ||
14553 | ||
14554 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
14555 | PyObject *pyobj; | |
14556 | ||
14557 | { | |
14558 | #if wxUSE_UNICODE | |
14559 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14560 | #else | |
14561 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14562 | #endif | |
14563 | } | |
14564 | return pyobj; | |
14565 | } | |
14566 | ||
14567 | ||
14568 | static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14569 | PyObject *resultobj; | |
14570 | wxPyArtProvider *result; | |
14571 | char *kwnames[] = { | |
14572 | NULL | |
14573 | }; | |
14574 | ||
14575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
14576 | { | |
e3b71cb8 | 14577 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
14578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14579 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
14580 | ||
14581 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14582 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 14583 | } |
15afbcd0 | 14584 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1); |
d14a1e28 RD |
14585 | return resultobj; |
14586 | fail: | |
14587 | return NULL; | |
14588 | } | |
14589 | ||
14590 | ||
d14a1e28 RD |
14591 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
14592 | PyObject *resultobj; | |
14593 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14594 | PyObject *arg2 = (PyObject *) 0 ; | |
14595 | PyObject *arg3 = (PyObject *) 0 ; | |
14596 | PyObject * obj0 = 0 ; | |
14597 | PyObject * obj1 = 0 ; | |
14598 | PyObject * obj2 = 0 ; | |
14599 | char *kwnames[] = { | |
14600 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14601 | }; | |
14602 | ||
14603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
14604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14606 | arg2 = obj1; |
14607 | arg3 = obj2; | |
14608 | { | |
14609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14610 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14611 | ||
14612 | wxPyEndAllowThreads(__tstate); | |
14613 | if (PyErr_Occurred()) SWIG_fail; | |
14614 | } | |
14615 | Py_INCREF(Py_None); resultobj = Py_None; | |
14616 | return resultobj; | |
14617 | fail: | |
14618 | return NULL; | |
14619 | } | |
14620 | ||
14621 | ||
14622 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14623 | PyObject *resultobj; | |
14624 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14625 | PyObject * obj0 = 0 ; | |
14626 | char *kwnames[] = { | |
14627 | (char *) "provider", NULL | |
14628 | }; | |
14629 | ||
14630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14633 | { |
14634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14635 | wxPyArtProvider::PushProvider(arg1); | |
14636 | ||
14637 | wxPyEndAllowThreads(__tstate); | |
14638 | if (PyErr_Occurred()) SWIG_fail; | |
14639 | } | |
14640 | Py_INCREF(Py_None); resultobj = Py_None; | |
14641 | return resultobj; | |
14642 | fail: | |
14643 | return NULL; | |
14644 | } | |
14645 | ||
14646 | ||
14647 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14648 | PyObject *resultobj; | |
14649 | bool result; | |
14650 | char *kwnames[] = { | |
14651 | NULL | |
14652 | }; | |
14653 | ||
14654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
14655 | { | |
14656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14657 | result = (bool)wxPyArtProvider::PopProvider(); | |
14658 | ||
14659 | wxPyEndAllowThreads(__tstate); | |
14660 | if (PyErr_Occurred()) SWIG_fail; | |
14661 | } | |
4f89f6a3 RD |
14662 | { |
14663 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14664 | } | |
d14a1e28 RD |
14665 | return resultobj; |
14666 | fail: | |
14667 | return NULL; | |
14668 | } | |
14669 | ||
14670 | ||
14671 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14672 | PyObject *resultobj; | |
14673 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14674 | bool result; | |
14675 | PyObject * obj0 = 0 ; | |
14676 | char *kwnames[] = { | |
14677 | (char *) "provider", NULL | |
14678 | }; | |
14679 | ||
14680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14683 | { |
14684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14685 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
14686 | ||
14687 | wxPyEndAllowThreads(__tstate); | |
14688 | if (PyErr_Occurred()) SWIG_fail; | |
14689 | } | |
4f89f6a3 RD |
14690 | { |
14691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14692 | } | |
d14a1e28 RD |
14693 | return resultobj; |
14694 | fail: | |
14695 | return NULL; | |
14696 | } | |
14697 | ||
14698 | ||
14699 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14700 | PyObject *resultobj; | |
14701 | wxString *arg1 = 0 ; | |
14702 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14703 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14704 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14705 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14706 | wxBitmap result; | |
e811c8ce RD |
14707 | bool temp1 = False ; |
14708 | bool temp2 = False ; | |
d14a1e28 RD |
14709 | wxSize temp3 ; |
14710 | PyObject * obj0 = 0 ; | |
14711 | PyObject * obj1 = 0 ; | |
14712 | PyObject * obj2 = 0 ; | |
14713 | char *kwnames[] = { | |
14714 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14715 | }; | |
14716 | ||
14717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14718 | { | |
14719 | arg1 = wxString_in_helper(obj0); | |
14720 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 14721 | temp1 = True; |
d14a1e28 RD |
14722 | } |
14723 | if (obj1) { | |
14724 | { | |
14725 | arg2 = wxString_in_helper(obj1); | |
14726 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14727 | temp2 = True; |
d14a1e28 RD |
14728 | } |
14729 | } | |
14730 | if (obj2) { | |
14731 | { | |
14732 | arg3 = &temp3; | |
14733 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14734 | } | |
14735 | } | |
14736 | { | |
e3b71cb8 | 14737 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
14738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14739 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14740 | ||
14741 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14742 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14743 | } |
14744 | { | |
14745 | wxBitmap * resultptr; | |
14746 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 14747 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
14748 | } |
14749 | { | |
14750 | if (temp1) | |
14751 | delete arg1; | |
14752 | } | |
14753 | { | |
14754 | if (temp2) | |
14755 | delete arg2; | |
14756 | } | |
14757 | return resultobj; | |
14758 | fail: | |
14759 | { | |
14760 | if (temp1) | |
14761 | delete arg1; | |
14762 | } | |
14763 | { | |
14764 | if (temp2) | |
14765 | delete arg2; | |
14766 | } | |
14767 | return NULL; | |
14768 | } | |
14769 | ||
14770 | ||
14771 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14772 | PyObject *resultobj; | |
14773 | wxString *arg1 = 0 ; | |
14774 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14775 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14776 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14777 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14778 | wxIcon result; | |
e811c8ce RD |
14779 | bool temp1 = False ; |
14780 | bool temp2 = False ; | |
d14a1e28 RD |
14781 | wxSize temp3 ; |
14782 | PyObject * obj0 = 0 ; | |
14783 | PyObject * obj1 = 0 ; | |
14784 | PyObject * obj2 = 0 ; | |
14785 | char *kwnames[] = { | |
14786 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14787 | }; | |
14788 | ||
14789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14790 | { | |
14791 | arg1 = wxString_in_helper(obj0); | |
14792 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 14793 | temp1 = True; |
d14a1e28 RD |
14794 | } |
14795 | if (obj1) { | |
14796 | { | |
14797 | arg2 = wxString_in_helper(obj1); | |
14798 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14799 | temp2 = True; |
d14a1e28 RD |
14800 | } |
14801 | } | |
14802 | if (obj2) { | |
14803 | { | |
14804 | arg3 = &temp3; | |
14805 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14806 | } | |
14807 | } | |
14808 | { | |
e3b71cb8 | 14809 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
14810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14811 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14812 | ||
14813 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14814 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14815 | } |
14816 | { | |
14817 | wxIcon * resultptr; | |
14818 | resultptr = new wxIcon((wxIcon &) result); | |
15afbcd0 | 14819 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
14820 | } |
14821 | { | |
14822 | if (temp1) | |
14823 | delete arg1; | |
14824 | } | |
14825 | { | |
14826 | if (temp2) | |
14827 | delete arg2; | |
14828 | } | |
14829 | return resultobj; | |
14830 | fail: | |
14831 | { | |
14832 | if (temp1) | |
14833 | delete arg1; | |
14834 | } | |
14835 | { | |
14836 | if (temp2) | |
14837 | delete arg2; | |
14838 | } | |
14839 | return NULL; | |
14840 | } | |
14841 | ||
14842 | ||
1e0c8722 RD |
14843 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
14844 | PyObject *resultobj; | |
14845 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14846 | PyObject * obj0 = 0 ; | |
14847 | char *kwnames[] = { | |
14848 | (char *) "self", NULL | |
14849 | }; | |
14850 | ||
14851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
14854 | { |
14855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14856 | wxPyArtProvider_Destroy(arg1); | |
14857 | ||
14858 | wxPyEndAllowThreads(__tstate); | |
14859 | if (PyErr_Occurred()) SWIG_fail; | |
14860 | } | |
14861 | Py_INCREF(Py_None); resultobj = Py_None; | |
14862 | return resultobj; | |
14863 | fail: | |
14864 | return NULL; | |
14865 | } | |
14866 | ||
14867 | ||
d14a1e28 RD |
14868 | static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) { |
14869 | PyObject *obj; | |
14870 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14871 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
14872 | Py_INCREF(obj); | |
14873 | return Py_BuildValue((char *)""); | |
14874 | } | |
14875 | static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14876 | PyObject *resultobj; | |
14877 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14878 | PyObject * obj0 = 0 ; | |
14879 | char *kwnames[] = { | |
14880 | (char *) "self", NULL | |
14881 | }; | |
14882 | ||
14883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14886 | { |
14887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14888 | delete arg1; | |
14889 | ||
14890 | wxPyEndAllowThreads(__tstate); | |
14891 | if (PyErr_Occurred()) SWIG_fail; | |
14892 | } | |
14893 | Py_INCREF(Py_None); resultobj = Py_None; | |
14894 | return resultobj; | |
14895 | fail: | |
14896 | return NULL; | |
14897 | } | |
14898 | ||
14899 | ||
14900 | static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14901 | PyObject *resultobj; | |
14902 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14903 | wxConfigBase *result; | |
14904 | PyObject * obj0 = 0 ; | |
14905 | char *kwnames[] = { | |
b88bce5f | 14906 | (char *) "config", NULL |
d14a1e28 RD |
14907 | }; |
14908 | ||
14909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14912 | { |
14913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14914 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
14915 | ||
14916 | wxPyEndAllowThreads(__tstate); | |
14917 | if (PyErr_Occurred()) SWIG_fail; | |
14918 | } | |
15afbcd0 | 14919 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
14920 | return resultobj; |
14921 | fail: | |
14922 | return NULL; | |
14923 | } | |
14924 | ||
14925 | ||
14926 | static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14927 | PyObject *resultobj; | |
e811c8ce | 14928 | bool arg1 = (bool) True ; |
d14a1e28 RD |
14929 | wxConfigBase *result; |
14930 | PyObject * obj0 = 0 ; | |
14931 | char *kwnames[] = { | |
14932 | (char *) "createOnDemand", NULL | |
14933 | }; | |
14934 | ||
14935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
14936 | if (obj0) { | |
15afbcd0 RD |
14937 | arg1 = (bool) SWIG_AsBool(obj0); |
14938 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14939 | } |
14940 | { | |
14941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14942 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
14943 | ||
14944 | wxPyEndAllowThreads(__tstate); | |
14945 | if (PyErr_Occurred()) SWIG_fail; | |
14946 | } | |
15afbcd0 | 14947 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
14948 | return resultobj; |
14949 | fail: | |
14950 | return NULL; | |
14951 | } | |
14952 | ||
14953 | ||
14954 | static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14955 | PyObject *resultobj; | |
14956 | wxConfigBase *result; | |
14957 | char *kwnames[] = { | |
14958 | NULL | |
14959 | }; | |
14960 | ||
14961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
14962 | { | |
14963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14964 | result = (wxConfigBase *)wxConfigBase::Create(); | |
14965 | ||
14966 | wxPyEndAllowThreads(__tstate); | |
14967 | if (PyErr_Occurred()) SWIG_fail; | |
14968 | } | |
15afbcd0 | 14969 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
14970 | return resultobj; |
14971 | fail: | |
14972 | return NULL; | |
14973 | } | |
14974 | ||
14975 | ||
14976 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14977 | PyObject *resultobj; | |
14978 | char *kwnames[] = { | |
14979 | NULL | |
14980 | }; | |
14981 | ||
14982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
14983 | { | |
14984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14985 | wxConfigBase::DontCreateOnDemand(); | |
14986 | ||
14987 | wxPyEndAllowThreads(__tstate); | |
14988 | if (PyErr_Occurred()) SWIG_fail; | |
14989 | } | |
14990 | Py_INCREF(Py_None); resultobj = Py_None; | |
14991 | return resultobj; | |
14992 | fail: | |
14993 | return NULL; | |
14994 | } | |
14995 | ||
14996 | ||
14997 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14998 | PyObject *resultobj; | |
14999 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15000 | wxString *arg2 = 0 ; | |
e811c8ce | 15001 | bool temp2 = False ; |
d14a1e28 RD |
15002 | PyObject * obj0 = 0 ; |
15003 | PyObject * obj1 = 0 ; | |
15004 | char *kwnames[] = { | |
b88bce5f | 15005 | (char *) "self",(char *) "path", NULL |
d14a1e28 RD |
15006 | }; |
15007 | ||
15008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15011 | { |
15012 | arg2 = wxString_in_helper(obj1); | |
15013 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15014 | temp2 = True; |
d14a1e28 RD |
15015 | } |
15016 | { | |
15017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15018 | (arg1)->SetPath((wxString const &)*arg2); | |
15019 | ||
15020 | wxPyEndAllowThreads(__tstate); | |
15021 | if (PyErr_Occurred()) SWIG_fail; | |
15022 | } | |
15023 | Py_INCREF(Py_None); resultobj = Py_None; | |
15024 | { | |
15025 | if (temp2) | |
15026 | delete arg2; | |
15027 | } | |
15028 | return resultobj; | |
15029 | fail: | |
15030 | { | |
15031 | if (temp2) | |
15032 | delete arg2; | |
15033 | } | |
15034 | return NULL; | |
15035 | } | |
15036 | ||
15037 | ||
15038 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15039 | PyObject *resultobj; | |
15040 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15041 | wxString *result; | |
15042 | PyObject * obj0 = 0 ; | |
15043 | char *kwnames[] = { | |
15044 | (char *) "self", NULL | |
15045 | }; | |
15046 | ||
15047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15050 | { |
15051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15052 | { | |
15053 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
15054 | result = (wxString *) &_result_ref; | |
15055 | } | |
15056 | ||
15057 | wxPyEndAllowThreads(__tstate); | |
15058 | if (PyErr_Occurred()) SWIG_fail; | |
15059 | } | |
cc6dd355 RD |
15060 | { |
15061 | #if wxUSE_UNICODE | |
15062 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
15063 | #else | |
15064 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
15065 | #endif | |
15066 | } | |
d14a1e28 RD |
15067 | return resultobj; |
15068 | fail: | |
15069 | return NULL; | |
15070 | } | |
15071 | ||
15072 | ||
15073 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15074 | PyObject *resultobj; | |
15075 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15076 | PyObject *result; | |
15077 | PyObject * obj0 = 0 ; | |
15078 | char *kwnames[] = { | |
15079 | (char *) "self", NULL | |
15080 | }; | |
15081 | ||
15082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15085 | { |
15086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15087 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
15088 | ||
15089 | wxPyEndAllowThreads(__tstate); | |
15090 | if (PyErr_Occurred()) SWIG_fail; | |
15091 | } | |
15092 | resultobj = result; | |
15093 | return resultobj; | |
15094 | fail: | |
15095 | return NULL; | |
15096 | } | |
15097 | ||
15098 | ||
15099 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15100 | PyObject *resultobj; | |
15101 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15102 | long arg2 ; | |
15103 | PyObject *result; | |
15104 | PyObject * obj0 = 0 ; | |
994141e6 | 15105 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15106 | char *kwnames[] = { |
15107 | (char *) "self",(char *) "index", NULL | |
15108 | }; | |
15109 | ||
994141e6 | 15110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15113 | arg2 = (long) SWIG_AsLong(obj1); | |
15114 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15115 | { |
15116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15117 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
15118 | ||
15119 | wxPyEndAllowThreads(__tstate); | |
15120 | if (PyErr_Occurred()) SWIG_fail; | |
15121 | } | |
15122 | resultobj = result; | |
15123 | return resultobj; | |
15124 | fail: | |
15125 | return NULL; | |
15126 | } | |
15127 | ||
15128 | ||
15129 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15130 | PyObject *resultobj; | |
15131 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15132 | PyObject *result; | |
15133 | PyObject * obj0 = 0 ; | |
15134 | char *kwnames[] = { | |
15135 | (char *) "self", NULL | |
15136 | }; | |
15137 | ||
15138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15141 | { |
15142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15143 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
15144 | ||
15145 | wxPyEndAllowThreads(__tstate); | |
15146 | if (PyErr_Occurred()) SWIG_fail; | |
15147 | } | |
15148 | resultobj = result; | |
15149 | return resultobj; | |
15150 | fail: | |
15151 | return NULL; | |
15152 | } | |
15153 | ||
15154 | ||
15155 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15156 | PyObject *resultobj; | |
15157 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15158 | long arg2 ; | |
15159 | PyObject *result; | |
15160 | PyObject * obj0 = 0 ; | |
994141e6 | 15161 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15162 | char *kwnames[] = { |
15163 | (char *) "self",(char *) "index", NULL | |
15164 | }; | |
15165 | ||
994141e6 | 15166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15169 | arg2 = (long) SWIG_AsLong(obj1); | |
15170 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15171 | { |
15172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15173 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
15174 | ||
15175 | wxPyEndAllowThreads(__tstate); | |
15176 | if (PyErr_Occurred()) SWIG_fail; | |
15177 | } | |
15178 | resultobj = result; | |
15179 | return resultobj; | |
15180 | fail: | |
15181 | return NULL; | |
15182 | } | |
15183 | ||
15184 | ||
15185 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15186 | PyObject *resultobj; | |
15187 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 15188 | bool arg2 = (bool) False ; |
d14a1e28 RD |
15189 | size_t result; |
15190 | PyObject * obj0 = 0 ; | |
15191 | PyObject * obj1 = 0 ; | |
15192 | char *kwnames[] = { | |
b88bce5f | 15193 | (char *) "self",(char *) "recursive", NULL |
d14a1e28 RD |
15194 | }; |
15195 | ||
15196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15199 | if (obj1) { |
15afbcd0 RD |
15200 | arg2 = (bool) SWIG_AsBool(obj1); |
15201 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15202 | } |
15203 | { | |
15204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15205 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
15206 | ||
15207 | wxPyEndAllowThreads(__tstate); | |
15208 | if (PyErr_Occurred()) SWIG_fail; | |
15209 | } | |
15afbcd0 | 15210 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
15211 | return resultobj; |
15212 | fail: | |
15213 | return NULL; | |
15214 | } | |
15215 | ||
15216 | ||
15217 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15218 | PyObject *resultobj; | |
15219 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 15220 | bool arg2 = (bool) False ; |
d14a1e28 RD |
15221 | size_t result; |
15222 | PyObject * obj0 = 0 ; | |
15223 | PyObject * obj1 = 0 ; | |
15224 | char *kwnames[] = { | |
b88bce5f | 15225 | (char *) "self",(char *) "recursive", NULL |
d14a1e28 RD |
15226 | }; |
15227 | ||
15228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15231 | if (obj1) { |
15afbcd0 RD |
15232 | arg2 = (bool) SWIG_AsBool(obj1); |
15233 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15234 | } |
15235 | { | |
15236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15237 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
15238 | ||
15239 | wxPyEndAllowThreads(__tstate); | |
15240 | if (PyErr_Occurred()) SWIG_fail; | |
15241 | } | |
15afbcd0 | 15242 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
15243 | return resultobj; |
15244 | fail: | |
15245 | return NULL; | |
15246 | } | |
15247 | ||
15248 | ||
15249 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15250 | PyObject *resultobj; | |
15251 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15252 | wxString *arg2 = 0 ; | |
15253 | bool result; | |
e811c8ce | 15254 | bool temp2 = False ; |
d14a1e28 RD |
15255 | PyObject * obj0 = 0 ; |
15256 | PyObject * obj1 = 0 ; | |
15257 | char *kwnames[] = { | |
b88bce5f | 15258 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
15259 | }; |
15260 | ||
15261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15264 | { |
15265 | arg2 = wxString_in_helper(obj1); | |
15266 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15267 | temp2 = True; |
d14a1e28 RD |
15268 | } |
15269 | { | |
15270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15271 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
15272 | ||
15273 | wxPyEndAllowThreads(__tstate); | |
15274 | if (PyErr_Occurred()) SWIG_fail; | |
15275 | } | |
4f89f6a3 RD |
15276 | { |
15277 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15278 | } | |
d14a1e28 RD |
15279 | { |
15280 | if (temp2) | |
15281 | delete arg2; | |
15282 | } | |
15283 | return resultobj; | |
15284 | fail: | |
15285 | { | |
15286 | if (temp2) | |
15287 | delete arg2; | |
15288 | } | |
15289 | return NULL; | |
15290 | } | |
15291 | ||
15292 | ||
15293 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15294 | PyObject *resultobj; | |
15295 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15296 | wxString *arg2 = 0 ; | |
15297 | bool result; | |
e811c8ce | 15298 | bool temp2 = False ; |
d14a1e28 RD |
15299 | PyObject * obj0 = 0 ; |
15300 | PyObject * obj1 = 0 ; | |
15301 | char *kwnames[] = { | |
b88bce5f | 15302 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
15303 | }; |
15304 | ||
15305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15308 | { |
15309 | arg2 = wxString_in_helper(obj1); | |
15310 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15311 | temp2 = True; |
d14a1e28 RD |
15312 | } |
15313 | { | |
15314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15315 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
15316 | ||
15317 | wxPyEndAllowThreads(__tstate); | |
15318 | if (PyErr_Occurred()) SWIG_fail; | |
15319 | } | |
4f89f6a3 RD |
15320 | { |
15321 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15322 | } | |
d14a1e28 RD |
15323 | { |
15324 | if (temp2) | |
15325 | delete arg2; | |
15326 | } | |
15327 | return resultobj; | |
15328 | fail: | |
15329 | { | |
15330 | if (temp2) | |
15331 | delete arg2; | |
15332 | } | |
15333 | return NULL; | |
15334 | } | |
15335 | ||
15336 | ||
15337 | static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15338 | PyObject *resultobj; | |
15339 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15340 | wxString *arg2 = 0 ; | |
15341 | bool result; | |
e811c8ce | 15342 | bool temp2 = False ; |
d14a1e28 RD |
15343 | PyObject * obj0 = 0 ; |
15344 | PyObject * obj1 = 0 ; | |
15345 | char *kwnames[] = { | |
b88bce5f | 15346 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
15347 | }; |
15348 | ||
15349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15352 | { |
15353 | arg2 = wxString_in_helper(obj1); | |
15354 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15355 | temp2 = True; |
d14a1e28 RD |
15356 | } |
15357 | { | |
15358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15359 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
15360 | ||
15361 | wxPyEndAllowThreads(__tstate); | |
15362 | if (PyErr_Occurred()) SWIG_fail; | |
15363 | } | |
4f89f6a3 RD |
15364 | { |
15365 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15366 | } | |
d14a1e28 RD |
15367 | { |
15368 | if (temp2) | |
15369 | delete arg2; | |
15370 | } | |
15371 | return resultobj; | |
15372 | fail: | |
15373 | { | |
15374 | if (temp2) | |
15375 | delete arg2; | |
15376 | } | |
15377 | return NULL; | |
15378 | } | |
15379 | ||
15380 | ||
15381 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15382 | PyObject *resultobj; | |
15383 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15384 | wxString *arg2 = 0 ; | |
15385 | int result; | |
e811c8ce | 15386 | bool temp2 = False ; |
d14a1e28 RD |
15387 | PyObject * obj0 = 0 ; |
15388 | PyObject * obj1 = 0 ; | |
15389 | char *kwnames[] = { | |
15390 | (char *) "self",(char *) "name", NULL | |
15391 | }; | |
15392 | ||
15393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15396 | { |
15397 | arg2 = wxString_in_helper(obj1); | |
15398 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15399 | temp2 = True; |
d14a1e28 RD |
15400 | } |
15401 | { | |
15402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15403 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
15404 | ||
15405 | wxPyEndAllowThreads(__tstate); | |
15406 | if (PyErr_Occurred()) SWIG_fail; | |
15407 | } | |
15afbcd0 | 15408 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15409 | { |
15410 | if (temp2) | |
15411 | delete arg2; | |
15412 | } | |
15413 | return resultobj; | |
15414 | fail: | |
15415 | { | |
15416 | if (temp2) | |
15417 | delete arg2; | |
15418 | } | |
15419 | return NULL; | |
15420 | } | |
15421 | ||
15422 | ||
15423 | static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15424 | PyObject *resultobj; | |
15425 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15426 | wxString *arg2 = 0 ; | |
15427 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15428 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15429 | wxString result; | |
e811c8ce RD |
15430 | bool temp2 = False ; |
15431 | bool temp3 = False ; | |
d14a1e28 RD |
15432 | PyObject * obj0 = 0 ; |
15433 | PyObject * obj1 = 0 ; | |
15434 | PyObject * obj2 = 0 ; | |
15435 | char *kwnames[] = { | |
15436 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15437 | }; | |
15438 | ||
15439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15442 | { |
15443 | arg2 = wxString_in_helper(obj1); | |
15444 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15445 | temp2 = True; |
d14a1e28 RD |
15446 | } |
15447 | if (obj2) { | |
15448 | { | |
15449 | arg3 = wxString_in_helper(obj2); | |
15450 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15451 | temp3 = True; |
d14a1e28 RD |
15452 | } |
15453 | } | |
15454 | { | |
15455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15456 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
15457 | ||
15458 | wxPyEndAllowThreads(__tstate); | |
15459 | if (PyErr_Occurred()) SWIG_fail; | |
15460 | } | |
15461 | { | |
15462 | #if wxUSE_UNICODE | |
15463 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15464 | #else | |
15465 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15466 | #endif | |
15467 | } | |
15468 | { | |
15469 | if (temp2) | |
15470 | delete arg2; | |
15471 | } | |
15472 | { | |
15473 | if (temp3) | |
15474 | delete arg3; | |
15475 | } | |
15476 | return resultobj; | |
15477 | fail: | |
15478 | { | |
15479 | if (temp2) | |
15480 | delete arg2; | |
15481 | } | |
15482 | { | |
15483 | if (temp3) | |
15484 | delete arg3; | |
15485 | } | |
15486 | return NULL; | |
15487 | } | |
15488 | ||
15489 | ||
15490 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15491 | PyObject *resultobj; | |
15492 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15493 | wxString *arg2 = 0 ; | |
15494 | long arg3 = (long) 0 ; | |
15495 | long result; | |
e811c8ce | 15496 | bool temp2 = False ; |
d14a1e28 RD |
15497 | PyObject * obj0 = 0 ; |
15498 | PyObject * obj1 = 0 ; | |
994141e6 | 15499 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15500 | char *kwnames[] = { |
15501 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15502 | }; | |
15503 | ||
994141e6 | 15504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15507 | { |
15508 | arg2 = wxString_in_helper(obj1); | |
15509 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15510 | temp2 = True; |
d14a1e28 | 15511 | } |
994141e6 | 15512 | if (obj2) { |
15afbcd0 RD |
15513 | arg3 = (long) SWIG_AsLong(obj2); |
15514 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15515 | } |
d14a1e28 RD |
15516 | { |
15517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15518 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
15519 | ||
15520 | wxPyEndAllowThreads(__tstate); | |
15521 | if (PyErr_Occurred()) SWIG_fail; | |
15522 | } | |
15afbcd0 | 15523 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
15524 | { |
15525 | if (temp2) | |
15526 | delete arg2; | |
15527 | } | |
15528 | return resultobj; | |
15529 | fail: | |
15530 | { | |
15531 | if (temp2) | |
15532 | delete arg2; | |
15533 | } | |
15534 | return NULL; | |
15535 | } | |
15536 | ||
15537 | ||
15538 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15539 | PyObject *resultobj; | |
15540 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15541 | wxString *arg2 = 0 ; | |
15542 | double arg3 = (double) 0.0 ; | |
15543 | double result; | |
e811c8ce | 15544 | bool temp2 = False ; |
d14a1e28 RD |
15545 | PyObject * obj0 = 0 ; |
15546 | PyObject * obj1 = 0 ; | |
994141e6 | 15547 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15548 | char *kwnames[] = { |
15549 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15550 | }; | |
15551 | ||
994141e6 | 15552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15555 | { |
15556 | arg2 = wxString_in_helper(obj1); | |
15557 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15558 | temp2 = True; |
d14a1e28 | 15559 | } |
994141e6 | 15560 | if (obj2) { |
15afbcd0 RD |
15561 | arg3 = (double) SWIG_AsDouble(obj2); |
15562 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15563 | } |
d14a1e28 RD |
15564 | { |
15565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15566 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
15567 | ||
15568 | wxPyEndAllowThreads(__tstate); | |
15569 | if (PyErr_Occurred()) SWIG_fail; | |
15570 | } | |
15afbcd0 | 15571 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
15572 | { |
15573 | if (temp2) | |
15574 | delete arg2; | |
15575 | } | |
15576 | return resultobj; | |
15577 | fail: | |
15578 | { | |
15579 | if (temp2) | |
15580 | delete arg2; | |
15581 | } | |
15582 | return NULL; | |
15583 | } | |
15584 | ||
15585 | ||
15586 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15587 | PyObject *resultobj; | |
15588 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15589 | wxString *arg2 = 0 ; | |
e811c8ce | 15590 | bool arg3 = (bool) False ; |
d14a1e28 | 15591 | bool result; |
e811c8ce | 15592 | bool temp2 = False ; |
d14a1e28 RD |
15593 | PyObject * obj0 = 0 ; |
15594 | PyObject * obj1 = 0 ; | |
15595 | PyObject * obj2 = 0 ; | |
15596 | char *kwnames[] = { | |
15597 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15598 | }; | |
15599 | ||
15600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15603 | { |
15604 | arg2 = wxString_in_helper(obj1); | |
15605 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15606 | temp2 = True; |
d14a1e28 RD |
15607 | } |
15608 | if (obj2) { | |
15afbcd0 RD |
15609 | arg3 = (bool) SWIG_AsBool(obj2); |
15610 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15611 | } |
15612 | { | |
15613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15614 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
15615 | ||
15616 | wxPyEndAllowThreads(__tstate); | |
15617 | if (PyErr_Occurred()) SWIG_fail; | |
15618 | } | |
4f89f6a3 RD |
15619 | { |
15620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15621 | } | |
d14a1e28 RD |
15622 | { |
15623 | if (temp2) | |
15624 | delete arg2; | |
15625 | } | |
15626 | return resultobj; | |
15627 | fail: | |
15628 | { | |
15629 | if (temp2) | |
15630 | delete arg2; | |
15631 | } | |
15632 | return NULL; | |
15633 | } | |
15634 | ||
15635 | ||
15636 | static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15637 | PyObject *resultobj; | |
15638 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15639 | wxString *arg2 = 0 ; | |
15640 | wxString *arg3 = 0 ; | |
15641 | bool result; | |
e811c8ce RD |
15642 | bool temp2 = False ; |
15643 | bool temp3 = False ; | |
d14a1e28 RD |
15644 | PyObject * obj0 = 0 ; |
15645 | PyObject * obj1 = 0 ; | |
15646 | PyObject * obj2 = 0 ; | |
15647 | char *kwnames[] = { | |
15648 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15649 | }; | |
15650 | ||
15651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15654 | { |
15655 | arg2 = wxString_in_helper(obj1); | |
15656 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15657 | temp2 = True; |
d14a1e28 RD |
15658 | } |
15659 | { | |
15660 | arg3 = wxString_in_helper(obj2); | |
15661 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15662 | temp3 = True; |
d14a1e28 RD |
15663 | } |
15664 | { | |
15665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15666 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
15667 | ||
15668 | wxPyEndAllowThreads(__tstate); | |
15669 | if (PyErr_Occurred()) SWIG_fail; | |
15670 | } | |
4f89f6a3 RD |
15671 | { |
15672 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15673 | } | |
d14a1e28 RD |
15674 | { |
15675 | if (temp2) | |
15676 | delete arg2; | |
15677 | } | |
15678 | { | |
15679 | if (temp3) | |
15680 | delete arg3; | |
15681 | } | |
15682 | return resultobj; | |
15683 | fail: | |
15684 | { | |
15685 | if (temp2) | |
15686 | delete arg2; | |
15687 | } | |
15688 | { | |
15689 | if (temp3) | |
15690 | delete arg3; | |
15691 | } | |
15692 | return NULL; | |
15693 | } | |
15694 | ||
15695 | ||
15696 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15697 | PyObject *resultobj; | |
15698 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15699 | wxString *arg2 = 0 ; | |
15700 | long arg3 ; | |
15701 | bool result; | |
e811c8ce | 15702 | bool temp2 = False ; |
d14a1e28 RD |
15703 | PyObject * obj0 = 0 ; |
15704 | PyObject * obj1 = 0 ; | |
994141e6 | 15705 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15706 | char *kwnames[] = { |
15707 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15708 | }; | |
15709 | ||
994141e6 | 15710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15713 | { |
15714 | arg2 = wxString_in_helper(obj1); | |
15715 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15716 | temp2 = True; |
d14a1e28 | 15717 | } |
15afbcd0 RD |
15718 | arg3 = (long) SWIG_AsLong(obj2); |
15719 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15720 | { |
15721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15722 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15723 | ||
15724 | wxPyEndAllowThreads(__tstate); | |
15725 | if (PyErr_Occurred()) SWIG_fail; | |
15726 | } | |
4f89f6a3 RD |
15727 | { |
15728 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15729 | } | |
d14a1e28 RD |
15730 | { |
15731 | if (temp2) | |
15732 | delete arg2; | |
15733 | } | |
15734 | return resultobj; | |
15735 | fail: | |
15736 | { | |
15737 | if (temp2) | |
15738 | delete arg2; | |
15739 | } | |
15740 | return NULL; | |
15741 | } | |
15742 | ||
15743 | ||
15744 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15745 | PyObject *resultobj; | |
15746 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15747 | wxString *arg2 = 0 ; | |
15748 | double arg3 ; | |
15749 | bool result; | |
e811c8ce | 15750 | bool temp2 = False ; |
d14a1e28 RD |
15751 | PyObject * obj0 = 0 ; |
15752 | PyObject * obj1 = 0 ; | |
994141e6 | 15753 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15754 | char *kwnames[] = { |
15755 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15756 | }; | |
15757 | ||
994141e6 | 15758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15761 | { |
15762 | arg2 = wxString_in_helper(obj1); | |
15763 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15764 | temp2 = True; |
d14a1e28 | 15765 | } |
15afbcd0 RD |
15766 | arg3 = (double) SWIG_AsDouble(obj2); |
15767 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15768 | { |
15769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15770 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15771 | ||
15772 | wxPyEndAllowThreads(__tstate); | |
15773 | if (PyErr_Occurred()) SWIG_fail; | |
15774 | } | |
4f89f6a3 RD |
15775 | { |
15776 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15777 | } | |
d14a1e28 RD |
15778 | { |
15779 | if (temp2) | |
15780 | delete arg2; | |
15781 | } | |
15782 | return resultobj; | |
15783 | fail: | |
15784 | { | |
15785 | if (temp2) | |
15786 | delete arg2; | |
15787 | } | |
15788 | return NULL; | |
15789 | } | |
15790 | ||
15791 | ||
15792 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15793 | PyObject *resultobj; | |
15794 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15795 | wxString *arg2 = 0 ; | |
15796 | bool arg3 ; | |
15797 | bool result; | |
e811c8ce | 15798 | bool temp2 = False ; |
d14a1e28 RD |
15799 | PyObject * obj0 = 0 ; |
15800 | PyObject * obj1 = 0 ; | |
15801 | PyObject * obj2 = 0 ; | |
15802 | char *kwnames[] = { | |
15803 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15804 | }; | |
15805 | ||
15806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15809 | { |
15810 | arg2 = wxString_in_helper(obj1); | |
15811 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15812 | temp2 = True; |
d14a1e28 | 15813 | } |
15afbcd0 RD |
15814 | arg3 = (bool) SWIG_AsBool(obj2); |
15815 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15816 | { |
15817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15818 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15819 | ||
15820 | wxPyEndAllowThreads(__tstate); | |
15821 | if (PyErr_Occurred()) SWIG_fail; | |
15822 | } | |
4f89f6a3 RD |
15823 | { |
15824 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15825 | } | |
d14a1e28 RD |
15826 | { |
15827 | if (temp2) | |
15828 | delete arg2; | |
15829 | } | |
15830 | return resultobj; | |
15831 | fail: | |
15832 | { | |
15833 | if (temp2) | |
15834 | delete arg2; | |
15835 | } | |
15836 | return NULL; | |
15837 | } | |
15838 | ||
15839 | ||
15840 | static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15841 | PyObject *resultobj; | |
15842 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 15843 | bool arg2 = (bool) False ; |
d14a1e28 RD |
15844 | bool result; |
15845 | PyObject * obj0 = 0 ; | |
15846 | PyObject * obj1 = 0 ; | |
15847 | char *kwnames[] = { | |
b88bce5f | 15848 | (char *) "self",(char *) "currentOnly", NULL |
d14a1e28 RD |
15849 | }; |
15850 | ||
15851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15854 | if (obj1) { |
15afbcd0 RD |
15855 | arg2 = (bool) SWIG_AsBool(obj1); |
15856 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15857 | } |
15858 | { | |
15859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15860 | result = (bool)(arg1)->Flush(arg2); | |
15861 | ||
15862 | wxPyEndAllowThreads(__tstate); | |
15863 | if (PyErr_Occurred()) SWIG_fail; | |
15864 | } | |
4f89f6a3 RD |
15865 | { |
15866 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15867 | } | |
d14a1e28 RD |
15868 | return resultobj; |
15869 | fail: | |
15870 | return NULL; | |
15871 | } | |
15872 | ||
15873 | ||
15874 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15875 | PyObject *resultobj; | |
15876 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15877 | wxString *arg2 = 0 ; | |
15878 | wxString *arg3 = 0 ; | |
15879 | bool result; | |
e811c8ce RD |
15880 | bool temp2 = False ; |
15881 | bool temp3 = False ; | |
d14a1e28 RD |
15882 | PyObject * obj0 = 0 ; |
15883 | PyObject * obj1 = 0 ; | |
15884 | PyObject * obj2 = 0 ; | |
15885 | char *kwnames[] = { | |
15886 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15887 | }; | |
15888 | ||
15889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15892 | { |
15893 | arg2 = wxString_in_helper(obj1); | |
15894 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15895 | temp2 = True; |
d14a1e28 RD |
15896 | } |
15897 | { | |
15898 | arg3 = wxString_in_helper(obj2); | |
15899 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15900 | temp3 = True; |
d14a1e28 RD |
15901 | } |
15902 | { | |
15903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15904 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
15905 | ||
15906 | wxPyEndAllowThreads(__tstate); | |
15907 | if (PyErr_Occurred()) SWIG_fail; | |
15908 | } | |
4f89f6a3 RD |
15909 | { |
15910 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15911 | } | |
d14a1e28 RD |
15912 | { |
15913 | if (temp2) | |
15914 | delete arg2; | |
15915 | } | |
15916 | { | |
15917 | if (temp3) | |
15918 | delete arg3; | |
15919 | } | |
15920 | return resultobj; | |
15921 | fail: | |
15922 | { | |
15923 | if (temp2) | |
15924 | delete arg2; | |
15925 | } | |
15926 | { | |
15927 | if (temp3) | |
15928 | delete arg3; | |
15929 | } | |
15930 | return NULL; | |
15931 | } | |
15932 | ||
15933 | ||
15934 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15935 | PyObject *resultobj; | |
15936 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15937 | wxString *arg2 = 0 ; | |
15938 | wxString *arg3 = 0 ; | |
15939 | bool result; | |
e811c8ce RD |
15940 | bool temp2 = False ; |
15941 | bool temp3 = False ; | |
d14a1e28 RD |
15942 | PyObject * obj0 = 0 ; |
15943 | PyObject * obj1 = 0 ; | |
15944 | PyObject * obj2 = 0 ; | |
15945 | char *kwnames[] = { | |
15946 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15947 | }; | |
15948 | ||
15949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15952 | { |
15953 | arg2 = wxString_in_helper(obj1); | |
15954 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15955 | temp2 = True; |
d14a1e28 RD |
15956 | } |
15957 | { | |
15958 | arg3 = wxString_in_helper(obj2); | |
15959 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15960 | temp3 = True; |
d14a1e28 RD |
15961 | } |
15962 | { | |
15963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15964 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
15965 | ||
15966 | wxPyEndAllowThreads(__tstate); | |
15967 | if (PyErr_Occurred()) SWIG_fail; | |
15968 | } | |
4f89f6a3 RD |
15969 | { |
15970 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15971 | } | |
d14a1e28 RD |
15972 | { |
15973 | if (temp2) | |
15974 | delete arg2; | |
15975 | } | |
15976 | { | |
15977 | if (temp3) | |
15978 | delete arg3; | |
15979 | } | |
15980 | return resultobj; | |
15981 | fail: | |
15982 | { | |
15983 | if (temp2) | |
15984 | delete arg2; | |
15985 | } | |
15986 | { | |
15987 | if (temp3) | |
15988 | delete arg3; | |
15989 | } | |
15990 | return NULL; | |
15991 | } | |
15992 | ||
15993 | ||
15994 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15995 | PyObject *resultobj; | |
15996 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15997 | wxString *arg2 = 0 ; | |
e811c8ce | 15998 | bool arg3 = (bool) True ; |
d14a1e28 | 15999 | bool result; |
e811c8ce | 16000 | bool temp2 = False ; |
d14a1e28 RD |
16001 | PyObject * obj0 = 0 ; |
16002 | PyObject * obj1 = 0 ; | |
16003 | PyObject * obj2 = 0 ; | |
16004 | char *kwnames[] = { | |
b88bce5f | 16005 | (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL |
d14a1e28 RD |
16006 | }; |
16007 | ||
16008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
16009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16011 | { |
16012 | arg2 = wxString_in_helper(obj1); | |
16013 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16014 | temp2 = True; |
d14a1e28 RD |
16015 | } |
16016 | if (obj2) { | |
15afbcd0 RD |
16017 | arg3 = (bool) SWIG_AsBool(obj2); |
16018 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16019 | } |
16020 | { | |
16021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16022 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
16023 | ||
16024 | wxPyEndAllowThreads(__tstate); | |
16025 | if (PyErr_Occurred()) SWIG_fail; | |
16026 | } | |
4f89f6a3 RD |
16027 | { |
16028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16029 | } | |
d14a1e28 RD |
16030 | { |
16031 | if (temp2) | |
16032 | delete arg2; | |
16033 | } | |
16034 | return resultobj; | |
16035 | fail: | |
16036 | { | |
16037 | if (temp2) | |
16038 | delete arg2; | |
16039 | } | |
16040 | return NULL; | |
16041 | } | |
16042 | ||
16043 | ||
16044 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16045 | PyObject *resultobj; | |
16046 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16047 | wxString *arg2 = 0 ; | |
16048 | bool result; | |
e811c8ce | 16049 | bool temp2 = False ; |
d14a1e28 RD |
16050 | PyObject * obj0 = 0 ; |
16051 | PyObject * obj1 = 0 ; | |
16052 | char *kwnames[] = { | |
16053 | (char *) "self",(char *) "key", NULL | |
16054 | }; | |
16055 | ||
16056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16059 | { |
16060 | arg2 = wxString_in_helper(obj1); | |
16061 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16062 | temp2 = True; |
d14a1e28 RD |
16063 | } |
16064 | { | |
16065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16066 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
16067 | ||
16068 | wxPyEndAllowThreads(__tstate); | |
16069 | if (PyErr_Occurred()) SWIG_fail; | |
16070 | } | |
4f89f6a3 RD |
16071 | { |
16072 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16073 | } | |
d14a1e28 RD |
16074 | { |
16075 | if (temp2) | |
16076 | delete arg2; | |
16077 | } | |
16078 | return resultobj; | |
16079 | fail: | |
16080 | { | |
16081 | if (temp2) | |
16082 | delete arg2; | |
16083 | } | |
16084 | return NULL; | |
16085 | } | |
16086 | ||
16087 | ||
16088 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16089 | PyObject *resultobj; | |
16090 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16091 | bool result; | |
16092 | PyObject * obj0 = 0 ; | |
16093 | char *kwnames[] = { | |
16094 | (char *) "self", NULL | |
16095 | }; | |
16096 | ||
16097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16100 | { |
16101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16102 | result = (bool)(arg1)->DeleteAll(); | |
16103 | ||
16104 | wxPyEndAllowThreads(__tstate); | |
16105 | if (PyErr_Occurred()) SWIG_fail; | |
16106 | } | |
4f89f6a3 RD |
16107 | { |
16108 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16109 | } | |
d14a1e28 RD |
16110 | return resultobj; |
16111 | fail: | |
16112 | return NULL; | |
16113 | } | |
16114 | ||
16115 | ||
b88bce5f | 16116 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16117 | PyObject *resultobj; |
16118 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b88bce5f | 16119 | bool arg2 = (bool) True ; |
d14a1e28 | 16120 | PyObject * obj0 = 0 ; |
b88bce5f | 16121 | PyObject * obj1 = 0 ; |
d14a1e28 | 16122 | char *kwnames[] = { |
b88bce5f | 16123 | (char *) "self",(char *) "doIt", NULL |
d14a1e28 RD |
16124 | }; |
16125 | ||
b88bce5f | 16126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f | 16129 | if (obj1) { |
15afbcd0 RD |
16130 | arg2 = (bool) SWIG_AsBool(obj1); |
16131 | if (PyErr_Occurred()) SWIG_fail; | |
b88bce5f | 16132 | } |
d14a1e28 RD |
16133 | { |
16134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 16135 | (arg1)->SetExpandEnvVars(arg2); |
d14a1e28 RD |
16136 | |
16137 | wxPyEndAllowThreads(__tstate); | |
16138 | if (PyErr_Occurred()) SWIG_fail; | |
16139 | } | |
b88bce5f | 16140 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
16141 | return resultobj; |
16142 | fail: | |
16143 | return NULL; | |
16144 | } | |
16145 | ||
16146 | ||
b88bce5f | 16147 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16148 | PyObject *resultobj; |
16149 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b88bce5f | 16150 | bool result; |
d14a1e28 | 16151 | PyObject * obj0 = 0 ; |
d14a1e28 | 16152 | char *kwnames[] = { |
b88bce5f | 16153 | (char *) "self", NULL |
d14a1e28 RD |
16154 | }; |
16155 | ||
b88bce5f | 16156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
16157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16159 | { |
16160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 16161 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); |
d14a1e28 RD |
16162 | |
16163 | wxPyEndAllowThreads(__tstate); | |
16164 | if (PyErr_Occurred()) SWIG_fail; | |
16165 | } | |
4f89f6a3 RD |
16166 | { |
16167 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16168 | } | |
d14a1e28 RD |
16169 | return resultobj; |
16170 | fail: | |
16171 | return NULL; | |
16172 | } | |
16173 | ||
16174 | ||
16175 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16176 | PyObject *resultobj; | |
16177 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 16178 | bool arg2 = (bool) True ; |
d14a1e28 RD |
16179 | PyObject * obj0 = 0 ; |
16180 | PyObject * obj1 = 0 ; | |
16181 | char *kwnames[] = { | |
b88bce5f | 16182 | (char *) "self",(char *) "doIt", NULL |
d14a1e28 RD |
16183 | }; |
16184 | ||
16185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 16188 | if (obj1) { |
15afbcd0 RD |
16189 | arg2 = (bool) SWIG_AsBool(obj1); |
16190 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16191 | } |
16192 | { | |
16193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16194 | (arg1)->SetRecordDefaults(arg2); | |
16195 | ||
16196 | wxPyEndAllowThreads(__tstate); | |
16197 | if (PyErr_Occurred()) SWIG_fail; | |
16198 | } | |
16199 | Py_INCREF(Py_None); resultobj = Py_None; | |
16200 | return resultobj; | |
16201 | fail: | |
16202 | return NULL; | |
16203 | } | |
16204 | ||
16205 | ||
16206 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16207 | PyObject *resultobj; | |
16208 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16209 | bool result; | |
16210 | PyObject * obj0 = 0 ; | |
16211 | char *kwnames[] = { | |
16212 | (char *) "self", NULL | |
16213 | }; | |
16214 | ||
16215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16218 | { |
16219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16220 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
16221 | ||
16222 | wxPyEndAllowThreads(__tstate); | |
16223 | if (PyErr_Occurred()) SWIG_fail; | |
16224 | } | |
4f89f6a3 RD |
16225 | { |
16226 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16227 | } | |
d14a1e28 RD |
16228 | return resultobj; |
16229 | fail: | |
16230 | return NULL; | |
16231 | } | |
16232 | ||
16233 | ||
16234 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16235 | PyObject *resultobj; | |
16236 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16237 | wxString *arg2 = 0 ; | |
16238 | wxString result; | |
e811c8ce | 16239 | bool temp2 = False ; |
d14a1e28 RD |
16240 | PyObject * obj0 = 0 ; |
16241 | PyObject * obj1 = 0 ; | |
16242 | char *kwnames[] = { | |
16243 | (char *) "self",(char *) "str", NULL | |
16244 | }; | |
16245 | ||
16246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16249 | { |
16250 | arg2 = wxString_in_helper(obj1); | |
16251 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16252 | temp2 = True; |
d14a1e28 RD |
16253 | } |
16254 | { | |
16255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16256 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
16257 | ||
16258 | wxPyEndAllowThreads(__tstate); | |
16259 | if (PyErr_Occurred()) SWIG_fail; | |
16260 | } | |
16261 | { | |
16262 | #if wxUSE_UNICODE | |
16263 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16264 | #else | |
16265 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16266 | #endif | |
16267 | } | |
16268 | { | |
16269 | if (temp2) | |
16270 | delete arg2; | |
16271 | } | |
16272 | return resultobj; | |
16273 | fail: | |
16274 | { | |
16275 | if (temp2) | |
16276 | delete arg2; | |
16277 | } | |
16278 | return NULL; | |
16279 | } | |
16280 | ||
16281 | ||
16282 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16283 | PyObject *resultobj; | |
16284 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16285 | wxString result; | |
16286 | PyObject * obj0 = 0 ; | |
16287 | char *kwnames[] = { | |
16288 | (char *) "self", NULL | |
16289 | }; | |
16290 | ||
16291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16294 | { |
16295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16296 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
16297 | ||
16298 | wxPyEndAllowThreads(__tstate); | |
16299 | if (PyErr_Occurred()) SWIG_fail; | |
16300 | } | |
16301 | { | |
16302 | #if wxUSE_UNICODE | |
16303 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16304 | #else | |
16305 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16306 | #endif | |
16307 | } | |
16308 | return resultobj; | |
16309 | fail: | |
16310 | return NULL; | |
16311 | } | |
16312 | ||
16313 | ||
16314 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16315 | PyObject *resultobj; | |
16316 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16317 | wxString result; | |
16318 | PyObject * obj0 = 0 ; | |
16319 | char *kwnames[] = { | |
16320 | (char *) "self", NULL | |
16321 | }; | |
16322 | ||
16323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16326 | { |
16327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16328 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
16329 | ||
16330 | wxPyEndAllowThreads(__tstate); | |
16331 | if (PyErr_Occurred()) SWIG_fail; | |
16332 | } | |
16333 | { | |
16334 | #if wxUSE_UNICODE | |
16335 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16336 | #else | |
16337 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16338 | #endif | |
16339 | } | |
16340 | return resultobj; | |
16341 | fail: | |
16342 | return NULL; | |
16343 | } | |
16344 | ||
16345 | ||
16346 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16347 | PyObject *resultobj; | |
16348 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16349 | wxString *arg2 = 0 ; | |
e811c8ce | 16350 | bool temp2 = False ; |
d14a1e28 RD |
16351 | PyObject * obj0 = 0 ; |
16352 | PyObject * obj1 = 0 ; | |
16353 | char *kwnames[] = { | |
16354 | (char *) "self",(char *) "appName", NULL | |
16355 | }; | |
16356 | ||
16357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16360 | { |
16361 | arg2 = wxString_in_helper(obj1); | |
16362 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16363 | temp2 = True; |
d14a1e28 RD |
16364 | } |
16365 | { | |
16366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16367 | (arg1)->SetAppName((wxString const &)*arg2); | |
16368 | ||
16369 | wxPyEndAllowThreads(__tstate); | |
16370 | if (PyErr_Occurred()) SWIG_fail; | |
16371 | } | |
16372 | Py_INCREF(Py_None); resultobj = Py_None; | |
16373 | { | |
16374 | if (temp2) | |
16375 | delete arg2; | |
16376 | } | |
16377 | return resultobj; | |
16378 | fail: | |
16379 | { | |
16380 | if (temp2) | |
16381 | delete arg2; | |
16382 | } | |
16383 | return NULL; | |
16384 | } | |
16385 | ||
16386 | ||
16387 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16388 | PyObject *resultobj; | |
16389 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16390 | wxString *arg2 = 0 ; | |
e811c8ce | 16391 | bool temp2 = False ; |
d14a1e28 RD |
16392 | PyObject * obj0 = 0 ; |
16393 | PyObject * obj1 = 0 ; | |
16394 | char *kwnames[] = { | |
16395 | (char *) "self",(char *) "vendorName", NULL | |
16396 | }; | |
16397 | ||
16398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16401 | { |
16402 | arg2 = wxString_in_helper(obj1); | |
16403 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16404 | temp2 = True; |
d14a1e28 RD |
16405 | } |
16406 | { | |
16407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16408 | (arg1)->SetVendorName((wxString const &)*arg2); | |
16409 | ||
16410 | wxPyEndAllowThreads(__tstate); | |
16411 | if (PyErr_Occurred()) SWIG_fail; | |
16412 | } | |
16413 | Py_INCREF(Py_None); resultobj = Py_None; | |
16414 | { | |
16415 | if (temp2) | |
16416 | delete arg2; | |
16417 | } | |
16418 | return resultobj; | |
16419 | fail: | |
16420 | { | |
16421 | if (temp2) | |
16422 | delete arg2; | |
16423 | } | |
16424 | return NULL; | |
16425 | } | |
16426 | ||
16427 | ||
16428 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16429 | PyObject *resultobj; | |
16430 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16431 | long arg2 ; | |
16432 | PyObject * obj0 = 0 ; | |
994141e6 | 16433 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16434 | char *kwnames[] = { |
16435 | (char *) "self",(char *) "style", NULL | |
16436 | }; | |
16437 | ||
994141e6 | 16438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16441 | arg2 = (long) SWIG_AsLong(obj1); | |
16442 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16443 | { |
16444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16445 | (arg1)->SetStyle(arg2); | |
16446 | ||
16447 | wxPyEndAllowThreads(__tstate); | |
16448 | if (PyErr_Occurred()) SWIG_fail; | |
16449 | } | |
16450 | Py_INCREF(Py_None); resultobj = Py_None; | |
16451 | return resultobj; | |
16452 | fail: | |
16453 | return NULL; | |
16454 | } | |
16455 | ||
16456 | ||
16457 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16458 | PyObject *resultobj; | |
16459 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16460 | long result; | |
16461 | PyObject * obj0 = 0 ; | |
16462 | char *kwnames[] = { | |
16463 | (char *) "self", NULL | |
16464 | }; | |
16465 | ||
16466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16469 | { |
16470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16471 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
16472 | ||
16473 | wxPyEndAllowThreads(__tstate); | |
16474 | if (PyErr_Occurred()) SWIG_fail; | |
16475 | } | |
15afbcd0 | 16476 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
16477 | return resultobj; |
16478 | fail: | |
16479 | return NULL; | |
16480 | } | |
16481 | ||
16482 | ||
16483 | static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) { | |
16484 | PyObject *obj; | |
16485 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16486 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
16487 | Py_INCREF(obj); | |
16488 | return Py_BuildValue((char *)""); | |
16489 | } | |
d14a1e28 RD |
16490 | static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) { |
16491 | PyObject *resultobj; | |
16492 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16493 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16494 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16495 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16496 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16497 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16498 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16499 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4f89f6a3 | 16500 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; |
d14a1e28 | 16501 | wxConfig *result; |
e811c8ce RD |
16502 | bool temp1 = False ; |
16503 | bool temp2 = False ; | |
16504 | bool temp3 = False ; | |
16505 | bool temp4 = False ; | |
d14a1e28 RD |
16506 | PyObject * obj0 = 0 ; |
16507 | PyObject * obj1 = 0 ; | |
16508 | PyObject * obj2 = 0 ; | |
16509 | PyObject * obj3 = 0 ; | |
994141e6 | 16510 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
16511 | char *kwnames[] = { |
16512 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16513 | }; | |
16514 | ||
994141e6 | 16515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
16516 | if (obj0) { |
16517 | { | |
16518 | arg1 = wxString_in_helper(obj0); | |
16519 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 16520 | temp1 = True; |
d14a1e28 RD |
16521 | } |
16522 | } | |
16523 | if (obj1) { | |
16524 | { | |
16525 | arg2 = wxString_in_helper(obj1); | |
16526 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16527 | temp2 = True; |
d14a1e28 RD |
16528 | } |
16529 | } | |
16530 | if (obj2) { | |
16531 | { | |
16532 | arg3 = wxString_in_helper(obj2); | |
16533 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 16534 | temp3 = True; |
d14a1e28 RD |
16535 | } |
16536 | } | |
16537 | if (obj3) { | |
16538 | { | |
16539 | arg4 = wxString_in_helper(obj3); | |
16540 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 16541 | temp4 = True; |
d14a1e28 RD |
16542 | } |
16543 | } | |
994141e6 | 16544 | if (obj4) { |
15afbcd0 RD |
16545 | arg5 = (long) SWIG_AsLong(obj4); |
16546 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16547 | } |
d14a1e28 RD |
16548 | { |
16549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16550 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16551 | ||
16552 | wxPyEndAllowThreads(__tstate); | |
16553 | if (PyErr_Occurred()) SWIG_fail; | |
16554 | } | |
15afbcd0 | 16555 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1); |
d14a1e28 RD |
16556 | { |
16557 | if (temp1) | |
16558 | delete arg1; | |
16559 | } | |
16560 | { | |
16561 | if (temp2) | |
16562 | delete arg2; | |
16563 | } | |
16564 | { | |
16565 | if (temp3) | |
16566 | delete arg3; | |
16567 | } | |
16568 | { | |
16569 | if (temp4) | |
16570 | delete arg4; | |
16571 | } | |
16572 | return resultobj; | |
16573 | fail: | |
16574 | { | |
16575 | if (temp1) | |
16576 | delete arg1; | |
16577 | } | |
16578 | { | |
16579 | if (temp2) | |
16580 | delete arg2; | |
16581 | } | |
16582 | { | |
16583 | if (temp3) | |
16584 | delete arg3; | |
16585 | } | |
16586 | { | |
16587 | if (temp4) | |
16588 | delete arg4; | |
16589 | } | |
16590 | return NULL; | |
16591 | } | |
16592 | ||
16593 | ||
16594 | static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16595 | PyObject *resultobj; | |
16596 | wxConfig *arg1 = (wxConfig *) 0 ; | |
16597 | PyObject * obj0 = 0 ; | |
16598 | char *kwnames[] = { | |
16599 | (char *) "self", NULL | |
16600 | }; | |
16601 | ||
16602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig, |
16604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16605 | { |
16606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16607 | delete arg1; | |
16608 | ||
16609 | wxPyEndAllowThreads(__tstate); | |
16610 | if (PyErr_Occurred()) SWIG_fail; | |
16611 | } | |
16612 | Py_INCREF(Py_None); resultobj = Py_None; | |
16613 | return resultobj; | |
16614 | fail: | |
16615 | return NULL; | |
16616 | } | |
16617 | ||
16618 | ||
16619 | static PyObject * Config_swigregister(PyObject *self, PyObject *args) { | |
16620 | PyObject *obj; | |
16621 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16622 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
16623 | Py_INCREF(obj); | |
16624 | return Py_BuildValue((char *)""); | |
16625 | } | |
16626 | static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16627 | PyObject *resultobj; | |
16628 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16629 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16630 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16631 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16632 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16633 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16634 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16635 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4276dc52 | 16636 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; |
d14a1e28 | 16637 | wxFileConfig *result; |
e811c8ce RD |
16638 | bool temp1 = False ; |
16639 | bool temp2 = False ; | |
16640 | bool temp3 = False ; | |
16641 | bool temp4 = False ; | |
d14a1e28 RD |
16642 | PyObject * obj0 = 0 ; |
16643 | PyObject * obj1 = 0 ; | |
16644 | PyObject * obj2 = 0 ; | |
16645 | PyObject * obj3 = 0 ; | |
994141e6 | 16646 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
16647 | char *kwnames[] = { |
16648 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16649 | }; | |
16650 | ||
994141e6 | 16651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
16652 | if (obj0) { |
16653 | { | |
16654 | arg1 = wxString_in_helper(obj0); | |
16655 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 16656 | temp1 = True; |
d14a1e28 RD |
16657 | } |
16658 | } | |
16659 | if (obj1) { | |
16660 | { | |
16661 | arg2 = wxString_in_helper(obj1); | |
16662 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16663 | temp2 = True; |
d14a1e28 RD |
16664 | } |
16665 | } | |
16666 | if (obj2) { | |
16667 | { | |
16668 | arg3 = wxString_in_helper(obj2); | |
16669 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 16670 | temp3 = True; |
d14a1e28 RD |
16671 | } |
16672 | } | |
16673 | if (obj3) { | |
16674 | { | |
16675 | arg4 = wxString_in_helper(obj3); | |
16676 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 16677 | temp4 = True; |
d14a1e28 RD |
16678 | } |
16679 | } | |
994141e6 | 16680 | if (obj4) { |
15afbcd0 RD |
16681 | arg5 = (long) SWIG_AsLong(obj4); |
16682 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16683 | } |
d14a1e28 RD |
16684 | { |
16685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16686 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16687 | ||
16688 | wxPyEndAllowThreads(__tstate); | |
16689 | if (PyErr_Occurred()) SWIG_fail; | |
16690 | } | |
15afbcd0 | 16691 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1); |
d14a1e28 RD |
16692 | { |
16693 | if (temp1) | |
16694 | delete arg1; | |
16695 | } | |
16696 | { | |
16697 | if (temp2) | |
16698 | delete arg2; | |
16699 | } | |
16700 | { | |
16701 | if (temp3) | |
16702 | delete arg3; | |
16703 | } | |
16704 | { | |
16705 | if (temp4) | |
16706 | delete arg4; | |
16707 | } | |
16708 | return resultobj; | |
16709 | fail: | |
16710 | { | |
16711 | if (temp1) | |
16712 | delete arg1; | |
16713 | } | |
16714 | { | |
16715 | if (temp2) | |
16716 | delete arg2; | |
16717 | } | |
16718 | { | |
16719 | if (temp3) | |
16720 | delete arg3; | |
16721 | } | |
16722 | { | |
16723 | if (temp4) | |
16724 | delete arg4; | |
16725 | } | |
16726 | return NULL; | |
16727 | } | |
16728 | ||
16729 | ||
16730 | static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16731 | PyObject *resultobj; | |
16732 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
16733 | PyObject * obj0 = 0 ; | |
16734 | char *kwnames[] = { | |
16735 | (char *) "self", NULL | |
16736 | }; | |
16737 | ||
16738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig, |
16740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16741 | { |
16742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16743 | delete arg1; | |
16744 | ||
16745 | wxPyEndAllowThreads(__tstate); | |
16746 | if (PyErr_Occurred()) SWIG_fail; | |
16747 | } | |
16748 | Py_INCREF(Py_None); resultobj = Py_None; | |
16749 | return resultobj; | |
16750 | fail: | |
16751 | return NULL; | |
16752 | } | |
16753 | ||
16754 | ||
16755 | static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) { | |
16756 | PyObject *obj; | |
16757 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16758 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
16759 | Py_INCREF(obj); | |
16760 | return Py_BuildValue((char *)""); | |
16761 | } | |
b88bce5f RD |
16762 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { |
16763 | PyObject *resultobj; | |
16764 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16765 | wxString *arg2 = 0 ; | |
16766 | wxConfigPathChanger *result; | |
16767 | bool temp2 = False ; | |
16768 | PyObject * obj0 = 0 ; | |
16769 | PyObject * obj1 = 0 ; | |
16770 | char *kwnames[] = { | |
16771 | (char *) "config",(char *) "entry", NULL | |
16772 | }; | |
16773 | ||
16774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
16777 | { |
16778 | arg2 = wxString_in_helper(obj1); | |
16779 | if (arg2 == NULL) SWIG_fail; | |
16780 | temp2 = True; | |
16781 | } | |
16782 | { | |
16783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16784 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
16785 | ||
16786 | wxPyEndAllowThreads(__tstate); | |
16787 | if (PyErr_Occurred()) SWIG_fail; | |
16788 | } | |
15afbcd0 | 16789 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1); |
b88bce5f RD |
16790 | { |
16791 | if (temp2) | |
16792 | delete arg2; | |
16793 | } | |
16794 | return resultobj; | |
16795 | fail: | |
16796 | { | |
16797 | if (temp2) | |
16798 | delete arg2; | |
16799 | } | |
16800 | return NULL; | |
16801 | } | |
16802 | ||
16803 | ||
16804 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16805 | PyObject *resultobj; | |
16806 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16807 | PyObject * obj0 = 0 ; | |
16808 | char *kwnames[] = { | |
16809 | (char *) "self", NULL | |
16810 | }; | |
16811 | ||
16812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, |
16814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
16815 | { |
16816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16817 | delete arg1; | |
16818 | ||
16819 | wxPyEndAllowThreads(__tstate); | |
16820 | if (PyErr_Occurred()) SWIG_fail; | |
16821 | } | |
16822 | Py_INCREF(Py_None); resultobj = Py_None; | |
16823 | return resultobj; | |
16824 | fail: | |
16825 | return NULL; | |
16826 | } | |
16827 | ||
16828 | ||
16829 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16830 | PyObject *resultobj; | |
16831 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16832 | wxString *result; | |
16833 | PyObject * obj0 = 0 ; | |
16834 | char *kwnames[] = { | |
16835 | (char *) "self", NULL | |
16836 | }; | |
16837 | ||
16838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, |
16840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
16841 | { |
16842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16843 | { | |
16844 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
16845 | result = (wxString *) &_result_ref; | |
16846 | } | |
16847 | ||
16848 | wxPyEndAllowThreads(__tstate); | |
16849 | if (PyErr_Occurred()) SWIG_fail; | |
16850 | } | |
16851 | { | |
16852 | #if wxUSE_UNICODE | |
16853 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16854 | #else | |
16855 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16856 | #endif | |
16857 | } | |
16858 | return resultobj; | |
16859 | fail: | |
16860 | return NULL; | |
16861 | } | |
16862 | ||
16863 | ||
16864 | static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) { | |
16865 | PyObject *obj; | |
16866 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16867 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
16868 | Py_INCREF(obj); | |
16869 | return Py_BuildValue((char *)""); | |
16870 | } | |
d14a1e28 RD |
16871 | static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { |
16872 | PyObject *resultobj; | |
16873 | wxString *arg1 = 0 ; | |
16874 | wxString result; | |
e811c8ce | 16875 | bool temp1 = False ; |
d14a1e28 RD |
16876 | PyObject * obj0 = 0 ; |
16877 | char *kwnames[] = { | |
16878 | (char *) "sz", NULL | |
16879 | }; | |
16880 | ||
16881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
16882 | { | |
16883 | arg1 = wxString_in_helper(obj0); | |
16884 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 16885 | temp1 = True; |
d14a1e28 RD |
16886 | } |
16887 | { | |
16888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16889 | result = wxExpandEnvVars((wxString const &)*arg1); | |
16890 | ||
16891 | wxPyEndAllowThreads(__tstate); | |
16892 | if (PyErr_Occurred()) SWIG_fail; | |
16893 | } | |
16894 | { | |
16895 | #if wxUSE_UNICODE | |
16896 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16897 | #else | |
16898 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16899 | #endif | |
16900 | } | |
16901 | { | |
16902 | if (temp1) | |
16903 | delete arg1; | |
16904 | } | |
16905 | return resultobj; | |
16906 | fail: | |
16907 | { | |
16908 | if (temp1) | |
16909 | delete arg1; | |
16910 | } | |
16911 | return NULL; | |
16912 | } | |
16913 | ||
16914 | ||
b2dc1044 RD |
16915 | static int _wrap_DateFormatStr_set(PyObject *_val) { |
16916 | PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); | |
16917 | return 1; | |
16918 | } | |
16919 | ||
16920 | ||
16921 | static PyObject *_wrap_DateFormatStr_get() { | |
16922 | PyObject *pyobj; | |
16923 | ||
16924 | { | |
16925 | #if wxUSE_UNICODE | |
16926 | pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16927 | #else | |
16928 | pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16929 | #endif | |
16930 | } | |
16931 | return pyobj; | |
16932 | } | |
16933 | ||
16934 | ||
16935 | static int _wrap_TimeSpanFormatStr_set(PyObject *_val) { | |
16936 | PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); | |
16937 | return 1; | |
16938 | } | |
16939 | ||
16940 | ||
16941 | static PyObject *_wrap_TimeSpanFormatStr_get() { | |
16942 | PyObject *pyobj; | |
16943 | ||
16944 | { | |
16945 | #if wxUSE_UNICODE | |
16946 | pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16947 | #else | |
16948 | pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16949 | #endif | |
16950 | } | |
16951 | return pyobj; | |
16952 | } | |
16953 | ||
16954 | ||
d14a1e28 RD |
16955 | static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { |
16956 | PyObject *resultobj; | |
16957 | int arg1 ; | |
994141e6 | 16958 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16959 | char *kwnames[] = { |
16960 | (char *) "country", NULL | |
16961 | }; | |
16962 | ||
994141e6 | 16963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
16964 | arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); |
16965 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16966 | { |
16967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16968 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
16969 | ||
16970 | wxPyEndAllowThreads(__tstate); | |
16971 | if (PyErr_Occurred()) SWIG_fail; | |
16972 | } | |
16973 | Py_INCREF(Py_None); resultobj = Py_None; | |
16974 | return resultobj; | |
16975 | fail: | |
16976 | return NULL; | |
16977 | } | |
16978 | ||
16979 | ||
16980 | static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16981 | PyObject *resultobj; | |
16982 | int result; | |
16983 | char *kwnames[] = { | |
16984 | NULL | |
16985 | }; | |
16986 | ||
16987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
16988 | { | |
16989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16990 | result = (int)wxDateTime::GetCountry(); | |
16991 | ||
16992 | wxPyEndAllowThreads(__tstate); | |
16993 | if (PyErr_Occurred()) SWIG_fail; | |
16994 | } | |
15afbcd0 | 16995 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16996 | return resultobj; |
16997 | fail: | |
16998 | return NULL; | |
16999 | } | |
17000 | ||
17001 | ||
17002 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17003 | PyObject *resultobj; | |
17004 | int arg1 = (int) wxDateTime::Country_Default ; | |
17005 | bool result; | |
994141e6 | 17006 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17007 | char *kwnames[] = { |
17008 | (char *) "country", NULL | |
17009 | }; | |
17010 | ||
994141e6 RD |
17011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; |
17012 | if (obj0) { | |
15afbcd0 RD |
17013 | arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); |
17014 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17015 | } |
d14a1e28 RD |
17016 | { |
17017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17018 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
17019 | ||
17020 | wxPyEndAllowThreads(__tstate); | |
17021 | if (PyErr_Occurred()) SWIG_fail; | |
17022 | } | |
4f89f6a3 RD |
17023 | { |
17024 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17025 | } | |
d14a1e28 RD |
17026 | return resultobj; |
17027 | fail: | |
17028 | return NULL; | |
17029 | } | |
17030 | ||
17031 | ||
17032 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17033 | PyObject *resultobj; | |
17034 | int arg1 = (int) wxDateTime::Gregorian ; | |
17035 | int result; | |
994141e6 | 17036 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17037 | char *kwnames[] = { |
17038 | (char *) "cal", NULL | |
17039 | }; | |
17040 | ||
994141e6 RD |
17041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; |
17042 | if (obj0) { | |
15afbcd0 RD |
17043 | arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); |
17044 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17045 | } |
d14a1e28 RD |
17046 | { |
17047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17048 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
17049 | ||
17050 | wxPyEndAllowThreads(__tstate); | |
17051 | if (PyErr_Occurred()) SWIG_fail; | |
17052 | } | |
15afbcd0 | 17053 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17054 | return resultobj; |
17055 | fail: | |
17056 | return NULL; | |
17057 | } | |
17058 | ||
17059 | ||
17060 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17061 | PyObject *resultobj; | |
17062 | int arg1 ; | |
17063 | int result; | |
994141e6 | 17064 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17065 | char *kwnames[] = { |
17066 | (char *) "year", NULL | |
17067 | }; | |
17068 | ||
994141e6 | 17069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17070 | arg1 = (int) SWIG_AsInt(obj0); |
17071 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17072 | { |
17073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17074 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
17075 | ||
17076 | wxPyEndAllowThreads(__tstate); | |
17077 | if (PyErr_Occurred()) SWIG_fail; | |
17078 | } | |
15afbcd0 | 17079 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17080 | return resultobj; |
17081 | fail: | |
17082 | return NULL; | |
17083 | } | |
17084 | ||
17085 | ||
17086 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17087 | PyObject *resultobj; | |
17088 | int arg1 = (int) wxDateTime::Gregorian ; | |
17089 | int result; | |
994141e6 | 17090 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17091 | char *kwnames[] = { |
17092 | (char *) "cal", NULL | |
17093 | }; | |
17094 | ||
994141e6 RD |
17095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; |
17096 | if (obj0) { | |
15afbcd0 RD |
17097 | arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); |
17098 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17099 | } |
d14a1e28 RD |
17100 | { |
17101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17102 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
17103 | ||
17104 | wxPyEndAllowThreads(__tstate); | |
17105 | if (PyErr_Occurred()) SWIG_fail; | |
17106 | } | |
15afbcd0 | 17107 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17108 | return resultobj; |
17109 | fail: | |
17110 | return NULL; | |
17111 | } | |
17112 | ||
17113 | ||
17114 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17115 | PyObject *resultobj; | |
17116 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17117 | int arg2 = (int) wxDateTime::Gregorian ; | |
17118 | bool result; | |
994141e6 RD |
17119 | PyObject * obj0 = 0 ; |
17120 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17121 | char *kwnames[] = { |
17122 | (char *) "year",(char *) "cal", NULL | |
17123 | }; | |
17124 | ||
994141e6 RD |
17125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; |
17126 | if (obj0) { | |
15afbcd0 RD |
17127 | arg1 = (int) SWIG_AsInt(obj0); |
17128 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17129 | } |
17130 | if (obj1) { | |
15afbcd0 RD |
17131 | arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); |
17132 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17133 | } |
d14a1e28 RD |
17134 | { |
17135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17136 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
17137 | ||
17138 | wxPyEndAllowThreads(__tstate); | |
17139 | if (PyErr_Occurred()) SWIG_fail; | |
17140 | } | |
4f89f6a3 RD |
17141 | { |
17142 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17143 | } | |
d14a1e28 RD |
17144 | return resultobj; |
17145 | fail: | |
17146 | return NULL; | |
17147 | } | |
17148 | ||
17149 | ||
17150 | static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17151 | PyObject *resultobj; | |
17152 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17153 | int result; | |
994141e6 | 17154 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17155 | char *kwnames[] = { |
17156 | (char *) "year", NULL | |
17157 | }; | |
17158 | ||
994141e6 RD |
17159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; |
17160 | if (obj0) { | |
15afbcd0 RD |
17161 | arg1 = (int) SWIG_AsInt(obj0); |
17162 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17163 | } |
d14a1e28 RD |
17164 | { |
17165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17166 | result = (int)wxDateTime::GetCentury(arg1); | |
17167 | ||
17168 | wxPyEndAllowThreads(__tstate); | |
17169 | if (PyErr_Occurred()) SWIG_fail; | |
17170 | } | |
15afbcd0 | 17171 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17172 | return resultobj; |
17173 | fail: | |
17174 | return NULL; | |
17175 | } | |
17176 | ||
17177 | ||
17178 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17179 | PyObject *resultobj; | |
17180 | int arg1 ; | |
17181 | int arg2 = (int) wxDateTime::Gregorian ; | |
322913ce | 17182 | int result; |
994141e6 RD |
17183 | PyObject * obj0 = 0 ; |
17184 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17185 | char *kwnames[] = { |
17186 | (char *) "year",(char *) "cal", NULL | |
17187 | }; | |
17188 | ||
994141e6 | 17189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17190 | arg1 = (int) SWIG_AsInt(obj0); |
17191 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17192 | if (obj1) { |
15afbcd0 RD |
17193 | arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); |
17194 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17195 | } |
d14a1e28 RD |
17196 | { |
17197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 17198 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); |
d14a1e28 RD |
17199 | |
17200 | wxPyEndAllowThreads(__tstate); | |
17201 | if (PyErr_Occurred()) SWIG_fail; | |
17202 | } | |
15afbcd0 | 17203 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17204 | return resultobj; |
17205 | fail: | |
17206 | return NULL; | |
17207 | } | |
17208 | ||
17209 | ||
17210 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17211 | PyObject *resultobj; | |
17212 | int arg1 ; | |
17213 | int arg2 = (int) wxDateTime::Inv_Year ; | |
17214 | int arg3 = (int) wxDateTime::Gregorian ; | |
322913ce | 17215 | int result; |
994141e6 RD |
17216 | PyObject * obj0 = 0 ; |
17217 | PyObject * obj1 = 0 ; | |
17218 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17219 | char *kwnames[] = { |
17220 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
17221 | }; | |
17222 | ||
994141e6 | 17223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17224 | arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); |
17225 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17226 | if (obj1) { |
15afbcd0 RD |
17227 | arg2 = (int) SWIG_AsInt(obj1); |
17228 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17229 | } |
17230 | if (obj2) { | |
15afbcd0 RD |
17231 | arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2); |
17232 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17233 | } |
d14a1e28 RD |
17234 | { |
17235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 17236 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); |
d14a1e28 RD |
17237 | |
17238 | wxPyEndAllowThreads(__tstate); | |
17239 | if (PyErr_Occurred()) SWIG_fail; | |
17240 | } | |
15afbcd0 | 17241 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17242 | return resultobj; |
17243 | fail: | |
17244 | return NULL; | |
17245 | } | |
17246 | ||
17247 | ||
17248 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17249 | PyObject *resultobj; | |
17250 | int arg1 ; | |
17251 | int arg2 = (int) wxDateTime::Name_Full ; | |
17252 | wxString result; | |
994141e6 RD |
17253 | PyObject * obj0 = 0 ; |
17254 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17255 | char *kwnames[] = { |
17256 | (char *) "month",(char *) "flags", NULL | |
17257 | }; | |
17258 | ||
994141e6 | 17259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17260 | arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); |
17261 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17262 | if (obj1) { |
15afbcd0 RD |
17263 | arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); |
17264 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17265 | } |
d14a1e28 RD |
17266 | { |
17267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17268 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
17269 | ||
17270 | wxPyEndAllowThreads(__tstate); | |
17271 | if (PyErr_Occurred()) SWIG_fail; | |
17272 | } | |
17273 | { | |
17274 | #if wxUSE_UNICODE | |
17275 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17276 | #else | |
17277 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17278 | #endif | |
17279 | } | |
17280 | return resultobj; | |
17281 | fail: | |
17282 | return NULL; | |
17283 | } | |
17284 | ||
17285 | ||
17286 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17287 | PyObject *resultobj; | |
17288 | int arg1 ; | |
17289 | int arg2 = (int) wxDateTime::Name_Full ; | |
17290 | wxString result; | |
994141e6 RD |
17291 | PyObject * obj0 = 0 ; |
17292 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17293 | char *kwnames[] = { |
17294 | (char *) "weekday",(char *) "flags", NULL | |
17295 | }; | |
17296 | ||
994141e6 | 17297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17298 | arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0); |
17299 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17300 | if (obj1) { |
15afbcd0 RD |
17301 | arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); |
17302 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17303 | } |
d14a1e28 RD |
17304 | { |
17305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17306 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
17307 | ||
17308 | wxPyEndAllowThreads(__tstate); | |
17309 | if (PyErr_Occurred()) SWIG_fail; | |
17310 | } | |
17311 | { | |
17312 | #if wxUSE_UNICODE | |
17313 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17314 | #else | |
17315 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17316 | #endif | |
17317 | } | |
17318 | return resultobj; | |
17319 | fail: | |
17320 | return NULL; | |
17321 | } | |
17322 | ||
17323 | ||
17324 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17325 | PyObject *resultobj; | |
17326 | wxString *arg1 = (wxString *) 0 ; | |
17327 | wxString *arg2 = (wxString *) 0 ; | |
7eae615b RD |
17328 | bool temp1 = False ; |
17329 | bool temp2 = False ; | |
d14a1e28 RD |
17330 | PyObject * obj0 = 0 ; |
17331 | PyObject * obj1 = 0 ; | |
17332 | char *kwnames[] = { | |
17333 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
17334 | }; | |
17335 | ||
17336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
7eae615b RD |
17337 | { |
17338 | arg1 = wxString_in_helper(obj0); | |
17339 | if (arg1 == NULL) SWIG_fail; | |
17340 | temp1 = True; | |
17341 | } | |
17342 | { | |
17343 | arg2 = wxString_in_helper(obj1); | |
17344 | if (arg2 == NULL) SWIG_fail; | |
17345 | temp2 = True; | |
17346 | } | |
d14a1e28 RD |
17347 | { |
17348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17349 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
17350 | ||
17351 | wxPyEndAllowThreads(__tstate); | |
17352 | if (PyErr_Occurred()) SWIG_fail; | |
17353 | } | |
17354 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
17355 | { |
17356 | if (temp1) | |
17357 | delete arg1; | |
17358 | } | |
17359 | { | |
17360 | if (temp2) | |
17361 | delete arg2; | |
17362 | } | |
d14a1e28 RD |
17363 | return resultobj; |
17364 | fail: | |
7eae615b RD |
17365 | { |
17366 | if (temp1) | |
17367 | delete arg1; | |
17368 | } | |
17369 | { | |
17370 | if (temp2) | |
17371 | delete arg2; | |
17372 | } | |
d14a1e28 RD |
17373 | return NULL; |
17374 | } | |
17375 | ||
17376 | ||
17377 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17378 | PyObject *resultobj; | |
17379 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17380 | int arg2 = (int) wxDateTime::Country_Default ; | |
17381 | bool result; | |
994141e6 RD |
17382 | PyObject * obj0 = 0 ; |
17383 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17384 | char *kwnames[] = { |
17385 | (char *) "year",(char *) "country", NULL | |
17386 | }; | |
17387 | ||
994141e6 RD |
17388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; |
17389 | if (obj0) { | |
15afbcd0 RD |
17390 | arg1 = (int) SWIG_AsInt(obj0); |
17391 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17392 | } |
17393 | if (obj1) { | |
15afbcd0 RD |
17394 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
17395 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17396 | } |
d14a1e28 RD |
17397 | { |
17398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17399 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
17400 | ||
17401 | wxPyEndAllowThreads(__tstate); | |
17402 | if (PyErr_Occurred()) SWIG_fail; | |
17403 | } | |
4f89f6a3 RD |
17404 | { |
17405 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17406 | } | |
d14a1e28 RD |
17407 | return resultobj; |
17408 | fail: | |
17409 | return NULL; | |
17410 | } | |
17411 | ||
17412 | ||
17413 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17414 | PyObject *resultobj; | |
17415 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17416 | int arg2 = (int) wxDateTime::Country_Default ; | |
17417 | wxDateTime result; | |
994141e6 RD |
17418 | PyObject * obj0 = 0 ; |
17419 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17420 | char *kwnames[] = { |
17421 | (char *) "year",(char *) "country", NULL | |
17422 | }; | |
17423 | ||
994141e6 RD |
17424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; |
17425 | if (obj0) { | |
15afbcd0 RD |
17426 | arg1 = (int) SWIG_AsInt(obj0); |
17427 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17428 | } |
17429 | if (obj1) { | |
15afbcd0 RD |
17430 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
17431 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17432 | } |
d14a1e28 RD |
17433 | { |
17434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17435 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
17436 | ||
17437 | wxPyEndAllowThreads(__tstate); | |
17438 | if (PyErr_Occurred()) SWIG_fail; | |
17439 | } | |
17440 | { | |
17441 | wxDateTime * resultptr; | |
17442 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17443 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17444 | } |
17445 | return resultobj; | |
17446 | fail: | |
17447 | return NULL; | |
17448 | } | |
17449 | ||
17450 | ||
17451 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17452 | PyObject *resultobj; | |
17453 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17454 | int arg2 = (int) wxDateTime::Country_Default ; | |
17455 | wxDateTime result; | |
994141e6 RD |
17456 | PyObject * obj0 = 0 ; |
17457 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17458 | char *kwnames[] = { |
17459 | (char *) "year",(char *) "country", NULL | |
17460 | }; | |
17461 | ||
994141e6 RD |
17462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; |
17463 | if (obj0) { | |
15afbcd0 RD |
17464 | arg1 = (int) SWIG_AsInt(obj0); |
17465 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17466 | } |
17467 | if (obj1) { | |
15afbcd0 RD |
17468 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
17469 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17470 | } |
d14a1e28 RD |
17471 | { |
17472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17473 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
17474 | ||
17475 | wxPyEndAllowThreads(__tstate); | |
17476 | if (PyErr_Occurred()) SWIG_fail; | |
17477 | } | |
17478 | { | |
17479 | wxDateTime * resultptr; | |
17480 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17481 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17482 | } |
17483 | return resultobj; | |
17484 | fail: | |
17485 | return NULL; | |
17486 | } | |
17487 | ||
17488 | ||
17489 | static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17490 | PyObject *resultobj; | |
17491 | wxDateTime result; | |
17492 | char *kwnames[] = { | |
17493 | NULL | |
17494 | }; | |
17495 | ||
17496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
17497 | { | |
17498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17499 | result = wxDateTime::Now(); | |
17500 | ||
17501 | wxPyEndAllowThreads(__tstate); | |
17502 | if (PyErr_Occurred()) SWIG_fail; | |
17503 | } | |
17504 | { | |
17505 | wxDateTime * resultptr; | |
17506 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17507 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17508 | } |
17509 | return resultobj; | |
17510 | fail: | |
17511 | return NULL; | |
17512 | } | |
17513 | ||
17514 | ||
17515 | static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17516 | PyObject *resultobj; | |
17517 | wxDateTime result; | |
17518 | char *kwnames[] = { | |
17519 | NULL | |
17520 | }; | |
17521 | ||
17522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
17523 | { | |
17524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17525 | result = wxDateTime::UNow(); | |
17526 | ||
17527 | wxPyEndAllowThreads(__tstate); | |
17528 | if (PyErr_Occurred()) SWIG_fail; | |
17529 | } | |
17530 | { | |
17531 | wxDateTime * resultptr; | |
17532 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17533 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17534 | } |
17535 | return resultobj; | |
17536 | fail: | |
17537 | return NULL; | |
17538 | } | |
17539 | ||
17540 | ||
17541 | static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17542 | PyObject *resultobj; | |
17543 | wxDateTime result; | |
17544 | char *kwnames[] = { | |
17545 | NULL | |
17546 | }; | |
17547 | ||
17548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
17549 | { | |
17550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17551 | result = wxDateTime::Today(); | |
17552 | ||
17553 | wxPyEndAllowThreads(__tstate); | |
17554 | if (PyErr_Occurred()) SWIG_fail; | |
17555 | } | |
17556 | { | |
17557 | wxDateTime * resultptr; | |
17558 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17559 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17560 | } |
17561 | return resultobj; | |
17562 | fail: | |
17563 | return NULL; | |
17564 | } | |
17565 | ||
17566 | ||
17567 | static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17568 | PyObject *resultobj; | |
17569 | wxDateTime *result; | |
17570 | char *kwnames[] = { | |
17571 | NULL | |
17572 | }; | |
17573 | ||
17574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
17575 | { | |
17576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17577 | result = (wxDateTime *)new wxDateTime(); | |
17578 | ||
17579 | wxPyEndAllowThreads(__tstate); | |
17580 | if (PyErr_Occurred()) SWIG_fail; | |
17581 | } | |
15afbcd0 | 17582 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17583 | return resultobj; |
17584 | fail: | |
17585 | return NULL; | |
17586 | } | |
17587 | ||
17588 | ||
17589 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17590 | PyObject *resultobj; | |
17591 | time_t arg1 ; | |
17592 | wxDateTime *result; | |
17593 | PyObject * obj0 = 0 ; | |
17594 | char *kwnames[] = { | |
17595 | (char *) "timet", NULL | |
17596 | }; | |
17597 | ||
17598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17599 | arg1 = (time_t) SWIG_AsUnsignedInt(obj0); |
17600 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17601 | { |
17602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17603 | result = (wxDateTime *)new wxDateTime(arg1); | |
17604 | ||
17605 | wxPyEndAllowThreads(__tstate); | |
17606 | if (PyErr_Occurred()) SWIG_fail; | |
17607 | } | |
15afbcd0 | 17608 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17609 | return resultobj; |
17610 | fail: | |
17611 | return NULL; | |
17612 | } | |
17613 | ||
17614 | ||
17615 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17616 | PyObject *resultobj; | |
17617 | double arg1 ; | |
17618 | wxDateTime *result; | |
994141e6 | 17619 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17620 | char *kwnames[] = { |
17621 | (char *) "jdn", NULL | |
17622 | }; | |
17623 | ||
994141e6 | 17624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17625 | arg1 = (double) SWIG_AsDouble(obj0); |
17626 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17627 | { |
17628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17629 | result = (wxDateTime *)new wxDateTime(arg1); | |
17630 | ||
17631 | wxPyEndAllowThreads(__tstate); | |
17632 | if (PyErr_Occurred()) SWIG_fail; | |
17633 | } | |
15afbcd0 | 17634 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17635 | return resultobj; |
17636 | fail: | |
17637 | return NULL; | |
17638 | } | |
17639 | ||
17640 | ||
17641 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17642 | PyObject *resultobj; | |
322913ce RD |
17643 | int arg1 ; |
17644 | int arg2 = (int) 0 ; | |
17645 | int arg3 = (int) 0 ; | |
17646 | int arg4 = (int) 0 ; | |
d14a1e28 | 17647 | wxDateTime *result; |
994141e6 RD |
17648 | PyObject * obj0 = 0 ; |
17649 | PyObject * obj1 = 0 ; | |
17650 | PyObject * obj2 = 0 ; | |
17651 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
17652 | char *kwnames[] = { |
17653 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17654 | }; | |
17655 | ||
994141e6 | 17656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
17657 | arg1 = (int) SWIG_AsInt(obj0); |
17658 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17659 | if (obj1) { |
15afbcd0 RD |
17660 | arg2 = (int) SWIG_AsInt(obj1); |
17661 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17662 | } |
17663 | if (obj2) { | |
15afbcd0 RD |
17664 | arg3 = (int) SWIG_AsInt(obj2); |
17665 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17666 | } |
17667 | if (obj3) { | |
15afbcd0 RD |
17668 | arg4 = (int) SWIG_AsInt(obj3); |
17669 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17670 | } |
d14a1e28 RD |
17671 | { |
17672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17673 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
17674 | ||
17675 | wxPyEndAllowThreads(__tstate); | |
17676 | if (PyErr_Occurred()) SWIG_fail; | |
17677 | } | |
15afbcd0 | 17678 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17679 | return resultobj; |
17680 | fail: | |
17681 | return NULL; | |
17682 | } | |
17683 | ||
17684 | ||
17685 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17686 | PyObject *resultobj; | |
322913ce | 17687 | int arg1 ; |
d14a1e28 RD |
17688 | int arg2 = (int) wxDateTime::Inv_Month ; |
17689 | int arg3 = (int) wxDateTime::Inv_Year ; | |
322913ce RD |
17690 | int arg4 = (int) 0 ; |
17691 | int arg5 = (int) 0 ; | |
17692 | int arg6 = (int) 0 ; | |
17693 | int arg7 = (int) 0 ; | |
d14a1e28 | 17694 | wxDateTime *result; |
994141e6 RD |
17695 | PyObject * obj0 = 0 ; |
17696 | PyObject * obj1 = 0 ; | |
17697 | PyObject * obj2 = 0 ; | |
17698 | PyObject * obj3 = 0 ; | |
17699 | PyObject * obj4 = 0 ; | |
17700 | PyObject * obj5 = 0 ; | |
17701 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
17702 | char *kwnames[] = { |
17703 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17704 | }; | |
17705 | ||
994141e6 | 17706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
17707 | arg1 = (int) SWIG_AsInt(obj0); |
17708 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17709 | if (obj1) { |
15afbcd0 RD |
17710 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); |
17711 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17712 | } |
17713 | if (obj2) { | |
15afbcd0 RD |
17714 | arg3 = (int) SWIG_AsInt(obj2); |
17715 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17716 | } |
17717 | if (obj3) { | |
15afbcd0 RD |
17718 | arg4 = (int) SWIG_AsInt(obj3); |
17719 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17720 | } |
17721 | if (obj4) { | |
15afbcd0 RD |
17722 | arg5 = (int) SWIG_AsInt(obj4); |
17723 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17724 | } |
17725 | if (obj5) { | |
15afbcd0 RD |
17726 | arg6 = (int) SWIG_AsInt(obj5); |
17727 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17728 | } |
17729 | if (obj6) { | |
15afbcd0 RD |
17730 | arg7 = (int) SWIG_AsInt(obj6); |
17731 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17732 | } |
d14a1e28 RD |
17733 | { |
17734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17735 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
17736 | ||
17737 | wxPyEndAllowThreads(__tstate); | |
17738 | if (PyErr_Occurred()) SWIG_fail; | |
17739 | } | |
15afbcd0 | 17740 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17741 | return resultobj; |
17742 | fail: | |
17743 | return NULL; | |
17744 | } | |
17745 | ||
17746 | ||
17747 | static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17748 | PyObject *resultobj; | |
17749 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17750 | PyObject * obj0 = 0 ; | |
17751 | char *kwnames[] = { | |
17752 | (char *) "self", NULL | |
17753 | }; | |
17754 | ||
17755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17758 | { |
17759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17760 | delete arg1; | |
17761 | ||
17762 | wxPyEndAllowThreads(__tstate); | |
17763 | if (PyErr_Occurred()) SWIG_fail; | |
17764 | } | |
17765 | Py_INCREF(Py_None); resultobj = Py_None; | |
17766 | return resultobj; | |
17767 | fail: | |
17768 | return NULL; | |
17769 | } | |
17770 | ||
17771 | ||
17772 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17773 | PyObject *resultobj; | |
17774 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17775 | wxDateTime *result; | |
17776 | PyObject * obj0 = 0 ; | |
17777 | char *kwnames[] = { | |
17778 | (char *) "self", NULL | |
17779 | }; | |
17780 | ||
17781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17784 | { |
17785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17786 | { | |
17787 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
17788 | result = (wxDateTime *) &_result_ref; | |
17789 | } | |
17790 | ||
17791 | wxPyEndAllowThreads(__tstate); | |
17792 | if (PyErr_Occurred()) SWIG_fail; | |
17793 | } | |
15afbcd0 | 17794 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17795 | return resultobj; |
17796 | fail: | |
17797 | return NULL; | |
17798 | } | |
17799 | ||
17800 | ||
17801 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17802 | PyObject *resultobj; | |
17803 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17804 | time_t arg2 ; | |
17805 | wxDateTime *result; | |
17806 | PyObject * obj0 = 0 ; | |
17807 | PyObject * obj1 = 0 ; | |
17808 | char *kwnames[] = { | |
17809 | (char *) "self",(char *) "timet", NULL | |
17810 | }; | |
17811 | ||
17812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17815 | arg2 = (time_t) SWIG_AsUnsignedInt(obj1); | |
17816 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17817 | { |
17818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17819 | { | |
17820 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17821 | result = (wxDateTime *) &_result_ref; | |
17822 | } | |
17823 | ||
17824 | wxPyEndAllowThreads(__tstate); | |
17825 | if (PyErr_Occurred()) SWIG_fail; | |
17826 | } | |
15afbcd0 | 17827 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17828 | return resultobj; |
17829 | fail: | |
17830 | return NULL; | |
17831 | } | |
17832 | ||
17833 | ||
17834 | static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17835 | PyObject *resultobj; | |
17836 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17837 | double arg2 ; | |
17838 | wxDateTime *result; | |
17839 | PyObject * obj0 = 0 ; | |
994141e6 | 17840 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17841 | char *kwnames[] = { |
17842 | (char *) "self",(char *) "jdn", NULL | |
17843 | }; | |
17844 | ||
994141e6 | 17845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17848 | arg2 = (double) SWIG_AsDouble(obj1); | |
17849 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17850 | { |
17851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17852 | { | |
17853 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17854 | result = (wxDateTime *) &_result_ref; | |
17855 | } | |
17856 | ||
17857 | wxPyEndAllowThreads(__tstate); | |
17858 | if (PyErr_Occurred()) SWIG_fail; | |
17859 | } | |
15afbcd0 | 17860 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17861 | return resultobj; |
17862 | fail: | |
17863 | return NULL; | |
17864 | } | |
17865 | ||
17866 | ||
17867 | static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17868 | PyObject *resultobj; | |
17869 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce RD |
17870 | int arg2 ; |
17871 | int arg3 = (int) 0 ; | |
17872 | int arg4 = (int) 0 ; | |
17873 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
17874 | wxDateTime *result; |
17875 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17876 | PyObject * obj1 = 0 ; |
17877 | PyObject * obj2 = 0 ; | |
17878 | PyObject * obj3 = 0 ; | |
17879 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
17880 | char *kwnames[] = { |
17881 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17882 | }; | |
17883 | ||
994141e6 | 17884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
17885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17887 | arg2 = (int) SWIG_AsInt(obj1); | |
17888 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17889 | if (obj2) { |
15afbcd0 RD |
17890 | arg3 = (int) SWIG_AsInt(obj2); |
17891 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17892 | } |
17893 | if (obj3) { | |
15afbcd0 RD |
17894 | arg4 = (int) SWIG_AsInt(obj3); |
17895 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17896 | } |
17897 | if (obj4) { | |
15afbcd0 RD |
17898 | arg5 = (int) SWIG_AsInt(obj4); |
17899 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17900 | } |
d14a1e28 RD |
17901 | { |
17902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17903 | { | |
17904 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
17905 | result = (wxDateTime *) &_result_ref; | |
17906 | } | |
17907 | ||
17908 | wxPyEndAllowThreads(__tstate); | |
17909 | if (PyErr_Occurred()) SWIG_fail; | |
17910 | } | |
15afbcd0 | 17911 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17912 | return resultobj; |
17913 | fail: | |
17914 | return NULL; | |
17915 | } | |
17916 | ||
17917 | ||
17918 | static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17919 | PyObject *resultobj; | |
17920 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17921 | int arg2 ; |
d14a1e28 RD |
17922 | int arg3 = (int) wxDateTime::Inv_Month ; |
17923 | int arg4 = (int) wxDateTime::Inv_Year ; | |
322913ce RD |
17924 | int arg5 = (int) 0 ; |
17925 | int arg6 = (int) 0 ; | |
17926 | int arg7 = (int) 0 ; | |
17927 | int arg8 = (int) 0 ; | |
d14a1e28 RD |
17928 | wxDateTime *result; |
17929 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17930 | PyObject * obj1 = 0 ; |
17931 | PyObject * obj2 = 0 ; | |
17932 | PyObject * obj3 = 0 ; | |
17933 | PyObject * obj4 = 0 ; | |
17934 | PyObject * obj5 = 0 ; | |
17935 | PyObject * obj6 = 0 ; | |
17936 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
17937 | char *kwnames[] = { |
17938 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17939 | }; | |
17940 | ||
994141e6 | 17941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
17942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17944 | arg2 = (int) SWIG_AsInt(obj1); | |
17945 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17946 | if (obj2) { |
15afbcd0 RD |
17947 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); |
17948 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17949 | } |
17950 | if (obj3) { | |
15afbcd0 RD |
17951 | arg4 = (int) SWIG_AsInt(obj3); |
17952 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17953 | } |
17954 | if (obj4) { | |
15afbcd0 RD |
17955 | arg5 = (int) SWIG_AsInt(obj4); |
17956 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17957 | } |
17958 | if (obj5) { | |
15afbcd0 RD |
17959 | arg6 = (int) SWIG_AsInt(obj5); |
17960 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17961 | } |
17962 | if (obj6) { | |
15afbcd0 RD |
17963 | arg7 = (int) SWIG_AsInt(obj6); |
17964 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17965 | } |
17966 | if (obj7) { | |
15afbcd0 RD |
17967 | arg8 = (int) SWIG_AsInt(obj7); |
17968 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17969 | } |
d14a1e28 RD |
17970 | { |
17971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17972 | { | |
17973 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
17974 | result = (wxDateTime *) &_result_ref; | |
17975 | } | |
17976 | ||
17977 | wxPyEndAllowThreads(__tstate); | |
17978 | if (PyErr_Occurred()) SWIG_fail; | |
17979 | } | |
15afbcd0 | 17980 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17981 | return resultobj; |
17982 | fail: | |
17983 | return NULL; | |
17984 | } | |
17985 | ||
17986 | ||
17987 | static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17988 | PyObject *resultobj; | |
17989 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17990 | wxDateTime *result; | |
17991 | PyObject * obj0 = 0 ; | |
17992 | char *kwnames[] = { | |
17993 | (char *) "self", NULL | |
17994 | }; | |
17995 | ||
17996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17999 | { |
18000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18001 | { | |
18002 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
18003 | result = (wxDateTime *) &_result_ref; | |
18004 | } | |
18005 | ||
18006 | wxPyEndAllowThreads(__tstate); | |
18007 | if (PyErr_Occurred()) SWIG_fail; | |
18008 | } | |
15afbcd0 | 18009 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18010 | return resultobj; |
18011 | fail: | |
18012 | return NULL; | |
18013 | } | |
18014 | ||
18015 | ||
18016 | static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18017 | PyObject *resultobj; | |
18018 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18019 | int arg2 ; | |
18020 | wxDateTime *result; | |
18021 | PyObject * obj0 = 0 ; | |
994141e6 | 18022 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18023 | char *kwnames[] = { |
18024 | (char *) "self",(char *) "year", NULL | |
18025 | }; | |
18026 | ||
994141e6 | 18027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18030 | arg2 = (int) SWIG_AsInt(obj1); | |
18031 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18032 | { |
18033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18034 | { | |
18035 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
18036 | result = (wxDateTime *) &_result_ref; | |
18037 | } | |
18038 | ||
18039 | wxPyEndAllowThreads(__tstate); | |
18040 | if (PyErr_Occurred()) SWIG_fail; | |
18041 | } | |
15afbcd0 | 18042 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18043 | return resultobj; |
18044 | fail: | |
18045 | return NULL; | |
18046 | } | |
18047 | ||
18048 | ||
18049 | static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18050 | PyObject *resultobj; | |
18051 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18052 | int arg2 ; | |
18053 | wxDateTime *result; | |
18054 | PyObject * obj0 = 0 ; | |
994141e6 | 18055 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18056 | char *kwnames[] = { |
18057 | (char *) "self",(char *) "month", NULL | |
18058 | }; | |
18059 | ||
994141e6 | 18060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18063 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
18064 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18065 | { |
18066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18067 | { | |
18068 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
18069 | result = (wxDateTime *) &_result_ref; | |
18070 | } | |
18071 | ||
18072 | wxPyEndAllowThreads(__tstate); | |
18073 | if (PyErr_Occurred()) SWIG_fail; | |
18074 | } | |
15afbcd0 | 18075 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18076 | return resultobj; |
18077 | fail: | |
18078 | return NULL; | |
18079 | } | |
18080 | ||
18081 | ||
18082 | static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18083 | PyObject *resultobj; | |
18084 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18085 | int arg2 ; |
d14a1e28 RD |
18086 | wxDateTime *result; |
18087 | PyObject * obj0 = 0 ; | |
994141e6 | 18088 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18089 | char *kwnames[] = { |
18090 | (char *) "self",(char *) "day", NULL | |
18091 | }; | |
18092 | ||
994141e6 | 18093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18096 | arg2 = (int) SWIG_AsInt(obj1); | |
18097 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18098 | { |
18099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18100 | { | |
18101 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
18102 | result = (wxDateTime *) &_result_ref; | |
18103 | } | |
18104 | ||
18105 | wxPyEndAllowThreads(__tstate); | |
18106 | if (PyErr_Occurred()) SWIG_fail; | |
18107 | } | |
15afbcd0 | 18108 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18109 | return resultobj; |
18110 | fail: | |
18111 | return NULL; | |
18112 | } | |
18113 | ||
18114 | ||
18115 | static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18116 | PyObject *resultobj; | |
18117 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18118 | int arg2 ; |
d14a1e28 RD |
18119 | wxDateTime *result; |
18120 | PyObject * obj0 = 0 ; | |
994141e6 | 18121 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18122 | char *kwnames[] = { |
18123 | (char *) "self",(char *) "hour", NULL | |
18124 | }; | |
18125 | ||
994141e6 | 18126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18129 | arg2 = (int) SWIG_AsInt(obj1); | |
18130 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18131 | { |
18132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18133 | { | |
18134 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
18135 | result = (wxDateTime *) &_result_ref; | |
18136 | } | |
18137 | ||
18138 | wxPyEndAllowThreads(__tstate); | |
18139 | if (PyErr_Occurred()) SWIG_fail; | |
18140 | } | |
15afbcd0 | 18141 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18142 | return resultobj; |
18143 | fail: | |
18144 | return NULL; | |
18145 | } | |
18146 | ||
18147 | ||
18148 | static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18149 | PyObject *resultobj; | |
18150 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18151 | int arg2 ; |
d14a1e28 RD |
18152 | wxDateTime *result; |
18153 | PyObject * obj0 = 0 ; | |
994141e6 | 18154 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18155 | char *kwnames[] = { |
18156 | (char *) "self",(char *) "minute", NULL | |
18157 | }; | |
18158 | ||
994141e6 | 18159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18162 | arg2 = (int) SWIG_AsInt(obj1); | |
18163 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18164 | { |
18165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18166 | { | |
18167 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
18168 | result = (wxDateTime *) &_result_ref; | |
18169 | } | |
18170 | ||
18171 | wxPyEndAllowThreads(__tstate); | |
18172 | if (PyErr_Occurred()) SWIG_fail; | |
18173 | } | |
15afbcd0 | 18174 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18175 | return resultobj; |
18176 | fail: | |
18177 | return NULL; | |
18178 | } | |
18179 | ||
18180 | ||
18181 | static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18182 | PyObject *resultobj; | |
18183 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18184 | int arg2 ; |
d14a1e28 RD |
18185 | wxDateTime *result; |
18186 | PyObject * obj0 = 0 ; | |
994141e6 | 18187 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18188 | char *kwnames[] = { |
18189 | (char *) "self",(char *) "second", NULL | |
18190 | }; | |
18191 | ||
994141e6 | 18192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18195 | arg2 = (int) SWIG_AsInt(obj1); | |
18196 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18197 | { |
18198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18199 | { | |
18200 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
18201 | result = (wxDateTime *) &_result_ref; | |
18202 | } | |
18203 | ||
18204 | wxPyEndAllowThreads(__tstate); | |
18205 | if (PyErr_Occurred()) SWIG_fail; | |
18206 | } | |
15afbcd0 | 18207 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18208 | return resultobj; |
18209 | fail: | |
18210 | return NULL; | |
18211 | } | |
18212 | ||
18213 | ||
18214 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18215 | PyObject *resultobj; | |
18216 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18217 | int arg2 ; |
d14a1e28 RD |
18218 | wxDateTime *result; |
18219 | PyObject * obj0 = 0 ; | |
994141e6 | 18220 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18221 | char *kwnames[] = { |
18222 | (char *) "self",(char *) "millisecond", NULL | |
18223 | }; | |
18224 | ||
994141e6 | 18225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18228 | arg2 = (int) SWIG_AsInt(obj1); | |
18229 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18230 | { |
18231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18232 | { | |
18233 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
18234 | result = (wxDateTime *) &_result_ref; | |
18235 | } | |
18236 | ||
18237 | wxPyEndAllowThreads(__tstate); | |
18238 | if (PyErr_Occurred()) SWIG_fail; | |
18239 | } | |
15afbcd0 | 18240 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18241 | return resultobj; |
18242 | fail: | |
18243 | return NULL; | |
18244 | } | |
18245 | ||
18246 | ||
18247 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18248 | PyObject *resultobj; | |
18249 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18250 | int arg2 ; | |
18251 | int arg3 = (int) wxDateTime::Monday_First ; | |
18252 | wxDateTime *result; | |
18253 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18254 | PyObject * obj1 = 0 ; |
18255 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18256 | char *kwnames[] = { |
18257 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
18258 | }; | |
18259 | ||
994141e6 | 18260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18263 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18264 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18265 | if (obj2) { |
15afbcd0 RD |
18266 | arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); |
18267 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18268 | } |
d14a1e28 RD |
18269 | { |
18270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18271 | { | |
18272 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18273 | result = (wxDateTime *) &_result_ref; | |
18274 | } | |
18275 | ||
18276 | wxPyEndAllowThreads(__tstate); | |
18277 | if (PyErr_Occurred()) SWIG_fail; | |
18278 | } | |
15afbcd0 | 18279 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18280 | return resultobj; |
18281 | fail: | |
18282 | return NULL; | |
18283 | } | |
18284 | ||
18285 | ||
18286 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18287 | PyObject *resultobj; | |
18288 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18289 | int arg2 ; | |
18290 | int arg3 = (int) wxDateTime::Monday_First ; | |
18291 | wxDateTime result; | |
18292 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18293 | PyObject * obj1 = 0 ; |
18294 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18295 | char *kwnames[] = { |
18296 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
18297 | }; | |
18298 | ||
994141e6 | 18299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18302 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18303 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18304 | if (obj2) { |
15afbcd0 RD |
18305 | arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); |
18306 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18307 | } |
d14a1e28 RD |
18308 | { |
18309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18310 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18311 | ||
18312 | wxPyEndAllowThreads(__tstate); | |
18313 | if (PyErr_Occurred()) SWIG_fail; | |
18314 | } | |
18315 | { | |
18316 | wxDateTime * resultptr; | |
18317 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18318 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18319 | } |
18320 | return resultobj; | |
18321 | fail: | |
18322 | return NULL; | |
18323 | } | |
18324 | ||
18325 | ||
18326 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18327 | PyObject *resultobj; | |
18328 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18329 | int arg2 ; | |
18330 | wxDateTime *result; | |
18331 | PyObject * obj0 = 0 ; | |
994141e6 | 18332 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18333 | char *kwnames[] = { |
18334 | (char *) "self",(char *) "weekday", NULL | |
18335 | }; | |
18336 | ||
994141e6 | 18337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18340 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18341 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18342 | { |
18343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18344 | { | |
18345 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
18346 | result = (wxDateTime *) &_result_ref; | |
18347 | } | |
18348 | ||
18349 | wxPyEndAllowThreads(__tstate); | |
18350 | if (PyErr_Occurred()) SWIG_fail; | |
18351 | } | |
15afbcd0 | 18352 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18353 | return resultobj; |
18354 | fail: | |
18355 | return NULL; | |
18356 | } | |
18357 | ||
18358 | ||
18359 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18360 | PyObject *resultobj; | |
18361 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18362 | int arg2 ; | |
18363 | wxDateTime result; | |
18364 | PyObject * obj0 = 0 ; | |
994141e6 | 18365 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18366 | char *kwnames[] = { |
18367 | (char *) "self",(char *) "weekday", NULL | |
18368 | }; | |
18369 | ||
994141e6 | 18370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18373 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18374 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18375 | { |
18376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18377 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
18378 | ||
18379 | wxPyEndAllowThreads(__tstate); | |
18380 | if (PyErr_Occurred()) SWIG_fail; | |
18381 | } | |
18382 | { | |
18383 | wxDateTime * resultptr; | |
18384 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18385 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18386 | } |
18387 | return resultobj; | |
18388 | fail: | |
18389 | return NULL; | |
18390 | } | |
18391 | ||
18392 | ||
18393 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18394 | PyObject *resultobj; | |
18395 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18396 | int arg2 ; | |
18397 | wxDateTime *result; | |
18398 | PyObject * obj0 = 0 ; | |
994141e6 | 18399 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18400 | char *kwnames[] = { |
18401 | (char *) "self",(char *) "weekday", NULL | |
18402 | }; | |
18403 | ||
994141e6 | 18404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18407 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18408 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18409 | { |
18410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18411 | { | |
18412 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18413 | result = (wxDateTime *) &_result_ref; | |
18414 | } | |
18415 | ||
18416 | wxPyEndAllowThreads(__tstate); | |
18417 | if (PyErr_Occurred()) SWIG_fail; | |
18418 | } | |
15afbcd0 | 18419 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18420 | return resultobj; |
18421 | fail: | |
18422 | return NULL; | |
18423 | } | |
18424 | ||
18425 | ||
18426 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18427 | PyObject *resultobj; | |
18428 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18429 | int arg2 ; | |
18430 | wxDateTime result; | |
18431 | PyObject * obj0 = 0 ; | |
994141e6 | 18432 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18433 | char *kwnames[] = { |
18434 | (char *) "self",(char *) "weekday", NULL | |
18435 | }; | |
18436 | ||
994141e6 | 18437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18440 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18441 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18442 | { |
18443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18444 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18445 | ||
18446 | wxPyEndAllowThreads(__tstate); | |
18447 | if (PyErr_Occurred()) SWIG_fail; | |
18448 | } | |
18449 | { | |
18450 | wxDateTime * resultptr; | |
18451 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18452 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18453 | } |
18454 | return resultobj; | |
18455 | fail: | |
18456 | return NULL; | |
18457 | } | |
18458 | ||
18459 | ||
18460 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18461 | PyObject *resultobj; | |
18462 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18463 | int arg2 ; | |
18464 | int arg3 = (int) 1 ; | |
18465 | int arg4 = (int) wxDateTime::Inv_Month ; | |
18466 | int arg5 = (int) wxDateTime::Inv_Year ; | |
18467 | bool result; | |
18468 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18469 | PyObject * obj1 = 0 ; |
18470 | PyObject * obj2 = 0 ; | |
18471 | PyObject * obj3 = 0 ; | |
18472 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
18473 | char *kwnames[] = { |
18474 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
18475 | }; | |
18476 | ||
994141e6 | 18477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
18478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18480 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18481 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18482 | if (obj2) { |
15afbcd0 RD |
18483 | arg3 = (int) SWIG_AsInt(obj2); |
18484 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18485 | } |
18486 | if (obj3) { | |
15afbcd0 RD |
18487 | arg4 = (wxDateTime::Month) SWIG_AsInt(obj3); |
18488 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18489 | } |
18490 | if (obj4) { | |
15afbcd0 RD |
18491 | arg5 = (int) SWIG_AsInt(obj4); |
18492 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18493 | } |
d14a1e28 RD |
18494 | { |
18495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18496 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
18497 | ||
18498 | wxPyEndAllowThreads(__tstate); | |
18499 | if (PyErr_Occurred()) SWIG_fail; | |
18500 | } | |
4f89f6a3 RD |
18501 | { |
18502 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18503 | } | |
d14a1e28 RD |
18504 | return resultobj; |
18505 | fail: | |
18506 | return NULL; | |
18507 | } | |
18508 | ||
18509 | ||
18510 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18511 | PyObject *resultobj; | |
18512 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18513 | int arg2 ; | |
18514 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18515 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18516 | bool result; | |
18517 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18518 | PyObject * obj1 = 0 ; |
18519 | PyObject * obj2 = 0 ; | |
18520 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18521 | char *kwnames[] = { |
18522 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18523 | }; | |
18524 | ||
994141e6 | 18525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18528 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18529 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18530 | if (obj2) { |
15afbcd0 RD |
18531 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); |
18532 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18533 | } |
18534 | if (obj3) { | |
15afbcd0 RD |
18535 | arg4 = (int) SWIG_AsInt(obj3); |
18536 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18537 | } |
d14a1e28 RD |
18538 | { |
18539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18540 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18541 | ||
18542 | wxPyEndAllowThreads(__tstate); | |
18543 | if (PyErr_Occurred()) SWIG_fail; | |
18544 | } | |
4f89f6a3 RD |
18545 | { |
18546 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18547 | } | |
d14a1e28 RD |
18548 | return resultobj; |
18549 | fail: | |
18550 | return NULL; | |
18551 | } | |
18552 | ||
18553 | ||
18554 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18555 | PyObject *resultobj; | |
18556 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18557 | int arg2 ; | |
18558 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18559 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18560 | wxDateTime result; | |
18561 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18562 | PyObject * obj1 = 0 ; |
18563 | PyObject * obj2 = 0 ; | |
18564 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18565 | char *kwnames[] = { |
18566 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18567 | }; | |
18568 | ||
994141e6 | 18569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18572 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18573 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18574 | if (obj2) { |
15afbcd0 RD |
18575 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); |
18576 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18577 | } |
18578 | if (obj3) { | |
15afbcd0 RD |
18579 | arg4 = (int) SWIG_AsInt(obj3); |
18580 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18581 | } |
d14a1e28 RD |
18582 | { |
18583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18584 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18585 | ||
18586 | wxPyEndAllowThreads(__tstate); | |
18587 | if (PyErr_Occurred()) SWIG_fail; | |
18588 | } | |
18589 | { | |
18590 | wxDateTime * resultptr; | |
18591 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18592 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18593 | } |
18594 | return resultobj; | |
18595 | fail: | |
18596 | return NULL; | |
18597 | } | |
18598 | ||
18599 | ||
18600 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18601 | PyObject *resultobj; | |
18602 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18603 | int arg2 ; |
d14a1e28 RD |
18604 | int arg3 = (int) wxDateTime::Mon ; |
18605 | int arg4 = (int) wxDateTime::Monday_First ; | |
18606 | bool result; | |
18607 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18608 | PyObject * obj1 = 0 ; |
18609 | PyObject * obj2 = 0 ; | |
18610 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18611 | char *kwnames[] = { |
18612 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18613 | }; | |
18614 | ||
994141e6 | 18615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18618 | arg2 = (int) SWIG_AsInt(obj1); | |
18619 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18620 | if (obj2) { |
15afbcd0 RD |
18621 | arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); |
18622 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18623 | } |
18624 | if (obj3) { | |
15afbcd0 RD |
18625 | arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); |
18626 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18627 | } |
d14a1e28 RD |
18628 | { |
18629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18630 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18631 | ||
18632 | wxPyEndAllowThreads(__tstate); | |
18633 | if (PyErr_Occurred()) SWIG_fail; | |
18634 | } | |
4f89f6a3 RD |
18635 | { |
18636 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18637 | } | |
d14a1e28 RD |
18638 | return resultobj; |
18639 | fail: | |
18640 | return NULL; | |
18641 | } | |
18642 | ||
18643 | ||
18644 | static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18645 | PyObject *resultobj; | |
18646 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18647 | int arg2 ; |
d14a1e28 RD |
18648 | int arg3 = (int) wxDateTime::Mon ; |
18649 | int arg4 = (int) wxDateTime::Monday_First ; | |
18650 | wxDateTime result; | |
18651 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18652 | PyObject * obj1 = 0 ; |
18653 | PyObject * obj2 = 0 ; | |
18654 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18655 | char *kwnames[] = { |
18656 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18657 | }; | |
18658 | ||
994141e6 | 18659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18662 | arg2 = (int) SWIG_AsInt(obj1); | |
18663 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18664 | if (obj2) { |
15afbcd0 RD |
18665 | arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); |
18666 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18667 | } |
18668 | if (obj3) { | |
15afbcd0 RD |
18669 | arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); |
18670 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18671 | } |
d14a1e28 RD |
18672 | { |
18673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18674 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18675 | ||
18676 | wxPyEndAllowThreads(__tstate); | |
18677 | if (PyErr_Occurred()) SWIG_fail; | |
18678 | } | |
18679 | { | |
18680 | wxDateTime * resultptr; | |
18681 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18682 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18683 | } |
18684 | return resultobj; | |
18685 | fail: | |
18686 | return NULL; | |
18687 | } | |
18688 | ||
18689 | ||
18690 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18691 | PyObject *resultobj; | |
18692 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18693 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18694 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18695 | wxDateTime *result; | |
18696 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18697 | PyObject * obj1 = 0 ; |
18698 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18699 | char *kwnames[] = { |
18700 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18701 | }; | |
18702 | ||
994141e6 | 18703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 18706 | if (obj1) { |
15afbcd0 RD |
18707 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); |
18708 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18709 | } |
18710 | if (obj2) { | |
15afbcd0 RD |
18711 | arg3 = (int) SWIG_AsInt(obj2); |
18712 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18713 | } |
d14a1e28 RD |
18714 | { |
18715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18716 | { | |
18717 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18718 | result = (wxDateTime *) &_result_ref; | |
18719 | } | |
18720 | ||
18721 | wxPyEndAllowThreads(__tstate); | |
18722 | if (PyErr_Occurred()) SWIG_fail; | |
18723 | } | |
15afbcd0 | 18724 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18725 | return resultobj; |
18726 | fail: | |
18727 | return NULL; | |
18728 | } | |
18729 | ||
18730 | ||
18731 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18732 | PyObject *resultobj; | |
18733 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18734 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18735 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18736 | wxDateTime result; | |
18737 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18738 | PyObject * obj1 = 0 ; |
18739 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18740 | char *kwnames[] = { |
18741 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18742 | }; | |
18743 | ||
994141e6 | 18744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 18747 | if (obj1) { |
15afbcd0 RD |
18748 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); |
18749 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18750 | } |
18751 | if (obj2) { | |
15afbcd0 RD |
18752 | arg3 = (int) SWIG_AsInt(obj2); |
18753 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18754 | } |
d14a1e28 RD |
18755 | { |
18756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18757 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18758 | ||
18759 | wxPyEndAllowThreads(__tstate); | |
18760 | if (PyErr_Occurred()) SWIG_fail; | |
18761 | } | |
18762 | { | |
18763 | wxDateTime * resultptr; | |
18764 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18765 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18766 | } |
18767 | return resultobj; | |
18768 | fail: | |
18769 | return NULL; | |
18770 | } | |
18771 | ||
18772 | ||
18773 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18774 | PyObject *resultobj; | |
18775 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18776 | int arg2 ; |
d14a1e28 RD |
18777 | wxDateTime *result; |
18778 | PyObject * obj0 = 0 ; | |
994141e6 | 18779 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18780 | char *kwnames[] = { |
18781 | (char *) "self",(char *) "yday", NULL | |
18782 | }; | |
18783 | ||
994141e6 | 18784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18787 | arg2 = (int) SWIG_AsInt(obj1); | |
18788 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18789 | { |
18790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18791 | { | |
18792 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
18793 | result = (wxDateTime *) &_result_ref; | |
18794 | } | |
18795 | ||
18796 | wxPyEndAllowThreads(__tstate); | |
18797 | if (PyErr_Occurred()) SWIG_fail; | |
18798 | } | |
15afbcd0 | 18799 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18800 | return resultobj; |
18801 | fail: | |
18802 | return NULL; | |
18803 | } | |
18804 | ||
18805 | ||
18806 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18807 | PyObject *resultobj; | |
18808 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18809 | int arg2 ; |
d14a1e28 RD |
18810 | wxDateTime result; |
18811 | PyObject * obj0 = 0 ; | |
994141e6 | 18812 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18813 | char *kwnames[] = { |
18814 | (char *) "self",(char *) "yday", NULL | |
18815 | }; | |
18816 | ||
994141e6 | 18817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",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; | |
18820 | arg2 = (int) SWIG_AsInt(obj1); | |
18821 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18822 | { |
18823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18824 | result = (arg1)->GetYearDay(arg2); | |
18825 | ||
18826 | wxPyEndAllowThreads(__tstate); | |
18827 | if (PyErr_Occurred()) SWIG_fail; | |
18828 | } | |
18829 | { | |
18830 | wxDateTime * resultptr; | |
18831 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18832 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18833 | } |
18834 | return resultobj; | |
18835 | fail: | |
18836 | return NULL; | |
18837 | } | |
18838 | ||
18839 | ||
18840 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18841 | PyObject *resultobj; | |
18842 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18843 | double result; | |
18844 | PyObject * obj0 = 0 ; | |
18845 | char *kwnames[] = { | |
18846 | (char *) "self", NULL | |
18847 | }; | |
18848 | ||
18849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18852 | { |
18853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18854 | result = (double)(arg1)->GetJulianDayNumber(); | |
18855 | ||
18856 | wxPyEndAllowThreads(__tstate); | |
18857 | if (PyErr_Occurred()) SWIG_fail; | |
18858 | } | |
15afbcd0 | 18859 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18860 | return resultobj; |
18861 | fail: | |
18862 | return NULL; | |
18863 | } | |
18864 | ||
18865 | ||
18866 | static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18867 | PyObject *resultobj; | |
18868 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18869 | double result; | |
18870 | PyObject * obj0 = 0 ; | |
18871 | char *kwnames[] = { | |
18872 | (char *) "self", NULL | |
18873 | }; | |
18874 | ||
18875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18878 | { |
18879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18880 | result = (double)(arg1)->GetJDN(); | |
18881 | ||
18882 | wxPyEndAllowThreads(__tstate); | |
18883 | if (PyErr_Occurred()) SWIG_fail; | |
18884 | } | |
15afbcd0 | 18885 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18886 | return resultobj; |
18887 | fail: | |
18888 | return NULL; | |
18889 | } | |
18890 | ||
18891 | ||
18892 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18893 | PyObject *resultobj; | |
18894 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18895 | double result; | |
18896 | PyObject * obj0 = 0 ; | |
18897 | char *kwnames[] = { | |
18898 | (char *) "self", NULL | |
18899 | }; | |
18900 | ||
18901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18904 | { |
18905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18906 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
18907 | ||
18908 | wxPyEndAllowThreads(__tstate); | |
18909 | if (PyErr_Occurred()) SWIG_fail; | |
18910 | } | |
15afbcd0 | 18911 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18912 | return resultobj; |
18913 | fail: | |
18914 | return NULL; | |
18915 | } | |
18916 | ||
18917 | ||
18918 | static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18919 | PyObject *resultobj; | |
18920 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18921 | double result; | |
18922 | PyObject * obj0 = 0 ; | |
18923 | char *kwnames[] = { | |
18924 | (char *) "self", NULL | |
18925 | }; | |
18926 | ||
18927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18930 | { |
18931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18932 | result = (double)(arg1)->GetMJD(); | |
18933 | ||
18934 | wxPyEndAllowThreads(__tstate); | |
18935 | if (PyErr_Occurred()) SWIG_fail; | |
18936 | } | |
15afbcd0 | 18937 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18938 | return resultobj; |
18939 | fail: | |
18940 | return NULL; | |
18941 | } | |
18942 | ||
18943 | ||
18944 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18945 | PyObject *resultobj; | |
18946 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18947 | double result; | |
18948 | PyObject * obj0 = 0 ; | |
18949 | char *kwnames[] = { | |
18950 | (char *) "self", NULL | |
18951 | }; | |
18952 | ||
18953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18956 | { |
18957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18958 | result = (double)(arg1)->GetRataDie(); | |
18959 | ||
18960 | wxPyEndAllowThreads(__tstate); | |
18961 | if (PyErr_Occurred()) SWIG_fail; | |
18962 | } | |
15afbcd0 | 18963 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18964 | return resultobj; |
18965 | fail: | |
18966 | return NULL; | |
18967 | } | |
18968 | ||
18969 | ||
18970 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18971 | PyObject *resultobj; | |
18972 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18973 | wxDateTime::TimeZone *arg2 = 0 ; | |
e811c8ce | 18974 | bool arg3 = (bool) False ; |
d14a1e28 | 18975 | wxDateTime result; |
7722248d | 18976 | bool temp2 = False ; |
d14a1e28 RD |
18977 | PyObject * obj0 = 0 ; |
18978 | PyObject * obj1 = 0 ; | |
18979 | PyObject * obj2 = 0 ; | |
18980 | char *kwnames[] = { | |
18981 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18982 | }; | |
18983 | ||
18984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
18985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18987 | { |
18988 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18989 | temp2 = True; |
d14a1e28 RD |
18990 | } |
18991 | if (obj2) { | |
15afbcd0 RD |
18992 | arg3 = (bool) SWIG_AsBool(obj2); |
18993 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18994 | } |
18995 | { | |
18996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18997 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18998 | ||
18999 | wxPyEndAllowThreads(__tstate); | |
19000 | if (PyErr_Occurred()) SWIG_fail; | |
19001 | } | |
19002 | { | |
19003 | wxDateTime * resultptr; | |
19004 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 19005 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
19006 | } |
19007 | { | |
7722248d | 19008 | if (temp2) delete arg2; |
d14a1e28 RD |
19009 | } |
19010 | return resultobj; | |
19011 | fail: | |
19012 | { | |
7722248d | 19013 | if (temp2) delete arg2; |
d14a1e28 RD |
19014 | } |
19015 | return NULL; | |
19016 | } | |
19017 | ||
19018 | ||
19019 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19020 | PyObject *resultobj; | |
19021 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19022 | wxDateTime::TimeZone *arg2 = 0 ; | |
e811c8ce | 19023 | bool arg3 = (bool) False ; |
d14a1e28 | 19024 | wxDateTime *result; |
7722248d | 19025 | bool temp2 = False ; |
d14a1e28 RD |
19026 | PyObject * obj0 = 0 ; |
19027 | PyObject * obj1 = 0 ; | |
19028 | PyObject * obj2 = 0 ; | |
19029 | char *kwnames[] = { | |
19030 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
19031 | }; | |
19032 | ||
19033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
19034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19036 | { |
19037 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19038 | temp2 = True; |
d14a1e28 RD |
19039 | } |
19040 | if (obj2) { | |
15afbcd0 RD |
19041 | arg3 = (bool) SWIG_AsBool(obj2); |
19042 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19043 | } |
19044 | { | |
19045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19046 | { | |
19047 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
19048 | result = (wxDateTime *) &_result_ref; | |
19049 | } | |
19050 | ||
19051 | wxPyEndAllowThreads(__tstate); | |
19052 | if (PyErr_Occurred()) SWIG_fail; | |
19053 | } | |
15afbcd0 | 19054 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 | 19055 | { |
7722248d | 19056 | if (temp2) delete arg2; |
d14a1e28 RD |
19057 | } |
19058 | return resultobj; | |
19059 | fail: | |
19060 | { | |
7722248d | 19061 | if (temp2) delete arg2; |
d14a1e28 RD |
19062 | } |
19063 | return NULL; | |
19064 | } | |
19065 | ||
19066 | ||
19067 | static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19068 | PyObject *resultobj; | |
19069 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
e811c8ce | 19070 | bool arg2 = (bool) False ; |
d14a1e28 RD |
19071 | wxDateTime result; |
19072 | PyObject * obj0 = 0 ; | |
19073 | PyObject * obj1 = 0 ; | |
19074 | char *kwnames[] = { | |
19075 | (char *) "self",(char *) "noDST", NULL | |
19076 | }; | |
19077 | ||
19078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 19081 | if (obj1) { |
15afbcd0 RD |
19082 | arg2 = (bool) SWIG_AsBool(obj1); |
19083 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19084 | } |
19085 | { | |
19086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19087 | result = (arg1)->ToGMT(arg2); | |
19088 | ||
19089 | wxPyEndAllowThreads(__tstate); | |
19090 | if (PyErr_Occurred()) SWIG_fail; | |
19091 | } | |
19092 | { | |
19093 | wxDateTime * resultptr; | |
19094 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 19095 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
19096 | } |
19097 | return resultobj; | |
19098 | fail: | |
19099 | return NULL; | |
19100 | } | |
19101 | ||
19102 | ||
19103 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19104 | PyObject *resultobj; | |
19105 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
e811c8ce | 19106 | bool arg2 = (bool) False ; |
d14a1e28 RD |
19107 | wxDateTime *result; |
19108 | PyObject * obj0 = 0 ; | |
19109 | PyObject * obj1 = 0 ; | |
19110 | char *kwnames[] = { | |
19111 | (char *) "self",(char *) "noDST", NULL | |
19112 | }; | |
19113 | ||
19114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 19117 | if (obj1) { |
15afbcd0 RD |
19118 | arg2 = (bool) SWIG_AsBool(obj1); |
19119 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19120 | } |
19121 | { | |
19122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19123 | { | |
19124 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
19125 | result = (wxDateTime *) &_result_ref; | |
19126 | } | |
19127 | ||
19128 | wxPyEndAllowThreads(__tstate); | |
19129 | if (PyErr_Occurred()) SWIG_fail; | |
19130 | } | |
15afbcd0 | 19131 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19132 | return resultobj; |
19133 | fail: | |
19134 | return NULL; | |
19135 | } | |
19136 | ||
19137 | ||
19138 | static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19139 | PyObject *resultobj; | |
19140 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19141 | int arg2 = (int) wxDateTime::Country_Default ; | |
19142 | int result; | |
19143 | PyObject * obj0 = 0 ; | |
994141e6 | 19144 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19145 | char *kwnames[] = { |
19146 | (char *) "self",(char *) "country", NULL | |
19147 | }; | |
19148 | ||
994141e6 | 19149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 19152 | if (obj1) { |
15afbcd0 RD |
19153 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
19154 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19155 | } |
d14a1e28 RD |
19156 | { |
19157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19158 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
19159 | ||
19160 | wxPyEndAllowThreads(__tstate); | |
19161 | if (PyErr_Occurred()) SWIG_fail; | |
19162 | } | |
15afbcd0 | 19163 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19164 | return resultobj; |
19165 | fail: | |
19166 | return NULL; | |
19167 | } | |
19168 | ||
19169 | ||
19170 | static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19171 | PyObject *resultobj; | |
19172 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19173 | bool result; | |
19174 | PyObject * obj0 = 0 ; | |
19175 | char *kwnames[] = { | |
19176 | (char *) "self", NULL | |
19177 | }; | |
19178 | ||
19179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19182 | { |
19183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19184 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
19185 | ||
19186 | wxPyEndAllowThreads(__tstate); | |
19187 | if (PyErr_Occurred()) SWIG_fail; | |
19188 | } | |
4f89f6a3 RD |
19189 | { |
19190 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19191 | } | |
d14a1e28 RD |
19192 | return resultobj; |
19193 | fail: | |
19194 | return NULL; | |
19195 | } | |
19196 | ||
19197 | ||
19198 | static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19199 | PyObject *resultobj; | |
19200 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19201 | time_t result; | |
19202 | PyObject * obj0 = 0 ; | |
19203 | char *kwnames[] = { | |
19204 | (char *) "self", NULL | |
19205 | }; | |
19206 | ||
19207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19210 | { |
19211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19212 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
19213 | ||
19214 | wxPyEndAllowThreads(__tstate); | |
19215 | if (PyErr_Occurred()) SWIG_fail; | |
19216 | } | |
15afbcd0 | 19217 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
19218 | return resultobj; |
19219 | fail: | |
19220 | return NULL; | |
19221 | } | |
19222 | ||
19223 | ||
19224 | static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19225 | PyObject *resultobj; | |
19226 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19227 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19228 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19229 | int result; | |
7722248d | 19230 | bool temp2 = False ; |
d14a1e28 RD |
19231 | PyObject * obj0 = 0 ; |
19232 | PyObject * obj1 = 0 ; | |
19233 | char *kwnames[] = { | |
19234 | (char *) "self",(char *) "tz", NULL | |
19235 | }; | |
19236 | ||
19237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19240 | if (obj1) { |
19241 | { | |
19242 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19243 | temp2 = True; |
d14a1e28 RD |
19244 | } |
19245 | } | |
19246 | { | |
19247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19248 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
19249 | ||
19250 | wxPyEndAllowThreads(__tstate); | |
19251 | if (PyErr_Occurred()) SWIG_fail; | |
19252 | } | |
15afbcd0 | 19253 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19254 | { |
7722248d | 19255 | if (temp2) delete arg2; |
d14a1e28 RD |
19256 | } |
19257 | return resultobj; | |
19258 | fail: | |
19259 | { | |
7722248d | 19260 | if (temp2) delete arg2; |
d14a1e28 RD |
19261 | } |
19262 | return NULL; | |
19263 | } | |
19264 | ||
19265 | ||
19266 | static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19267 | PyObject *resultobj; | |
19268 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19269 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19270 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19271 | int result; | |
7722248d | 19272 | bool temp2 = False ; |
d14a1e28 RD |
19273 | PyObject * obj0 = 0 ; |
19274 | PyObject * obj1 = 0 ; | |
19275 | char *kwnames[] = { | |
19276 | (char *) "self",(char *) "tz", NULL | |
19277 | }; | |
19278 | ||
19279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19282 | if (obj1) { |
19283 | { | |
19284 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19285 | temp2 = True; |
d14a1e28 RD |
19286 | } |
19287 | } | |
19288 | { | |
19289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19290 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
19291 | ||
19292 | wxPyEndAllowThreads(__tstate); | |
19293 | if (PyErr_Occurred()) SWIG_fail; | |
19294 | } | |
15afbcd0 | 19295 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19296 | { |
7722248d | 19297 | if (temp2) delete arg2; |
d14a1e28 RD |
19298 | } |
19299 | return resultobj; | |
19300 | fail: | |
19301 | { | |
7722248d | 19302 | if (temp2) delete arg2; |
d14a1e28 RD |
19303 | } |
19304 | return NULL; | |
19305 | } | |
19306 | ||
19307 | ||
19308 | static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19309 | PyObject *resultobj; | |
19310 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19311 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19312 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19313 | int result; |
7722248d | 19314 | bool temp2 = False ; |
d14a1e28 RD |
19315 | PyObject * obj0 = 0 ; |
19316 | PyObject * obj1 = 0 ; | |
19317 | char *kwnames[] = { | |
19318 | (char *) "self",(char *) "tz", NULL | |
19319 | }; | |
19320 | ||
19321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19324 | if (obj1) { |
19325 | { | |
19326 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19327 | temp2 = True; |
d14a1e28 RD |
19328 | } |
19329 | } | |
19330 | { | |
19331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19332 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19333 | |
19334 | wxPyEndAllowThreads(__tstate); | |
19335 | if (PyErr_Occurred()) SWIG_fail; | |
19336 | } | |
15afbcd0 | 19337 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19338 | { |
7722248d | 19339 | if (temp2) delete arg2; |
d14a1e28 RD |
19340 | } |
19341 | return resultobj; | |
19342 | fail: | |
19343 | { | |
7722248d | 19344 | if (temp2) delete arg2; |
d14a1e28 RD |
19345 | } |
19346 | return NULL; | |
19347 | } | |
19348 | ||
19349 | ||
19350 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19351 | PyObject *resultobj; | |
19352 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19353 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19354 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19355 | int result; | |
7722248d | 19356 | bool temp2 = False ; |
d14a1e28 RD |
19357 | PyObject * obj0 = 0 ; |
19358 | PyObject * obj1 = 0 ; | |
19359 | char *kwnames[] = { | |
19360 | (char *) "self",(char *) "tz", NULL | |
19361 | }; | |
19362 | ||
19363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19366 | if (obj1) { |
19367 | { | |
19368 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19369 | temp2 = True; |
d14a1e28 RD |
19370 | } |
19371 | } | |
19372 | { | |
19373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19374 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
19375 | ||
19376 | wxPyEndAllowThreads(__tstate); | |
19377 | if (PyErr_Occurred()) SWIG_fail; | |
19378 | } | |
15afbcd0 | 19379 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19380 | { |
7722248d | 19381 | if (temp2) delete arg2; |
d14a1e28 RD |
19382 | } |
19383 | return resultobj; | |
19384 | fail: | |
19385 | { | |
7722248d | 19386 | if (temp2) delete arg2; |
d14a1e28 RD |
19387 | } |
19388 | return NULL; | |
19389 | } | |
19390 | ||
19391 | ||
19392 | static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19393 | PyObject *resultobj; | |
19394 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19395 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19396 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19397 | int result; |
7722248d | 19398 | bool temp2 = False ; |
d14a1e28 RD |
19399 | PyObject * obj0 = 0 ; |
19400 | PyObject * obj1 = 0 ; | |
19401 | char *kwnames[] = { | |
19402 | (char *) "self",(char *) "tz", NULL | |
19403 | }; | |
19404 | ||
19405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19408 | if (obj1) { |
19409 | { | |
19410 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19411 | temp2 = True; |
d14a1e28 RD |
19412 | } |
19413 | } | |
19414 | { | |
19415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19416 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19417 | |
19418 | wxPyEndAllowThreads(__tstate); | |
19419 | if (PyErr_Occurred()) SWIG_fail; | |
19420 | } | |
15afbcd0 | 19421 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19422 | { |
7722248d | 19423 | if (temp2) delete arg2; |
d14a1e28 RD |
19424 | } |
19425 | return resultobj; | |
19426 | fail: | |
19427 | { | |
7722248d | 19428 | if (temp2) delete arg2; |
d14a1e28 RD |
19429 | } |
19430 | return NULL; | |
19431 | } | |
19432 | ||
19433 | ||
19434 | static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19435 | PyObject *resultobj; | |
19436 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19437 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19438 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19439 | int result; |
7722248d | 19440 | bool temp2 = False ; |
d14a1e28 RD |
19441 | PyObject * obj0 = 0 ; |
19442 | PyObject * obj1 = 0 ; | |
19443 | char *kwnames[] = { | |
19444 | (char *) "self",(char *) "tz", NULL | |
19445 | }; | |
19446 | ||
19447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19450 | if (obj1) { |
19451 | { | |
19452 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19453 | temp2 = True; |
d14a1e28 RD |
19454 | } |
19455 | } | |
19456 | { | |
19457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19458 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19459 | |
19460 | wxPyEndAllowThreads(__tstate); | |
19461 | if (PyErr_Occurred()) SWIG_fail; | |
19462 | } | |
15afbcd0 | 19463 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19464 | { |
7722248d | 19465 | if (temp2) delete arg2; |
d14a1e28 RD |
19466 | } |
19467 | return resultobj; | |
19468 | fail: | |
19469 | { | |
7722248d | 19470 | if (temp2) delete arg2; |
d14a1e28 RD |
19471 | } |
19472 | return NULL; | |
19473 | } | |
19474 | ||
19475 | ||
19476 | static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19477 | PyObject *resultobj; | |
19478 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19479 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19480 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19481 | int result; |
7722248d | 19482 | bool temp2 = False ; |
d14a1e28 RD |
19483 | PyObject * obj0 = 0 ; |
19484 | PyObject * obj1 = 0 ; | |
19485 | char *kwnames[] = { | |
19486 | (char *) "self",(char *) "tz", NULL | |
19487 | }; | |
19488 | ||
19489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19492 | if (obj1) { |
19493 | { | |
19494 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19495 | temp2 = True; |
d14a1e28 RD |
19496 | } |
19497 | } | |
19498 | { | |
19499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19500 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19501 | |
19502 | wxPyEndAllowThreads(__tstate); | |
19503 | if (PyErr_Occurred()) SWIG_fail; | |
19504 | } | |
15afbcd0 | 19505 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19506 | { |
7722248d | 19507 | if (temp2) delete arg2; |
d14a1e28 RD |
19508 | } |
19509 | return resultobj; | |
19510 | fail: | |
19511 | { | |
7722248d | 19512 | if (temp2) delete arg2; |
d14a1e28 RD |
19513 | } |
19514 | return NULL; | |
19515 | } | |
19516 | ||
19517 | ||
19518 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19519 | PyObject *resultobj; | |
19520 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19521 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19522 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19523 | int result; |
7722248d | 19524 | bool temp2 = False ; |
d14a1e28 RD |
19525 | PyObject * obj0 = 0 ; |
19526 | PyObject * obj1 = 0 ; | |
19527 | char *kwnames[] = { | |
19528 | (char *) "self",(char *) "tz", NULL | |
19529 | }; | |
19530 | ||
19531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19534 | if (obj1) { |
19535 | { | |
19536 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19537 | temp2 = True; |
d14a1e28 RD |
19538 | } |
19539 | } | |
19540 | { | |
19541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19542 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19543 | |
19544 | wxPyEndAllowThreads(__tstate); | |
19545 | if (PyErr_Occurred()) SWIG_fail; | |
19546 | } | |
15afbcd0 | 19547 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19548 | { |
7722248d | 19549 | if (temp2) delete arg2; |
d14a1e28 RD |
19550 | } |
19551 | return resultobj; | |
19552 | fail: | |
19553 | { | |
7722248d | 19554 | if (temp2) delete arg2; |
d14a1e28 RD |
19555 | } |
19556 | return NULL; | |
19557 | } | |
19558 | ||
19559 | ||
19560 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19561 | PyObject *resultobj; | |
19562 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19563 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19564 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19565 | int result; |
7722248d | 19566 | bool temp2 = False ; |
d14a1e28 RD |
19567 | PyObject * obj0 = 0 ; |
19568 | PyObject * obj1 = 0 ; | |
19569 | char *kwnames[] = { | |
19570 | (char *) "self",(char *) "tz", NULL | |
19571 | }; | |
19572 | ||
19573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19576 | if (obj1) { |
19577 | { | |
19578 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19579 | temp2 = True; |
d14a1e28 RD |
19580 | } |
19581 | } | |
19582 | { | |
19583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19584 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19585 | |
19586 | wxPyEndAllowThreads(__tstate); | |
19587 | if (PyErr_Occurred()) SWIG_fail; | |
19588 | } | |
15afbcd0 | 19589 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19590 | { |
7722248d | 19591 | if (temp2) delete arg2; |
d14a1e28 RD |
19592 | } |
19593 | return resultobj; | |
19594 | fail: | |
19595 | { | |
7722248d | 19596 | if (temp2) delete arg2; |
d14a1e28 RD |
19597 | } |
19598 | return NULL; | |
19599 | } | |
19600 | ||
19601 | ||
19602 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19603 | PyObject *resultobj; | |
19604 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19605 | int arg2 = (int) wxDateTime::Monday_First ; | |
19606 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19607 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
322913ce | 19608 | int result; |
7722248d | 19609 | bool temp3 = False ; |
d14a1e28 | 19610 | PyObject * obj0 = 0 ; |
994141e6 | 19611 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19612 | PyObject * obj2 = 0 ; |
19613 | char *kwnames[] = { | |
19614 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19615 | }; | |
19616 | ||
994141e6 | 19617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
19618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 19620 | if (obj1) { |
15afbcd0 RD |
19621 | arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); |
19622 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19623 | } |
d14a1e28 RD |
19624 | if (obj2) { |
19625 | { | |
19626 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 19627 | temp3 = True; |
d14a1e28 RD |
19628 | } |
19629 | } | |
19630 | { | |
19631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19632 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
19633 | |
19634 | wxPyEndAllowThreads(__tstate); | |
19635 | if (PyErr_Occurred()) SWIG_fail; | |
19636 | } | |
15afbcd0 | 19637 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19638 | { |
7722248d | 19639 | if (temp3) delete arg3; |
d14a1e28 RD |
19640 | } |
19641 | return resultobj; | |
19642 | fail: | |
19643 | { | |
7722248d | 19644 | if (temp3) delete arg3; |
d14a1e28 RD |
19645 | } |
19646 | return NULL; | |
19647 | } | |
19648 | ||
19649 | ||
19650 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19651 | PyObject *resultobj; | |
19652 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19653 | int arg2 = (int) wxDateTime::Monday_First ; | |
19654 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19655 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
322913ce | 19656 | int result; |
7722248d | 19657 | bool temp3 = False ; |
d14a1e28 | 19658 | PyObject * obj0 = 0 ; |
994141e6 | 19659 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19660 | PyObject * obj2 = 0 ; |
19661 | char *kwnames[] = { | |
19662 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19663 | }; | |
19664 | ||
994141e6 | 19665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
19666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 19668 | if (obj1) { |
15afbcd0 RD |
19669 | arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); |
19670 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19671 | } |
d14a1e28 RD |
19672 | if (obj2) { |
19673 | { | |
19674 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 19675 | temp3 = True; |
d14a1e28 RD |
19676 | } |
19677 | } | |
19678 | { | |
19679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19680 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
19681 | |
19682 | wxPyEndAllowThreads(__tstate); | |
19683 | if (PyErr_Occurred()) SWIG_fail; | |
19684 | } | |
15afbcd0 | 19685 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19686 | { |
7722248d | 19687 | if (temp3) delete arg3; |
d14a1e28 RD |
19688 | } |
19689 | return resultobj; | |
19690 | fail: | |
19691 | { | |
7722248d | 19692 | if (temp3) delete arg3; |
d14a1e28 RD |
19693 | } |
19694 | return NULL; | |
19695 | } | |
19696 | ||
19697 | ||
19698 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19699 | PyObject *resultobj; | |
19700 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19701 | int arg2 = (int) wxDateTime::Country_Default ; | |
19702 | bool result; | |
19703 | PyObject * obj0 = 0 ; | |
994141e6 | 19704 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19705 | char *kwnames[] = { |
19706 | (char *) "self",(char *) "country", NULL | |
19707 | }; | |
19708 | ||
994141e6 | 19709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 19712 | if (obj1) { |
15afbcd0 RD |
19713 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
19714 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19715 | } |
d14a1e28 RD |
19716 | { |
19717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19718 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
19719 | ||
19720 | wxPyEndAllowThreads(__tstate); | |
19721 | if (PyErr_Occurred()) SWIG_fail; | |
19722 | } | |
4f89f6a3 RD |
19723 | { |
19724 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19725 | } | |
d14a1e28 RD |
19726 | return resultobj; |
19727 | fail: | |
19728 | return NULL; | |
19729 | } | |
19730 | ||
19731 | ||
19732 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19733 | PyObject *resultobj; | |
19734 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19735 | wxDateTime *arg2 = 0 ; | |
19736 | bool result; | |
19737 | PyObject * obj0 = 0 ; | |
19738 | PyObject * obj1 = 0 ; | |
19739 | char *kwnames[] = { | |
19740 | (char *) "self",(char *) "datetime", NULL | |
19741 | }; | |
19742 | ||
19743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19746 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19747 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19748 | SWIG_fail; | |
d14a1e28 | 19749 | if (arg2 == NULL) { |
15afbcd0 RD |
19750 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19751 | SWIG_fail; | |
d14a1e28 RD |
19752 | } |
19753 | { | |
19754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19755 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
19756 | ||
19757 | wxPyEndAllowThreads(__tstate); | |
19758 | if (PyErr_Occurred()) SWIG_fail; | |
19759 | } | |
4f89f6a3 RD |
19760 | { |
19761 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19762 | } | |
d14a1e28 RD |
19763 | return resultobj; |
19764 | fail: | |
19765 | return NULL; | |
19766 | } | |
19767 | ||
19768 | ||
19769 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19770 | PyObject *resultobj; | |
19771 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19772 | wxDateTime *arg2 = 0 ; | |
19773 | bool result; | |
19774 | PyObject * obj0 = 0 ; | |
19775 | PyObject * obj1 = 0 ; | |
19776 | char *kwnames[] = { | |
19777 | (char *) "self",(char *) "datetime", NULL | |
19778 | }; | |
19779 | ||
19780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19783 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19784 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19785 | SWIG_fail; | |
d14a1e28 | 19786 | if (arg2 == NULL) { |
15afbcd0 RD |
19787 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19788 | SWIG_fail; | |
d14a1e28 RD |
19789 | } |
19790 | { | |
19791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19792 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
19793 | ||
19794 | wxPyEndAllowThreads(__tstate); | |
19795 | if (PyErr_Occurred()) SWIG_fail; | |
19796 | } | |
4f89f6a3 RD |
19797 | { |
19798 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19799 | } | |
d14a1e28 RD |
19800 | return resultobj; |
19801 | fail: | |
19802 | return NULL; | |
19803 | } | |
19804 | ||
19805 | ||
19806 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19807 | PyObject *resultobj; | |
19808 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19809 | wxDateTime *arg2 = 0 ; | |
19810 | bool result; | |
19811 | PyObject * obj0 = 0 ; | |
19812 | PyObject * obj1 = 0 ; | |
19813 | char *kwnames[] = { | |
19814 | (char *) "self",(char *) "datetime", NULL | |
19815 | }; | |
19816 | ||
19817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19820 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19821 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19822 | SWIG_fail; | |
d14a1e28 | 19823 | if (arg2 == NULL) { |
15afbcd0 RD |
19824 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19825 | SWIG_fail; | |
d14a1e28 RD |
19826 | } |
19827 | { | |
19828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19829 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
19830 | ||
19831 | wxPyEndAllowThreads(__tstate); | |
19832 | if (PyErr_Occurred()) SWIG_fail; | |
19833 | } | |
4f89f6a3 RD |
19834 | { |
19835 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19836 | } | |
d14a1e28 RD |
19837 | return resultobj; |
19838 | fail: | |
19839 | return NULL; | |
19840 | } | |
19841 | ||
19842 | ||
19843 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19844 | PyObject *resultobj; | |
19845 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19846 | wxDateTime *arg2 = 0 ; | |
19847 | wxDateTime *arg3 = 0 ; | |
19848 | bool result; | |
19849 | PyObject * obj0 = 0 ; | |
19850 | PyObject * obj1 = 0 ; | |
19851 | PyObject * obj2 = 0 ; | |
19852 | char *kwnames[] = { | |
19853 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19854 | }; | |
19855 | ||
19856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
19857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19859 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19860 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19861 | SWIG_fail; | |
d14a1e28 | 19862 | if (arg2 == NULL) { |
15afbcd0 RD |
19863 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19864 | SWIG_fail; | |
d14a1e28 | 19865 | } |
15afbcd0 RD |
19866 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, |
19867 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19868 | SWIG_fail; | |
d14a1e28 | 19869 | if (arg3 == NULL) { |
15afbcd0 RD |
19870 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19871 | SWIG_fail; | |
d14a1e28 RD |
19872 | } |
19873 | { | |
19874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19875 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19876 | ||
19877 | wxPyEndAllowThreads(__tstate); | |
19878 | if (PyErr_Occurred()) SWIG_fail; | |
19879 | } | |
4f89f6a3 RD |
19880 | { |
19881 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19882 | } | |
d14a1e28 RD |
19883 | return resultobj; |
19884 | fail: | |
19885 | return NULL; | |
19886 | } | |
19887 | ||
19888 | ||
19889 | static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19890 | PyObject *resultobj; | |
19891 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19892 | wxDateTime *arg2 = 0 ; | |
19893 | wxDateTime *arg3 = 0 ; | |
19894 | bool result; | |
19895 | PyObject * obj0 = 0 ; | |
19896 | PyObject * obj1 = 0 ; | |
19897 | PyObject * obj2 = 0 ; | |
19898 | char *kwnames[] = { | |
19899 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19900 | }; | |
19901 | ||
19902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
19903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19905 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19906 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19907 | SWIG_fail; | |
d14a1e28 | 19908 | if (arg2 == NULL) { |
15afbcd0 RD |
19909 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19910 | SWIG_fail; | |
d14a1e28 | 19911 | } |
15afbcd0 RD |
19912 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, |
19913 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19914 | SWIG_fail; | |
d14a1e28 | 19915 | if (arg3 == NULL) { |
15afbcd0 RD |
19916 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19917 | SWIG_fail; | |
d14a1e28 RD |
19918 | } |
19919 | { | |
19920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19921 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19922 | ||
19923 | wxPyEndAllowThreads(__tstate); | |
19924 | if (PyErr_Occurred()) SWIG_fail; | |
19925 | } | |
4f89f6a3 RD |
19926 | { |
19927 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19928 | } | |
d14a1e28 RD |
19929 | return resultobj; |
19930 | fail: | |
19931 | return NULL; | |
19932 | } | |
19933 | ||
19934 | ||
19935 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19936 | PyObject *resultobj; | |
19937 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19938 | wxDateTime *arg2 = 0 ; | |
19939 | bool result; | |
19940 | PyObject * obj0 = 0 ; | |
19941 | PyObject * obj1 = 0 ; | |
19942 | char *kwnames[] = { | |
19943 | (char *) "self",(char *) "dt", NULL | |
19944 | }; | |
19945 | ||
19946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19949 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19950 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19951 | SWIG_fail; | |
d14a1e28 | 19952 | if (arg2 == NULL) { |
15afbcd0 RD |
19953 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19954 | SWIG_fail; | |
d14a1e28 RD |
19955 | } |
19956 | { | |
19957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19958 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
19959 | ||
19960 | wxPyEndAllowThreads(__tstate); | |
19961 | if (PyErr_Occurred()) SWIG_fail; | |
19962 | } | |
4f89f6a3 RD |
19963 | { |
19964 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19965 | } | |
d14a1e28 RD |
19966 | return resultobj; |
19967 | fail: | |
19968 | return NULL; | |
19969 | } | |
19970 | ||
19971 | ||
19972 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19973 | PyObject *resultobj; | |
19974 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19975 | wxDateTime *arg2 = 0 ; | |
19976 | bool result; | |
19977 | PyObject * obj0 = 0 ; | |
19978 | PyObject * obj1 = 0 ; | |
19979 | char *kwnames[] = { | |
19980 | (char *) "self",(char *) "dt", NULL | |
19981 | }; | |
19982 | ||
19983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19986 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19987 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19988 | SWIG_fail; | |
d14a1e28 | 19989 | if (arg2 == NULL) { |
15afbcd0 RD |
19990 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19991 | SWIG_fail; | |
d14a1e28 RD |
19992 | } |
19993 | { | |
19994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19995 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
19996 | ||
19997 | wxPyEndAllowThreads(__tstate); | |
19998 | if (PyErr_Occurred()) SWIG_fail; | |
19999 | } | |
4f89f6a3 RD |
20000 | { |
20001 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20002 | } | |
d14a1e28 RD |
20003 | return resultobj; |
20004 | fail: | |
20005 | return NULL; | |
20006 | } | |
20007 | ||
20008 | ||
20009 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20010 | PyObject *resultobj; | |
20011 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20012 | wxDateTime *arg2 = 0 ; | |
20013 | wxTimeSpan *arg3 = 0 ; | |
20014 | bool result; | |
20015 | PyObject * obj0 = 0 ; | |
20016 | PyObject * obj1 = 0 ; | |
20017 | PyObject * obj2 = 0 ; | |
20018 | char *kwnames[] = { | |
20019 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
20020 | }; | |
20021 | ||
20022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
20023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20025 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20026 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20027 | SWIG_fail; | |
d14a1e28 | 20028 | if (arg2 == NULL) { |
15afbcd0 RD |
20029 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20030 | SWIG_fail; | |
d14a1e28 | 20031 | } |
15afbcd0 RD |
20032 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan, |
20033 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20034 | SWIG_fail; | |
d14a1e28 | 20035 | if (arg3 == NULL) { |
15afbcd0 RD |
20036 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20037 | SWIG_fail; | |
d14a1e28 RD |
20038 | } |
20039 | { | |
20040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20041 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
20042 | ||
20043 | wxPyEndAllowThreads(__tstate); | |
20044 | if (PyErr_Occurred()) SWIG_fail; | |
20045 | } | |
4f89f6a3 RD |
20046 | { |
20047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20048 | } | |
d14a1e28 RD |
20049 | return resultobj; |
20050 | fail: | |
20051 | return NULL; | |
20052 | } | |
20053 | ||
20054 | ||
20055 | static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20056 | PyObject *resultobj; | |
20057 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20058 | wxTimeSpan *arg2 = 0 ; | |
20059 | wxDateTime *result; | |
20060 | PyObject * obj0 = 0 ; | |
20061 | PyObject * obj1 = 0 ; | |
20062 | char *kwnames[] = { | |
20063 | (char *) "self",(char *) "diff", NULL | |
20064 | }; | |
20065 | ||
20066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20069 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20070 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20071 | SWIG_fail; | |
d14a1e28 | 20072 | if (arg2 == NULL) { |
15afbcd0 RD |
20073 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20074 | SWIG_fail; | |
d14a1e28 RD |
20075 | } |
20076 | { | |
20077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20078 | { | |
20079 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
20080 | result = (wxDateTime *) &_result_ref; | |
20081 | } | |
20082 | ||
20083 | wxPyEndAllowThreads(__tstate); | |
20084 | if (PyErr_Occurred()) SWIG_fail; | |
20085 | } | |
15afbcd0 | 20086 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20087 | return resultobj; |
20088 | fail: | |
20089 | return NULL; | |
20090 | } | |
20091 | ||
20092 | ||
20093 | static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20094 | PyObject *resultobj; | |
20095 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20096 | wxDateSpan *arg2 = 0 ; | |
20097 | wxDateTime *result; | |
20098 | PyObject * obj0 = 0 ; | |
20099 | PyObject * obj1 = 0 ; | |
20100 | char *kwnames[] = { | |
20101 | (char *) "self",(char *) "diff", NULL | |
20102 | }; | |
20103 | ||
20104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20107 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20108 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20109 | SWIG_fail; | |
d14a1e28 | 20110 | if (arg2 == NULL) { |
15afbcd0 RD |
20111 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20112 | SWIG_fail; | |
d14a1e28 RD |
20113 | } |
20114 | { | |
20115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20116 | { | |
20117 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
20118 | result = (wxDateTime *) &_result_ref; | |
20119 | } | |
20120 | ||
20121 | wxPyEndAllowThreads(__tstate); | |
20122 | if (PyErr_Occurred()) SWIG_fail; | |
20123 | } | |
15afbcd0 | 20124 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20125 | return resultobj; |
20126 | fail: | |
20127 | return NULL; | |
20128 | } | |
20129 | ||
20130 | ||
20131 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20132 | PyObject *resultobj; | |
20133 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20134 | wxTimeSpan *arg2 = 0 ; | |
20135 | wxDateTime *result; | |
20136 | PyObject * obj0 = 0 ; | |
20137 | PyObject * obj1 = 0 ; | |
20138 | char *kwnames[] = { | |
20139 | (char *) "self",(char *) "diff", NULL | |
20140 | }; | |
20141 | ||
20142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20145 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20146 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20147 | SWIG_fail; | |
d14a1e28 | 20148 | if (arg2 == NULL) { |
15afbcd0 RD |
20149 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20150 | SWIG_fail; | |
d14a1e28 RD |
20151 | } |
20152 | { | |
20153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20154 | { | |
20155 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
20156 | result = (wxDateTime *) &_result_ref; | |
20157 | } | |
20158 | ||
20159 | wxPyEndAllowThreads(__tstate); | |
20160 | if (PyErr_Occurred()) SWIG_fail; | |
20161 | } | |
15afbcd0 | 20162 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20163 | return resultobj; |
20164 | fail: | |
20165 | return NULL; | |
20166 | } | |
20167 | ||
20168 | ||
20169 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20170 | PyObject *resultobj; | |
20171 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20172 | wxDateSpan *arg2 = 0 ; | |
20173 | wxDateTime *result; | |
20174 | PyObject * obj0 = 0 ; | |
20175 | PyObject * obj1 = 0 ; | |
20176 | char *kwnames[] = { | |
20177 | (char *) "self",(char *) "diff", NULL | |
20178 | }; | |
20179 | ||
20180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20183 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20184 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20185 | SWIG_fail; | |
d14a1e28 | 20186 | if (arg2 == NULL) { |
15afbcd0 RD |
20187 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20188 | SWIG_fail; | |
d14a1e28 RD |
20189 | } |
20190 | { | |
20191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20192 | { | |
20193 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
20194 | result = (wxDateTime *) &_result_ref; | |
20195 | } | |
20196 | ||
20197 | wxPyEndAllowThreads(__tstate); | |
20198 | if (PyErr_Occurred()) SWIG_fail; | |
20199 | } | |
15afbcd0 | 20200 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20201 | return resultobj; |
20202 | fail: | |
20203 | return NULL; | |
20204 | } | |
20205 | ||
20206 | ||
20207 | static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20208 | PyObject *resultobj; | |
20209 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20210 | wxDateTime *arg2 = 0 ; | |
20211 | wxTimeSpan result; | |
20212 | PyObject * obj0 = 0 ; | |
20213 | PyObject * obj1 = 0 ; | |
20214 | char *kwnames[] = { | |
20215 | (char *) "self",(char *) "dt", NULL | |
20216 | }; | |
20217 | ||
20218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20221 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20222 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20223 | SWIG_fail; | |
d14a1e28 | 20224 | if (arg2 == NULL) { |
15afbcd0 RD |
20225 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20226 | SWIG_fail; | |
d14a1e28 RD |
20227 | } |
20228 | { | |
20229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20230 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
20231 | ||
20232 | wxPyEndAllowThreads(__tstate); | |
20233 | if (PyErr_Occurred()) SWIG_fail; | |
20234 | } | |
20235 | { | |
20236 | wxTimeSpan * resultptr; | |
20237 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 20238 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
20239 | } |
20240 | return resultobj; | |
20241 | fail: | |
20242 | return NULL; | |
20243 | } | |
20244 | ||
20245 | ||
20246 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) { | |
20247 | PyObject *resultobj; | |
20248 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20249 | wxTimeSpan *arg2 = 0 ; | |
20250 | wxDateTime *result; | |
20251 | PyObject * obj0 = 0 ; | |
20252 | PyObject * obj1 = 0 ; | |
20253 | ||
20254 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20257 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20258 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20259 | SWIG_fail; | |
d14a1e28 | 20260 | if (arg2 == NULL) { |
15afbcd0 RD |
20261 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20262 | SWIG_fail; | |
d14a1e28 RD |
20263 | } |
20264 | { | |
20265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20266 | { | |
20267 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
20268 | result = (wxDateTime *) &_result_ref; | |
20269 | } | |
20270 | ||
20271 | wxPyEndAllowThreads(__tstate); | |
20272 | if (PyErr_Occurred()) SWIG_fail; | |
20273 | } | |
15afbcd0 | 20274 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20275 | return resultobj; |
20276 | fail: | |
20277 | return NULL; | |
20278 | } | |
20279 | ||
20280 | ||
20281 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) { | |
20282 | PyObject *resultobj; | |
20283 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20284 | wxDateSpan *arg2 = 0 ; | |
20285 | wxDateTime *result; | |
20286 | PyObject * obj0 = 0 ; | |
20287 | PyObject * obj1 = 0 ; | |
20288 | ||
20289 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20292 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20293 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20294 | SWIG_fail; | |
d14a1e28 | 20295 | if (arg2 == NULL) { |
15afbcd0 RD |
20296 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20297 | SWIG_fail; | |
d14a1e28 RD |
20298 | } |
20299 | { | |
20300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20301 | { | |
20302 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
20303 | result = (wxDateTime *) &_result_ref; | |
20304 | } | |
20305 | ||
20306 | wxPyEndAllowThreads(__tstate); | |
20307 | if (PyErr_Occurred()) SWIG_fail; | |
20308 | } | |
15afbcd0 | 20309 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20310 | return resultobj; |
20311 | fail: | |
20312 | return NULL; | |
20313 | } | |
20314 | ||
20315 | ||
20316 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
20317 | int argc; | |
20318 | PyObject *argv[3]; | |
20319 | int ii; | |
20320 | ||
20321 | argc = PyObject_Length(args); | |
20322 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20323 | argv[ii] = PyTuple_GetItem(args,ii); | |
20324 | } | |
20325 | if (argc == 2) { | |
20326 | int _v; | |
20327 | { | |
20328 | void *ptr; | |
15afbcd0 | 20329 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20330 | _v = 0; |
20331 | PyErr_Clear(); | |
20332 | } else { | |
20333 | _v = 1; | |
20334 | } | |
20335 | } | |
20336 | if (_v) { | |
20337 | { | |
20338 | void *ptr; | |
15afbcd0 | 20339 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20340 | _v = 0; |
20341 | PyErr_Clear(); | |
20342 | } else { | |
20343 | _v = 1; | |
20344 | } | |
20345 | } | |
20346 | if (_v) { | |
20347 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
20348 | } | |
20349 | } | |
20350 | } | |
20351 | if (argc == 2) { | |
20352 | int _v; | |
20353 | { | |
20354 | void *ptr; | |
15afbcd0 | 20355 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20356 | _v = 0; |
20357 | PyErr_Clear(); | |
20358 | } else { | |
20359 | _v = 1; | |
20360 | } | |
20361 | } | |
20362 | if (_v) { | |
20363 | { | |
20364 | void *ptr; | |
15afbcd0 | 20365 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20366 | _v = 0; |
20367 | PyErr_Clear(); | |
20368 | } else { | |
20369 | _v = 1; | |
20370 | } | |
20371 | } | |
20372 | if (_v) { | |
20373 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
20374 | } | |
20375 | } | |
20376 | } | |
20377 | ||
20378 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
20379 | return NULL; | |
20380 | } | |
20381 | ||
20382 | ||
20383 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) { | |
20384 | PyObject *resultobj; | |
20385 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20386 | wxTimeSpan *arg2 = 0 ; | |
20387 | wxDateTime *result; | |
20388 | PyObject * obj0 = 0 ; | |
20389 | PyObject * obj1 = 0 ; | |
20390 | ||
20391 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20394 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20395 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20396 | SWIG_fail; | |
d14a1e28 | 20397 | if (arg2 == NULL) { |
15afbcd0 RD |
20398 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20399 | SWIG_fail; | |
d14a1e28 RD |
20400 | } |
20401 | { | |
20402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20403 | { | |
20404 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
20405 | result = (wxDateTime *) &_result_ref; | |
20406 | } | |
20407 | ||
20408 | wxPyEndAllowThreads(__tstate); | |
20409 | if (PyErr_Occurred()) SWIG_fail; | |
20410 | } | |
15afbcd0 | 20411 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20412 | return resultobj; |
20413 | fail: | |
20414 | return NULL; | |
20415 | } | |
20416 | ||
20417 | ||
20418 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) { | |
20419 | PyObject *resultobj; | |
20420 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20421 | wxDateSpan *arg2 = 0 ; | |
20422 | wxDateTime *result; | |
20423 | PyObject * obj0 = 0 ; | |
20424 | PyObject * obj1 = 0 ; | |
20425 | ||
20426 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20429 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20430 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20431 | SWIG_fail; | |
d14a1e28 | 20432 | if (arg2 == NULL) { |
15afbcd0 RD |
20433 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20434 | SWIG_fail; | |
d14a1e28 RD |
20435 | } |
20436 | { | |
20437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20438 | { | |
20439 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
20440 | result = (wxDateTime *) &_result_ref; | |
20441 | } | |
20442 | ||
20443 | wxPyEndAllowThreads(__tstate); | |
20444 | if (PyErr_Occurred()) SWIG_fail; | |
20445 | } | |
15afbcd0 | 20446 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20447 | return resultobj; |
20448 | fail: | |
20449 | return NULL; | |
20450 | } | |
20451 | ||
20452 | ||
20453 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
20454 | int argc; | |
20455 | PyObject *argv[3]; | |
20456 | int ii; | |
20457 | ||
20458 | argc = PyObject_Length(args); | |
20459 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20460 | argv[ii] = PyTuple_GetItem(args,ii); | |
20461 | } | |
20462 | if (argc == 2) { | |
20463 | int _v; | |
20464 | { | |
20465 | void *ptr; | |
15afbcd0 | 20466 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20467 | _v = 0; |
20468 | PyErr_Clear(); | |
20469 | } else { | |
20470 | _v = 1; | |
20471 | } | |
20472 | } | |
20473 | if (_v) { | |
20474 | { | |
20475 | void *ptr; | |
15afbcd0 | 20476 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20477 | _v = 0; |
20478 | PyErr_Clear(); | |
20479 | } else { | |
20480 | _v = 1; | |
20481 | } | |
20482 | } | |
20483 | if (_v) { | |
20484 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
20485 | } | |
20486 | } | |
20487 | } | |
20488 | if (argc == 2) { | |
20489 | int _v; | |
20490 | { | |
20491 | void *ptr; | |
15afbcd0 | 20492 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20493 | _v = 0; |
20494 | PyErr_Clear(); | |
20495 | } else { | |
20496 | _v = 1; | |
20497 | } | |
20498 | } | |
20499 | if (_v) { | |
20500 | { | |
20501 | void *ptr; | |
15afbcd0 | 20502 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20503 | _v = 0; |
20504 | PyErr_Clear(); | |
20505 | } else { | |
20506 | _v = 1; | |
20507 | } | |
20508 | } | |
20509 | if (_v) { | |
20510 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
20511 | } | |
20512 | } | |
20513 | } | |
20514 | ||
20515 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
20516 | return NULL; | |
20517 | } | |
20518 | ||
20519 | ||
20520 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) { | |
20521 | PyObject *resultobj; | |
20522 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20523 | wxTimeSpan *arg2 = 0 ; | |
20524 | wxDateTime result; | |
20525 | PyObject * obj0 = 0 ; | |
20526 | PyObject * obj1 = 0 ; | |
20527 | ||
20528 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20531 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20532 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20533 | SWIG_fail; | |
d14a1e28 | 20534 | if (arg2 == NULL) { |
15afbcd0 RD |
20535 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20536 | SWIG_fail; | |
d14a1e28 RD |
20537 | } |
20538 | { | |
20539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20540 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
20541 | ||
20542 | wxPyEndAllowThreads(__tstate); | |
20543 | if (PyErr_Occurred()) SWIG_fail; | |
20544 | } | |
20545 | { | |
20546 | wxDateTime * resultptr; | |
20547 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 20548 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20549 | } |
20550 | return resultobj; | |
20551 | fail: | |
20552 | return NULL; | |
20553 | } | |
20554 | ||
20555 | ||
20556 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) { | |
20557 | PyObject *resultobj; | |
20558 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20559 | wxDateSpan *arg2 = 0 ; | |
20560 | wxDateTime result; | |
20561 | PyObject * obj0 = 0 ; | |
20562 | PyObject * obj1 = 0 ; | |
20563 | ||
20564 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20567 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20568 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20569 | SWIG_fail; | |
d14a1e28 | 20570 | if (arg2 == NULL) { |
15afbcd0 RD |
20571 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20572 | SWIG_fail; | |
d14a1e28 RD |
20573 | } |
20574 | { | |
20575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20576 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
20577 | ||
20578 | wxPyEndAllowThreads(__tstate); | |
20579 | if (PyErr_Occurred()) SWIG_fail; | |
20580 | } | |
20581 | { | |
20582 | wxDateTime * resultptr; | |
20583 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 20584 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20585 | } |
20586 | return resultobj; | |
20587 | fail: | |
20588 | return NULL; | |
20589 | } | |
20590 | ||
20591 | ||
20592 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
20593 | int argc; | |
20594 | PyObject *argv[3]; | |
20595 | int ii; | |
20596 | ||
20597 | argc = PyObject_Length(args); | |
20598 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20599 | argv[ii] = PyTuple_GetItem(args,ii); | |
20600 | } | |
20601 | if (argc == 2) { | |
20602 | int _v; | |
20603 | { | |
20604 | void *ptr; | |
15afbcd0 | 20605 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20606 | _v = 0; |
20607 | PyErr_Clear(); | |
20608 | } else { | |
20609 | _v = 1; | |
20610 | } | |
20611 | } | |
20612 | if (_v) { | |
20613 | { | |
20614 | void *ptr; | |
15afbcd0 | 20615 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20616 | _v = 0; |
20617 | PyErr_Clear(); | |
20618 | } else { | |
20619 | _v = 1; | |
20620 | } | |
20621 | } | |
20622 | if (_v) { | |
20623 | return _wrap_DateTime___add____SWIG_0(self,args); | |
20624 | } | |
20625 | } | |
20626 | } | |
20627 | if (argc == 2) { | |
20628 | int _v; | |
20629 | { | |
20630 | void *ptr; | |
15afbcd0 | 20631 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20632 | _v = 0; |
20633 | PyErr_Clear(); | |
20634 | } else { | |
20635 | _v = 1; | |
20636 | } | |
20637 | } | |
20638 | if (_v) { | |
20639 | { | |
20640 | void *ptr; | |
15afbcd0 | 20641 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20642 | _v = 0; |
20643 | PyErr_Clear(); | |
20644 | } else { | |
20645 | _v = 1; | |
20646 | } | |
20647 | } | |
20648 | if (_v) { | |
20649 | return _wrap_DateTime___add____SWIG_1(self,args); | |
20650 | } | |
20651 | } | |
20652 | } | |
20653 | ||
20654 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
20655 | return NULL; | |
20656 | } | |
20657 | ||
20658 | ||
20659 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) { | |
20660 | PyObject *resultobj; | |
20661 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20662 | wxDateTime *arg2 = 0 ; | |
20663 | wxTimeSpan result; | |
20664 | PyObject * obj0 = 0 ; | |
20665 | PyObject * obj1 = 0 ; | |
20666 | ||
20667 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20670 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20671 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20672 | SWIG_fail; | |
d14a1e28 | 20673 | if (arg2 == NULL) { |
15afbcd0 RD |
20674 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20675 | SWIG_fail; | |
d14a1e28 RD |
20676 | } |
20677 | { | |
20678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20679 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
20680 | ||
20681 | wxPyEndAllowThreads(__tstate); | |
20682 | if (PyErr_Occurred()) SWIG_fail; | |
20683 | } | |
20684 | { | |
20685 | wxTimeSpan * resultptr; | |
20686 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 20687 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
20688 | } |
20689 | return resultobj; | |
20690 | fail: | |
20691 | return NULL; | |
20692 | } | |
20693 | ||
20694 | ||
20695 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) { | |
20696 | PyObject *resultobj; | |
20697 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20698 | wxTimeSpan *arg2 = 0 ; | |
20699 | wxDateTime result; | |
20700 | PyObject * obj0 = 0 ; | |
20701 | PyObject * obj1 = 0 ; | |
20702 | ||
20703 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20706 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20707 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20708 | SWIG_fail; | |
d14a1e28 | 20709 | if (arg2 == NULL) { |
15afbcd0 RD |
20710 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20711 | SWIG_fail; | |
d14a1e28 RD |
20712 | } |
20713 | { | |
20714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20715 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
20716 | ||
20717 | wxPyEndAllowThreads(__tstate); | |
20718 | if (PyErr_Occurred()) SWIG_fail; | |
20719 | } | |
20720 | { | |
20721 | wxDateTime * resultptr; | |
20722 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 20723 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20724 | } |
20725 | return resultobj; | |
20726 | fail: | |
20727 | return NULL; | |
20728 | } | |
20729 | ||
20730 | ||
20731 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) { | |
20732 | PyObject *resultobj; | |
20733 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20734 | wxDateSpan *arg2 = 0 ; | |
20735 | wxDateTime result; | |
20736 | PyObject * obj0 = 0 ; | |
20737 | PyObject * obj1 = 0 ; | |
20738 | ||
20739 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20742 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20743 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20744 | SWIG_fail; | |
d14a1e28 | 20745 | if (arg2 == NULL) { |
15afbcd0 RD |
20746 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20747 | SWIG_fail; | |
d14a1e28 RD |
20748 | } |
20749 | { | |
20750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20751 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
20752 | ||
20753 | wxPyEndAllowThreads(__tstate); | |
20754 | if (PyErr_Occurred()) SWIG_fail; | |
20755 | } | |
20756 | { | |
20757 | wxDateTime * resultptr; | |
20758 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 20759 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20760 | } |
20761 | return resultobj; | |
20762 | fail: | |
20763 | return NULL; | |
20764 | } | |
20765 | ||
20766 | ||
20767 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
20768 | int argc; | |
20769 | PyObject *argv[3]; | |
20770 | int ii; | |
20771 | ||
20772 | argc = PyObject_Length(args); | |
20773 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20774 | argv[ii] = PyTuple_GetItem(args,ii); | |
20775 | } | |
20776 | if (argc == 2) { | |
20777 | int _v; | |
20778 | { | |
20779 | void *ptr; | |
15afbcd0 | 20780 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20781 | _v = 0; |
20782 | PyErr_Clear(); | |
20783 | } else { | |
20784 | _v = 1; | |
20785 | } | |
20786 | } | |
20787 | if (_v) { | |
20788 | { | |
20789 | void *ptr; | |
15afbcd0 | 20790 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20791 | _v = 0; |
20792 | PyErr_Clear(); | |
20793 | } else { | |
20794 | _v = 1; | |
20795 | } | |
20796 | } | |
20797 | if (_v) { | |
20798 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
20799 | } | |
20800 | } | |
20801 | } | |
20802 | if (argc == 2) { | |
20803 | int _v; | |
20804 | { | |
20805 | void *ptr; | |
15afbcd0 | 20806 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20807 | _v = 0; |
20808 | PyErr_Clear(); | |
20809 | } else { | |
20810 | _v = 1; | |
20811 | } | |
20812 | } | |
20813 | if (_v) { | |
20814 | { | |
20815 | void *ptr; | |
15afbcd0 | 20816 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20817 | _v = 0; |
20818 | PyErr_Clear(); | |
20819 | } else { | |
20820 | _v = 1; | |
20821 | } | |
20822 | } | |
20823 | if (_v) { | |
20824 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
20825 | } | |
20826 | } | |
20827 | } | |
20828 | if (argc == 2) { | |
20829 | int _v; | |
20830 | { | |
20831 | void *ptr; | |
15afbcd0 | 20832 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20833 | _v = 0; |
20834 | PyErr_Clear(); | |
20835 | } else { | |
20836 | _v = 1; | |
20837 | } | |
20838 | } | |
20839 | if (_v) { | |
20840 | { | |
20841 | void *ptr; | |
15afbcd0 | 20842 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20843 | _v = 0; |
20844 | PyErr_Clear(); | |
20845 | } else { | |
20846 | _v = 1; | |
20847 | } | |
20848 | } | |
20849 | if (_v) { | |
20850 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
20851 | } | |
20852 | } | |
20853 | } | |
20854 | ||
20855 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
20856 | return NULL; | |
20857 | } | |
20858 | ||
20859 | ||
20860 | static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) { | |
20861 | PyObject *resultobj; | |
20862 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20863 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20864 | bool result; |
20865 | PyObject * obj0 = 0 ; | |
20866 | PyObject * obj1 = 0 ; | |
20867 | ||
20868 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20871 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20873 | { |
20874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20875 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20876 | |
20877 | wxPyEndAllowThreads(__tstate); | |
20878 | if (PyErr_Occurred()) SWIG_fail; | |
20879 | } | |
4f89f6a3 RD |
20880 | { |
20881 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20882 | } | |
d14a1e28 RD |
20883 | return resultobj; |
20884 | fail: | |
20885 | return NULL; | |
20886 | } | |
20887 | ||
20888 | ||
20889 | static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) { | |
20890 | PyObject *resultobj; | |
20891 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20892 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20893 | bool result; |
20894 | PyObject * obj0 = 0 ; | |
20895 | PyObject * obj1 = 0 ; | |
20896 | ||
20897 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20900 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20902 | { |
20903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20904 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20905 | |
20906 | wxPyEndAllowThreads(__tstate); | |
20907 | if (PyErr_Occurred()) SWIG_fail; | |
20908 | } | |
4f89f6a3 RD |
20909 | { |
20910 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20911 | } | |
d14a1e28 RD |
20912 | return resultobj; |
20913 | fail: | |
20914 | return NULL; | |
20915 | } | |
20916 | ||
20917 | ||
20918 | static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) { | |
20919 | PyObject *resultobj; | |
20920 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20921 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20922 | bool result; |
20923 | PyObject * obj0 = 0 ; | |
20924 | PyObject * obj1 = 0 ; | |
20925 | ||
20926 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20929 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20931 | { |
20932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20933 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20934 | |
20935 | wxPyEndAllowThreads(__tstate); | |
20936 | if (PyErr_Occurred()) SWIG_fail; | |
20937 | } | |
4f89f6a3 RD |
20938 | { |
20939 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20940 | } | |
d14a1e28 RD |
20941 | return resultobj; |
20942 | fail: | |
20943 | return NULL; | |
20944 | } | |
20945 | ||
20946 | ||
20947 | static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) { | |
20948 | PyObject *resultobj; | |
20949 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20950 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20951 | bool result; |
20952 | PyObject * obj0 = 0 ; | |
20953 | PyObject * obj1 = 0 ; | |
20954 | ||
20955 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20958 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20960 | { |
20961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20962 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20963 | |
20964 | wxPyEndAllowThreads(__tstate); | |
20965 | if (PyErr_Occurred()) SWIG_fail; | |
20966 | } | |
4f89f6a3 RD |
20967 | { |
20968 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20969 | } | |
d14a1e28 RD |
20970 | return resultobj; |
20971 | fail: | |
20972 | return NULL; | |
20973 | } | |
20974 | ||
20975 | ||
20976 | static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) { | |
20977 | PyObject *resultobj; | |
20978 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20979 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20980 | bool result; |
20981 | PyObject * obj0 = 0 ; | |
20982 | PyObject * obj1 = 0 ; | |
20983 | ||
20984 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20987 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20989 | { |
20990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20991 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20992 | |
20993 | wxPyEndAllowThreads(__tstate); | |
20994 | if (PyErr_Occurred()) SWIG_fail; | |
20995 | } | |
4f89f6a3 RD |
20996 | { |
20997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20998 | } | |
d14a1e28 RD |
20999 | return resultobj; |
21000 | fail: | |
21001 | return NULL; | |
21002 | } | |
21003 | ||
21004 | ||
21005 | static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) { | |
21006 | PyObject *resultobj; | |
21007 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 21008 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
21009 | bool result; |
21010 | PyObject * obj0 = 0 ; | |
21011 | PyObject * obj1 = 0 ; | |
21012 | ||
21013 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21016 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21018 | { |
21019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 21020 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
21021 | |
21022 | wxPyEndAllowThreads(__tstate); | |
21023 | if (PyErr_Occurred()) SWIG_fail; | |
21024 | } | |
4f89f6a3 RD |
21025 | { |
21026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21027 | } | |
d14a1e28 RD |
21028 | return resultobj; |
21029 | fail: | |
21030 | return NULL; | |
21031 | } | |
21032 | ||
21033 | ||
21034 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21035 | PyObject *resultobj; | |
21036 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21037 | wxString *arg2 = 0 ; | |
21038 | int result; | |
e811c8ce | 21039 | bool temp2 = False ; |
d14a1e28 RD |
21040 | PyObject * obj0 = 0 ; |
21041 | PyObject * obj1 = 0 ; | |
21042 | char *kwnames[] = { | |
21043 | (char *) "self",(char *) "date", NULL | |
21044 | }; | |
21045 | ||
21046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21049 | { |
21050 | arg2 = wxString_in_helper(obj1); | |
21051 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21052 | temp2 = True; |
d14a1e28 RD |
21053 | } |
21054 | { | |
21055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21056 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
21057 | ||
21058 | wxPyEndAllowThreads(__tstate); | |
21059 | if (PyErr_Occurred()) SWIG_fail; | |
21060 | } | |
15afbcd0 | 21061 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21062 | { |
21063 | if (temp2) | |
21064 | delete arg2; | |
21065 | } | |
21066 | return resultobj; | |
21067 | fail: | |
21068 | { | |
21069 | if (temp2) | |
21070 | delete arg2; | |
21071 | } | |
21072 | return NULL; | |
21073 | } | |
21074 | ||
21075 | ||
21076 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21077 | PyObject *resultobj; | |
21078 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21079 | wxString *arg2 = 0 ; | |
21080 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
21081 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
21082 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
21083 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
21084 | int result; | |
e811c8ce RD |
21085 | bool temp2 = False ; |
21086 | bool temp3 = False ; | |
d14a1e28 RD |
21087 | PyObject * obj0 = 0 ; |
21088 | PyObject * obj1 = 0 ; | |
21089 | PyObject * obj2 = 0 ; | |
21090 | PyObject * obj3 = 0 ; | |
21091 | char *kwnames[] = { | |
21092 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
21093 | }; | |
21094 | ||
21095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
21096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21098 | { |
21099 | arg2 = wxString_in_helper(obj1); | |
21100 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21101 | temp2 = True; |
d14a1e28 RD |
21102 | } |
21103 | if (obj2) { | |
21104 | { | |
21105 | arg3 = wxString_in_helper(obj2); | |
21106 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 21107 | temp3 = True; |
d14a1e28 RD |
21108 | } |
21109 | } | |
21110 | if (obj3) { | |
15afbcd0 RD |
21111 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime, |
21112 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21113 | SWIG_fail; | |
d14a1e28 | 21114 | if (arg4 == NULL) { |
15afbcd0 RD |
21115 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21116 | SWIG_fail; | |
d14a1e28 RD |
21117 | } |
21118 | } | |
21119 | { | |
21120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21121 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
21122 | ||
21123 | wxPyEndAllowThreads(__tstate); | |
21124 | if (PyErr_Occurred()) SWIG_fail; | |
21125 | } | |
15afbcd0 | 21126 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21127 | { |
21128 | if (temp2) | |
21129 | delete arg2; | |
21130 | } | |
21131 | { | |
21132 | if (temp3) | |
21133 | delete arg3; | |
21134 | } | |
21135 | return resultobj; | |
21136 | fail: | |
21137 | { | |
21138 | if (temp2) | |
21139 | delete arg2; | |
21140 | } | |
21141 | { | |
21142 | if (temp3) | |
21143 | delete arg3; | |
21144 | } | |
21145 | return NULL; | |
21146 | } | |
21147 | ||
21148 | ||
21149 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21150 | PyObject *resultobj; | |
21151 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21152 | wxString *arg2 = 0 ; | |
21153 | int result; | |
e811c8ce | 21154 | bool temp2 = False ; |
d14a1e28 RD |
21155 | PyObject * obj0 = 0 ; |
21156 | PyObject * obj1 = 0 ; | |
21157 | char *kwnames[] = { | |
21158 | (char *) "self",(char *) "datetime", NULL | |
21159 | }; | |
21160 | ||
21161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21164 | { |
21165 | arg2 = wxString_in_helper(obj1); | |
21166 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21167 | temp2 = True; |
d14a1e28 RD |
21168 | } |
21169 | { | |
21170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21171 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
21172 | ||
21173 | wxPyEndAllowThreads(__tstate); | |
21174 | if (PyErr_Occurred()) SWIG_fail; | |
21175 | } | |
15afbcd0 | 21176 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21177 | { |
21178 | if (temp2) | |
21179 | delete arg2; | |
21180 | } | |
21181 | return resultobj; | |
21182 | fail: | |
21183 | { | |
21184 | if (temp2) | |
21185 | delete arg2; | |
21186 | } | |
21187 | return NULL; | |
21188 | } | |
21189 | ||
21190 | ||
21191 | static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21192 | PyObject *resultobj; | |
21193 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21194 | wxString *arg2 = 0 ; | |
21195 | int result; | |
e811c8ce | 21196 | bool temp2 = False ; |
d14a1e28 RD |
21197 | PyObject * obj0 = 0 ; |
21198 | PyObject * obj1 = 0 ; | |
21199 | char *kwnames[] = { | |
21200 | (char *) "self",(char *) "date", NULL | |
21201 | }; | |
21202 | ||
21203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21206 | { |
21207 | arg2 = wxString_in_helper(obj1); | |
21208 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21209 | temp2 = True; |
d14a1e28 RD |
21210 | } |
21211 | { | |
21212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21213 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
21214 | ||
21215 | wxPyEndAllowThreads(__tstate); | |
21216 | if (PyErr_Occurred()) SWIG_fail; | |
21217 | } | |
15afbcd0 | 21218 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21219 | { |
21220 | if (temp2) | |
21221 | delete arg2; | |
21222 | } | |
21223 | return resultobj; | |
21224 | fail: | |
21225 | { | |
21226 | if (temp2) | |
21227 | delete arg2; | |
21228 | } | |
21229 | return NULL; | |
21230 | } | |
21231 | ||
21232 | ||
21233 | static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21234 | PyObject *resultobj; | |
21235 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21236 | wxString *arg2 = 0 ; | |
21237 | int result; | |
e811c8ce | 21238 | bool temp2 = False ; |
d14a1e28 RD |
21239 | PyObject * obj0 = 0 ; |
21240 | PyObject * obj1 = 0 ; | |
21241 | char *kwnames[] = { | |
21242 | (char *) "self",(char *) "time", NULL | |
21243 | }; | |
21244 | ||
21245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21248 | { |
21249 | arg2 = wxString_in_helper(obj1); | |
21250 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21251 | temp2 = True; |
d14a1e28 RD |
21252 | } |
21253 | { | |
21254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21255 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
21256 | ||
21257 | wxPyEndAllowThreads(__tstate); | |
21258 | if (PyErr_Occurred()) SWIG_fail; | |
21259 | } | |
15afbcd0 | 21260 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21261 | { |
21262 | if (temp2) | |
21263 | delete arg2; | |
21264 | } | |
21265 | return resultobj; | |
21266 | fail: | |
21267 | { | |
21268 | if (temp2) | |
21269 | delete arg2; | |
21270 | } | |
21271 | return NULL; | |
21272 | } | |
21273 | ||
21274 | ||
21275 | static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21276 | PyObject *resultobj; | |
21277 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21278 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
21279 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
21280 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
21281 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
21282 | wxString result; | |
e811c8ce | 21283 | bool temp2 = False ; |
7722248d | 21284 | bool temp3 = False ; |
d14a1e28 RD |
21285 | PyObject * obj0 = 0 ; |
21286 | PyObject * obj1 = 0 ; | |
21287 | PyObject * obj2 = 0 ; | |
21288 | char *kwnames[] = { | |
21289 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
21290 | }; | |
21291 | ||
21292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
21293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21295 | if (obj1) { |
21296 | { | |
21297 | arg2 = wxString_in_helper(obj1); | |
21298 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21299 | temp2 = True; |
d14a1e28 RD |
21300 | } |
21301 | } | |
21302 | if (obj2) { | |
21303 | { | |
21304 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 21305 | temp3 = True; |
d14a1e28 RD |
21306 | } |
21307 | } | |
21308 | { | |
21309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21310 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
21311 | ||
21312 | wxPyEndAllowThreads(__tstate); | |
21313 | if (PyErr_Occurred()) SWIG_fail; | |
21314 | } | |
21315 | { | |
21316 | #if wxUSE_UNICODE | |
21317 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21318 | #else | |
21319 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21320 | #endif | |
21321 | } | |
21322 | { | |
21323 | if (temp2) | |
21324 | delete arg2; | |
21325 | } | |
21326 | { | |
7722248d | 21327 | if (temp3) delete arg3; |
d14a1e28 RD |
21328 | } |
21329 | return resultobj; | |
21330 | fail: | |
21331 | { | |
21332 | if (temp2) | |
21333 | delete arg2; | |
21334 | } | |
21335 | { | |
7722248d | 21336 | if (temp3) delete arg3; |
d14a1e28 RD |
21337 | } |
21338 | return NULL; | |
21339 | } | |
21340 | ||
21341 | ||
21342 | static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21343 | PyObject *resultobj; | |
21344 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21345 | wxString result; | |
21346 | PyObject * obj0 = 0 ; | |
21347 | char *kwnames[] = { | |
21348 | (char *) "self", NULL | |
21349 | }; | |
21350 | ||
21351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21354 | { |
21355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21356 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
21357 | ||
21358 | wxPyEndAllowThreads(__tstate); | |
21359 | if (PyErr_Occurred()) SWIG_fail; | |
21360 | } | |
21361 | { | |
21362 | #if wxUSE_UNICODE | |
21363 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21364 | #else | |
21365 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21366 | #endif | |
21367 | } | |
21368 | return resultobj; | |
21369 | fail: | |
21370 | return NULL; | |
21371 | } | |
21372 | ||
21373 | ||
21374 | static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21375 | PyObject *resultobj; | |
21376 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21377 | wxString result; | |
21378 | PyObject * obj0 = 0 ; | |
21379 | char *kwnames[] = { | |
21380 | (char *) "self", NULL | |
21381 | }; | |
21382 | ||
21383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21386 | { |
21387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21388 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
21389 | ||
21390 | wxPyEndAllowThreads(__tstate); | |
21391 | if (PyErr_Occurred()) SWIG_fail; | |
21392 | } | |
21393 | { | |
21394 | #if wxUSE_UNICODE | |
21395 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21396 | #else | |
21397 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21398 | #endif | |
21399 | } | |
21400 | return resultobj; | |
21401 | fail: | |
21402 | return NULL; | |
21403 | } | |
21404 | ||
21405 | ||
21406 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21407 | PyObject *resultobj; | |
21408 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21409 | wxString result; | |
21410 | PyObject * obj0 = 0 ; | |
21411 | char *kwnames[] = { | |
21412 | (char *) "self", NULL | |
21413 | }; | |
21414 | ||
21415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21418 | { |
21419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21420 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
21421 | ||
21422 | wxPyEndAllowThreads(__tstate); | |
21423 | if (PyErr_Occurred()) SWIG_fail; | |
21424 | } | |
21425 | { | |
21426 | #if wxUSE_UNICODE | |
21427 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21428 | #else | |
21429 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21430 | #endif | |
21431 | } | |
21432 | return resultobj; | |
21433 | fail: | |
21434 | return NULL; | |
21435 | } | |
21436 | ||
21437 | ||
21438 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21439 | PyObject *resultobj; | |
21440 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21441 | wxString result; | |
21442 | PyObject * obj0 = 0 ; | |
21443 | char *kwnames[] = { | |
21444 | (char *) "self", NULL | |
21445 | }; | |
21446 | ||
21447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21450 | { |
21451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21452 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
21453 | ||
21454 | wxPyEndAllowThreads(__tstate); | |
21455 | if (PyErr_Occurred()) SWIG_fail; | |
21456 | } | |
21457 | { | |
21458 | #if wxUSE_UNICODE | |
21459 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21460 | #else | |
21461 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21462 | #endif | |
21463 | } | |
21464 | return resultobj; | |
21465 | fail: | |
21466 | return NULL; | |
21467 | } | |
21468 | ||
21469 | ||
21470 | static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) { | |
21471 | PyObject *obj; | |
21472 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21473 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
21474 | Py_INCREF(obj); | |
21475 | return Py_BuildValue((char *)""); | |
21476 | } | |
21477 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21478 | PyObject *resultobj; | |
21479 | long arg1 ; | |
21480 | wxTimeSpan result; | |
994141e6 | 21481 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21482 | char *kwnames[] = { |
21483 | (char *) "sec", NULL | |
21484 | }; | |
21485 | ||
994141e6 | 21486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21487 | arg1 = (long) SWIG_AsLong(obj0); |
21488 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21489 | { |
21490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21491 | result = wxTimeSpan::Seconds(arg1); | |
21492 | ||
21493 | wxPyEndAllowThreads(__tstate); | |
21494 | if (PyErr_Occurred()) SWIG_fail; | |
21495 | } | |
21496 | { | |
21497 | wxTimeSpan * resultptr; | |
21498 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21499 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21500 | } |
21501 | return resultobj; | |
21502 | fail: | |
21503 | return NULL; | |
21504 | } | |
21505 | ||
21506 | ||
21507 | static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21508 | PyObject *resultobj; | |
21509 | wxTimeSpan result; | |
21510 | char *kwnames[] = { | |
21511 | NULL | |
21512 | }; | |
21513 | ||
21514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
21515 | { | |
21516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21517 | result = wxTimeSpan::Second(); | |
21518 | ||
21519 | wxPyEndAllowThreads(__tstate); | |
21520 | if (PyErr_Occurred()) SWIG_fail; | |
21521 | } | |
21522 | { | |
21523 | wxTimeSpan * resultptr; | |
21524 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21525 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21526 | } |
21527 | return resultobj; | |
21528 | fail: | |
21529 | return NULL; | |
21530 | } | |
21531 | ||
21532 | ||
21533 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21534 | PyObject *resultobj; | |
21535 | long arg1 ; | |
21536 | wxTimeSpan result; | |
994141e6 | 21537 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21538 | char *kwnames[] = { |
21539 | (char *) "min", NULL | |
21540 | }; | |
21541 | ||
994141e6 | 21542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21543 | arg1 = (long) SWIG_AsLong(obj0); |
21544 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21545 | { |
21546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21547 | result = wxTimeSpan::Minutes(arg1); | |
21548 | ||
21549 | wxPyEndAllowThreads(__tstate); | |
21550 | if (PyErr_Occurred()) SWIG_fail; | |
21551 | } | |
21552 | { | |
21553 | wxTimeSpan * resultptr; | |
21554 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21555 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21556 | } |
21557 | return resultobj; | |
21558 | fail: | |
21559 | return NULL; | |
21560 | } | |
21561 | ||
21562 | ||
21563 | static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21564 | PyObject *resultobj; | |
21565 | wxTimeSpan result; | |
21566 | char *kwnames[] = { | |
21567 | NULL | |
21568 | }; | |
21569 | ||
21570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
21571 | { | |
21572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21573 | result = wxTimeSpan::Minute(); | |
21574 | ||
21575 | wxPyEndAllowThreads(__tstate); | |
21576 | if (PyErr_Occurred()) SWIG_fail; | |
21577 | } | |
21578 | { | |
21579 | wxTimeSpan * resultptr; | |
21580 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21581 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21582 | } |
21583 | return resultobj; | |
21584 | fail: | |
21585 | return NULL; | |
21586 | } | |
21587 | ||
21588 | ||
21589 | static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21590 | PyObject *resultobj; | |
21591 | long arg1 ; | |
21592 | wxTimeSpan result; | |
994141e6 | 21593 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21594 | char *kwnames[] = { |
21595 | (char *) "hours", NULL | |
21596 | }; | |
21597 | ||
994141e6 | 21598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21599 | arg1 = (long) SWIG_AsLong(obj0); |
21600 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21601 | { |
21602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21603 | result = wxTimeSpan::Hours(arg1); | |
21604 | ||
21605 | wxPyEndAllowThreads(__tstate); | |
21606 | if (PyErr_Occurred()) SWIG_fail; | |
21607 | } | |
21608 | { | |
21609 | wxTimeSpan * resultptr; | |
21610 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21611 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21612 | } |
21613 | return resultobj; | |
21614 | fail: | |
21615 | return NULL; | |
21616 | } | |
21617 | ||
21618 | ||
21619 | static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21620 | PyObject *resultobj; | |
21621 | wxTimeSpan result; | |
21622 | char *kwnames[] = { | |
21623 | NULL | |
21624 | }; | |
21625 | ||
21626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
21627 | { | |
21628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21629 | result = wxTimeSpan::Hour(); | |
21630 | ||
21631 | wxPyEndAllowThreads(__tstate); | |
21632 | if (PyErr_Occurred()) SWIG_fail; | |
21633 | } | |
21634 | { | |
21635 | wxTimeSpan * resultptr; | |
21636 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21637 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21638 | } |
21639 | return resultobj; | |
21640 | fail: | |
21641 | return NULL; | |
21642 | } | |
21643 | ||
21644 | ||
21645 | static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21646 | PyObject *resultobj; | |
21647 | long arg1 ; | |
21648 | wxTimeSpan result; | |
994141e6 | 21649 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21650 | char *kwnames[] = { |
21651 | (char *) "days", NULL | |
21652 | }; | |
21653 | ||
994141e6 | 21654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21655 | arg1 = (long) SWIG_AsLong(obj0); |
21656 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21657 | { |
21658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21659 | result = wxTimeSpan::Days(arg1); | |
21660 | ||
21661 | wxPyEndAllowThreads(__tstate); | |
21662 | if (PyErr_Occurred()) SWIG_fail; | |
21663 | } | |
21664 | { | |
21665 | wxTimeSpan * resultptr; | |
21666 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21667 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21668 | } |
21669 | return resultobj; | |
21670 | fail: | |
21671 | return NULL; | |
21672 | } | |
21673 | ||
21674 | ||
21675 | static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21676 | PyObject *resultobj; | |
21677 | wxTimeSpan result; | |
21678 | char *kwnames[] = { | |
21679 | NULL | |
21680 | }; | |
21681 | ||
21682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
21683 | { | |
21684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21685 | result = wxTimeSpan::Day(); | |
21686 | ||
21687 | wxPyEndAllowThreads(__tstate); | |
21688 | if (PyErr_Occurred()) SWIG_fail; | |
21689 | } | |
21690 | { | |
21691 | wxTimeSpan * resultptr; | |
21692 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21693 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21694 | } |
21695 | return resultobj; | |
21696 | fail: | |
21697 | return NULL; | |
21698 | } | |
21699 | ||
21700 | ||
21701 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21702 | PyObject *resultobj; | |
21703 | long arg1 ; | |
21704 | wxTimeSpan result; | |
994141e6 | 21705 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21706 | char *kwnames[] = { |
21707 | (char *) "days", NULL | |
21708 | }; | |
21709 | ||
994141e6 | 21710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21711 | arg1 = (long) SWIG_AsLong(obj0); |
21712 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21713 | { |
21714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21715 | result = wxTimeSpan::Weeks(arg1); | |
21716 | ||
21717 | wxPyEndAllowThreads(__tstate); | |
21718 | if (PyErr_Occurred()) SWIG_fail; | |
21719 | } | |
21720 | { | |
21721 | wxTimeSpan * resultptr; | |
21722 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21723 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21724 | } |
21725 | return resultobj; | |
21726 | fail: | |
21727 | return NULL; | |
21728 | } | |
21729 | ||
21730 | ||
21731 | static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21732 | PyObject *resultobj; | |
21733 | wxTimeSpan result; | |
21734 | char *kwnames[] = { | |
21735 | NULL | |
21736 | }; | |
21737 | ||
21738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
21739 | { | |
21740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21741 | result = wxTimeSpan::Week(); | |
21742 | ||
21743 | wxPyEndAllowThreads(__tstate); | |
21744 | if (PyErr_Occurred()) SWIG_fail; | |
21745 | } | |
21746 | { | |
21747 | wxTimeSpan * resultptr; | |
21748 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21749 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21750 | } |
21751 | return resultobj; | |
21752 | fail: | |
21753 | return NULL; | |
21754 | } | |
21755 | ||
21756 | ||
21757 | static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21758 | PyObject *resultobj; | |
21759 | long arg1 = (long) 0 ; | |
21760 | long arg2 = (long) 0 ; | |
21761 | long arg3 = (long) 0 ; | |
21762 | long arg4 = (long) 0 ; | |
21763 | wxTimeSpan *result; | |
994141e6 RD |
21764 | PyObject * obj0 = 0 ; |
21765 | PyObject * obj1 = 0 ; | |
21766 | PyObject * obj2 = 0 ; | |
21767 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21768 | char *kwnames[] = { |
21769 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
21770 | }; | |
21771 | ||
994141e6 RD |
21772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
21773 | if (obj0) { | |
15afbcd0 RD |
21774 | arg1 = (long) SWIG_AsLong(obj0); |
21775 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
21776 | } |
21777 | if (obj1) { | |
15afbcd0 RD |
21778 | arg2 = (long) SWIG_AsLong(obj1); |
21779 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
21780 | } |
21781 | if (obj2) { | |
15afbcd0 RD |
21782 | arg3 = (long) SWIG_AsLong(obj2); |
21783 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
21784 | } |
21785 | if (obj3) { | |
15afbcd0 RD |
21786 | arg4 = (long) SWIG_AsLong(obj3); |
21787 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21788 | } |
d14a1e28 RD |
21789 | { |
21790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21791 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
21792 | ||
21793 | wxPyEndAllowThreads(__tstate); | |
21794 | if (PyErr_Occurred()) SWIG_fail; | |
21795 | } | |
15afbcd0 | 21796 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21797 | return resultobj; |
21798 | fail: | |
21799 | return NULL; | |
21800 | } | |
21801 | ||
21802 | ||
21803 | static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21804 | PyObject *resultobj; | |
21805 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21806 | PyObject * obj0 = 0 ; | |
21807 | char *kwnames[] = { | |
21808 | (char *) "self", NULL | |
21809 | }; | |
21810 | ||
21811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21814 | { |
21815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21816 | delete arg1; | |
21817 | ||
21818 | wxPyEndAllowThreads(__tstate); | |
21819 | if (PyErr_Occurred()) SWIG_fail; | |
21820 | } | |
21821 | Py_INCREF(Py_None); resultobj = Py_None; | |
21822 | return resultobj; | |
21823 | fail: | |
21824 | return NULL; | |
21825 | } | |
21826 | ||
21827 | ||
21828 | static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21829 | PyObject *resultobj; | |
21830 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21831 | wxTimeSpan *arg2 = 0 ; | |
21832 | wxTimeSpan *result; | |
21833 | PyObject * obj0 = 0 ; | |
21834 | PyObject * obj1 = 0 ; | |
21835 | char *kwnames[] = { | |
21836 | (char *) "self",(char *) "diff", NULL | |
21837 | }; | |
21838 | ||
21839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21842 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21843 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21844 | SWIG_fail; | |
d14a1e28 | 21845 | if (arg2 == NULL) { |
15afbcd0 RD |
21846 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21847 | SWIG_fail; | |
d14a1e28 RD |
21848 | } |
21849 | { | |
21850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21851 | { | |
21852 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
21853 | result = (wxTimeSpan *) &_result_ref; | |
21854 | } | |
21855 | ||
21856 | wxPyEndAllowThreads(__tstate); | |
21857 | if (PyErr_Occurred()) SWIG_fail; | |
21858 | } | |
15afbcd0 | 21859 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21860 | return resultobj; |
21861 | fail: | |
21862 | return NULL; | |
21863 | } | |
21864 | ||
21865 | ||
21866 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21867 | PyObject *resultobj; | |
21868 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21869 | wxTimeSpan *arg2 = 0 ; | |
21870 | wxTimeSpan *result; | |
21871 | PyObject * obj0 = 0 ; | |
21872 | PyObject * obj1 = 0 ; | |
21873 | char *kwnames[] = { | |
21874 | (char *) "self",(char *) "diff", NULL | |
21875 | }; | |
21876 | ||
21877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21880 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21881 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21882 | SWIG_fail; | |
d14a1e28 | 21883 | if (arg2 == NULL) { |
15afbcd0 RD |
21884 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21885 | SWIG_fail; | |
d14a1e28 RD |
21886 | } |
21887 | { | |
21888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21889 | { | |
21890 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
21891 | result = (wxTimeSpan *) &_result_ref; | |
21892 | } | |
21893 | ||
21894 | wxPyEndAllowThreads(__tstate); | |
21895 | if (PyErr_Occurred()) SWIG_fail; | |
21896 | } | |
15afbcd0 | 21897 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21898 | return resultobj; |
21899 | fail: | |
21900 | return NULL; | |
21901 | } | |
21902 | ||
21903 | ||
21904 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21905 | PyObject *resultobj; | |
21906 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21907 | int arg2 ; | |
21908 | wxTimeSpan *result; | |
21909 | PyObject * obj0 = 0 ; | |
994141e6 | 21910 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21911 | char *kwnames[] = { |
21912 | (char *) "self",(char *) "n", NULL | |
21913 | }; | |
21914 | ||
994141e6 | 21915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21918 | arg2 = (int) SWIG_AsInt(obj1); | |
21919 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21920 | { |
21921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21922 | { | |
21923 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
21924 | result = (wxTimeSpan *) &_result_ref; | |
21925 | } | |
21926 | ||
21927 | wxPyEndAllowThreads(__tstate); | |
21928 | if (PyErr_Occurred()) SWIG_fail; | |
21929 | } | |
15afbcd0 | 21930 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21931 | return resultobj; |
21932 | fail: | |
21933 | return NULL; | |
21934 | } | |
21935 | ||
21936 | ||
21937 | static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21938 | PyObject *resultobj; | |
21939 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21940 | wxTimeSpan *result; | |
21941 | PyObject * obj0 = 0 ; | |
21942 | char *kwnames[] = { | |
21943 | (char *) "self", NULL | |
21944 | }; | |
21945 | ||
21946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21949 | { |
21950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21951 | { | |
21952 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
21953 | result = (wxTimeSpan *) &_result_ref; | |
21954 | } | |
21955 | ||
21956 | wxPyEndAllowThreads(__tstate); | |
21957 | if (PyErr_Occurred()) SWIG_fail; | |
21958 | } | |
15afbcd0 | 21959 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21960 | return resultobj; |
21961 | fail: | |
21962 | return NULL; | |
21963 | } | |
21964 | ||
21965 | ||
21966 | static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21967 | PyObject *resultobj; | |
21968 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21969 | wxTimeSpan result; | |
21970 | PyObject * obj0 = 0 ; | |
21971 | char *kwnames[] = { | |
21972 | (char *) "self", NULL | |
21973 | }; | |
21974 | ||
21975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21978 | { |
21979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21980 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
21981 | ||
21982 | wxPyEndAllowThreads(__tstate); | |
21983 | if (PyErr_Occurred()) SWIG_fail; | |
21984 | } | |
21985 | { | |
21986 | wxTimeSpan * resultptr; | |
21987 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21988 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21989 | } |
21990 | return resultobj; | |
21991 | fail: | |
21992 | return NULL; | |
21993 | } | |
21994 | ||
21995 | ||
21996 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21997 | PyObject *resultobj; | |
21998 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21999 | wxTimeSpan *arg2 = 0 ; | |
22000 | wxTimeSpan *result; | |
22001 | PyObject * obj0 = 0 ; | |
22002 | PyObject * obj1 = 0 ; | |
22003 | char *kwnames[] = { | |
22004 | (char *) "self",(char *) "diff", NULL | |
22005 | }; | |
22006 | ||
22007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22010 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22011 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22012 | SWIG_fail; | |
d14a1e28 | 22013 | if (arg2 == NULL) { |
15afbcd0 RD |
22014 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22015 | SWIG_fail; | |
d14a1e28 RD |
22016 | } |
22017 | { | |
22018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22019 | { | |
22020 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
22021 | result = (wxTimeSpan *) &_result_ref; | |
22022 | } | |
22023 | ||
22024 | wxPyEndAllowThreads(__tstate); | |
22025 | if (PyErr_Occurred()) SWIG_fail; | |
22026 | } | |
15afbcd0 | 22027 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
22028 | return resultobj; |
22029 | fail: | |
22030 | return NULL; | |
22031 | } | |
22032 | ||
22033 | ||
22034 | static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22035 | PyObject *resultobj; | |
22036 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22037 | wxTimeSpan *arg2 = 0 ; | |
22038 | wxTimeSpan *result; | |
22039 | PyObject * obj0 = 0 ; | |
22040 | PyObject * obj1 = 0 ; | |
22041 | char *kwnames[] = { | |
22042 | (char *) "self",(char *) "diff", NULL | |
22043 | }; | |
22044 | ||
22045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22048 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22049 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22050 | SWIG_fail; | |
d14a1e28 | 22051 | if (arg2 == NULL) { |
15afbcd0 RD |
22052 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22053 | SWIG_fail; | |
d14a1e28 RD |
22054 | } |
22055 | { | |
22056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22057 | { | |
22058 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
22059 | result = (wxTimeSpan *) &_result_ref; | |
22060 | } | |
22061 | ||
22062 | wxPyEndAllowThreads(__tstate); | |
22063 | if (PyErr_Occurred()) SWIG_fail; | |
22064 | } | |
15afbcd0 | 22065 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
22066 | return resultobj; |
22067 | fail: | |
22068 | return NULL; | |
22069 | } | |
22070 | ||
22071 | ||
22072 | static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22073 | PyObject *resultobj; | |
22074 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22075 | int arg2 ; | |
22076 | wxTimeSpan *result; | |
22077 | PyObject * obj0 = 0 ; | |
994141e6 | 22078 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22079 | char *kwnames[] = { |
22080 | (char *) "self",(char *) "n", NULL | |
22081 | }; | |
22082 | ||
994141e6 | 22083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22086 | arg2 = (int) SWIG_AsInt(obj1); | |
22087 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22088 | { |
22089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22090 | { | |
22091 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
22092 | result = (wxTimeSpan *) &_result_ref; | |
22093 | } | |
22094 | ||
22095 | wxPyEndAllowThreads(__tstate); | |
22096 | if (PyErr_Occurred()) SWIG_fail; | |
22097 | } | |
15afbcd0 | 22098 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
22099 | return resultobj; |
22100 | fail: | |
22101 | return NULL; | |
22102 | } | |
22103 | ||
22104 | ||
22105 | static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22106 | PyObject *resultobj; | |
22107 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22108 | wxTimeSpan *result; | |
22109 | PyObject * obj0 = 0 ; | |
22110 | char *kwnames[] = { | |
22111 | (char *) "self", NULL | |
22112 | }; | |
22113 | ||
22114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22117 | { |
22118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22119 | { | |
22120 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
22121 | result = (wxTimeSpan *) &_result_ref; | |
22122 | } | |
22123 | ||
22124 | wxPyEndAllowThreads(__tstate); | |
22125 | if (PyErr_Occurred()) SWIG_fail; | |
22126 | } | |
15afbcd0 | 22127 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
22128 | return resultobj; |
22129 | fail: | |
22130 | return NULL; | |
22131 | } | |
22132 | ||
22133 | ||
22134 | static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22135 | PyObject *resultobj; | |
22136 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22137 | wxTimeSpan *arg2 = 0 ; | |
22138 | wxTimeSpan result; | |
22139 | PyObject * obj0 = 0 ; | |
22140 | PyObject * obj1 = 0 ; | |
22141 | char *kwnames[] = { | |
22142 | (char *) "self",(char *) "other", NULL | |
22143 | }; | |
22144 | ||
22145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22148 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22149 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22150 | SWIG_fail; | |
d14a1e28 | 22151 | if (arg2 == NULL) { |
15afbcd0 RD |
22152 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22153 | SWIG_fail; | |
d14a1e28 RD |
22154 | } |
22155 | { | |
22156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22157 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
22158 | ||
22159 | wxPyEndAllowThreads(__tstate); | |
22160 | if (PyErr_Occurred()) SWIG_fail; | |
22161 | } | |
22162 | { | |
22163 | wxTimeSpan * resultptr; | |
22164 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 22165 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
22166 | } |
22167 | return resultobj; | |
22168 | fail: | |
22169 | return NULL; | |
22170 | } | |
22171 | ||
22172 | ||
22173 | static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22174 | PyObject *resultobj; | |
22175 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22176 | wxTimeSpan *arg2 = 0 ; | |
22177 | wxTimeSpan result; | |
22178 | PyObject * obj0 = 0 ; | |
22179 | PyObject * obj1 = 0 ; | |
22180 | char *kwnames[] = { | |
22181 | (char *) "self",(char *) "other", NULL | |
22182 | }; | |
22183 | ||
22184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22187 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22188 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22189 | SWIG_fail; | |
d14a1e28 | 22190 | if (arg2 == NULL) { |
15afbcd0 RD |
22191 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22192 | SWIG_fail; | |
d14a1e28 RD |
22193 | } |
22194 | { | |
22195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22196 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
22197 | ||
22198 | wxPyEndAllowThreads(__tstate); | |
22199 | if (PyErr_Occurred()) SWIG_fail; | |
22200 | } | |
22201 | { | |
22202 | wxTimeSpan * resultptr; | |
22203 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 22204 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
22205 | } |
22206 | return resultobj; | |
22207 | fail: | |
22208 | return NULL; | |
22209 | } | |
22210 | ||
22211 | ||
22212 | static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22213 | PyObject *resultobj; | |
22214 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22215 | int arg2 ; | |
22216 | wxTimeSpan result; | |
22217 | PyObject * obj0 = 0 ; | |
994141e6 | 22218 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22219 | char *kwnames[] = { |
22220 | (char *) "self",(char *) "n", NULL | |
22221 | }; | |
22222 | ||
994141e6 | 22223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22226 | arg2 = (int) SWIG_AsInt(obj1); | |
22227 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22228 | { |
22229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22230 | result = wxTimeSpan___mul__(arg1,arg2); | |
22231 | ||
22232 | wxPyEndAllowThreads(__tstate); | |
22233 | if (PyErr_Occurred()) SWIG_fail; | |
22234 | } | |
22235 | { | |
22236 | wxTimeSpan * resultptr; | |
22237 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 22238 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
22239 | } |
22240 | return resultobj; | |
22241 | fail: | |
22242 | return NULL; | |
22243 | } | |
22244 | ||
22245 | ||
22246 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22247 | PyObject *resultobj; | |
22248 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22249 | int arg2 ; | |
22250 | wxTimeSpan result; | |
22251 | PyObject * obj0 = 0 ; | |
994141e6 | 22252 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22253 | char *kwnames[] = { |
22254 | (char *) "self",(char *) "n", NULL | |
22255 | }; | |
22256 | ||
994141e6 | 22257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22260 | arg2 = (int) SWIG_AsInt(obj1); | |
22261 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22262 | { |
22263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22264 | result = wxTimeSpan___rmul__(arg1,arg2); | |
22265 | ||
22266 | wxPyEndAllowThreads(__tstate); | |
22267 | if (PyErr_Occurred()) SWIG_fail; | |
22268 | } | |
22269 | { | |
22270 | wxTimeSpan * resultptr; | |
22271 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 22272 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
22273 | } |
22274 | return resultobj; | |
22275 | fail: | |
22276 | return NULL; | |
22277 | } | |
22278 | ||
22279 | ||
22280 | static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22281 | PyObject *resultobj; | |
22282 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22283 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22284 | bool result; |
22285 | PyObject * obj0 = 0 ; | |
22286 | PyObject * obj1 = 0 ; | |
22287 | char *kwnames[] = { | |
22288 | (char *) "self",(char *) "other", NULL | |
22289 | }; | |
22290 | ||
22291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22294 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22296 | { |
22297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22298 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22299 | |
22300 | wxPyEndAllowThreads(__tstate); | |
22301 | if (PyErr_Occurred()) SWIG_fail; | |
22302 | } | |
4f89f6a3 RD |
22303 | { |
22304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22305 | } | |
d14a1e28 RD |
22306 | return resultobj; |
22307 | fail: | |
22308 | return NULL; | |
22309 | } | |
22310 | ||
22311 | ||
22312 | static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22313 | PyObject *resultobj; | |
22314 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22315 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22316 | bool result; |
22317 | PyObject * obj0 = 0 ; | |
22318 | PyObject * obj1 = 0 ; | |
22319 | char *kwnames[] = { | |
22320 | (char *) "self",(char *) "other", NULL | |
22321 | }; | |
22322 | ||
22323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22326 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22328 | { |
22329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22330 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22331 | |
22332 | wxPyEndAllowThreads(__tstate); | |
22333 | if (PyErr_Occurred()) SWIG_fail; | |
22334 | } | |
4f89f6a3 RD |
22335 | { |
22336 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22337 | } | |
d14a1e28 RD |
22338 | return resultobj; |
22339 | fail: | |
22340 | return NULL; | |
22341 | } | |
22342 | ||
22343 | ||
22344 | static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22345 | PyObject *resultobj; | |
22346 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22347 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22348 | bool result; |
22349 | PyObject * obj0 = 0 ; | |
22350 | PyObject * obj1 = 0 ; | |
22351 | char *kwnames[] = { | |
22352 | (char *) "self",(char *) "other", NULL | |
22353 | }; | |
22354 | ||
22355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22358 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22360 | { |
22361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22362 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22363 | |
22364 | wxPyEndAllowThreads(__tstate); | |
22365 | if (PyErr_Occurred()) SWIG_fail; | |
22366 | } | |
4f89f6a3 RD |
22367 | { |
22368 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22369 | } | |
d14a1e28 RD |
22370 | return resultobj; |
22371 | fail: | |
22372 | return NULL; | |
22373 | } | |
22374 | ||
22375 | ||
22376 | static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22377 | PyObject *resultobj; | |
22378 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22379 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22380 | bool result; |
22381 | PyObject * obj0 = 0 ; | |
22382 | PyObject * obj1 = 0 ; | |
22383 | char *kwnames[] = { | |
22384 | (char *) "self",(char *) "other", NULL | |
22385 | }; | |
22386 | ||
22387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22390 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22392 | { |
22393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22394 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22395 | |
22396 | wxPyEndAllowThreads(__tstate); | |
22397 | if (PyErr_Occurred()) SWIG_fail; | |
22398 | } | |
4f89f6a3 RD |
22399 | { |
22400 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22401 | } | |
d14a1e28 RD |
22402 | return resultobj; |
22403 | fail: | |
22404 | return NULL; | |
22405 | } | |
22406 | ||
22407 | ||
22408 | static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22409 | PyObject *resultobj; | |
22410 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22411 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22412 | bool result; |
22413 | PyObject * obj0 = 0 ; | |
22414 | PyObject * obj1 = 0 ; | |
22415 | char *kwnames[] = { | |
22416 | (char *) "self",(char *) "other", NULL | |
22417 | }; | |
22418 | ||
22419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22422 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22424 | { |
22425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22426 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22427 | |
22428 | wxPyEndAllowThreads(__tstate); | |
22429 | if (PyErr_Occurred()) SWIG_fail; | |
22430 | } | |
4f89f6a3 RD |
22431 | { |
22432 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22433 | } | |
d14a1e28 RD |
22434 | return resultobj; |
22435 | fail: | |
22436 | return NULL; | |
22437 | } | |
22438 | ||
22439 | ||
22440 | static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22441 | PyObject *resultobj; | |
22442 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22443 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22444 | bool result; |
22445 | PyObject * obj0 = 0 ; | |
22446 | PyObject * obj1 = 0 ; | |
22447 | char *kwnames[] = { | |
22448 | (char *) "self",(char *) "other", NULL | |
22449 | }; | |
22450 | ||
22451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22454 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22456 | { |
22457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22458 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22459 | |
22460 | wxPyEndAllowThreads(__tstate); | |
22461 | if (PyErr_Occurred()) SWIG_fail; | |
22462 | } | |
4f89f6a3 RD |
22463 | { |
22464 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22465 | } | |
d14a1e28 RD |
22466 | return resultobj; |
22467 | fail: | |
22468 | return NULL; | |
22469 | } | |
22470 | ||
22471 | ||
22472 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22473 | PyObject *resultobj; | |
22474 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22475 | bool result; | |
22476 | PyObject * obj0 = 0 ; | |
22477 | char *kwnames[] = { | |
22478 | (char *) "self", NULL | |
22479 | }; | |
22480 | ||
22481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22484 | { |
22485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22486 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
22487 | ||
22488 | wxPyEndAllowThreads(__tstate); | |
22489 | if (PyErr_Occurred()) SWIG_fail; | |
22490 | } | |
4f89f6a3 RD |
22491 | { |
22492 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22493 | } | |
d14a1e28 RD |
22494 | return resultobj; |
22495 | fail: | |
22496 | return NULL; | |
22497 | } | |
22498 | ||
22499 | ||
22500 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22501 | PyObject *resultobj; | |
22502 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22503 | bool result; | |
22504 | PyObject * obj0 = 0 ; | |
22505 | char *kwnames[] = { | |
22506 | (char *) "self", NULL | |
22507 | }; | |
22508 | ||
22509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22512 | { |
22513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22514 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
22515 | ||
22516 | wxPyEndAllowThreads(__tstate); | |
22517 | if (PyErr_Occurred()) SWIG_fail; | |
22518 | } | |
4f89f6a3 RD |
22519 | { |
22520 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22521 | } | |
d14a1e28 RD |
22522 | return resultobj; |
22523 | fail: | |
22524 | return NULL; | |
22525 | } | |
22526 | ||
22527 | ||
22528 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22529 | PyObject *resultobj; | |
22530 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22531 | bool result; | |
22532 | PyObject * obj0 = 0 ; | |
22533 | char *kwnames[] = { | |
22534 | (char *) "self", NULL | |
22535 | }; | |
22536 | ||
22537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22540 | { |
22541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22542 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
22543 | ||
22544 | wxPyEndAllowThreads(__tstate); | |
22545 | if (PyErr_Occurred()) SWIG_fail; | |
22546 | } | |
4f89f6a3 RD |
22547 | { |
22548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22549 | } | |
d14a1e28 RD |
22550 | return resultobj; |
22551 | fail: | |
22552 | return NULL; | |
22553 | } | |
22554 | ||
22555 | ||
22556 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22557 | PyObject *resultobj; | |
22558 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22559 | wxTimeSpan *arg2 = 0 ; | |
22560 | bool result; | |
22561 | PyObject * obj0 = 0 ; | |
22562 | PyObject * obj1 = 0 ; | |
22563 | char *kwnames[] = { | |
22564 | (char *) "self",(char *) "ts", NULL | |
22565 | }; | |
22566 | ||
22567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22570 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22571 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22572 | SWIG_fail; | |
d14a1e28 | 22573 | if (arg2 == NULL) { |
15afbcd0 RD |
22574 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22575 | SWIG_fail; | |
d14a1e28 RD |
22576 | } |
22577 | { | |
22578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22579 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
22580 | ||
22581 | wxPyEndAllowThreads(__tstate); | |
22582 | if (PyErr_Occurred()) SWIG_fail; | |
22583 | } | |
4f89f6a3 RD |
22584 | { |
22585 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22586 | } | |
d14a1e28 RD |
22587 | return resultobj; |
22588 | fail: | |
22589 | return NULL; | |
22590 | } | |
22591 | ||
22592 | ||
22593 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22594 | PyObject *resultobj; | |
22595 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22596 | wxTimeSpan *arg2 = 0 ; | |
22597 | bool result; | |
22598 | PyObject * obj0 = 0 ; | |
22599 | PyObject * obj1 = 0 ; | |
22600 | char *kwnames[] = { | |
22601 | (char *) "self",(char *) "ts", NULL | |
22602 | }; | |
22603 | ||
22604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22607 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22608 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22609 | SWIG_fail; | |
d14a1e28 | 22610 | if (arg2 == NULL) { |
15afbcd0 RD |
22611 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22612 | SWIG_fail; | |
d14a1e28 RD |
22613 | } |
22614 | { | |
22615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22616 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
22617 | ||
22618 | wxPyEndAllowThreads(__tstate); | |
22619 | if (PyErr_Occurred()) SWIG_fail; | |
22620 | } | |
4f89f6a3 RD |
22621 | { |
22622 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22623 | } | |
d14a1e28 RD |
22624 | return resultobj; |
22625 | fail: | |
22626 | return NULL; | |
22627 | } | |
22628 | ||
22629 | ||
22630 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22631 | PyObject *resultobj; | |
22632 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22633 | wxTimeSpan *arg2 = 0 ; | |
22634 | bool result; | |
22635 | PyObject * obj0 = 0 ; | |
22636 | PyObject * obj1 = 0 ; | |
22637 | char *kwnames[] = { | |
22638 | (char *) "self",(char *) "t", NULL | |
22639 | }; | |
22640 | ||
22641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22644 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22645 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22646 | SWIG_fail; | |
d14a1e28 | 22647 | if (arg2 == NULL) { |
15afbcd0 RD |
22648 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22649 | SWIG_fail; | |
d14a1e28 RD |
22650 | } |
22651 | { | |
22652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22653 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
22654 | ||
22655 | wxPyEndAllowThreads(__tstate); | |
22656 | if (PyErr_Occurred()) SWIG_fail; | |
22657 | } | |
4f89f6a3 RD |
22658 | { |
22659 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22660 | } | |
d14a1e28 RD |
22661 | return resultobj; |
22662 | fail: | |
22663 | return NULL; | |
22664 | } | |
22665 | ||
22666 | ||
22667 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22668 | PyObject *resultobj; | |
22669 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22670 | int result; | |
22671 | PyObject * obj0 = 0 ; | |
22672 | char *kwnames[] = { | |
22673 | (char *) "self", NULL | |
22674 | }; | |
22675 | ||
22676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22679 | { |
22680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22681 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
22682 | ||
22683 | wxPyEndAllowThreads(__tstate); | |
22684 | if (PyErr_Occurred()) SWIG_fail; | |
22685 | } | |
15afbcd0 | 22686 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22687 | return resultobj; |
22688 | fail: | |
22689 | return NULL; | |
22690 | } | |
22691 | ||
22692 | ||
22693 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22694 | PyObject *resultobj; | |
22695 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22696 | int result; | |
22697 | PyObject * obj0 = 0 ; | |
22698 | char *kwnames[] = { | |
22699 | (char *) "self", NULL | |
22700 | }; | |
22701 | ||
22702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22705 | { |
22706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22707 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
22708 | ||
22709 | wxPyEndAllowThreads(__tstate); | |
22710 | if (PyErr_Occurred()) SWIG_fail; | |
22711 | } | |
15afbcd0 | 22712 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22713 | return resultobj; |
22714 | fail: | |
22715 | return NULL; | |
22716 | } | |
22717 | ||
22718 | ||
22719 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22720 | PyObject *resultobj; | |
22721 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22722 | int result; | |
22723 | PyObject * obj0 = 0 ; | |
22724 | char *kwnames[] = { | |
22725 | (char *) "self", NULL | |
22726 | }; | |
22727 | ||
22728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22731 | { |
22732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22733 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
22734 | ||
22735 | wxPyEndAllowThreads(__tstate); | |
22736 | if (PyErr_Occurred()) SWIG_fail; | |
22737 | } | |
15afbcd0 | 22738 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22739 | return resultobj; |
22740 | fail: | |
22741 | return NULL; | |
22742 | } | |
22743 | ||
22744 | ||
22745 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22746 | PyObject *resultobj; | |
22747 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22748 | int result; | |
22749 | PyObject * obj0 = 0 ; | |
22750 | char *kwnames[] = { | |
22751 | (char *) "self", NULL | |
22752 | }; | |
22753 | ||
22754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22757 | { |
22758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22759 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
22760 | ||
22761 | wxPyEndAllowThreads(__tstate); | |
22762 | if (PyErr_Occurred()) SWIG_fail; | |
22763 | } | |
15afbcd0 | 22764 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22765 | return resultobj; |
22766 | fail: | |
22767 | return NULL; | |
22768 | } | |
22769 | ||
22770 | ||
22771 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22772 | PyObject *resultobj; | |
22773 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22774 | wxLongLong result; | |
22775 | PyObject * obj0 = 0 ; | |
22776 | char *kwnames[] = { | |
22777 | (char *) "self", NULL | |
22778 | }; | |
22779 | ||
22780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22783 | { |
22784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22785 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
22786 | ||
22787 | wxPyEndAllowThreads(__tstate); | |
22788 | if (PyErr_Occurred()) SWIG_fail; | |
22789 | } | |
22790 | { | |
22791 | PyObject *hi, *lo, *shifter, *shifted; | |
22792 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22793 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22794 | shifter = PyLong_FromLong(32); | |
22795 | shifted = PyNumber_Lshift(hi, shifter); | |
22796 | resultobj = PyNumber_Or(shifted, lo); | |
22797 | Py_DECREF(hi); | |
22798 | Py_DECREF(lo); | |
22799 | Py_DECREF(shifter); | |
22800 | Py_DECREF(shifted); | |
22801 | } | |
22802 | return resultobj; | |
22803 | fail: | |
22804 | return NULL; | |
22805 | } | |
22806 | ||
22807 | ||
22808 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22809 | PyObject *resultobj; | |
22810 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22811 | wxLongLong result; | |
22812 | PyObject * obj0 = 0 ; | |
22813 | char *kwnames[] = { | |
22814 | (char *) "self", NULL | |
22815 | }; | |
22816 | ||
22817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22820 | { |
22821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22822 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
22823 | ||
22824 | wxPyEndAllowThreads(__tstate); | |
22825 | if (PyErr_Occurred()) SWIG_fail; | |
22826 | } | |
22827 | { | |
22828 | PyObject *hi, *lo, *shifter, *shifted; | |
22829 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22830 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22831 | shifter = PyLong_FromLong(32); | |
22832 | shifted = PyNumber_Lshift(hi, shifter); | |
22833 | resultobj = PyNumber_Or(shifted, lo); | |
22834 | Py_DECREF(hi); | |
22835 | Py_DECREF(lo); | |
22836 | Py_DECREF(shifter); | |
22837 | Py_DECREF(shifted); | |
22838 | } | |
22839 | return resultobj; | |
22840 | fail: | |
22841 | return NULL; | |
22842 | } | |
22843 | ||
22844 | ||
22845 | static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22846 | PyObject *resultobj; | |
22847 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22848 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
22849 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
22850 | wxString result; | |
e811c8ce | 22851 | bool temp2 = False ; |
d14a1e28 RD |
22852 | PyObject * obj0 = 0 ; |
22853 | PyObject * obj1 = 0 ; | |
22854 | char *kwnames[] = { | |
22855 | (char *) "self",(char *) "format", NULL | |
22856 | }; | |
22857 | ||
22858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22861 | if (obj1) { |
22862 | { | |
22863 | arg2 = wxString_in_helper(obj1); | |
22864 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 22865 | temp2 = True; |
d14a1e28 RD |
22866 | } |
22867 | } | |
22868 | { | |
22869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22870 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
22871 | ||
22872 | wxPyEndAllowThreads(__tstate); | |
22873 | if (PyErr_Occurred()) SWIG_fail; | |
22874 | } | |
22875 | { | |
22876 | #if wxUSE_UNICODE | |
22877 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22878 | #else | |
22879 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22880 | #endif | |
22881 | } | |
22882 | { | |
22883 | if (temp2) | |
22884 | delete arg2; | |
22885 | } | |
22886 | return resultobj; | |
22887 | fail: | |
22888 | { | |
22889 | if (temp2) | |
22890 | delete arg2; | |
22891 | } | |
22892 | return NULL; | |
22893 | } | |
22894 | ||
22895 | ||
22896 | static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) { | |
22897 | PyObject *obj; | |
22898 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22899 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
22900 | Py_INCREF(obj); | |
22901 | return Py_BuildValue((char *)""); | |
22902 | } | |
22903 | static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22904 | PyObject *resultobj; | |
22905 | int arg1 = (int) 0 ; | |
22906 | int arg2 = (int) 0 ; | |
22907 | int arg3 = (int) 0 ; | |
22908 | int arg4 = (int) 0 ; | |
22909 | wxDateSpan *result; | |
994141e6 RD |
22910 | PyObject * obj0 = 0 ; |
22911 | PyObject * obj1 = 0 ; | |
22912 | PyObject * obj2 = 0 ; | |
22913 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
22914 | char *kwnames[] = { |
22915 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
22916 | }; | |
22917 | ||
994141e6 RD |
22918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
22919 | if (obj0) { | |
15afbcd0 RD |
22920 | arg1 = (int) SWIG_AsInt(obj0); |
22921 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
22922 | } |
22923 | if (obj1) { | |
15afbcd0 RD |
22924 | arg2 = (int) SWIG_AsInt(obj1); |
22925 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
22926 | } |
22927 | if (obj2) { | |
15afbcd0 RD |
22928 | arg3 = (int) SWIG_AsInt(obj2); |
22929 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
22930 | } |
22931 | if (obj3) { | |
15afbcd0 RD |
22932 | arg4 = (int) SWIG_AsInt(obj3); |
22933 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22934 | } |
d14a1e28 RD |
22935 | { |
22936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22937 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
22938 | ||
22939 | wxPyEndAllowThreads(__tstate); | |
22940 | if (PyErr_Occurred()) SWIG_fail; | |
22941 | } | |
15afbcd0 | 22942 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22943 | return resultobj; |
22944 | fail: | |
22945 | return NULL; | |
22946 | } | |
22947 | ||
22948 | ||
22949 | static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22950 | PyObject *resultobj; | |
22951 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22952 | PyObject * obj0 = 0 ; | |
22953 | char *kwnames[] = { | |
22954 | (char *) "self", NULL | |
22955 | }; | |
22956 | ||
22957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22960 | { |
22961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22962 | delete arg1; | |
22963 | ||
22964 | wxPyEndAllowThreads(__tstate); | |
22965 | if (PyErr_Occurred()) SWIG_fail; | |
22966 | } | |
22967 | Py_INCREF(Py_None); resultobj = Py_None; | |
22968 | return resultobj; | |
22969 | fail: | |
22970 | return NULL; | |
22971 | } | |
22972 | ||
22973 | ||
22974 | static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22975 | PyObject *resultobj; | |
22976 | int arg1 ; | |
22977 | wxDateSpan result; | |
994141e6 | 22978 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22979 | char *kwnames[] = { |
22980 | (char *) "days", NULL | |
22981 | }; | |
22982 | ||
994141e6 | 22983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22984 | arg1 = (int) SWIG_AsInt(obj0); |
22985 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22986 | { |
22987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22988 | result = wxDateSpan::Days(arg1); | |
22989 | ||
22990 | wxPyEndAllowThreads(__tstate); | |
22991 | if (PyErr_Occurred()) SWIG_fail; | |
22992 | } | |
22993 | { | |
22994 | wxDateSpan * resultptr; | |
22995 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22996 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22997 | } |
22998 | return resultobj; | |
22999 | fail: | |
23000 | return NULL; | |
23001 | } | |
23002 | ||
23003 | ||
23004 | static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23005 | PyObject *resultobj; | |
23006 | wxDateSpan result; | |
23007 | char *kwnames[] = { | |
23008 | NULL | |
23009 | }; | |
23010 | ||
23011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
23012 | { | |
23013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23014 | result = wxDateSpan::Day(); | |
23015 | ||
23016 | wxPyEndAllowThreads(__tstate); | |
23017 | if (PyErr_Occurred()) SWIG_fail; | |
23018 | } | |
23019 | { | |
23020 | wxDateSpan * resultptr; | |
23021 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23022 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23023 | } |
23024 | return resultobj; | |
23025 | fail: | |
23026 | return NULL; | |
23027 | } | |
23028 | ||
23029 | ||
23030 | static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23031 | PyObject *resultobj; | |
23032 | int arg1 ; | |
23033 | wxDateSpan result; | |
994141e6 | 23034 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
23035 | char *kwnames[] = { |
23036 | (char *) "weeks", NULL | |
23037 | }; | |
23038 | ||
994141e6 | 23039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
23040 | arg1 = (int) SWIG_AsInt(obj0); |
23041 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23042 | { |
23043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23044 | result = wxDateSpan::Weeks(arg1); | |
23045 | ||
23046 | wxPyEndAllowThreads(__tstate); | |
23047 | if (PyErr_Occurred()) SWIG_fail; | |
23048 | } | |
23049 | { | |
23050 | wxDateSpan * resultptr; | |
23051 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23052 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23053 | } |
23054 | return resultobj; | |
23055 | fail: | |
23056 | return NULL; | |
23057 | } | |
23058 | ||
23059 | ||
23060 | static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23061 | PyObject *resultobj; | |
23062 | wxDateSpan result; | |
23063 | char *kwnames[] = { | |
23064 | NULL | |
23065 | }; | |
23066 | ||
23067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
23068 | { | |
23069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23070 | result = wxDateSpan::Week(); | |
23071 | ||
23072 | wxPyEndAllowThreads(__tstate); | |
23073 | if (PyErr_Occurred()) SWIG_fail; | |
23074 | } | |
23075 | { | |
23076 | wxDateSpan * resultptr; | |
23077 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23078 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23079 | } |
23080 | return resultobj; | |
23081 | fail: | |
23082 | return NULL; | |
23083 | } | |
23084 | ||
23085 | ||
23086 | static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23087 | PyObject *resultobj; | |
23088 | int arg1 ; | |
23089 | wxDateSpan result; | |
994141e6 | 23090 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
23091 | char *kwnames[] = { |
23092 | (char *) "mon", NULL | |
23093 | }; | |
23094 | ||
994141e6 | 23095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
23096 | arg1 = (int) SWIG_AsInt(obj0); |
23097 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23098 | { |
23099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23100 | result = wxDateSpan::Months(arg1); | |
23101 | ||
23102 | wxPyEndAllowThreads(__tstate); | |
23103 | if (PyErr_Occurred()) SWIG_fail; | |
23104 | } | |
23105 | { | |
23106 | wxDateSpan * resultptr; | |
23107 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23108 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23109 | } |
23110 | return resultobj; | |
23111 | fail: | |
23112 | return NULL; | |
23113 | } | |
23114 | ||
23115 | ||
23116 | static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23117 | PyObject *resultobj; | |
23118 | wxDateSpan result; | |
23119 | char *kwnames[] = { | |
23120 | NULL | |
23121 | }; | |
23122 | ||
23123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
23124 | { | |
23125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23126 | result = wxDateSpan::Month(); | |
23127 | ||
23128 | wxPyEndAllowThreads(__tstate); | |
23129 | if (PyErr_Occurred()) SWIG_fail; | |
23130 | } | |
23131 | { | |
23132 | wxDateSpan * resultptr; | |
23133 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23134 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23135 | } |
23136 | return resultobj; | |
23137 | fail: | |
23138 | return NULL; | |
23139 | } | |
23140 | ||
23141 | ||
23142 | static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23143 | PyObject *resultobj; | |
23144 | int arg1 ; | |
23145 | wxDateSpan result; | |
994141e6 | 23146 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
23147 | char *kwnames[] = { |
23148 | (char *) "years", NULL | |
23149 | }; | |
23150 | ||
994141e6 | 23151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
23152 | arg1 = (int) SWIG_AsInt(obj0); |
23153 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23154 | { |
23155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23156 | result = wxDateSpan::Years(arg1); | |
23157 | ||
23158 | wxPyEndAllowThreads(__tstate); | |
23159 | if (PyErr_Occurred()) SWIG_fail; | |
23160 | } | |
23161 | { | |
23162 | wxDateSpan * resultptr; | |
23163 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23164 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23165 | } |
23166 | return resultobj; | |
23167 | fail: | |
23168 | return NULL; | |
23169 | } | |
23170 | ||
23171 | ||
23172 | static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23173 | PyObject *resultobj; | |
23174 | wxDateSpan result; | |
23175 | char *kwnames[] = { | |
23176 | NULL | |
23177 | }; | |
23178 | ||
23179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
23180 | { | |
23181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23182 | result = wxDateSpan::Year(); | |
23183 | ||
23184 | wxPyEndAllowThreads(__tstate); | |
23185 | if (PyErr_Occurred()) SWIG_fail; | |
23186 | } | |
23187 | { | |
23188 | wxDateSpan * resultptr; | |
23189 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23190 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23191 | } |
23192 | return resultobj; | |
23193 | fail: | |
23194 | return NULL; | |
23195 | } | |
23196 | ||
23197 | ||
23198 | static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23199 | PyObject *resultobj; | |
23200 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23201 | int arg2 ; | |
23202 | wxDateSpan *result; | |
23203 | PyObject * obj0 = 0 ; | |
994141e6 | 23204 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23205 | char *kwnames[] = { |
23206 | (char *) "self",(char *) "n", NULL | |
23207 | }; | |
23208 | ||
994141e6 | 23209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23212 | arg2 = (int) SWIG_AsInt(obj1); | |
23213 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23214 | { |
23215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23216 | { | |
23217 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
23218 | result = (wxDateSpan *) &_result_ref; | |
23219 | } | |
23220 | ||
23221 | wxPyEndAllowThreads(__tstate); | |
23222 | if (PyErr_Occurred()) SWIG_fail; | |
23223 | } | |
15afbcd0 | 23224 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23225 | return resultobj; |
23226 | fail: | |
23227 | return NULL; | |
23228 | } | |
23229 | ||
23230 | ||
23231 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23232 | PyObject *resultobj; | |
23233 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23234 | int arg2 ; | |
23235 | wxDateSpan *result; | |
23236 | PyObject * obj0 = 0 ; | |
994141e6 | 23237 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23238 | char *kwnames[] = { |
23239 | (char *) "self",(char *) "n", NULL | |
23240 | }; | |
23241 | ||
994141e6 | 23242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23245 | arg2 = (int) SWIG_AsInt(obj1); | |
23246 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23247 | { |
23248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23249 | { | |
23250 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
23251 | result = (wxDateSpan *) &_result_ref; | |
23252 | } | |
23253 | ||
23254 | wxPyEndAllowThreads(__tstate); | |
23255 | if (PyErr_Occurred()) SWIG_fail; | |
23256 | } | |
15afbcd0 | 23257 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23258 | return resultobj; |
23259 | fail: | |
23260 | return NULL; | |
23261 | } | |
23262 | ||
23263 | ||
23264 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23265 | PyObject *resultobj; | |
23266 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23267 | int arg2 ; | |
23268 | wxDateSpan *result; | |
23269 | PyObject * obj0 = 0 ; | |
994141e6 | 23270 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23271 | char *kwnames[] = { |
23272 | (char *) "self",(char *) "n", NULL | |
23273 | }; | |
23274 | ||
994141e6 | 23275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23278 | arg2 = (int) SWIG_AsInt(obj1); | |
23279 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23280 | { |
23281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23282 | { | |
23283 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
23284 | result = (wxDateSpan *) &_result_ref; | |
23285 | } | |
23286 | ||
23287 | wxPyEndAllowThreads(__tstate); | |
23288 | if (PyErr_Occurred()) SWIG_fail; | |
23289 | } | |
15afbcd0 | 23290 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23291 | return resultobj; |
23292 | fail: | |
23293 | return NULL; | |
23294 | } | |
23295 | ||
23296 | ||
23297 | static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23298 | PyObject *resultobj; | |
23299 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23300 | int arg2 ; | |
23301 | wxDateSpan *result; | |
23302 | PyObject * obj0 = 0 ; | |
994141e6 | 23303 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23304 | char *kwnames[] = { |
23305 | (char *) "self",(char *) "n", NULL | |
23306 | }; | |
23307 | ||
994141e6 | 23308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23311 | arg2 = (int) SWIG_AsInt(obj1); | |
23312 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23313 | { |
23314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23315 | { | |
23316 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
23317 | result = (wxDateSpan *) &_result_ref; | |
23318 | } | |
23319 | ||
23320 | wxPyEndAllowThreads(__tstate); | |
23321 | if (PyErr_Occurred()) SWIG_fail; | |
23322 | } | |
15afbcd0 | 23323 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23324 | return resultobj; |
23325 | fail: | |
23326 | return NULL; | |
23327 | } | |
23328 | ||
23329 | ||
23330 | static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23331 | PyObject *resultobj; | |
23332 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23333 | int result; | |
23334 | PyObject * obj0 = 0 ; | |
23335 | char *kwnames[] = { | |
23336 | (char *) "self", NULL | |
23337 | }; | |
23338 | ||
23339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23342 | { |
23343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23344 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
23345 | ||
23346 | wxPyEndAllowThreads(__tstate); | |
23347 | if (PyErr_Occurred()) SWIG_fail; | |
23348 | } | |
15afbcd0 | 23349 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23350 | return resultobj; |
23351 | fail: | |
23352 | return NULL; | |
23353 | } | |
23354 | ||
23355 | ||
23356 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23357 | PyObject *resultobj; | |
23358 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23359 | int result; | |
23360 | PyObject * obj0 = 0 ; | |
23361 | char *kwnames[] = { | |
23362 | (char *) "self", NULL | |
23363 | }; | |
23364 | ||
23365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23368 | { |
23369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23370 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
23371 | ||
23372 | wxPyEndAllowThreads(__tstate); | |
23373 | if (PyErr_Occurred()) SWIG_fail; | |
23374 | } | |
15afbcd0 | 23375 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23376 | return resultobj; |
23377 | fail: | |
23378 | return NULL; | |
23379 | } | |
23380 | ||
23381 | ||
23382 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23383 | PyObject *resultobj; | |
23384 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23385 | int result; | |
23386 | PyObject * obj0 = 0 ; | |
23387 | char *kwnames[] = { | |
23388 | (char *) "self", NULL | |
23389 | }; | |
23390 | ||
23391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23394 | { |
23395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23396 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
23397 | ||
23398 | wxPyEndAllowThreads(__tstate); | |
23399 | if (PyErr_Occurred()) SWIG_fail; | |
23400 | } | |
15afbcd0 | 23401 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23402 | return resultobj; |
23403 | fail: | |
23404 | return NULL; | |
23405 | } | |
23406 | ||
23407 | ||
23408 | static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23409 | PyObject *resultobj; | |
23410 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23411 | int result; | |
23412 | PyObject * obj0 = 0 ; | |
23413 | char *kwnames[] = { | |
23414 | (char *) "self", NULL | |
23415 | }; | |
23416 | ||
23417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23420 | { |
23421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23422 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
23423 | ||
23424 | wxPyEndAllowThreads(__tstate); | |
23425 | if (PyErr_Occurred()) SWIG_fail; | |
23426 | } | |
15afbcd0 | 23427 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23428 | return resultobj; |
23429 | fail: | |
23430 | return NULL; | |
23431 | } | |
23432 | ||
23433 | ||
23434 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23435 | PyObject *resultobj; | |
23436 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23437 | int result; | |
23438 | PyObject * obj0 = 0 ; | |
23439 | char *kwnames[] = { | |
23440 | (char *) "self", NULL | |
23441 | }; | |
23442 | ||
23443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23446 | { |
23447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23448 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
23449 | ||
23450 | wxPyEndAllowThreads(__tstate); | |
23451 | if (PyErr_Occurred()) SWIG_fail; | |
23452 | } | |
15afbcd0 | 23453 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23454 | return resultobj; |
23455 | fail: | |
23456 | return NULL; | |
23457 | } | |
23458 | ||
23459 | ||
23460 | static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23461 | PyObject *resultobj; | |
23462 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23463 | wxDateSpan *arg2 = 0 ; | |
23464 | wxDateSpan *result; | |
23465 | PyObject * obj0 = 0 ; | |
23466 | PyObject * obj1 = 0 ; | |
23467 | char *kwnames[] = { | |
23468 | (char *) "self",(char *) "other", NULL | |
23469 | }; | |
23470 | ||
23471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23474 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23475 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23476 | SWIG_fail; | |
d14a1e28 | 23477 | if (arg2 == NULL) { |
15afbcd0 RD |
23478 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23479 | SWIG_fail; | |
d14a1e28 RD |
23480 | } |
23481 | { | |
23482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23483 | { | |
23484 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
23485 | result = (wxDateSpan *) &_result_ref; | |
23486 | } | |
23487 | ||
23488 | wxPyEndAllowThreads(__tstate); | |
23489 | if (PyErr_Occurred()) SWIG_fail; | |
23490 | } | |
15afbcd0 | 23491 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23492 | return resultobj; |
23493 | fail: | |
23494 | return NULL; | |
23495 | } | |
23496 | ||
23497 | ||
23498 | static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23499 | PyObject *resultobj; | |
23500 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23501 | wxDateSpan *arg2 = 0 ; | |
23502 | wxDateSpan *result; | |
23503 | PyObject * obj0 = 0 ; | |
23504 | PyObject * obj1 = 0 ; | |
23505 | char *kwnames[] = { | |
23506 | (char *) "self",(char *) "other", NULL | |
23507 | }; | |
23508 | ||
23509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23512 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23513 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23514 | SWIG_fail; | |
d14a1e28 | 23515 | if (arg2 == NULL) { |
15afbcd0 RD |
23516 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23517 | SWIG_fail; | |
d14a1e28 RD |
23518 | } |
23519 | { | |
23520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23521 | { | |
23522 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
23523 | result = (wxDateSpan *) &_result_ref; | |
23524 | } | |
23525 | ||
23526 | wxPyEndAllowThreads(__tstate); | |
23527 | if (PyErr_Occurred()) SWIG_fail; | |
23528 | } | |
15afbcd0 | 23529 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23530 | return resultobj; |
23531 | fail: | |
23532 | return NULL; | |
23533 | } | |
23534 | ||
23535 | ||
23536 | static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23537 | PyObject *resultobj; | |
23538 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23539 | wxDateSpan *result; | |
23540 | PyObject * obj0 = 0 ; | |
23541 | char *kwnames[] = { | |
23542 | (char *) "self", NULL | |
23543 | }; | |
23544 | ||
23545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23548 | { |
23549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23550 | { | |
23551 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
23552 | result = (wxDateSpan *) &_result_ref; | |
23553 | } | |
23554 | ||
23555 | wxPyEndAllowThreads(__tstate); | |
23556 | if (PyErr_Occurred()) SWIG_fail; | |
23557 | } | |
15afbcd0 | 23558 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23559 | return resultobj; |
23560 | fail: | |
23561 | return NULL; | |
23562 | } | |
23563 | ||
23564 | ||
23565 | static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23566 | PyObject *resultobj; | |
23567 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23568 | int arg2 ; | |
23569 | wxDateSpan *result; | |
23570 | PyObject * obj0 = 0 ; | |
994141e6 | 23571 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23572 | char *kwnames[] = { |
23573 | (char *) "self",(char *) "factor", NULL | |
23574 | }; | |
23575 | ||
994141e6 | 23576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23579 | arg2 = (int) SWIG_AsInt(obj1); | |
23580 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23581 | { |
23582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23583 | { | |
23584 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
23585 | result = (wxDateSpan *) &_result_ref; | |
23586 | } | |
23587 | ||
23588 | wxPyEndAllowThreads(__tstate); | |
23589 | if (PyErr_Occurred()) SWIG_fail; | |
23590 | } | |
15afbcd0 | 23591 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23592 | return resultobj; |
23593 | fail: | |
23594 | return NULL; | |
23595 | } | |
23596 | ||
23597 | ||
23598 | static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23599 | PyObject *resultobj; | |
23600 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23601 | wxDateSpan *arg2 = 0 ; | |
23602 | wxDateSpan *result; | |
23603 | PyObject * obj0 = 0 ; | |
23604 | PyObject * obj1 = 0 ; | |
23605 | char *kwnames[] = { | |
23606 | (char *) "self",(char *) "other", NULL | |
23607 | }; | |
23608 | ||
23609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23612 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23613 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23614 | SWIG_fail; | |
d14a1e28 | 23615 | if (arg2 == NULL) { |
15afbcd0 RD |
23616 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23617 | SWIG_fail; | |
d14a1e28 RD |
23618 | } |
23619 | { | |
23620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23621 | { | |
23622 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
23623 | result = (wxDateSpan *) &_result_ref; | |
23624 | } | |
23625 | ||
23626 | wxPyEndAllowThreads(__tstate); | |
23627 | if (PyErr_Occurred()) SWIG_fail; | |
23628 | } | |
15afbcd0 | 23629 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23630 | return resultobj; |
23631 | fail: | |
23632 | return NULL; | |
23633 | } | |
23634 | ||
23635 | ||
23636 | static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23637 | PyObject *resultobj; | |
23638 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23639 | wxDateSpan *arg2 = 0 ; | |
23640 | wxDateSpan *result; | |
23641 | PyObject * obj0 = 0 ; | |
23642 | PyObject * obj1 = 0 ; | |
23643 | char *kwnames[] = { | |
23644 | (char *) "self",(char *) "other", NULL | |
23645 | }; | |
23646 | ||
23647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23650 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23651 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23652 | SWIG_fail; | |
d14a1e28 | 23653 | if (arg2 == NULL) { |
15afbcd0 RD |
23654 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23655 | SWIG_fail; | |
d14a1e28 RD |
23656 | } |
23657 | { | |
23658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23659 | { | |
23660 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
23661 | result = (wxDateSpan *) &_result_ref; | |
23662 | } | |
23663 | ||
23664 | wxPyEndAllowThreads(__tstate); | |
23665 | if (PyErr_Occurred()) SWIG_fail; | |
23666 | } | |
15afbcd0 | 23667 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23668 | return resultobj; |
23669 | fail: | |
23670 | return NULL; | |
23671 | } | |
23672 | ||
23673 | ||
23674 | static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23675 | PyObject *resultobj; | |
23676 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23677 | wxDateSpan *result; | |
23678 | PyObject * obj0 = 0 ; | |
23679 | char *kwnames[] = { | |
23680 | (char *) "self", NULL | |
23681 | }; | |
23682 | ||
23683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23686 | { |
23687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23688 | { | |
23689 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
23690 | result = (wxDateSpan *) &_result_ref; | |
23691 | } | |
23692 | ||
23693 | wxPyEndAllowThreads(__tstate); | |
23694 | if (PyErr_Occurred()) SWIG_fail; | |
23695 | } | |
15afbcd0 | 23696 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23697 | return resultobj; |
23698 | fail: | |
23699 | return NULL; | |
23700 | } | |
23701 | ||
23702 | ||
23703 | static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23704 | PyObject *resultobj; | |
23705 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23706 | int arg2 ; | |
23707 | wxDateSpan *result; | |
23708 | PyObject * obj0 = 0 ; | |
994141e6 | 23709 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23710 | char *kwnames[] = { |
23711 | (char *) "self",(char *) "factor", NULL | |
23712 | }; | |
23713 | ||
994141e6 | 23714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23717 | arg2 = (int) SWIG_AsInt(obj1); | |
23718 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23719 | { |
23720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23721 | { | |
23722 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
23723 | result = (wxDateSpan *) &_result_ref; | |
23724 | } | |
23725 | ||
23726 | wxPyEndAllowThreads(__tstate); | |
23727 | if (PyErr_Occurred()) SWIG_fail; | |
23728 | } | |
15afbcd0 | 23729 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23730 | return resultobj; |
23731 | fail: | |
23732 | return NULL; | |
23733 | } | |
23734 | ||
23735 | ||
23736 | static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23737 | PyObject *resultobj; | |
23738 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23739 | wxDateSpan *arg2 = 0 ; | |
23740 | wxDateSpan result; | |
23741 | PyObject * obj0 = 0 ; | |
23742 | PyObject * obj1 = 0 ; | |
23743 | char *kwnames[] = { | |
23744 | (char *) "self",(char *) "other", NULL | |
23745 | }; | |
23746 | ||
23747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23750 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23751 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23752 | SWIG_fail; | |
d14a1e28 | 23753 | if (arg2 == NULL) { |
15afbcd0 RD |
23754 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23755 | SWIG_fail; | |
d14a1e28 RD |
23756 | } |
23757 | { | |
23758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23759 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
23760 | ||
23761 | wxPyEndAllowThreads(__tstate); | |
23762 | if (PyErr_Occurred()) SWIG_fail; | |
23763 | } | |
23764 | { | |
23765 | wxDateSpan * resultptr; | |
23766 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23767 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23768 | } |
23769 | return resultobj; | |
23770 | fail: | |
23771 | return NULL; | |
23772 | } | |
23773 | ||
23774 | ||
23775 | static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23776 | PyObject *resultobj; | |
23777 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23778 | wxDateSpan *arg2 = 0 ; | |
23779 | wxDateSpan result; | |
23780 | PyObject * obj0 = 0 ; | |
23781 | PyObject * obj1 = 0 ; | |
23782 | char *kwnames[] = { | |
23783 | (char *) "self",(char *) "other", NULL | |
23784 | }; | |
23785 | ||
23786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23789 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23790 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23791 | SWIG_fail; | |
d14a1e28 | 23792 | if (arg2 == NULL) { |
15afbcd0 RD |
23793 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23794 | SWIG_fail; | |
d14a1e28 RD |
23795 | } |
23796 | { | |
23797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23798 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
23799 | ||
23800 | wxPyEndAllowThreads(__tstate); | |
23801 | if (PyErr_Occurred()) SWIG_fail; | |
23802 | } | |
23803 | { | |
23804 | wxDateSpan * resultptr; | |
23805 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23806 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23807 | } |
23808 | return resultobj; | |
23809 | fail: | |
23810 | return NULL; | |
23811 | } | |
23812 | ||
23813 | ||
23814 | static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23815 | PyObject *resultobj; | |
23816 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23817 | int arg2 ; | |
23818 | wxDateSpan result; | |
23819 | PyObject * obj0 = 0 ; | |
994141e6 | 23820 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23821 | char *kwnames[] = { |
23822 | (char *) "self",(char *) "n", NULL | |
23823 | }; | |
23824 | ||
994141e6 | 23825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23828 | arg2 = (int) SWIG_AsInt(obj1); | |
23829 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23830 | { |
23831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23832 | result = wxDateSpan___mul__(arg1,arg2); | |
23833 | ||
23834 | wxPyEndAllowThreads(__tstate); | |
23835 | if (PyErr_Occurred()) SWIG_fail; | |
23836 | } | |
23837 | { | |
23838 | wxDateSpan * resultptr; | |
23839 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23840 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23841 | } |
23842 | return resultobj; | |
23843 | fail: | |
23844 | return NULL; | |
23845 | } | |
23846 | ||
23847 | ||
23848 | static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23849 | PyObject *resultobj; | |
23850 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23851 | int arg2 ; | |
23852 | wxDateSpan result; | |
23853 | PyObject * obj0 = 0 ; | |
994141e6 | 23854 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23855 | char *kwnames[] = { |
23856 | (char *) "self",(char *) "n", NULL | |
23857 | }; | |
23858 | ||
994141e6 | 23859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23862 | arg2 = (int) SWIG_AsInt(obj1); | |
23863 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23864 | { |
23865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23866 | result = wxDateSpan___rmul__(arg1,arg2); | |
23867 | ||
23868 | wxPyEndAllowThreads(__tstate); | |
23869 | if (PyErr_Occurred()) SWIG_fail; | |
23870 | } | |
23871 | { | |
23872 | wxDateSpan * resultptr; | |
23873 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23874 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23875 | } |
23876 | return resultobj; | |
23877 | fail: | |
23878 | return NULL; | |
23879 | } | |
23880 | ||
23881 | ||
23882 | static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23883 | PyObject *resultobj; | |
23884 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22faec7d | 23885 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; |
d14a1e28 RD |
23886 | bool result; |
23887 | PyObject * obj0 = 0 ; | |
23888 | PyObject * obj1 = 0 ; | |
23889 | char *kwnames[] = { | |
23890 | (char *) "self",(char *) "other", NULL | |
23891 | }; | |
23892 | ||
23893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23896 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23898 | { |
23899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 23900 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2); |
d14a1e28 RD |
23901 | |
23902 | wxPyEndAllowThreads(__tstate); | |
23903 | if (PyErr_Occurred()) SWIG_fail; | |
23904 | } | |
4f89f6a3 RD |
23905 | { |
23906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23907 | } | |
d14a1e28 RD |
23908 | return resultobj; |
23909 | fail: | |
23910 | return NULL; | |
23911 | } | |
23912 | ||
23913 | ||
23914 | static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23915 | PyObject *resultobj; | |
23916 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22faec7d | 23917 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; |
d14a1e28 RD |
23918 | bool result; |
23919 | PyObject * obj0 = 0 ; | |
23920 | PyObject * obj1 = 0 ; | |
23921 | char *kwnames[] = { | |
23922 | (char *) "self",(char *) "other", NULL | |
23923 | }; | |
23924 | ||
23925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23928 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23930 | { |
23931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 23932 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2); |
d14a1e28 RD |
23933 | |
23934 | wxPyEndAllowThreads(__tstate); | |
23935 | if (PyErr_Occurred()) SWIG_fail; | |
23936 | } | |
4f89f6a3 RD |
23937 | { |
23938 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23939 | } | |
d14a1e28 RD |
23940 | return resultobj; |
23941 | fail: | |
23942 | return NULL; | |
23943 | } | |
23944 | ||
23945 | ||
23946 | static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) { | |
23947 | PyObject *obj; | |
23948 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23949 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
23950 | Py_INCREF(obj); | |
23951 | return Py_BuildValue((char *)""); | |
23952 | } | |
23953 | static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23954 | PyObject *resultobj; | |
23955 | long result; | |
23956 | char *kwnames[] = { | |
23957 | NULL | |
23958 | }; | |
23959 | ||
23960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
23961 | { | |
23962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23963 | result = (long)wxGetLocalTime(); | |
23964 | ||
23965 | wxPyEndAllowThreads(__tstate); | |
23966 | if (PyErr_Occurred()) SWIG_fail; | |
23967 | } | |
15afbcd0 | 23968 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23969 | return resultobj; |
23970 | fail: | |
23971 | return NULL; | |
23972 | } | |
23973 | ||
23974 | ||
23975 | static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23976 | PyObject *resultobj; | |
23977 | long result; | |
23978 | char *kwnames[] = { | |
23979 | NULL | |
23980 | }; | |
23981 | ||
23982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
23983 | { | |
23984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23985 | result = (long)wxGetUTCTime(); | |
23986 | ||
23987 | wxPyEndAllowThreads(__tstate); | |
23988 | if (PyErr_Occurred()) SWIG_fail; | |
23989 | } | |
15afbcd0 | 23990 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23991 | return resultobj; |
23992 | fail: | |
23993 | return NULL; | |
23994 | } | |
23995 | ||
23996 | ||
23997 | static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23998 | PyObject *resultobj; | |
23999 | long result; | |
24000 | char *kwnames[] = { | |
24001 | NULL | |
24002 | }; | |
24003 | ||
24004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
24005 | { | |
24006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24007 | result = (long)wxGetCurrentTime(); | |
24008 | ||
24009 | wxPyEndAllowThreads(__tstate); | |
24010 | if (PyErr_Occurred()) SWIG_fail; | |
24011 | } | |
15afbcd0 | 24012 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
24013 | return resultobj; |
24014 | fail: | |
24015 | return NULL; | |
24016 | } | |
24017 | ||
24018 | ||
24019 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24020 | PyObject *resultobj; | |
24021 | wxLongLong result; | |
24022 | char *kwnames[] = { | |
24023 | NULL | |
24024 | }; | |
24025 | ||
24026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
24027 | { | |
24028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24029 | result = wxGetLocalTimeMillis(); | |
24030 | ||
24031 | wxPyEndAllowThreads(__tstate); | |
24032 | if (PyErr_Occurred()) SWIG_fail; | |
24033 | } | |
24034 | { | |
24035 | PyObject *hi, *lo, *shifter, *shifted; | |
24036 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
24037 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
24038 | shifter = PyLong_FromLong(32); | |
24039 | shifted = PyNumber_Lshift(hi, shifter); | |
24040 | resultobj = PyNumber_Or(shifted, lo); | |
24041 | Py_DECREF(hi); | |
24042 | Py_DECREF(lo); | |
24043 | Py_DECREF(shifter); | |
24044 | Py_DECREF(shifted); | |
24045 | } | |
24046 | return resultobj; | |
24047 | fail: | |
24048 | return NULL; | |
24049 | } | |
24050 | ||
24051 | ||
98e665d3 RD |
24052 | static int _wrap_DefaultDateTime_set(PyObject *_val) { |
24053 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); | |
24054 | return 1; | |
24055 | } | |
24056 | ||
24057 | ||
24058 | static PyObject *_wrap_DefaultDateTime_get() { | |
24059 | PyObject *pyobj; | |
24060 | ||
15afbcd0 | 24061 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0); |
98e665d3 RD |
24062 | return pyobj; |
24063 | } | |
24064 | ||
24065 | ||
d14a1e28 RD |
24066 | static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { |
24067 | PyObject *resultobj; | |
24068 | int arg1 ; | |
24069 | wxDataFormat *result; | |
994141e6 | 24070 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
24071 | char *kwnames[] = { |
24072 | (char *) "type", NULL | |
24073 | }; | |
24074 | ||
994141e6 | 24075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
24076 | arg1 = (wxDataFormatId) SWIG_AsInt(obj0); |
24077 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24078 | { |
24079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24080 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
24081 | ||
24082 | wxPyEndAllowThreads(__tstate); | |
24083 | if (PyErr_Occurred()) SWIG_fail; | |
24084 | } | |
15afbcd0 | 24085 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
24086 | return resultobj; |
24087 | fail: | |
24088 | return NULL; | |
24089 | } | |
24090 | ||
24091 | ||
24092 | static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24093 | PyObject *resultobj; | |
24094 | wxString *arg1 = 0 ; | |
24095 | wxDataFormat *result; | |
e811c8ce | 24096 | bool temp1 = False ; |
d14a1e28 RD |
24097 | PyObject * obj0 = 0 ; |
24098 | char *kwnames[] = { | |
24099 | (char *) "format", NULL | |
24100 | }; | |
24101 | ||
24102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
24103 | { | |
24104 | arg1 = wxString_in_helper(obj0); | |
24105 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 24106 | temp1 = True; |
d14a1e28 RD |
24107 | } |
24108 | { | |
24109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24110 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
24111 | ||
24112 | wxPyEndAllowThreads(__tstate); | |
24113 | if (PyErr_Occurred()) SWIG_fail; | |
24114 | } | |
15afbcd0 | 24115 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
24116 | { |
24117 | if (temp1) | |
24118 | delete arg1; | |
24119 | } | |
24120 | return resultobj; | |
24121 | fail: | |
24122 | { | |
24123 | if (temp1) | |
24124 | delete arg1; | |
24125 | } | |
24126 | return NULL; | |
24127 | } | |
24128 | ||
24129 | ||
24130 | static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24131 | PyObject *resultobj; | |
24132 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24133 | PyObject * obj0 = 0 ; | |
24134 | char *kwnames[] = { | |
24135 | (char *) "self", NULL | |
24136 | }; | |
24137 | ||
24138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24141 | { |
24142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24143 | delete arg1; | |
24144 | ||
24145 | wxPyEndAllowThreads(__tstate); | |
24146 | if (PyErr_Occurred()) SWIG_fail; | |
24147 | } | |
24148 | Py_INCREF(Py_None); resultobj = Py_None; | |
24149 | return resultobj; | |
24150 | fail: | |
24151 | return NULL; | |
24152 | } | |
24153 | ||
24154 | ||
24155 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) { | |
24156 | PyObject *resultobj; | |
24157 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24158 | int arg2 ; | |
24159 | bool result; | |
24160 | PyObject * obj0 = 0 ; | |
994141e6 | 24161 | PyObject * obj1 = 0 ; |
d14a1e28 | 24162 | |
994141e6 | 24163 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24166 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
24167 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24168 | { |
24169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db914595 | 24170 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); |
d14a1e28 RD |
24171 | |
24172 | wxPyEndAllowThreads(__tstate); | |
24173 | if (PyErr_Occurred()) SWIG_fail; | |
24174 | } | |
4f89f6a3 RD |
24175 | { |
24176 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24177 | } | |
d14a1e28 RD |
24178 | return resultobj; |
24179 | fail: | |
24180 | return NULL; | |
24181 | } | |
24182 | ||
24183 | ||
24184 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) { | |
24185 | PyObject *resultobj; | |
24186 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24187 | int arg2 ; | |
24188 | bool result; | |
24189 | PyObject * obj0 = 0 ; | |
994141e6 | 24190 | PyObject * obj1 = 0 ; |
d14a1e28 | 24191 | |
994141e6 | 24192 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24195 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
24196 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24197 | { |
24198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db914595 | 24199 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); |
d14a1e28 RD |
24200 | |
24201 | wxPyEndAllowThreads(__tstate); | |
24202 | if (PyErr_Occurred()) SWIG_fail; | |
24203 | } | |
4f89f6a3 RD |
24204 | { |
24205 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24206 | } | |
d14a1e28 RD |
24207 | return resultobj; |
24208 | fail: | |
24209 | return NULL; | |
24210 | } | |
24211 | ||
24212 | ||
24213 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) { | |
24214 | PyObject *resultobj; | |
24215 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24216 | wxDataFormat *arg2 = 0 ; | |
24217 | bool result; | |
24218 | PyObject * obj0 = 0 ; | |
24219 | PyObject * obj1 = 0 ; | |
24220 | ||
24221 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24224 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24225 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24226 | SWIG_fail; | |
d14a1e28 | 24227 | if (arg2 == NULL) { |
15afbcd0 RD |
24228 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24229 | SWIG_fail; | |
d14a1e28 RD |
24230 | } |
24231 | { | |
24232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24233 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
24234 | ||
24235 | wxPyEndAllowThreads(__tstate); | |
24236 | if (PyErr_Occurred()) SWIG_fail; | |
24237 | } | |
4f89f6a3 RD |
24238 | { |
24239 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24240 | } | |
d14a1e28 RD |
24241 | return resultobj; |
24242 | fail: | |
24243 | return NULL; | |
24244 | } | |
24245 | ||
24246 | ||
24247 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
24248 | int argc; | |
24249 | PyObject *argv[3]; | |
24250 | int ii; | |
24251 | ||
24252 | argc = PyObject_Length(args); | |
24253 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24254 | argv[ii] = PyTuple_GetItem(args,ii); | |
24255 | } | |
24256 | if (argc == 2) { | |
24257 | int _v; | |
24258 | { | |
24259 | void *ptr; | |
15afbcd0 | 24260 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24261 | _v = 0; |
24262 | PyErr_Clear(); | |
24263 | } else { | |
24264 | _v = 1; | |
24265 | } | |
24266 | } | |
24267 | if (_v) { | |
24268 | { | |
24269 | void *ptr; | |
15afbcd0 | 24270 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24271 | _v = 0; |
24272 | PyErr_Clear(); | |
24273 | } else { | |
24274 | _v = 1; | |
24275 | } | |
24276 | } | |
24277 | if (_v) { | |
24278 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
24279 | } | |
24280 | } | |
24281 | } | |
24282 | if (argc == 2) { | |
24283 | int _v; | |
24284 | { | |
24285 | void *ptr; | |
15afbcd0 | 24286 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24287 | _v = 0; |
24288 | PyErr_Clear(); | |
24289 | } else { | |
24290 | _v = 1; | |
24291 | } | |
24292 | } | |
24293 | if (_v) { | |
15afbcd0 | 24294 | _v = SWIG_CheckInt(argv[1]); |
d14a1e28 RD |
24295 | if (_v) { |
24296 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
24297 | } | |
24298 | } | |
24299 | } | |
24300 | ||
24301 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
24302 | return NULL; | |
24303 | } | |
24304 | ||
24305 | ||
24306 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) { | |
24307 | PyObject *resultobj; | |
24308 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24309 | wxDataFormat *arg2 = 0 ; | |
24310 | bool result; | |
24311 | PyObject * obj0 = 0 ; | |
24312 | PyObject * obj1 = 0 ; | |
24313 | ||
24314 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24317 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24318 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24319 | SWIG_fail; | |
d14a1e28 | 24320 | if (arg2 == NULL) { |
15afbcd0 RD |
24321 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24322 | SWIG_fail; | |
d14a1e28 RD |
24323 | } |
24324 | { | |
24325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24326 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
24327 | ||
24328 | wxPyEndAllowThreads(__tstate); | |
24329 | if (PyErr_Occurred()) SWIG_fail; | |
24330 | } | |
4f89f6a3 RD |
24331 | { |
24332 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24333 | } | |
d14a1e28 RD |
24334 | return resultobj; |
24335 | fail: | |
24336 | return NULL; | |
24337 | } | |
24338 | ||
24339 | ||
24340 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
24341 | int argc; | |
24342 | PyObject *argv[3]; | |
24343 | int ii; | |
24344 | ||
24345 | argc = PyObject_Length(args); | |
24346 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24347 | argv[ii] = PyTuple_GetItem(args,ii); | |
24348 | } | |
24349 | if (argc == 2) { | |
24350 | int _v; | |
24351 | { | |
24352 | void *ptr; | |
15afbcd0 | 24353 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24354 | _v = 0; |
24355 | PyErr_Clear(); | |
24356 | } else { | |
24357 | _v = 1; | |
24358 | } | |
24359 | } | |
24360 | if (_v) { | |
24361 | { | |
24362 | void *ptr; | |
15afbcd0 | 24363 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24364 | _v = 0; |
24365 | PyErr_Clear(); | |
24366 | } else { | |
24367 | _v = 1; | |
24368 | } | |
24369 | } | |
24370 | if (_v) { | |
24371 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
24372 | } | |
24373 | } | |
24374 | } | |
24375 | if (argc == 2) { | |
24376 | int _v; | |
24377 | { | |
24378 | void *ptr; | |
15afbcd0 | 24379 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24380 | _v = 0; |
24381 | PyErr_Clear(); | |
24382 | } else { | |
24383 | _v = 1; | |
24384 | } | |
24385 | } | |
24386 | if (_v) { | |
15afbcd0 | 24387 | _v = SWIG_CheckInt(argv[1]); |
d14a1e28 RD |
24388 | if (_v) { |
24389 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
24390 | } | |
24391 | } | |
24392 | } | |
24393 | ||
24394 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
24395 | return NULL; | |
24396 | } | |
24397 | ||
24398 | ||
24399 | static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24400 | PyObject *resultobj; | |
24401 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24402 | int arg2 ; | |
24403 | PyObject * obj0 = 0 ; | |
994141e6 | 24404 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24405 | char *kwnames[] = { |
24406 | (char *) "self",(char *) "format", NULL | |
24407 | }; | |
24408 | ||
994141e6 | 24409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24412 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
24413 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24414 | { |
24415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24416 | (arg1)->SetType((wxDataFormatId )arg2); | |
24417 | ||
24418 | wxPyEndAllowThreads(__tstate); | |
24419 | if (PyErr_Occurred()) SWIG_fail; | |
24420 | } | |
24421 | Py_INCREF(Py_None); resultobj = Py_None; | |
24422 | return resultobj; | |
24423 | fail: | |
24424 | return NULL; | |
24425 | } | |
24426 | ||
24427 | ||
24428 | static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24429 | PyObject *resultobj; | |
24430 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24431 | int result; | |
24432 | PyObject * obj0 = 0 ; | |
24433 | char *kwnames[] = { | |
24434 | (char *) "self", NULL | |
24435 | }; | |
24436 | ||
24437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24440 | { |
24441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24442 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
24443 | ||
24444 | wxPyEndAllowThreads(__tstate); | |
24445 | if (PyErr_Occurred()) SWIG_fail; | |
24446 | } | |
15afbcd0 | 24447 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
24448 | return resultobj; |
24449 | fail: | |
24450 | return NULL; | |
24451 | } | |
24452 | ||
24453 | ||
24454 | static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24455 | PyObject *resultobj; | |
24456 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24457 | wxString result; | |
24458 | PyObject * obj0 = 0 ; | |
24459 | char *kwnames[] = { | |
24460 | (char *) "self", NULL | |
24461 | }; | |
24462 | ||
24463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24466 | { |
24467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24468 | result = ((wxDataFormat const *)arg1)->GetId(); | |
24469 | ||
24470 | wxPyEndAllowThreads(__tstate); | |
24471 | if (PyErr_Occurred()) SWIG_fail; | |
24472 | } | |
24473 | { | |
24474 | #if wxUSE_UNICODE | |
24475 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24476 | #else | |
24477 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24478 | #endif | |
24479 | } | |
24480 | return resultobj; | |
24481 | fail: | |
24482 | return NULL; | |
24483 | } | |
24484 | ||
24485 | ||
24486 | static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24487 | PyObject *resultobj; | |
24488 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24489 | wxString *arg2 = 0 ; | |
e811c8ce | 24490 | bool temp2 = False ; |
d14a1e28 RD |
24491 | PyObject * obj0 = 0 ; |
24492 | PyObject * obj1 = 0 ; | |
24493 | char *kwnames[] = { | |
24494 | (char *) "self",(char *) "format", NULL | |
24495 | }; | |
24496 | ||
24497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24500 | { |
24501 | arg2 = wxString_in_helper(obj1); | |
24502 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24503 | temp2 = True; |
d14a1e28 RD |
24504 | } |
24505 | { | |
24506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24507 | (arg1)->SetId((wxString const &)*arg2); | |
24508 | ||
24509 | wxPyEndAllowThreads(__tstate); | |
24510 | if (PyErr_Occurred()) SWIG_fail; | |
24511 | } | |
24512 | Py_INCREF(Py_None); resultobj = Py_None; | |
24513 | { | |
24514 | if (temp2) | |
24515 | delete arg2; | |
24516 | } | |
24517 | return resultobj; | |
24518 | fail: | |
24519 | { | |
24520 | if (temp2) | |
24521 | delete arg2; | |
24522 | } | |
24523 | return NULL; | |
24524 | } | |
24525 | ||
24526 | ||
24527 | static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) { | |
24528 | PyObject *obj; | |
24529 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24530 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
24531 | Py_INCREF(obj); | |
24532 | return Py_BuildValue((char *)""); | |
24533 | } | |
24534 | static int _wrap_FormatInvalid_set(PyObject *_val) { | |
24535 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); | |
24536 | return 1; | |
24537 | } | |
24538 | ||
24539 | ||
24540 | static PyObject *_wrap_FormatInvalid_get() { | |
24541 | PyObject *pyobj; | |
24542 | ||
15afbcd0 | 24543 | pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0); |
d14a1e28 RD |
24544 | return pyobj; |
24545 | } | |
24546 | ||
24547 | ||
24548 | static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24549 | PyObject *resultobj; | |
24550 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24551 | PyObject * obj0 = 0 ; | |
24552 | char *kwnames[] = { | |
24553 | (char *) "self", NULL | |
24554 | }; | |
24555 | ||
24556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24559 | { |
24560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24561 | delete arg1; | |
24562 | ||
24563 | wxPyEndAllowThreads(__tstate); | |
24564 | if (PyErr_Occurred()) SWIG_fail; | |
24565 | } | |
24566 | Py_INCREF(Py_None); resultobj = Py_None; | |
24567 | return resultobj; | |
24568 | fail: | |
24569 | return NULL; | |
24570 | } | |
24571 | ||
24572 | ||
24573 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24574 | PyObject *resultobj; | |
24575 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24576 | int arg2 = (int) wxDataObject::Get ; | |
24577 | SwigValueWrapper< wxDataFormat > result; | |
24578 | PyObject * obj0 = 0 ; | |
994141e6 | 24579 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24580 | char *kwnames[] = { |
24581 | (char *) "self",(char *) "dir", NULL | |
24582 | }; | |
24583 | ||
994141e6 | 24584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 24587 | if (obj1) { |
15afbcd0 RD |
24588 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); |
24589 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24590 | } |
d14a1e28 RD |
24591 | { |
24592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24593 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
24594 | ||
24595 | wxPyEndAllowThreads(__tstate); | |
24596 | if (PyErr_Occurred()) SWIG_fail; | |
24597 | } | |
24598 | { | |
24599 | wxDataFormat * resultptr; | |
24600 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
15afbcd0 | 24601 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
24602 | } |
24603 | return resultobj; | |
24604 | fail: | |
24605 | return NULL; | |
24606 | } | |
24607 | ||
24608 | ||
24609 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24610 | PyObject *resultobj; | |
24611 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24612 | int arg2 = (int) wxDataObject::Get ; | |
24613 | size_t result; | |
24614 | PyObject * obj0 = 0 ; | |
994141e6 | 24615 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24616 | char *kwnames[] = { |
24617 | (char *) "self",(char *) "dir", NULL | |
24618 | }; | |
24619 | ||
994141e6 | 24620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 24623 | if (obj1) { |
15afbcd0 RD |
24624 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); |
24625 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24626 | } |
d14a1e28 RD |
24627 | { |
24628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24629 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
24630 | ||
24631 | wxPyEndAllowThreads(__tstate); | |
24632 | if (PyErr_Occurred()) SWIG_fail; | |
24633 | } | |
15afbcd0 | 24634 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24635 | return resultobj; |
24636 | fail: | |
24637 | return NULL; | |
24638 | } | |
24639 | ||
24640 | ||
24641 | static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24642 | PyObject *resultobj; | |
24643 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24644 | wxDataFormat *arg2 = 0 ; | |
24645 | int arg3 = (int) wxDataObject::Get ; | |
24646 | bool result; | |
24647 | PyObject * obj0 = 0 ; | |
24648 | PyObject * obj1 = 0 ; | |
994141e6 | 24649 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24650 | char *kwnames[] = { |
24651 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
24652 | }; | |
24653 | ||
994141e6 | 24654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
24655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24657 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24658 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24659 | SWIG_fail; | |
d14a1e28 | 24660 | if (arg2 == NULL) { |
15afbcd0 RD |
24661 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24662 | SWIG_fail; | |
d14a1e28 | 24663 | } |
994141e6 | 24664 | if (obj2) { |
15afbcd0 RD |
24665 | arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2); |
24666 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24667 | } |
d14a1e28 RD |
24668 | { |
24669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24670 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
24671 | ||
24672 | wxPyEndAllowThreads(__tstate); | |
24673 | if (PyErr_Occurred()) SWIG_fail; | |
24674 | } | |
4f89f6a3 RD |
24675 | { |
24676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24677 | } | |
d14a1e28 RD |
24678 | return resultobj; |
24679 | fail: | |
24680 | return NULL; | |
24681 | } | |
24682 | ||
24683 | ||
24684 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24685 | PyObject *resultobj; | |
24686 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24687 | wxDataFormat *arg2 = 0 ; | |
24688 | size_t result; | |
24689 | PyObject * obj0 = 0 ; | |
24690 | PyObject * obj1 = 0 ; | |
24691 | char *kwnames[] = { | |
24692 | (char *) "self",(char *) "format", NULL | |
24693 | }; | |
24694 | ||
24695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24698 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24699 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24700 | SWIG_fail; | |
d14a1e28 | 24701 | if (arg2 == NULL) { |
15afbcd0 RD |
24702 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24703 | SWIG_fail; | |
d14a1e28 RD |
24704 | } |
24705 | { | |
24706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24707 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
24708 | ||
24709 | wxPyEndAllowThreads(__tstate); | |
24710 | if (PyErr_Occurred()) SWIG_fail; | |
24711 | } | |
15afbcd0 | 24712 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24713 | return resultobj; |
24714 | fail: | |
24715 | return NULL; | |
24716 | } | |
24717 | ||
24718 | ||
24719 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24720 | PyObject *resultobj; | |
24721 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
1a10c483 RD |
24722 | int arg2 = (int) wxDataObject::Get ; |
24723 | PyObject *result; | |
d14a1e28 RD |
24724 | PyObject * obj0 = 0 ; |
24725 | PyObject * obj1 = 0 ; | |
24726 | char *kwnames[] = { | |
1a10c483 | 24727 | (char *) "self",(char *) "dir", NULL |
d14a1e28 RD |
24728 | }; |
24729 | ||
1a10c483 | 24730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1a10c483 RD |
24733 | if (obj1) { |
24734 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); | |
15afbcd0 | 24735 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 24736 | } |
d14a1e28 RD |
24737 | { |
24738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1a10c483 | 24739 | result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2); |
d14a1e28 RD |
24740 | |
24741 | wxPyEndAllowThreads(__tstate); | |
24742 | if (PyErr_Occurred()) SWIG_fail; | |
24743 | } | |
1a10c483 | 24744 | resultobj = result; |
d14a1e28 RD |
24745 | return resultobj; |
24746 | fail: | |
24747 | return NULL; | |
24748 | } | |
24749 | ||
24750 | ||
24751 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24752 | PyObject *resultobj; | |
24753 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24754 | wxDataFormat *arg2 = 0 ; | |
1a10c483 | 24755 | PyObject *result; |
d14a1e28 RD |
24756 | PyObject * obj0 = 0 ; |
24757 | PyObject * obj1 = 0 ; | |
d14a1e28 | 24758 | char *kwnames[] = { |
1a10c483 | 24759 | (char *) "self",(char *) "format", NULL |
d14a1e28 RD |
24760 | }; |
24761 | ||
1a10c483 | 24762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24765 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24766 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24767 | SWIG_fail; | |
d14a1e28 | 24768 | if (arg2 == NULL) { |
15afbcd0 RD |
24769 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24770 | SWIG_fail; | |
d14a1e28 | 24771 | } |
d14a1e28 RD |
24772 | { |
24773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1a10c483 | 24774 | result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2); |
d14a1e28 RD |
24775 | |
24776 | wxPyEndAllowThreads(__tstate); | |
24777 | if (PyErr_Occurred()) SWIG_fail; | |
24778 | } | |
1a10c483 | 24779 | resultobj = result; |
d14a1e28 RD |
24780 | return resultobj; |
24781 | fail: | |
24782 | return NULL; | |
24783 | } | |
24784 | ||
24785 | ||
24786 | static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24787 | PyObject *resultobj; | |
24788 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24789 | wxDataFormat *arg2 = 0 ; | |
1a10c483 | 24790 | PyObject *arg3 = (PyObject *) 0 ; |
d14a1e28 RD |
24791 | bool result; |
24792 | PyObject * obj0 = 0 ; | |
24793 | PyObject * obj1 = 0 ; | |
24794 | PyObject * obj2 = 0 ; | |
d14a1e28 | 24795 | char *kwnames[] = { |
1a10c483 | 24796 | (char *) "self",(char *) "format",(char *) "data", NULL |
d14a1e28 RD |
24797 | }; |
24798 | ||
1a10c483 | 24799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
24800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24802 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24803 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24804 | SWIG_fail; | |
d14a1e28 | 24805 | if (arg2 == NULL) { |
15afbcd0 RD |
24806 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24807 | SWIG_fail; | |
a41e16b6 | 24808 | } |
1a10c483 | 24809 | arg3 = obj2; |
d14a1e28 RD |
24810 | { |
24811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1a10c483 | 24812 | result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3); |
d14a1e28 RD |
24813 | |
24814 | wxPyEndAllowThreads(__tstate); | |
24815 | if (PyErr_Occurred()) SWIG_fail; | |
24816 | } | |
4f89f6a3 RD |
24817 | { |
24818 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24819 | } | |
d14a1e28 RD |
24820 | return resultobj; |
24821 | fail: | |
24822 | return NULL; | |
24823 | } | |
24824 | ||
24825 | ||
24826 | static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) { | |
24827 | PyObject *obj; | |
24828 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24829 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
24830 | Py_INCREF(obj); | |
24831 | return Py_BuildValue((char *)""); | |
24832 | } | |
24833 | static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24834 | PyObject *resultobj; | |
24835 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24836 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24837 | wxDataObjectSimple *result; | |
24838 | PyObject * obj0 = 0 ; | |
24839 | char *kwnames[] = { | |
24840 | (char *) "format", NULL | |
24841 | }; | |
24842 | ||
24843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
24844 | if (obj0) { | |
15afbcd0 RD |
24845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24846 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24847 | SWIG_fail; | |
d14a1e28 | 24848 | if (arg1 == NULL) { |
15afbcd0 RD |
24849 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24850 | SWIG_fail; | |
d14a1e28 RD |
24851 | } |
24852 | } | |
24853 | { | |
24854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24855 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
24856 | ||
24857 | wxPyEndAllowThreads(__tstate); | |
24858 | if (PyErr_Occurred()) SWIG_fail; | |
24859 | } | |
15afbcd0 | 24860 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1); |
d14a1e28 RD |
24861 | return resultobj; |
24862 | fail: | |
24863 | return NULL; | |
24864 | } | |
24865 | ||
24866 | ||
24867 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24868 | PyObject *resultobj; | |
24869 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24870 | wxDataFormat *result; | |
24871 | PyObject * obj0 = 0 ; | |
24872 | char *kwnames[] = { | |
24873 | (char *) "self", NULL | |
24874 | }; | |
24875 | ||
24876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, |
24878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24879 | { |
24880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24881 | { | |
24882 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
24883 | result = (wxDataFormat *) &_result_ref; | |
24884 | } | |
24885 | ||
24886 | wxPyEndAllowThreads(__tstate); | |
24887 | if (PyErr_Occurred()) SWIG_fail; | |
24888 | } | |
15afbcd0 | 24889 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0); |
d14a1e28 RD |
24890 | return resultobj; |
24891 | fail: | |
24892 | return NULL; | |
24893 | } | |
24894 | ||
24895 | ||
24896 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24897 | PyObject *resultobj; | |
24898 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24899 | wxDataFormat *arg2 = 0 ; | |
24900 | PyObject * obj0 = 0 ; | |
24901 | PyObject * obj1 = 0 ; | |
24902 | char *kwnames[] = { | |
24903 | (char *) "self",(char *) "format", NULL | |
24904 | }; | |
24905 | ||
24906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, |
24908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24909 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24910 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24911 | SWIG_fail; | |
d14a1e28 | 24912 | if (arg2 == NULL) { |
15afbcd0 RD |
24913 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24914 | SWIG_fail; | |
d14a1e28 RD |
24915 | } |
24916 | { | |
24917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24918 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
24919 | ||
24920 | wxPyEndAllowThreads(__tstate); | |
24921 | if (PyErr_Occurred()) SWIG_fail; | |
24922 | } | |
24923 | Py_INCREF(Py_None); resultobj = Py_None; | |
24924 | return resultobj; | |
24925 | fail: | |
24926 | return NULL; | |
24927 | } | |
24928 | ||
24929 | ||
1a10c483 RD |
24930 | static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
24931 | PyObject *resultobj; | |
24932 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24933 | size_t result; | |
24934 | PyObject * obj0 = 0 ; | |
24935 | char *kwnames[] = { | |
24936 | (char *) "self", NULL | |
24937 | }; | |
24938 | ||
24939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail; | |
24940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24942 | { | |
24943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24944 | result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize(); | |
24945 | ||
24946 | wxPyEndAllowThreads(__tstate); | |
24947 | if (PyErr_Occurred()) SWIG_fail; | |
24948 | } | |
24949 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
24950 | return resultobj; | |
24951 | fail: | |
24952 | return NULL; | |
24953 | } | |
24954 | ||
24955 | ||
24956 | static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24957 | PyObject *resultobj; | |
24958 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24959 | PyObject *result; | |
24960 | PyObject * obj0 = 0 ; | |
24961 | char *kwnames[] = { | |
24962 | (char *) "self", NULL | |
24963 | }; | |
24964 | ||
24965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail; | |
24966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24968 | { | |
24969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24970 | result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1); | |
24971 | ||
24972 | wxPyEndAllowThreads(__tstate); | |
24973 | if (PyErr_Occurred()) SWIG_fail; | |
24974 | } | |
24975 | resultobj = result; | |
24976 | return resultobj; | |
24977 | fail: | |
24978 | return NULL; | |
24979 | } | |
24980 | ||
24981 | ||
24982 | static PyObject *_wrap_DataObjectSimple_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24983 | PyObject *resultobj; | |
24984 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24985 | PyObject *arg2 = (PyObject *) 0 ; | |
24986 | bool result; | |
24987 | PyObject * obj0 = 0 ; | |
24988 | PyObject * obj1 = 0 ; | |
24989 | char *kwnames[] = { | |
24990 | (char *) "self",(char *) "data", NULL | |
24991 | }; | |
24992 | ||
24993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail; | |
24994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24996 | arg2 = obj1; | |
24997 | { | |
24998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24999 | result = (bool)wxDataObjectSimple_SetData(arg1,arg2); | |
25000 | ||
25001 | wxPyEndAllowThreads(__tstate); | |
25002 | if (PyErr_Occurred()) SWIG_fail; | |
25003 | } | |
25004 | { | |
25005 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25006 | } | |
25007 | return resultobj; | |
25008 | fail: | |
25009 | return NULL; | |
25010 | } | |
25011 | ||
25012 | ||
d14a1e28 RD |
25013 | static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) { |
25014 | PyObject *obj; | |
25015 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25016 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
25017 | Py_INCREF(obj); | |
25018 | return Py_BuildValue((char *)""); | |
25019 | } | |
25020 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25021 | PyObject *resultobj; | |
25022 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25023 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25024 | wxPyDataObjectSimple *result; | |
25025 | PyObject * obj0 = 0 ; | |
25026 | char *kwnames[] = { | |
25027 | (char *) "format", NULL | |
25028 | }; | |
25029 | ||
25030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
25031 | if (obj0) { | |
15afbcd0 RD |
25032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
25033 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25034 | SWIG_fail; | |
d14a1e28 | 25035 | if (arg1 == NULL) { |
15afbcd0 RD |
25036 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25037 | SWIG_fail; | |
d14a1e28 RD |
25038 | } |
25039 | } | |
25040 | { | |
25041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25042 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
25043 | ||
25044 | wxPyEndAllowThreads(__tstate); | |
25045 | if (PyErr_Occurred()) SWIG_fail; | |
25046 | } | |
15afbcd0 | 25047 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1); |
d14a1e28 RD |
25048 | return resultobj; |
25049 | fail: | |
25050 | return NULL; | |
25051 | } | |
25052 | ||
25053 | ||
25054 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25055 | PyObject *resultobj; | |
25056 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
25057 | PyObject *arg2 = (PyObject *) 0 ; | |
25058 | PyObject *arg3 = (PyObject *) 0 ; | |
25059 | PyObject * obj0 = 0 ; | |
25060 | PyObject * obj1 = 0 ; | |
25061 | PyObject * obj2 = 0 ; | |
25062 | char *kwnames[] = { | |
25063 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25064 | }; | |
25065 | ||
25066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple, |
25068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25069 | arg2 = obj1; |
25070 | arg3 = obj2; | |
25071 | { | |
25072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25073 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25074 | ||
25075 | wxPyEndAllowThreads(__tstate); | |
25076 | if (PyErr_Occurred()) SWIG_fail; | |
25077 | } | |
25078 | Py_INCREF(Py_None); resultobj = Py_None; | |
25079 | return resultobj; | |
25080 | fail: | |
25081 | return NULL; | |
25082 | } | |
25083 | ||
25084 | ||
25085 | static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
25086 | PyObject *obj; | |
25087 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25088 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
25089 | Py_INCREF(obj); | |
25090 | return Py_BuildValue((char *)""); | |
25091 | } | |
25092 | static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25093 | PyObject *resultobj; | |
25094 | wxDataObjectComposite *result; | |
25095 | char *kwnames[] = { | |
25096 | NULL | |
25097 | }; | |
25098 | ||
25099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
25100 | { | |
25101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25102 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
25103 | ||
25104 | wxPyEndAllowThreads(__tstate); | |
25105 | if (PyErr_Occurred()) SWIG_fail; | |
25106 | } | |
15afbcd0 | 25107 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1); |
d14a1e28 RD |
25108 | return resultobj; |
25109 | fail: | |
25110 | return NULL; | |
25111 | } | |
25112 | ||
25113 | ||
25114 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25115 | PyObject *resultobj; | |
25116 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
25117 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
1a10c483 | 25118 | bool arg3 = (bool) False ; |
d14a1e28 RD |
25119 | PyObject * obj0 = 0 ; |
25120 | PyObject * obj1 = 0 ; | |
994141e6 | 25121 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
25122 | char *kwnames[] = { |
25123 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
25124 | }; | |
25125 | ||
994141e6 | 25126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
25127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite, |
25128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25129 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple, | |
25130 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
994141e6 | 25131 | if (obj2) { |
1a10c483 | 25132 | arg3 = (bool) SWIG_AsBool(obj2); |
15afbcd0 | 25133 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 25134 | } |
d14a1e28 RD |
25135 | { |
25136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25137 | (arg1)->Add(arg2,arg3); | |
25138 | ||
25139 | wxPyEndAllowThreads(__tstate); | |
25140 | if (PyErr_Occurred()) SWIG_fail; | |
25141 | } | |
25142 | Py_INCREF(Py_None); resultobj = Py_None; | |
25143 | return resultobj; | |
25144 | fail: | |
25145 | return NULL; | |
25146 | } | |
25147 | ||
25148 | ||
25149 | static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) { | |
25150 | PyObject *obj; | |
25151 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25152 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
25153 | Py_INCREF(obj); | |
25154 | return Py_BuildValue((char *)""); | |
25155 | } | |
25156 | static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25157 | PyObject *resultobj; | |
25158 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25159 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25160 | wxTextDataObject *result; | |
e811c8ce | 25161 | bool temp1 = False ; |
d14a1e28 RD |
25162 | PyObject * obj0 = 0 ; |
25163 | char *kwnames[] = { | |
25164 | (char *) "text", NULL | |
25165 | }; | |
25166 | ||
25167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
25168 | if (obj0) { | |
25169 | { | |
25170 | arg1 = wxString_in_helper(obj0); | |
25171 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 25172 | temp1 = True; |
d14a1e28 RD |
25173 | } |
25174 | } | |
25175 | { | |
25176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25177 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
25178 | ||
25179 | wxPyEndAllowThreads(__tstate); | |
25180 | if (PyErr_Occurred()) SWIG_fail; | |
25181 | } | |
15afbcd0 | 25182 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1); |
d14a1e28 RD |
25183 | { |
25184 | if (temp1) | |
25185 | delete arg1; | |
25186 | } | |
25187 | return resultobj; | |
25188 | fail: | |
25189 | { | |
25190 | if (temp1) | |
25191 | delete arg1; | |
25192 | } | |
25193 | return NULL; | |
25194 | } | |
25195 | ||
25196 | ||
25197 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25198 | PyObject *resultobj; | |
25199 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25200 | size_t result; | |
25201 | PyObject * obj0 = 0 ; | |
25202 | char *kwnames[] = { | |
25203 | (char *) "self", NULL | |
25204 | }; | |
25205 | ||
25206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, |
25208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25209 | { |
25210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25211 | result = (size_t)(arg1)->GetTextLength(); | |
25212 | ||
25213 | wxPyEndAllowThreads(__tstate); | |
25214 | if (PyErr_Occurred()) SWIG_fail; | |
25215 | } | |
15afbcd0 | 25216 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
25217 | return resultobj; |
25218 | fail: | |
25219 | return NULL; | |
25220 | } | |
25221 | ||
25222 | ||
25223 | static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25224 | PyObject *resultobj; | |
25225 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25226 | wxString result; | |
25227 | PyObject * obj0 = 0 ; | |
25228 | char *kwnames[] = { | |
25229 | (char *) "self", NULL | |
25230 | }; | |
25231 | ||
25232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, |
25234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25235 | { |
25236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25237 | result = (arg1)->GetText(); | |
25238 | ||
25239 | wxPyEndAllowThreads(__tstate); | |
25240 | if (PyErr_Occurred()) SWIG_fail; | |
25241 | } | |
25242 | { | |
25243 | #if wxUSE_UNICODE | |
25244 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25245 | #else | |
25246 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25247 | #endif | |
25248 | } | |
25249 | return resultobj; | |
25250 | fail: | |
25251 | return NULL; | |
25252 | } | |
25253 | ||
25254 | ||
25255 | static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25256 | PyObject *resultobj; | |
25257 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25258 | wxString *arg2 = 0 ; | |
e811c8ce | 25259 | bool temp2 = False ; |
d14a1e28 RD |
25260 | PyObject * obj0 = 0 ; |
25261 | PyObject * obj1 = 0 ; | |
25262 | char *kwnames[] = { | |
25263 | (char *) "self",(char *) "text", NULL | |
25264 | }; | |
25265 | ||
25266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, |
25268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25269 | { |
25270 | arg2 = wxString_in_helper(obj1); | |
25271 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 25272 | temp2 = True; |
d14a1e28 RD |
25273 | } |
25274 | { | |
25275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25276 | (arg1)->SetText((wxString const &)*arg2); | |
25277 | ||
25278 | wxPyEndAllowThreads(__tstate); | |
25279 | if (PyErr_Occurred()) SWIG_fail; | |
25280 | } | |
25281 | Py_INCREF(Py_None); resultobj = Py_None; | |
25282 | { | |
25283 | if (temp2) | |
25284 | delete arg2; | |
25285 | } | |
25286 | return resultobj; | |
25287 | fail: | |
25288 | { | |
25289 | if (temp2) | |
25290 | delete arg2; | |
25291 | } | |
25292 | return NULL; | |
25293 | } | |
25294 | ||
25295 | ||
25296 | static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) { | |
25297 | PyObject *obj; | |
25298 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25299 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
25300 | Py_INCREF(obj); | |
25301 | return Py_BuildValue((char *)""); | |
25302 | } | |
25303 | static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25304 | PyObject *resultobj; | |
25305 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25306 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25307 | wxPyTextDataObject *result; | |
e811c8ce | 25308 | bool temp1 = False ; |
d14a1e28 RD |
25309 | PyObject * obj0 = 0 ; |
25310 | char *kwnames[] = { | |
25311 | (char *) "text", NULL | |
25312 | }; | |
25313 | ||
25314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
25315 | if (obj0) { | |
25316 | { | |
25317 | arg1 = wxString_in_helper(obj0); | |
25318 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 25319 | temp1 = True; |
d14a1e28 RD |
25320 | } |
25321 | } | |
25322 | { | |
25323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25324 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
25325 | ||
25326 | wxPyEndAllowThreads(__tstate); | |
25327 | if (PyErr_Occurred()) SWIG_fail; | |
25328 | } | |
15afbcd0 | 25329 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1); |
d14a1e28 RD |
25330 | { |
25331 | if (temp1) | |
25332 | delete arg1; | |
25333 | } | |
25334 | return resultobj; | |
25335 | fail: | |
25336 | { | |
25337 | if (temp1) | |
25338 | delete arg1; | |
25339 | } | |
25340 | return NULL; | |
25341 | } | |
25342 | ||
25343 | ||
25344 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25345 | PyObject *resultobj; | |
25346 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
25347 | PyObject *arg2 = (PyObject *) 0 ; | |
25348 | PyObject *arg3 = (PyObject *) 0 ; | |
25349 | PyObject * obj0 = 0 ; | |
25350 | PyObject * obj1 = 0 ; | |
25351 | PyObject * obj2 = 0 ; | |
25352 | char *kwnames[] = { | |
25353 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25354 | }; | |
25355 | ||
25356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject, |
25358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25359 | arg2 = obj1; |
25360 | arg3 = obj2; | |
25361 | { | |
25362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25363 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25364 | ||
25365 | wxPyEndAllowThreads(__tstate); | |
25366 | if (PyErr_Occurred()) SWIG_fail; | |
25367 | } | |
25368 | Py_INCREF(Py_None); resultobj = Py_None; | |
25369 | return resultobj; | |
25370 | fail: | |
25371 | return NULL; | |
25372 | } | |
25373 | ||
25374 | ||
25375 | static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) { | |
25376 | PyObject *obj; | |
25377 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25378 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
25379 | Py_INCREF(obj); | |
25380 | return Py_BuildValue((char *)""); | |
25381 | } | |
25382 | static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25383 | PyObject *resultobj; | |
25384 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25385 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25386 | wxBitmapDataObject *result; | |
25387 | PyObject * obj0 = 0 ; | |
25388 | char *kwnames[] = { | |
25389 | (char *) "bitmap", NULL | |
25390 | }; | |
25391 | ||
25392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
25393 | if (obj0) { | |
15afbcd0 RD |
25394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
25395 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25396 | SWIG_fail; | |
d14a1e28 | 25397 | if (arg1 == NULL) { |
15afbcd0 RD |
25398 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25399 | SWIG_fail; | |
d14a1e28 RD |
25400 | } |
25401 | } | |
25402 | { | |
25403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25404 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
25405 | ||
25406 | wxPyEndAllowThreads(__tstate); | |
25407 | if (PyErr_Occurred()) SWIG_fail; | |
25408 | } | |
15afbcd0 | 25409 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1); |
d14a1e28 RD |
25410 | return resultobj; |
25411 | fail: | |
25412 | return NULL; | |
25413 | } | |
25414 | ||
25415 | ||
25416 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25417 | PyObject *resultobj; | |
25418 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25419 | wxBitmap result; | |
25420 | PyObject * obj0 = 0 ; | |
25421 | char *kwnames[] = { | |
25422 | (char *) "self", NULL | |
25423 | }; | |
25424 | ||
25425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, |
25427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25428 | { |
25429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25430 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
25431 | ||
25432 | wxPyEndAllowThreads(__tstate); | |
25433 | if (PyErr_Occurred()) SWIG_fail; | |
25434 | } | |
25435 | { | |
25436 | wxBitmap * resultptr; | |
25437 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 25438 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
25439 | } |
25440 | return resultobj; | |
25441 | fail: | |
25442 | return NULL; | |
25443 | } | |
25444 | ||
25445 | ||
25446 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25447 | PyObject *resultobj; | |
25448 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25449 | wxBitmap *arg2 = 0 ; | |
25450 | PyObject * obj0 = 0 ; | |
25451 | PyObject * obj1 = 0 ; | |
25452 | char *kwnames[] = { | |
25453 | (char *) "self",(char *) "bitmap", NULL | |
25454 | }; | |
25455 | ||
25456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, |
25458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25459 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
25460 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25461 | SWIG_fail; | |
d14a1e28 | 25462 | if (arg2 == NULL) { |
15afbcd0 RD |
25463 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25464 | SWIG_fail; | |
d14a1e28 RD |
25465 | } |
25466 | { | |
25467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25468 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
25469 | ||
25470 | wxPyEndAllowThreads(__tstate); | |
25471 | if (PyErr_Occurred()) SWIG_fail; | |
25472 | } | |
25473 | Py_INCREF(Py_None); resultobj = Py_None; | |
25474 | return resultobj; | |
25475 | fail: | |
25476 | return NULL; | |
25477 | } | |
25478 | ||
25479 | ||
25480 | static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
25481 | PyObject *obj; | |
25482 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25483 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
25484 | Py_INCREF(obj); | |
25485 | return Py_BuildValue((char *)""); | |
25486 | } | |
25487 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25488 | PyObject *resultobj; | |
25489 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25490 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25491 | wxPyBitmapDataObject *result; | |
25492 | PyObject * obj0 = 0 ; | |
25493 | char *kwnames[] = { | |
25494 | (char *) "bitmap", NULL | |
25495 | }; | |
25496 | ||
25497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
25498 | if (obj0) { | |
15afbcd0 RD |
25499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
25500 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25501 | SWIG_fail; | |
d14a1e28 | 25502 | if (arg1 == NULL) { |
15afbcd0 RD |
25503 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25504 | SWIG_fail; | |
d14a1e28 RD |
25505 | } |
25506 | } | |
25507 | { | |
25508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25509 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
25510 | ||
25511 | wxPyEndAllowThreads(__tstate); | |
25512 | if (PyErr_Occurred()) SWIG_fail; | |
25513 | } | |
15afbcd0 | 25514 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1); |
d14a1e28 RD |
25515 | return resultobj; |
25516 | fail: | |
25517 | return NULL; | |
25518 | } | |
25519 | ||
25520 | ||
25521 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25522 | PyObject *resultobj; | |
25523 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
25524 | PyObject *arg2 = (PyObject *) 0 ; | |
25525 | PyObject *arg3 = (PyObject *) 0 ; | |
25526 | PyObject * obj0 = 0 ; | |
25527 | PyObject * obj1 = 0 ; | |
25528 | PyObject * obj2 = 0 ; | |
25529 | char *kwnames[] = { | |
25530 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25531 | }; | |
25532 | ||
25533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject, |
25535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25536 | arg2 = obj1; |
25537 | arg3 = obj2; | |
25538 | { | |
25539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25540 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25541 | ||
25542 | wxPyEndAllowThreads(__tstate); | |
25543 | if (PyErr_Occurred()) SWIG_fail; | |
25544 | } | |
25545 | Py_INCREF(Py_None); resultobj = Py_None; | |
25546 | return resultobj; | |
25547 | fail: | |
25548 | return NULL; | |
25549 | } | |
25550 | ||
25551 | ||
25552 | static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
25553 | PyObject *obj; | |
25554 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25555 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
25556 | Py_INCREF(obj); | |
25557 | return Py_BuildValue((char *)""); | |
25558 | } | |
25559 | static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25560 | PyObject *resultobj; | |
25561 | wxFileDataObject *result; | |
25562 | char *kwnames[] = { | |
25563 | NULL | |
25564 | }; | |
25565 | ||
25566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
25567 | { | |
25568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25569 | result = (wxFileDataObject *)new wxFileDataObject(); | |
25570 | ||
25571 | wxPyEndAllowThreads(__tstate); | |
25572 | if (PyErr_Occurred()) SWIG_fail; | |
25573 | } | |
15afbcd0 | 25574 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1); |
d14a1e28 RD |
25575 | return resultobj; |
25576 | fail: | |
25577 | return NULL; | |
25578 | } | |
25579 | ||
25580 | ||
25581 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25582 | PyObject *resultobj; | |
25583 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25584 | wxArrayString *result; | |
25585 | PyObject * obj0 = 0 ; | |
25586 | char *kwnames[] = { | |
25587 | (char *) "self", NULL | |
25588 | }; | |
25589 | ||
25590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, |
25592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25593 | { |
25594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25595 | { | |
25596 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
25597 | result = (wxArrayString *) &_result_ref; | |
25598 | } | |
25599 | ||
25600 | wxPyEndAllowThreads(__tstate); | |
25601 | if (PyErr_Occurred()) SWIG_fail; | |
25602 | } | |
25603 | { | |
25604 | resultobj = wxArrayString2PyList_helper(*result); | |
25605 | } | |
25606 | return resultobj; | |
25607 | fail: | |
25608 | return NULL; | |
25609 | } | |
25610 | ||
25611 | ||
15afbcd0 RD |
25612 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
25613 | PyObject *resultobj; | |
25614 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25615 | wxString *arg2 = 0 ; | |
25616 | bool temp2 = False ; | |
25617 | PyObject * obj0 = 0 ; | |
25618 | PyObject * obj1 = 0 ; | |
25619 | char *kwnames[] = { | |
25620 | (char *) "self",(char *) "filename", NULL | |
25621 | }; | |
25622 | ||
25623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
25624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
25625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25626 | { | |
25627 | arg2 = wxString_in_helper(obj1); | |
25628 | if (arg2 == NULL) SWIG_fail; | |
25629 | temp2 = True; | |
25630 | } | |
25631 | { | |
25632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25633 | (arg1)->AddFile((wxString const &)*arg2); | |
25634 | ||
25635 | wxPyEndAllowThreads(__tstate); | |
25636 | if (PyErr_Occurred()) SWIG_fail; | |
25637 | } | |
25638 | Py_INCREF(Py_None); resultobj = Py_None; | |
25639 | { | |
25640 | if (temp2) | |
25641 | delete arg2; | |
25642 | } | |
25643 | return resultobj; | |
25644 | fail: | |
25645 | { | |
25646 | if (temp2) | |
25647 | delete arg2; | |
25648 | } | |
25649 | return NULL; | |
25650 | } | |
25651 | ||
25652 | ||
d14a1e28 RD |
25653 | static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) { |
25654 | PyObject *obj; | |
25655 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25656 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
25657 | Py_INCREF(obj); | |
25658 | return Py_BuildValue((char *)""); | |
25659 | } | |
25660 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25661 | PyObject *resultobj; | |
25662 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25663 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25664 | wxCustomDataObject *result; | |
25665 | PyObject * obj0 = 0 ; | |
25666 | char *kwnames[] = { | |
25667 | (char *) "format", NULL | |
25668 | }; | |
25669 | ||
25670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
25671 | if (obj0) { | |
15afbcd0 RD |
25672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
25673 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25674 | SWIG_fail; | |
d14a1e28 | 25675 | if (arg1 == NULL) { |
15afbcd0 RD |
25676 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25677 | SWIG_fail; | |
d14a1e28 RD |
25678 | } |
25679 | } | |
25680 | { | |
25681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25682 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
25683 | ||
25684 | wxPyEndAllowThreads(__tstate); | |
25685 | if (PyErr_Occurred()) SWIG_fail; | |
25686 | } | |
15afbcd0 | 25687 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); |
d14a1e28 RD |
25688 | return resultobj; |
25689 | fail: | |
25690 | return NULL; | |
25691 | } | |
25692 | ||
25693 | ||
d14a1e28 RD |
25694 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
25695 | PyObject *resultobj; | |
25696 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25697 | PyObject *arg2 = (PyObject *) 0 ; | |
25698 | bool result; | |
25699 | PyObject * obj0 = 0 ; | |
25700 | PyObject * obj1 = 0 ; | |
25701 | char *kwnames[] = { | |
25702 | (char *) "self",(char *) "data", NULL | |
25703 | }; | |
25704 | ||
25705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, |
25707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25708 | arg2 = obj1; |
25709 | { | |
25710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25711 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
25712 | ||
25713 | wxPyEndAllowThreads(__tstate); | |
25714 | if (PyErr_Occurred()) SWIG_fail; | |
25715 | } | |
4f89f6a3 RD |
25716 | { |
25717 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25718 | } | |
d14a1e28 RD |
25719 | return resultobj; |
25720 | fail: | |
25721 | return NULL; | |
25722 | } | |
25723 | ||
25724 | ||
25725 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25726 | PyObject *resultobj; | |
25727 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25728 | size_t result; | |
25729 | PyObject * obj0 = 0 ; | |
25730 | char *kwnames[] = { | |
25731 | (char *) "self", NULL | |
25732 | }; | |
25733 | ||
25734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, |
25736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25737 | { |
25738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25739 | result = (size_t)(arg1)->GetSize(); | |
25740 | ||
25741 | wxPyEndAllowThreads(__tstate); | |
25742 | if (PyErr_Occurred()) SWIG_fail; | |
25743 | } | |
15afbcd0 | 25744 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
25745 | return resultobj; |
25746 | fail: | |
25747 | return NULL; | |
25748 | } | |
25749 | ||
25750 | ||
25751 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25752 | PyObject *resultobj; | |
25753 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25754 | PyObject *result; | |
25755 | PyObject * obj0 = 0 ; | |
25756 | char *kwnames[] = { | |
25757 | (char *) "self", NULL | |
25758 | }; | |
25759 | ||
25760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, |
25762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25763 | { |
25764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25765 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
25766 | ||
25767 | wxPyEndAllowThreads(__tstate); | |
25768 | if (PyErr_Occurred()) SWIG_fail; | |
25769 | } | |
25770 | resultobj = result; | |
25771 | return resultobj; | |
25772 | fail: | |
25773 | return NULL; | |
25774 | } | |
25775 | ||
25776 | ||
25777 | static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) { | |
25778 | PyObject *obj; | |
25779 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25780 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
25781 | Py_INCREF(obj); | |
25782 | return Py_BuildValue((char *)""); | |
25783 | } | |
25784 | static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25785 | PyObject *resultobj; | |
25786 | wxURLDataObject *result; | |
25787 | char *kwnames[] = { | |
25788 | NULL | |
25789 | }; | |
25790 | ||
25791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
25792 | { | |
25793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25794 | result = (wxURLDataObject *)new wxURLDataObject(); | |
25795 | ||
25796 | wxPyEndAllowThreads(__tstate); | |
25797 | if (PyErr_Occurred()) SWIG_fail; | |
25798 | } | |
15afbcd0 | 25799 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1); |
d14a1e28 RD |
25800 | return resultobj; |
25801 | fail: | |
25802 | return NULL; | |
25803 | } | |
25804 | ||
25805 | ||
25806 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25807 | PyObject *resultobj; | |
25808 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25809 | wxString result; | |
25810 | PyObject * obj0 = 0 ; | |
25811 | char *kwnames[] = { | |
25812 | (char *) "self", NULL | |
25813 | }; | |
25814 | ||
25815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, |
25817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25818 | { |
25819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25820 | result = (arg1)->GetURL(); | |
25821 | ||
25822 | wxPyEndAllowThreads(__tstate); | |
25823 | if (PyErr_Occurred()) SWIG_fail; | |
25824 | } | |
25825 | { | |
25826 | #if wxUSE_UNICODE | |
25827 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25828 | #else | |
25829 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25830 | #endif | |
25831 | } | |
25832 | return resultobj; | |
25833 | fail: | |
25834 | return NULL; | |
25835 | } | |
25836 | ||
25837 | ||
25838 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25839 | PyObject *resultobj; | |
25840 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25841 | wxString *arg2 = 0 ; | |
e811c8ce | 25842 | bool temp2 = False ; |
d14a1e28 RD |
25843 | PyObject * obj0 = 0 ; |
25844 | PyObject * obj1 = 0 ; | |
25845 | char *kwnames[] = { | |
25846 | (char *) "self",(char *) "url", NULL | |
25847 | }; | |
25848 | ||
25849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, |
25851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25852 | { |
25853 | arg2 = wxString_in_helper(obj1); | |
25854 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 25855 | temp2 = True; |
d14a1e28 RD |
25856 | } |
25857 | { | |
25858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25859 | (arg1)->SetURL((wxString const &)*arg2); | |
25860 | ||
25861 | wxPyEndAllowThreads(__tstate); | |
25862 | if (PyErr_Occurred()) SWIG_fail; | |
25863 | } | |
25864 | Py_INCREF(Py_None); resultobj = Py_None; | |
25865 | { | |
25866 | if (temp2) | |
25867 | delete arg2; | |
25868 | } | |
25869 | return resultobj; | |
25870 | fail: | |
25871 | { | |
25872 | if (temp2) | |
25873 | delete arg2; | |
25874 | } | |
25875 | return NULL; | |
25876 | } | |
25877 | ||
25878 | ||
25879 | static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) { | |
25880 | PyObject *obj; | |
25881 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25882 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
25883 | Py_INCREF(obj); | |
25884 | return Py_BuildValue((char *)""); | |
25885 | } | |
25886 | static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25887 | PyObject *resultobj; | |
25888 | wxMetafileDataObject *result; | |
25889 | char *kwnames[] = { | |
25890 | NULL | |
25891 | }; | |
25892 | ||
25893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
25894 | { | |
25895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25896 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
25897 | ||
25898 | wxPyEndAllowThreads(__tstate); | |
25899 | if (PyErr_Occurred()) SWIG_fail; | |
25900 | } | |
15afbcd0 | 25901 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1); |
d14a1e28 RD |
25902 | return resultobj; |
25903 | fail: | |
25904 | return NULL; | |
25905 | } | |
25906 | ||
25907 | ||
25908 | static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) { | |
25909 | PyObject *obj; | |
25910 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25911 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
25912 | Py_INCREF(obj); | |
25913 | return Py_BuildValue((char *)""); | |
25914 | } | |
25915 | static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25916 | PyObject *resultobj; | |
25917 | int arg1 ; | |
25918 | bool result; | |
994141e6 | 25919 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
25920 | char *kwnames[] = { |
25921 | (char *) "res", NULL | |
25922 | }; | |
25923 | ||
994141e6 | 25924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
25925 | arg1 = (wxDragResult) SWIG_AsInt(obj0); |
25926 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25927 | { |
25928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25929 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
25930 | ||
25931 | wxPyEndAllowThreads(__tstate); | |
25932 | if (PyErr_Occurred()) SWIG_fail; | |
25933 | } | |
4f89f6a3 RD |
25934 | { |
25935 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25936 | } | |
d14a1e28 RD |
25937 | return resultobj; |
25938 | fail: | |
25939 | return NULL; | |
25940 | } | |
25941 | ||
25942 | ||
25943 | static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25944 | PyObject *resultobj; | |
d1e20054 | 25945 | wxWindow *arg1 = (wxWindow *) 0 ; |
d14a1e28 RD |
25946 | wxIcon const &arg2_defvalue = wxNullIcon ; |
25947 | wxIcon *arg2 = (wxIcon *) &arg2_defvalue ; | |
25948 | wxIcon const &arg3_defvalue = wxNullIcon ; | |
25949 | wxIcon *arg3 = (wxIcon *) &arg3_defvalue ; | |
25950 | wxIcon const &arg4_defvalue = wxNullIcon ; | |
25951 | wxIcon *arg4 = (wxIcon *) &arg4_defvalue ; | |
25952 | wxPyDropSource *result; | |
25953 | PyObject * obj0 = 0 ; | |
25954 | PyObject * obj1 = 0 ; | |
25955 | PyObject * obj2 = 0 ; | |
25956 | PyObject * obj3 = 0 ; | |
25957 | char *kwnames[] = { | |
25958 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
25959 | }; | |
25960 | ||
d1e20054 | 25961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
25962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 25964 | if (obj1) { |
15afbcd0 RD |
25965 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, |
25966 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25967 | SWIG_fail; | |
d14a1e28 | 25968 | if (arg2 == NULL) { |
15afbcd0 RD |
25969 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25970 | SWIG_fail; | |
d14a1e28 RD |
25971 | } |
25972 | } | |
25973 | if (obj2) { | |
15afbcd0 RD |
25974 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIcon, |
25975 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25976 | SWIG_fail; | |
d14a1e28 | 25977 | if (arg3 == NULL) { |
15afbcd0 RD |
25978 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25979 | SWIG_fail; | |
d14a1e28 RD |
25980 | } |
25981 | } | |
25982 | if (obj3) { | |
15afbcd0 RD |
25983 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxIcon, |
25984 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25985 | SWIG_fail; | |
d14a1e28 | 25986 | if (arg4 == NULL) { |
15afbcd0 RD |
25987 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25988 | SWIG_fail; | |
d14a1e28 RD |
25989 | } |
25990 | } | |
25991 | { | |
25992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25993 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxIcon const &)*arg2,(wxIcon const &)*arg3,(wxIcon const &)*arg4); | |
25994 | ||
25995 | wxPyEndAllowThreads(__tstate); | |
25996 | if (PyErr_Occurred()) SWIG_fail; | |
25997 | } | |
15afbcd0 | 25998 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1); |
d14a1e28 RD |
25999 | return resultobj; |
26000 | fail: | |
26001 | return NULL; | |
26002 | } | |
26003 | ||
26004 | ||
26005 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26006 | PyObject *resultobj; | |
26007 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26008 | PyObject *arg2 = (PyObject *) 0 ; | |
26009 | PyObject *arg3 = (PyObject *) 0 ; | |
26010 | int arg4 ; | |
26011 | PyObject * obj0 = 0 ; | |
26012 | PyObject * obj1 = 0 ; | |
26013 | PyObject * obj2 = 0 ; | |
994141e6 | 26014 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
26015 | char *kwnames[] = { |
26016 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
26017 | }; | |
26018 | ||
994141e6 | 26019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
26021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26022 | arg2 = obj1; |
26023 | arg3 = obj2; | |
15afbcd0 RD |
26024 | arg4 = (int) SWIG_AsInt(obj3); |
26025 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26026 | { |
26027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26028 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
26029 | ||
26030 | wxPyEndAllowThreads(__tstate); | |
26031 | if (PyErr_Occurred()) SWIG_fail; | |
26032 | } | |
26033 | Py_INCREF(Py_None); resultobj = Py_None; | |
26034 | return resultobj; | |
26035 | fail: | |
26036 | return NULL; | |
26037 | } | |
26038 | ||
26039 | ||
26040 | static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26041 | PyObject *resultobj; | |
26042 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26043 | PyObject * obj0 = 0 ; | |
26044 | char *kwnames[] = { | |
26045 | (char *) "self", NULL | |
26046 | }; | |
26047 | ||
26048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
26050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26051 | { |
26052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26053 | delete arg1; | |
26054 | ||
26055 | wxPyEndAllowThreads(__tstate); | |
26056 | if (PyErr_Occurred()) SWIG_fail; | |
26057 | } | |
26058 | Py_INCREF(Py_None); resultobj = Py_None; | |
26059 | return resultobj; | |
26060 | fail: | |
26061 | return NULL; | |
26062 | } | |
26063 | ||
26064 | ||
26065 | static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26066 | PyObject *resultobj; | |
26067 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26068 | wxDataObject *arg2 = 0 ; | |
26069 | PyObject * obj0 = 0 ; | |
26070 | PyObject * obj1 = 0 ; | |
26071 | char *kwnames[] = { | |
26072 | (char *) "self",(char *) "data", NULL | |
26073 | }; | |
26074 | ||
26075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
26077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26078 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26079 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26080 | SWIG_fail; | |
d14a1e28 | 26081 | if (arg2 == NULL) { |
15afbcd0 RD |
26082 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26083 | SWIG_fail; | |
d14a1e28 RD |
26084 | } |
26085 | { | |
26086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26087 | (arg1)->SetData(*arg2); | |
26088 | ||
26089 | wxPyEndAllowThreads(__tstate); | |
26090 | if (PyErr_Occurred()) SWIG_fail; | |
26091 | } | |
26092 | Py_INCREF(Py_None); resultobj = Py_None; | |
26093 | return resultobj; | |
26094 | fail: | |
26095 | return NULL; | |
26096 | } | |
26097 | ||
26098 | ||
26099 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26100 | PyObject *resultobj; | |
26101 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26102 | wxDataObject *result; | |
26103 | PyObject * obj0 = 0 ; | |
26104 | char *kwnames[] = { | |
26105 | (char *) "self", NULL | |
26106 | }; | |
26107 | ||
26108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
26110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26111 | { |
26112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26113 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
26114 | ||
26115 | wxPyEndAllowThreads(__tstate); | |
26116 | if (PyErr_Occurred()) SWIG_fail; | |
26117 | } | |
15afbcd0 | 26118 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); |
d14a1e28 RD |
26119 | return resultobj; |
26120 | fail: | |
26121 | return NULL; | |
26122 | } | |
26123 | ||
26124 | ||
26125 | static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26126 | PyObject *resultobj; | |
26127 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26128 | int arg2 ; | |
26129 | wxCursor *arg3 = 0 ; | |
26130 | PyObject * obj0 = 0 ; | |
994141e6 | 26131 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26132 | PyObject * obj2 = 0 ; |
26133 | char *kwnames[] = { | |
26134 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
26135 | }; | |
26136 | ||
994141e6 | 26137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
26139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26140 | arg2 = (wxDragResult) SWIG_AsInt(obj1); | |
26141 | if (PyErr_Occurred()) SWIG_fail; | |
26142 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
26143 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26144 | SWIG_fail; | |
d14a1e28 | 26145 | if (arg3 == NULL) { |
15afbcd0 RD |
26146 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26147 | SWIG_fail; | |
d14a1e28 RD |
26148 | } |
26149 | { | |
26150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26151 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
26152 | ||
26153 | wxPyEndAllowThreads(__tstate); | |
26154 | if (PyErr_Occurred()) SWIG_fail; | |
26155 | } | |
26156 | Py_INCREF(Py_None); resultobj = Py_None; | |
26157 | return resultobj; | |
26158 | fail: | |
26159 | return NULL; | |
26160 | } | |
26161 | ||
26162 | ||
26163 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26164 | PyObject *resultobj; | |
26165 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26166 | int arg2 = (int) wxDrag_CopyOnly ; | |
26167 | int result; | |
26168 | PyObject * obj0 = 0 ; | |
994141e6 | 26169 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26170 | char *kwnames[] = { |
26171 | (char *) "self",(char *) "flags", NULL | |
26172 | }; | |
26173 | ||
994141e6 | 26174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
26175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
26176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 26177 | if (obj1) { |
15afbcd0 RD |
26178 | arg2 = (int) SWIG_AsInt(obj1); |
26179 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 26180 | } |
d14a1e28 RD |
26181 | { |
26182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26183 | result = (int)(arg1)->DoDragDrop(arg2); | |
26184 | ||
26185 | wxPyEndAllowThreads(__tstate); | |
26186 | if (PyErr_Occurred()) SWIG_fail; | |
26187 | } | |
15afbcd0 | 26188 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26189 | return resultobj; |
26190 | fail: | |
26191 | return NULL; | |
26192 | } | |
26193 | ||
26194 | ||
26195 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26196 | PyObject *resultobj; | |
26197 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26198 | int arg2 ; | |
26199 | bool result; | |
26200 | PyObject * obj0 = 0 ; | |
994141e6 | 26201 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26202 | char *kwnames[] = { |
26203 | (char *) "self",(char *) "effect", NULL | |
26204 | }; | |
26205 | ||
994141e6 | 26206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
26207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
26208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26209 | arg2 = (wxDragResult) SWIG_AsInt(obj1); | |
26210 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26211 | { |
26212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26213 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
26214 | ||
26215 | wxPyEndAllowThreads(__tstate); | |
26216 | if (PyErr_Occurred()) SWIG_fail; | |
26217 | } | |
4f89f6a3 RD |
26218 | { |
26219 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26220 | } | |
d14a1e28 RD |
26221 | return resultobj; |
26222 | fail: | |
26223 | return NULL; | |
26224 | } | |
26225 | ||
26226 | ||
26227 | static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) { | |
26228 | PyObject *obj; | |
26229 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26230 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
26231 | Py_INCREF(obj); | |
26232 | return Py_BuildValue((char *)""); | |
26233 | } | |
15afbcd0 | 26234 | static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26235 | PyObject *resultobj; |
26236 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
26237 | wxPyDropTarget *result; | |
26238 | PyObject * obj0 = 0 ; | |
26239 | char *kwnames[] = { | |
26240 | (char *) "dataObject", NULL | |
26241 | }; | |
26242 | ||
15afbcd0 | 26243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; |
d14a1e28 | 26244 | if (obj0) { |
15afbcd0 RD |
26245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
26246 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
26247 | } |
26248 | { | |
26249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26250 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
26251 | ||
26252 | wxPyEndAllowThreads(__tstate); | |
26253 | if (PyErr_Occurred()) SWIG_fail; | |
26254 | } | |
15afbcd0 | 26255 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1); |
d14a1e28 RD |
26256 | return resultobj; |
26257 | fail: | |
26258 | return NULL; | |
26259 | } | |
26260 | ||
26261 | ||
26262 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26263 | PyObject *resultobj; | |
26264 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26265 | PyObject *arg2 = (PyObject *) 0 ; | |
26266 | PyObject *arg3 = (PyObject *) 0 ; | |
26267 | PyObject * obj0 = 0 ; | |
26268 | PyObject * obj1 = 0 ; | |
26269 | PyObject * obj2 = 0 ; | |
26270 | char *kwnames[] = { | |
26271 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26272 | }; | |
26273 | ||
26274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26277 | arg2 = obj1; |
26278 | arg3 = obj2; | |
26279 | { | |
26280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26281 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26282 | ||
26283 | wxPyEndAllowThreads(__tstate); | |
26284 | if (PyErr_Occurred()) SWIG_fail; | |
26285 | } | |
26286 | Py_INCREF(Py_None); resultobj = Py_None; | |
26287 | return resultobj; | |
26288 | fail: | |
26289 | return NULL; | |
26290 | } | |
26291 | ||
26292 | ||
26293 | static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26294 | PyObject *resultobj; | |
26295 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26296 | PyObject * obj0 = 0 ; | |
26297 | char *kwnames[] = { | |
26298 | (char *) "self", NULL | |
26299 | }; | |
26300 | ||
26301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26304 | { |
26305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26306 | delete arg1; | |
26307 | ||
26308 | wxPyEndAllowThreads(__tstate); | |
26309 | if (PyErr_Occurred()) SWIG_fail; | |
26310 | } | |
26311 | Py_INCREF(Py_None); resultobj = Py_None; | |
26312 | return resultobj; | |
26313 | fail: | |
26314 | return NULL; | |
26315 | } | |
26316 | ||
26317 | ||
26318 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26319 | PyObject *resultobj; | |
26320 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26321 | wxDataObject *result; | |
26322 | PyObject * obj0 = 0 ; | |
26323 | char *kwnames[] = { | |
26324 | (char *) "self", NULL | |
26325 | }; | |
26326 | ||
26327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26330 | { |
26331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26332 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
26333 | ||
26334 | wxPyEndAllowThreads(__tstate); | |
26335 | if (PyErr_Occurred()) SWIG_fail; | |
26336 | } | |
15afbcd0 | 26337 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); |
d14a1e28 RD |
26338 | return resultobj; |
26339 | fail: | |
26340 | return NULL; | |
26341 | } | |
26342 | ||
26343 | ||
26344 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26345 | PyObject *resultobj; | |
26346 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26347 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26348 | PyObject * obj0 = 0 ; | |
26349 | PyObject * obj1 = 0 ; | |
26350 | char *kwnames[] = { | |
26351 | (char *) "self",(char *) "dataObject", NULL | |
26352 | }; | |
26353 | ||
26354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26357 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26358 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
26359 | { |
26360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26361 | (arg1)->SetDataObject(arg2); | |
26362 | ||
26363 | wxPyEndAllowThreads(__tstate); | |
26364 | if (PyErr_Occurred()) SWIG_fail; | |
26365 | } | |
26366 | Py_INCREF(Py_None); resultobj = Py_None; | |
26367 | return resultobj; | |
26368 | fail: | |
26369 | return NULL; | |
26370 | } | |
26371 | ||
26372 | ||
26373 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26374 | PyObject *resultobj; | |
26375 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
26376 | int arg2 ; |
26377 | int arg3 ; | |
d14a1e28 RD |
26378 | int arg4 ; |
26379 | int result; | |
26380 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26381 | PyObject * obj1 = 0 ; |
26382 | PyObject * obj2 = 0 ; | |
26383 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26384 | char *kwnames[] = { |
26385 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26386 | }; | |
26387 | ||
994141e6 | 26388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26391 | arg2 = (int) SWIG_AsInt(obj1); | |
26392 | if (PyErr_Occurred()) SWIG_fail; | |
26393 | arg3 = (int) SWIG_AsInt(obj2); | |
26394 | if (PyErr_Occurred()) SWIG_fail; | |
26395 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26396 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26397 | { |
26398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26399 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26400 | ||
26401 | wxPyEndAllowThreads(__tstate); | |
26402 | if (PyErr_Occurred()) SWIG_fail; | |
26403 | } | |
15afbcd0 | 26404 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26405 | return resultobj; |
26406 | fail: | |
26407 | return NULL; | |
26408 | } | |
26409 | ||
26410 | ||
26411 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26412 | PyObject *resultobj; | |
26413 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
26414 | int arg2 ; |
26415 | int arg3 ; | |
d14a1e28 RD |
26416 | int arg4 ; |
26417 | int result; | |
26418 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26419 | PyObject * obj1 = 0 ; |
26420 | PyObject * obj2 = 0 ; | |
26421 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26422 | char *kwnames[] = { |
26423 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26424 | }; | |
26425 | ||
994141e6 | 26426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26429 | arg2 = (int) SWIG_AsInt(obj1); | |
26430 | if (PyErr_Occurred()) SWIG_fail; | |
26431 | arg3 = (int) SWIG_AsInt(obj2); | |
26432 | if (PyErr_Occurred()) SWIG_fail; | |
26433 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26434 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26435 | { |
26436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26437 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26438 | ||
26439 | wxPyEndAllowThreads(__tstate); | |
26440 | if (PyErr_Occurred()) SWIG_fail; | |
26441 | } | |
15afbcd0 | 26442 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26443 | return resultobj; |
26444 | fail: | |
26445 | return NULL; | |
26446 | } | |
26447 | ||
26448 | ||
26449 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26450 | PyObject *resultobj; | |
26451 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26452 | PyObject * obj0 = 0 ; | |
26453 | char *kwnames[] = { | |
26454 | (char *) "self", NULL | |
26455 | }; | |
26456 | ||
26457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26460 | { |
26461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26462 | (arg1)->base_OnLeave(); | |
26463 | ||
26464 | wxPyEndAllowThreads(__tstate); | |
26465 | if (PyErr_Occurred()) SWIG_fail; | |
26466 | } | |
26467 | Py_INCREF(Py_None); resultobj = Py_None; | |
26468 | return resultobj; | |
26469 | fail: | |
26470 | return NULL; | |
26471 | } | |
26472 | ||
26473 | ||
26474 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26475 | PyObject *resultobj; | |
26476 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
26477 | int arg2 ; |
26478 | int arg3 ; | |
d14a1e28 RD |
26479 | bool result; |
26480 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26481 | PyObject * obj1 = 0 ; |
26482 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26483 | char *kwnames[] = { |
26484 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26485 | }; | |
26486 | ||
994141e6 | 26487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26490 | arg2 = (int) SWIG_AsInt(obj1); | |
26491 | if (PyErr_Occurred()) SWIG_fail; | |
26492 | arg3 = (int) SWIG_AsInt(obj2); | |
26493 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26494 | { |
26495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26496 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26497 | ||
26498 | wxPyEndAllowThreads(__tstate); | |
26499 | if (PyErr_Occurred()) SWIG_fail; | |
26500 | } | |
4f89f6a3 RD |
26501 | { |
26502 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26503 | } | |
d14a1e28 RD |
26504 | return resultobj; |
26505 | fail: | |
26506 | return NULL; | |
26507 | } | |
26508 | ||
26509 | ||
26510 | static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26511 | PyObject *resultobj; | |
26512 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26513 | bool result; | |
26514 | PyObject * obj0 = 0 ; | |
26515 | char *kwnames[] = { | |
26516 | (char *) "self", NULL | |
26517 | }; | |
26518 | ||
26519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26522 | { |
26523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26524 | result = (bool)(arg1)->GetData(); | |
26525 | ||
26526 | wxPyEndAllowThreads(__tstate); | |
26527 | if (PyErr_Occurred()) SWIG_fail; | |
26528 | } | |
4f89f6a3 RD |
26529 | { |
26530 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26531 | } | |
d14a1e28 RD |
26532 | return resultobj; |
26533 | fail: | |
26534 | return NULL; | |
26535 | } | |
26536 | ||
26537 | ||
26538 | static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) { | |
26539 | PyObject *obj; | |
26540 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26541 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
26542 | Py_INCREF(obj); | |
26543 | return Py_BuildValue((char *)""); | |
26544 | } | |
26545 | static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26546 | PyObject *resultobj; | |
26547 | wxPyTextDropTarget *result; | |
26548 | char *kwnames[] = { | |
26549 | NULL | |
26550 | }; | |
26551 | ||
26552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
26553 | { | |
26554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26555 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
26556 | ||
26557 | wxPyEndAllowThreads(__tstate); | |
26558 | if (PyErr_Occurred()) SWIG_fail; | |
26559 | } | |
15afbcd0 | 26560 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1); |
d14a1e28 RD |
26561 | return resultobj; |
26562 | fail: | |
26563 | return NULL; | |
26564 | } | |
26565 | ||
26566 | ||
26567 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26568 | PyObject *resultobj; | |
26569 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26570 | PyObject *arg2 = (PyObject *) 0 ; | |
26571 | PyObject *arg3 = (PyObject *) 0 ; | |
26572 | PyObject * obj0 = 0 ; | |
26573 | PyObject * obj1 = 0 ; | |
26574 | PyObject * obj2 = 0 ; | |
26575 | char *kwnames[] = { | |
26576 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26577 | }; | |
26578 | ||
26579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26582 | arg2 = obj1; |
26583 | arg3 = obj2; | |
26584 | { | |
26585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26586 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26587 | ||
26588 | wxPyEndAllowThreads(__tstate); | |
26589 | if (PyErr_Occurred()) SWIG_fail; | |
26590 | } | |
26591 | Py_INCREF(Py_None); resultobj = Py_None; | |
26592 | return resultobj; | |
26593 | fail: | |
26594 | return NULL; | |
26595 | } | |
26596 | ||
26597 | ||
26598 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26599 | PyObject *resultobj; | |
26600 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
26601 | int arg2 ; |
26602 | int arg3 ; | |
d14a1e28 RD |
26603 | int arg4 ; |
26604 | int result; | |
26605 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26606 | PyObject * obj1 = 0 ; |
26607 | PyObject * obj2 = 0 ; | |
26608 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26609 | char *kwnames[] = { |
26610 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26611 | }; | |
26612 | ||
994141e6 | 26613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26616 | arg2 = (int) SWIG_AsInt(obj1); | |
26617 | if (PyErr_Occurred()) SWIG_fail; | |
26618 | arg3 = (int) SWIG_AsInt(obj2); | |
26619 | if (PyErr_Occurred()) SWIG_fail; | |
26620 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26621 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26622 | { |
26623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26624 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26625 | ||
26626 | wxPyEndAllowThreads(__tstate); | |
26627 | if (PyErr_Occurred()) SWIG_fail; | |
26628 | } | |
15afbcd0 | 26629 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26630 | return resultobj; |
26631 | fail: | |
26632 | return NULL; | |
26633 | } | |
26634 | ||
26635 | ||
26636 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26637 | PyObject *resultobj; | |
26638 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
26639 | int arg2 ; |
26640 | int arg3 ; | |
d14a1e28 RD |
26641 | int arg4 ; |
26642 | int result; | |
26643 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26644 | PyObject * obj1 = 0 ; |
26645 | PyObject * obj2 = 0 ; | |
26646 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26647 | char *kwnames[] = { |
26648 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26649 | }; | |
26650 | ||
994141e6 | 26651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26654 | arg2 = (int) SWIG_AsInt(obj1); | |
26655 | if (PyErr_Occurred()) SWIG_fail; | |
26656 | arg3 = (int) SWIG_AsInt(obj2); | |
26657 | if (PyErr_Occurred()) SWIG_fail; | |
26658 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26659 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26660 | { |
26661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26662 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26663 | ||
26664 | wxPyEndAllowThreads(__tstate); | |
26665 | if (PyErr_Occurred()) SWIG_fail; | |
26666 | } | |
15afbcd0 | 26667 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26668 | return resultobj; |
26669 | fail: | |
26670 | return NULL; | |
26671 | } | |
26672 | ||
26673 | ||
26674 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26675 | PyObject *resultobj; | |
26676 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26677 | PyObject * obj0 = 0 ; | |
26678 | char *kwnames[] = { | |
26679 | (char *) "self", NULL | |
26680 | }; | |
26681 | ||
26682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26685 | { |
26686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26687 | (arg1)->base_OnLeave(); | |
26688 | ||
26689 | wxPyEndAllowThreads(__tstate); | |
26690 | if (PyErr_Occurred()) SWIG_fail; | |
26691 | } | |
26692 | Py_INCREF(Py_None); resultobj = Py_None; | |
26693 | return resultobj; | |
26694 | fail: | |
26695 | return NULL; | |
26696 | } | |
26697 | ||
26698 | ||
26699 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26700 | PyObject *resultobj; | |
26701 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
26702 | int arg2 ; |
26703 | int arg3 ; | |
d14a1e28 RD |
26704 | bool result; |
26705 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26706 | PyObject * obj1 = 0 ; |
26707 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26708 | char *kwnames[] = { |
26709 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26710 | }; | |
26711 | ||
994141e6 | 26712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26715 | arg2 = (int) SWIG_AsInt(obj1); | |
26716 | if (PyErr_Occurred()) SWIG_fail; | |
26717 | arg3 = (int) SWIG_AsInt(obj2); | |
26718 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26719 | { |
26720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26721 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26722 | ||
26723 | wxPyEndAllowThreads(__tstate); | |
26724 | if (PyErr_Occurred()) SWIG_fail; | |
26725 | } | |
4f89f6a3 RD |
26726 | { |
26727 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26728 | } | |
d14a1e28 RD |
26729 | return resultobj; |
26730 | fail: | |
26731 | return NULL; | |
26732 | } | |
26733 | ||
26734 | ||
26735 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26736 | PyObject *resultobj; | |
26737 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
26738 | int arg2 ; |
26739 | int arg3 ; | |
d14a1e28 RD |
26740 | int arg4 ; |
26741 | int result; | |
26742 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26743 | PyObject * obj1 = 0 ; |
26744 | PyObject * obj2 = 0 ; | |
26745 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26746 | char *kwnames[] = { |
26747 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26748 | }; | |
26749 | ||
994141e6 | 26750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26753 | arg2 = (int) SWIG_AsInt(obj1); | |
26754 | if (PyErr_Occurred()) SWIG_fail; | |
26755 | arg3 = (int) SWIG_AsInt(obj2); | |
26756 | if (PyErr_Occurred()) SWIG_fail; | |
26757 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26758 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26759 | { |
26760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26761 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26762 | ||
26763 | wxPyEndAllowThreads(__tstate); | |
26764 | if (PyErr_Occurred()) SWIG_fail; | |
26765 | } | |
15afbcd0 | 26766 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26767 | return resultobj; |
26768 | fail: | |
26769 | return NULL; | |
26770 | } | |
26771 | ||
26772 | ||
26773 | static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26774 | PyObject *obj; | |
26775 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26776 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
26777 | Py_INCREF(obj); | |
26778 | return Py_BuildValue((char *)""); | |
26779 | } | |
26780 | static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26781 | PyObject *resultobj; | |
26782 | wxPyFileDropTarget *result; | |
26783 | char *kwnames[] = { | |
26784 | NULL | |
26785 | }; | |
26786 | ||
26787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
26788 | { | |
26789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26790 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
26791 | ||
26792 | wxPyEndAllowThreads(__tstate); | |
26793 | if (PyErr_Occurred()) SWIG_fail; | |
26794 | } | |
15afbcd0 | 26795 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1); |
d14a1e28 RD |
26796 | return resultobj; |
26797 | fail: | |
26798 | return NULL; | |
26799 | } | |
26800 | ||
26801 | ||
26802 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26803 | PyObject *resultobj; | |
26804 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26805 | PyObject *arg2 = (PyObject *) 0 ; | |
26806 | PyObject *arg3 = (PyObject *) 0 ; | |
26807 | PyObject * obj0 = 0 ; | |
26808 | PyObject * obj1 = 0 ; | |
26809 | PyObject * obj2 = 0 ; | |
26810 | char *kwnames[] = { | |
26811 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26812 | }; | |
26813 | ||
26814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26817 | arg2 = obj1; |
26818 | arg3 = obj2; | |
26819 | { | |
26820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26821 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26822 | ||
26823 | wxPyEndAllowThreads(__tstate); | |
26824 | if (PyErr_Occurred()) SWIG_fail; | |
26825 | } | |
26826 | Py_INCREF(Py_None); resultobj = Py_None; | |
26827 | return resultobj; | |
26828 | fail: | |
26829 | return NULL; | |
26830 | } | |
26831 | ||
26832 | ||
26833 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26834 | PyObject *resultobj; | |
26835 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26836 | int arg2 ; |
26837 | int arg3 ; | |
d14a1e28 RD |
26838 | int arg4 ; |
26839 | int result; | |
26840 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26841 | PyObject * obj1 = 0 ; |
26842 | PyObject * obj2 = 0 ; | |
26843 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26844 | char *kwnames[] = { |
26845 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26846 | }; | |
26847 | ||
994141e6 | 26848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26851 | arg2 = (int) SWIG_AsInt(obj1); | |
26852 | if (PyErr_Occurred()) SWIG_fail; | |
26853 | arg3 = (int) SWIG_AsInt(obj2); | |
26854 | if (PyErr_Occurred()) SWIG_fail; | |
26855 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26856 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26857 | { |
26858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26859 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26860 | ||
26861 | wxPyEndAllowThreads(__tstate); | |
26862 | if (PyErr_Occurred()) SWIG_fail; | |
26863 | } | |
15afbcd0 | 26864 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26865 | return resultobj; |
26866 | fail: | |
26867 | return NULL; | |
26868 | } | |
26869 | ||
26870 | ||
26871 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26872 | PyObject *resultobj; | |
26873 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26874 | int arg2 ; |
26875 | int arg3 ; | |
d14a1e28 RD |
26876 | int arg4 ; |
26877 | int result; | |
26878 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26879 | PyObject * obj1 = 0 ; |
26880 | PyObject * obj2 = 0 ; | |
26881 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26882 | char *kwnames[] = { |
26883 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26884 | }; | |
26885 | ||
994141e6 | 26886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26889 | arg2 = (int) SWIG_AsInt(obj1); | |
26890 | if (PyErr_Occurred()) SWIG_fail; | |
26891 | arg3 = (int) SWIG_AsInt(obj2); | |
26892 | if (PyErr_Occurred()) SWIG_fail; | |
26893 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26894 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26895 | { |
26896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26897 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26898 | ||
26899 | wxPyEndAllowThreads(__tstate); | |
26900 | if (PyErr_Occurred()) SWIG_fail; | |
26901 | } | |
15afbcd0 | 26902 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26903 | return resultobj; |
26904 | fail: | |
26905 | return NULL; | |
26906 | } | |
26907 | ||
26908 | ||
26909 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26910 | PyObject *resultobj; | |
26911 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26912 | PyObject * obj0 = 0 ; | |
26913 | char *kwnames[] = { | |
26914 | (char *) "self", NULL | |
26915 | }; | |
26916 | ||
26917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26920 | { |
26921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26922 | (arg1)->base_OnLeave(); | |
26923 | ||
26924 | wxPyEndAllowThreads(__tstate); | |
26925 | if (PyErr_Occurred()) SWIG_fail; | |
26926 | } | |
26927 | Py_INCREF(Py_None); resultobj = Py_None; | |
26928 | return resultobj; | |
26929 | fail: | |
26930 | return NULL; | |
26931 | } | |
26932 | ||
26933 | ||
26934 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26935 | PyObject *resultobj; | |
26936 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26937 | int arg2 ; |
26938 | int arg3 ; | |
d14a1e28 RD |
26939 | bool result; |
26940 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26941 | PyObject * obj1 = 0 ; |
26942 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26943 | char *kwnames[] = { |
26944 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26945 | }; | |
26946 | ||
994141e6 | 26947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26950 | arg2 = (int) SWIG_AsInt(obj1); | |
26951 | if (PyErr_Occurred()) SWIG_fail; | |
26952 | arg3 = (int) SWIG_AsInt(obj2); | |
26953 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26954 | { |
26955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26956 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26957 | ||
26958 | wxPyEndAllowThreads(__tstate); | |
26959 | if (PyErr_Occurred()) SWIG_fail; | |
26960 | } | |
4f89f6a3 RD |
26961 | { |
26962 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26963 | } | |
d14a1e28 RD |
26964 | return resultobj; |
26965 | fail: | |
26966 | return NULL; | |
26967 | } | |
26968 | ||
26969 | ||
26970 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26971 | PyObject *resultobj; | |
26972 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26973 | int arg2 ; |
26974 | int arg3 ; | |
d14a1e28 RD |
26975 | int arg4 ; |
26976 | int result; | |
26977 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26978 | PyObject * obj1 = 0 ; |
26979 | PyObject * obj2 = 0 ; | |
26980 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26981 | char *kwnames[] = { |
26982 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26983 | }; | |
26984 | ||
994141e6 | 26985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26988 | arg2 = (int) SWIG_AsInt(obj1); | |
26989 | if (PyErr_Occurred()) SWIG_fail; | |
26990 | arg3 = (int) SWIG_AsInt(obj2); | |
26991 | if (PyErr_Occurred()) SWIG_fail; | |
26992 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26993 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26994 | { |
26995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26996 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26997 | ||
26998 | wxPyEndAllowThreads(__tstate); | |
26999 | if (PyErr_Occurred()) SWIG_fail; | |
27000 | } | |
15afbcd0 | 27001 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
27002 | return resultobj; |
27003 | fail: | |
27004 | return NULL; | |
27005 | } | |
27006 | ||
27007 | ||
27008 | static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) { | |
27009 | PyObject *obj; | |
27010 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27011 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
27012 | Py_INCREF(obj); | |
27013 | return Py_BuildValue((char *)""); | |
27014 | } | |
27015 | static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27016 | PyObject *resultobj; | |
27017 | wxClipboard *result; | |
27018 | char *kwnames[] = { | |
27019 | NULL | |
27020 | }; | |
27021 | ||
27022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
27023 | { | |
27024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27025 | result = (wxClipboard *)new wxClipboard(); | |
27026 | ||
27027 | wxPyEndAllowThreads(__tstate); | |
27028 | if (PyErr_Occurred()) SWIG_fail; | |
27029 | } | |
15afbcd0 | 27030 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1); |
d14a1e28 RD |
27031 | return resultobj; |
27032 | fail: | |
27033 | return NULL; | |
27034 | } | |
27035 | ||
27036 | ||
27037 | static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27038 | PyObject *resultobj; | |
27039 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27040 | PyObject * obj0 = 0 ; | |
27041 | char *kwnames[] = { | |
27042 | (char *) "self", NULL | |
27043 | }; | |
27044 | ||
27045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27048 | { |
27049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27050 | delete arg1; | |
27051 | ||
27052 | wxPyEndAllowThreads(__tstate); | |
27053 | if (PyErr_Occurred()) SWIG_fail; | |
27054 | } | |
27055 | Py_INCREF(Py_None); resultobj = Py_None; | |
27056 | return resultobj; | |
27057 | fail: | |
27058 | return NULL; | |
27059 | } | |
27060 | ||
27061 | ||
27062 | static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27063 | PyObject *resultobj; | |
27064 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27065 | bool result; | |
27066 | PyObject * obj0 = 0 ; | |
27067 | char *kwnames[] = { | |
27068 | (char *) "self", NULL | |
27069 | }; | |
27070 | ||
27071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27074 | { |
27075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27076 | result = (bool)(arg1)->Open(); | |
27077 | ||
27078 | wxPyEndAllowThreads(__tstate); | |
27079 | if (PyErr_Occurred()) SWIG_fail; | |
27080 | } | |
4f89f6a3 RD |
27081 | { |
27082 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27083 | } | |
d14a1e28 RD |
27084 | return resultobj; |
27085 | fail: | |
27086 | return NULL; | |
27087 | } | |
27088 | ||
27089 | ||
27090 | static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27091 | PyObject *resultobj; | |
27092 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27093 | PyObject * obj0 = 0 ; | |
27094 | char *kwnames[] = { | |
27095 | (char *) "self", NULL | |
27096 | }; | |
27097 | ||
27098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27101 | { |
27102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27103 | (arg1)->Close(); | |
27104 | ||
27105 | wxPyEndAllowThreads(__tstate); | |
27106 | if (PyErr_Occurred()) SWIG_fail; | |
27107 | } | |
27108 | Py_INCREF(Py_None); resultobj = Py_None; | |
27109 | return resultobj; | |
27110 | fail: | |
27111 | return NULL; | |
27112 | } | |
27113 | ||
27114 | ||
27115 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27116 | PyObject *resultobj; | |
27117 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27118 | bool result; | |
27119 | PyObject * obj0 = 0 ; | |
27120 | char *kwnames[] = { | |
27121 | (char *) "self", NULL | |
27122 | }; | |
27123 | ||
27124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27127 | { |
27128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27129 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
27130 | ||
27131 | wxPyEndAllowThreads(__tstate); | |
27132 | if (PyErr_Occurred()) SWIG_fail; | |
27133 | } | |
4f89f6a3 RD |
27134 | { |
27135 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27136 | } | |
d14a1e28 RD |
27137 | return resultobj; |
27138 | fail: | |
27139 | return NULL; | |
27140 | } | |
27141 | ||
27142 | ||
27143 | static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27144 | PyObject *resultobj; | |
27145 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27146 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
27147 | bool result; | |
27148 | PyObject * obj0 = 0 ; | |
27149 | PyObject * obj1 = 0 ; | |
27150 | char *kwnames[] = { | |
27151 | (char *) "self",(char *) "data", NULL | |
27152 | }; | |
27153 | ||
27154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27157 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27158 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
27159 | { |
27160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27161 | result = (bool)(arg1)->AddData(arg2); | |
27162 | ||
27163 | wxPyEndAllowThreads(__tstate); | |
27164 | if (PyErr_Occurred()) SWIG_fail; | |
27165 | } | |
4f89f6a3 RD |
27166 | { |
27167 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27168 | } | |
d14a1e28 RD |
27169 | return resultobj; |
27170 | fail: | |
27171 | return NULL; | |
27172 | } | |
27173 | ||
27174 | ||
27175 | static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27176 | PyObject *resultobj; | |
27177 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27178 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
27179 | bool result; | |
27180 | PyObject * obj0 = 0 ; | |
27181 | PyObject * obj1 = 0 ; | |
27182 | char *kwnames[] = { | |
27183 | (char *) "self",(char *) "data", NULL | |
27184 | }; | |
27185 | ||
27186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27189 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27190 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
27191 | { |
27192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27193 | result = (bool)(arg1)->SetData(arg2); | |
27194 | ||
27195 | wxPyEndAllowThreads(__tstate); | |
27196 | if (PyErr_Occurred()) SWIG_fail; | |
27197 | } | |
4f89f6a3 RD |
27198 | { |
27199 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27200 | } | |
d14a1e28 RD |
27201 | return resultobj; |
27202 | fail: | |
27203 | return NULL; | |
27204 | } | |
27205 | ||
27206 | ||
27207 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27208 | PyObject *resultobj; | |
27209 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27210 | wxDataFormat *arg2 = 0 ; | |
27211 | bool result; | |
27212 | PyObject * obj0 = 0 ; | |
27213 | PyObject * obj1 = 0 ; | |
27214 | char *kwnames[] = { | |
27215 | (char *) "self",(char *) "format", NULL | |
27216 | }; | |
27217 | ||
27218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27221 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
27222 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27223 | SWIG_fail; | |
d14a1e28 | 27224 | if (arg2 == NULL) { |
15afbcd0 RD |
27225 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27226 | SWIG_fail; | |
d14a1e28 RD |
27227 | } |
27228 | { | |
27229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27230 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
27231 | ||
27232 | wxPyEndAllowThreads(__tstate); | |
27233 | if (PyErr_Occurred()) SWIG_fail; | |
27234 | } | |
4f89f6a3 RD |
27235 | { |
27236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27237 | } | |
d14a1e28 RD |
27238 | return resultobj; |
27239 | fail: | |
27240 | return NULL; | |
27241 | } | |
27242 | ||
27243 | ||
27244 | static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27245 | PyObject *resultobj; | |
27246 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27247 | wxDataObject *arg2 = 0 ; | |
27248 | bool result; | |
27249 | PyObject * obj0 = 0 ; | |
27250 | PyObject * obj1 = 0 ; | |
27251 | char *kwnames[] = { | |
27252 | (char *) "self",(char *) "data", NULL | |
27253 | }; | |
27254 | ||
27255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27258 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27259 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27260 | SWIG_fail; | |
d14a1e28 | 27261 | if (arg2 == NULL) { |
15afbcd0 RD |
27262 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27263 | SWIG_fail; | |
d14a1e28 RD |
27264 | } |
27265 | { | |
27266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27267 | result = (bool)(arg1)->GetData(*arg2); | |
27268 | ||
27269 | wxPyEndAllowThreads(__tstate); | |
27270 | if (PyErr_Occurred()) SWIG_fail; | |
27271 | } | |
4f89f6a3 RD |
27272 | { |
27273 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27274 | } | |
d14a1e28 RD |
27275 | return resultobj; |
27276 | fail: | |
27277 | return NULL; | |
27278 | } | |
27279 | ||
27280 | ||
27281 | static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27282 | PyObject *resultobj; | |
27283 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27284 | PyObject * obj0 = 0 ; | |
27285 | char *kwnames[] = { | |
27286 | (char *) "self", NULL | |
27287 | }; | |
27288 | ||
27289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27292 | { |
27293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27294 | (arg1)->Clear(); | |
27295 | ||
27296 | wxPyEndAllowThreads(__tstate); | |
27297 | if (PyErr_Occurred()) SWIG_fail; | |
27298 | } | |
27299 | Py_INCREF(Py_None); resultobj = Py_None; | |
27300 | return resultobj; | |
27301 | fail: | |
27302 | return NULL; | |
27303 | } | |
27304 | ||
27305 | ||
27306 | static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27307 | PyObject *resultobj; | |
27308 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27309 | bool result; | |
27310 | PyObject * obj0 = 0 ; | |
27311 | char *kwnames[] = { | |
27312 | (char *) "self", NULL | |
27313 | }; | |
27314 | ||
27315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27318 | { |
27319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27320 | result = (bool)(arg1)->Flush(); | |
27321 | ||
27322 | wxPyEndAllowThreads(__tstate); | |
27323 | if (PyErr_Occurred()) SWIG_fail; | |
27324 | } | |
4f89f6a3 RD |
27325 | { |
27326 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27327 | } | |
d14a1e28 RD |
27328 | return resultobj; |
27329 | fail: | |
27330 | return NULL; | |
27331 | } | |
27332 | ||
27333 | ||
27334 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27335 | PyObject *resultobj; | |
27336 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
fcafa8a9 | 27337 | bool arg2 = (bool) True ; |
d14a1e28 RD |
27338 | PyObject * obj0 = 0 ; |
27339 | PyObject * obj1 = 0 ; | |
27340 | char *kwnames[] = { | |
27341 | (char *) "self",(char *) "primary", NULL | |
27342 | }; | |
27343 | ||
27344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 27347 | if (obj1) { |
15afbcd0 RD |
27348 | arg2 = (bool) SWIG_AsBool(obj1); |
27349 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27350 | } |
27351 | { | |
27352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27353 | (arg1)->UsePrimarySelection(arg2); | |
27354 | ||
27355 | wxPyEndAllowThreads(__tstate); | |
27356 | if (PyErr_Occurred()) SWIG_fail; | |
27357 | } | |
27358 | Py_INCREF(Py_None); resultobj = Py_None; | |
27359 | return resultobj; | |
27360 | fail: | |
27361 | return NULL; | |
27362 | } | |
27363 | ||
27364 | ||
dfbb5885 RD |
27365 | static PyObject *_wrap_Clipboard_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
27366 | PyObject *resultobj; | |
27367 | wxClipboard *result; | |
27368 | char *kwnames[] = { | |
27369 | NULL | |
27370 | }; | |
27371 | ||
27372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail; | |
27373 | { | |
27374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27375 | result = (wxClipboard *)wxClipboard::Get(); | |
27376 | ||
27377 | wxPyEndAllowThreads(__tstate); | |
27378 | if (PyErr_Occurred()) SWIG_fail; | |
27379 | } | |
27380 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0); | |
27381 | return resultobj; | |
27382 | fail: | |
27383 | return NULL; | |
27384 | } | |
27385 | ||
27386 | ||
d14a1e28 RD |
27387 | static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) { |
27388 | PyObject *obj; | |
27389 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27390 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
27391 | Py_INCREF(obj); | |
27392 | return Py_BuildValue((char *)""); | |
27393 | } | |
d14a1e28 RD |
27394 | static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { |
27395 | PyObject *resultobj; | |
27396 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
27397 | wxClipboardLocker *result; | |
27398 | PyObject * obj0 = 0 ; | |
27399 | char *kwnames[] = { | |
27400 | (char *) "clipboard", NULL | |
27401 | }; | |
27402 | ||
27403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27404 | if (obj0) { | |
15afbcd0 RD |
27405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27407 | } |
27408 | { | |
27409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27410 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
27411 | ||
27412 | wxPyEndAllowThreads(__tstate); | |
27413 | if (PyErr_Occurred()) SWIG_fail; | |
27414 | } | |
15afbcd0 | 27415 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1); |
d14a1e28 RD |
27416 | return resultobj; |
27417 | fail: | |
27418 | return NULL; | |
27419 | } | |
27420 | ||
27421 | ||
27422 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27423 | PyObject *resultobj; | |
27424 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27425 | PyObject * obj0 = 0 ; | |
27426 | char *kwnames[] = { | |
27427 | (char *) "self", NULL | |
27428 | }; | |
27429 | ||
27430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, |
27432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27433 | { |
27434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27435 | delete arg1; | |
27436 | ||
27437 | wxPyEndAllowThreads(__tstate); | |
27438 | if (PyErr_Occurred()) SWIG_fail; | |
27439 | } | |
27440 | Py_INCREF(Py_None); resultobj = Py_None; | |
27441 | return resultobj; | |
27442 | fail: | |
27443 | return NULL; | |
27444 | } | |
27445 | ||
27446 | ||
27447 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27448 | PyObject *resultobj; | |
27449 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27450 | bool result; | |
27451 | PyObject * obj0 = 0 ; | |
27452 | char *kwnames[] = { | |
27453 | (char *) "self", NULL | |
27454 | }; | |
27455 | ||
27456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, |
27458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27459 | { |
27460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27461 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
27462 | ||
27463 | wxPyEndAllowThreads(__tstate); | |
27464 | if (PyErr_Occurred()) SWIG_fail; | |
27465 | } | |
4f89f6a3 RD |
27466 | { |
27467 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27468 | } | |
d14a1e28 RD |
27469 | return resultobj; |
27470 | fail: | |
27471 | return NULL; | |
27472 | } | |
27473 | ||
27474 | ||
27475 | static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) { | |
27476 | PyObject *obj; | |
27477 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27478 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
27479 | Py_INCREF(obj); | |
27480 | return Py_BuildValue((char *)""); | |
27481 | } | |
4276dc52 RD |
27482 | static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
27483 | PyObject *resultobj; | |
27484 | int arg1 = (int) 0 ; | |
27485 | int arg2 = (int) 0 ; | |
27486 | int arg3 = (int) 0 ; | |
27487 | int arg4 = (int) 0 ; | |
27488 | wxVideoMode *result; | |
27489 | PyObject * obj0 = 0 ; | |
27490 | PyObject * obj1 = 0 ; | |
27491 | PyObject * obj2 = 0 ; | |
27492 | PyObject * obj3 = 0 ; | |
27493 | char *kwnames[] = { | |
27494 | (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL | |
27495 | }; | |
27496 | ||
27497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27498 | if (obj0) { | |
27499 | arg1 = (int) SWIG_AsInt(obj0); | |
27500 | if (PyErr_Occurred()) SWIG_fail; | |
27501 | } | |
27502 | if (obj1) { | |
27503 | arg2 = (int) SWIG_AsInt(obj1); | |
27504 | if (PyErr_Occurred()) SWIG_fail; | |
27505 | } | |
27506 | if (obj2) { | |
27507 | arg3 = (int) SWIG_AsInt(obj2); | |
27508 | if (PyErr_Occurred()) SWIG_fail; | |
27509 | } | |
27510 | if (obj3) { | |
27511 | arg4 = (int) SWIG_AsInt(obj3); | |
27512 | if (PyErr_Occurred()) SWIG_fail; | |
27513 | } | |
27514 | { | |
27515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27516 | result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4); | |
27517 | ||
27518 | wxPyEndAllowThreads(__tstate); | |
27519 | if (PyErr_Occurred()) SWIG_fail; | |
27520 | } | |
27521 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1); | |
27522 | return resultobj; | |
27523 | fail: | |
27524 | return NULL; | |
27525 | } | |
27526 | ||
27527 | ||
27528 | static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27529 | PyObject *resultobj; | |
27530 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27531 | PyObject * obj0 = 0 ; | |
27532 | char *kwnames[] = { | |
27533 | (char *) "self", NULL | |
27534 | }; | |
27535 | ||
27536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail; | |
27537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27539 | { | |
27540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27541 | delete arg1; | |
27542 | ||
27543 | wxPyEndAllowThreads(__tstate); | |
27544 | if (PyErr_Occurred()) SWIG_fail; | |
27545 | } | |
27546 | Py_INCREF(Py_None); resultobj = Py_None; | |
27547 | return resultobj; | |
27548 | fail: | |
27549 | return NULL; | |
27550 | } | |
27551 | ||
27552 | ||
27553 | static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27554 | PyObject *resultobj; | |
27555 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27556 | wxVideoMode *arg2 = 0 ; | |
27557 | bool result; | |
27558 | PyObject * obj0 = 0 ; | |
27559 | PyObject * obj1 = 0 ; | |
27560 | char *kwnames[] = { | |
27561 | (char *) "self",(char *) "other", NULL | |
27562 | }; | |
27563 | ||
27564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail; | |
27565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27567 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27568 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27569 | SWIG_fail; | |
27570 | if (arg2 == NULL) { | |
27571 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27572 | SWIG_fail; | |
27573 | } | |
27574 | { | |
27575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27576 | result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2); | |
27577 | ||
27578 | wxPyEndAllowThreads(__tstate); | |
27579 | if (PyErr_Occurred()) SWIG_fail; | |
27580 | } | |
4f89f6a3 RD |
27581 | { |
27582 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27583 | } | |
4276dc52 RD |
27584 | return resultobj; |
27585 | fail: | |
27586 | return NULL; | |
27587 | } | |
27588 | ||
27589 | ||
27590 | static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27591 | PyObject *resultobj; | |
27592 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27593 | int result; | |
27594 | PyObject * obj0 = 0 ; | |
27595 | char *kwnames[] = { | |
27596 | (char *) "self", NULL | |
27597 | }; | |
27598 | ||
27599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail; | |
27600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27602 | { | |
27603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27604 | result = (int)((wxVideoMode const *)arg1)->GetWidth(); | |
27605 | ||
27606 | wxPyEndAllowThreads(__tstate); | |
27607 | if (PyErr_Occurred()) SWIG_fail; | |
27608 | } | |
27609 | resultobj = SWIG_FromInt((int)result); | |
27610 | return resultobj; | |
27611 | fail: | |
27612 | return NULL; | |
27613 | } | |
27614 | ||
27615 | ||
27616 | static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27617 | PyObject *resultobj; | |
27618 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27619 | int result; | |
27620 | PyObject * obj0 = 0 ; | |
27621 | char *kwnames[] = { | |
27622 | (char *) "self", NULL | |
27623 | }; | |
27624 | ||
27625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail; | |
27626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27628 | { | |
27629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27630 | result = (int)((wxVideoMode const *)arg1)->GetHeight(); | |
27631 | ||
27632 | wxPyEndAllowThreads(__tstate); | |
27633 | if (PyErr_Occurred()) SWIG_fail; | |
27634 | } | |
27635 | resultobj = SWIG_FromInt((int)result); | |
27636 | return resultobj; | |
27637 | fail: | |
27638 | return NULL; | |
27639 | } | |
27640 | ||
27641 | ||
27642 | static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27643 | PyObject *resultobj; | |
27644 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27645 | int result; | |
27646 | PyObject * obj0 = 0 ; | |
27647 | char *kwnames[] = { | |
27648 | (char *) "self", NULL | |
27649 | }; | |
27650 | ||
27651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail; | |
27652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27654 | { | |
27655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27656 | result = (int)((wxVideoMode const *)arg1)->GetDepth(); | |
27657 | ||
27658 | wxPyEndAllowThreads(__tstate); | |
27659 | if (PyErr_Occurred()) SWIG_fail; | |
27660 | } | |
27661 | resultobj = SWIG_FromInt((int)result); | |
27662 | return resultobj; | |
27663 | fail: | |
27664 | return NULL; | |
27665 | } | |
27666 | ||
27667 | ||
27668 | static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27669 | PyObject *resultobj; | |
27670 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27671 | bool result; | |
27672 | PyObject * obj0 = 0 ; | |
27673 | char *kwnames[] = { | |
27674 | (char *) "self", NULL | |
27675 | }; | |
27676 | ||
27677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail; | |
27678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27680 | { | |
27681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27682 | result = (bool)((wxVideoMode const *)arg1)->IsOk(); | |
27683 | ||
27684 | wxPyEndAllowThreads(__tstate); | |
27685 | if (PyErr_Occurred()) SWIG_fail; | |
27686 | } | |
4f89f6a3 RD |
27687 | { |
27688 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27689 | } | |
4276dc52 RD |
27690 | return resultobj; |
27691 | fail: | |
27692 | return NULL; | |
27693 | } | |
27694 | ||
27695 | ||
27696 | static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27697 | PyObject *resultobj; | |
27698 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27699 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27700 | bool result; | |
27701 | PyObject * obj0 = 0 ; | |
27702 | PyObject * obj1 = 0 ; | |
27703 | char *kwnames[] = { | |
27704 | (char *) "self",(char *) "other", NULL | |
27705 | }; | |
27706 | ||
27707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail; | |
27708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27710 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27712 | { | |
27713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27714 | result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2); | |
27715 | ||
27716 | wxPyEndAllowThreads(__tstate); | |
27717 | if (PyErr_Occurred()) SWIG_fail; | |
27718 | } | |
4f89f6a3 RD |
27719 | { |
27720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27721 | } | |
4276dc52 RD |
27722 | return resultobj; |
27723 | fail: | |
27724 | return NULL; | |
27725 | } | |
27726 | ||
27727 | ||
27728 | static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27729 | PyObject *resultobj; | |
27730 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27731 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27732 | bool result; | |
27733 | PyObject * obj0 = 0 ; | |
27734 | PyObject * obj1 = 0 ; | |
27735 | char *kwnames[] = { | |
27736 | (char *) "self",(char *) "other", NULL | |
27737 | }; | |
27738 | ||
27739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail; | |
27740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27742 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27744 | { | |
27745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27746 | result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2); | |
27747 | ||
27748 | wxPyEndAllowThreads(__tstate); | |
27749 | if (PyErr_Occurred()) SWIG_fail; | |
27750 | } | |
4f89f6a3 RD |
27751 | { |
27752 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27753 | } | |
4276dc52 RD |
27754 | return resultobj; |
27755 | fail: | |
27756 | return NULL; | |
27757 | } | |
27758 | ||
27759 | ||
27760 | static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27761 | PyObject *resultobj; | |
27762 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27763 | int arg2 ; | |
27764 | PyObject * obj0 = 0 ; | |
27765 | PyObject * obj1 = 0 ; | |
27766 | char *kwnames[] = { | |
27767 | (char *) "self",(char *) "w", NULL | |
27768 | }; | |
27769 | ||
27770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail; | |
27771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27773 | arg2 = (int) SWIG_AsInt(obj1); | |
27774 | if (PyErr_Occurred()) SWIG_fail; | |
27775 | if (arg1) (arg1)->w = arg2; | |
27776 | ||
27777 | Py_INCREF(Py_None); resultobj = Py_None; | |
27778 | return resultobj; | |
27779 | fail: | |
27780 | return NULL; | |
27781 | } | |
27782 | ||
27783 | ||
27784 | static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27785 | PyObject *resultobj; | |
27786 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27787 | int result; | |
27788 | PyObject * obj0 = 0 ; | |
27789 | char *kwnames[] = { | |
27790 | (char *) "self", NULL | |
27791 | }; | |
27792 | ||
27793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail; | |
27794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27796 | result = (int) ((arg1)->w); | |
27797 | ||
27798 | resultobj = SWIG_FromInt((int)result); | |
27799 | return resultobj; | |
27800 | fail: | |
27801 | return NULL; | |
27802 | } | |
27803 | ||
27804 | ||
27805 | static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27806 | PyObject *resultobj; | |
27807 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27808 | int arg2 ; | |
27809 | PyObject * obj0 = 0 ; | |
27810 | PyObject * obj1 = 0 ; | |
27811 | char *kwnames[] = { | |
27812 | (char *) "self",(char *) "h", NULL | |
27813 | }; | |
27814 | ||
27815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail; | |
27816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27818 | arg2 = (int) SWIG_AsInt(obj1); | |
27819 | if (PyErr_Occurred()) SWIG_fail; | |
27820 | if (arg1) (arg1)->h = arg2; | |
27821 | ||
27822 | Py_INCREF(Py_None); resultobj = Py_None; | |
27823 | return resultobj; | |
27824 | fail: | |
27825 | return NULL; | |
27826 | } | |
27827 | ||
27828 | ||
27829 | static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27830 | PyObject *resultobj; | |
27831 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27832 | int result; | |
27833 | PyObject * obj0 = 0 ; | |
27834 | char *kwnames[] = { | |
27835 | (char *) "self", NULL | |
27836 | }; | |
27837 | ||
27838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail; | |
27839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27841 | result = (int) ((arg1)->h); | |
27842 | ||
27843 | resultobj = SWIG_FromInt((int)result); | |
27844 | return resultobj; | |
27845 | fail: | |
27846 | return NULL; | |
27847 | } | |
27848 | ||
27849 | ||
27850 | static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27851 | PyObject *resultobj; | |
27852 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27853 | int arg2 ; | |
27854 | PyObject * obj0 = 0 ; | |
27855 | PyObject * obj1 = 0 ; | |
27856 | char *kwnames[] = { | |
27857 | (char *) "self",(char *) "bpp", NULL | |
27858 | }; | |
27859 | ||
27860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail; | |
27861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27863 | arg2 = (int) SWIG_AsInt(obj1); | |
27864 | if (PyErr_Occurred()) SWIG_fail; | |
27865 | if (arg1) (arg1)->bpp = arg2; | |
27866 | ||
27867 | Py_INCREF(Py_None); resultobj = Py_None; | |
27868 | return resultobj; | |
27869 | fail: | |
27870 | return NULL; | |
27871 | } | |
27872 | ||
27873 | ||
27874 | static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27875 | PyObject *resultobj; | |
27876 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27877 | int result; | |
27878 | PyObject * obj0 = 0 ; | |
27879 | char *kwnames[] = { | |
27880 | (char *) "self", NULL | |
27881 | }; | |
27882 | ||
27883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail; | |
27884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27886 | result = (int) ((arg1)->bpp); | |
27887 | ||
27888 | resultobj = SWIG_FromInt((int)result); | |
27889 | return resultobj; | |
27890 | fail: | |
27891 | return NULL; | |
27892 | } | |
27893 | ||
27894 | ||
27895 | static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27896 | PyObject *resultobj; | |
27897 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27898 | int arg2 ; | |
27899 | PyObject * obj0 = 0 ; | |
27900 | PyObject * obj1 = 0 ; | |
27901 | char *kwnames[] = { | |
27902 | (char *) "self",(char *) "refresh", NULL | |
27903 | }; | |
27904 | ||
27905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail; | |
27906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27908 | arg2 = (int) SWIG_AsInt(obj1); | |
27909 | if (PyErr_Occurred()) SWIG_fail; | |
27910 | if (arg1) (arg1)->refresh = arg2; | |
27911 | ||
27912 | Py_INCREF(Py_None); resultobj = Py_None; | |
27913 | return resultobj; | |
27914 | fail: | |
27915 | return NULL; | |
27916 | } | |
27917 | ||
27918 | ||
27919 | static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27920 | PyObject *resultobj; | |
27921 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27922 | int result; | |
27923 | PyObject * obj0 = 0 ; | |
27924 | char *kwnames[] = { | |
27925 | (char *) "self", NULL | |
27926 | }; | |
27927 | ||
27928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail; | |
27929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27931 | result = (int) ((arg1)->refresh); | |
27932 | ||
27933 | resultobj = SWIG_FromInt((int)result); | |
27934 | return resultobj; | |
27935 | fail: | |
27936 | return NULL; | |
27937 | } | |
27938 | ||
27939 | ||
27940 | static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) { | |
27941 | PyObject *obj; | |
27942 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27943 | SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj); | |
27944 | Py_INCREF(obj); | |
27945 | return Py_BuildValue((char *)""); | |
27946 | } | |
27947 | static int _wrap_DefaultVideoMode_set(PyObject *_val) { | |
27948 | PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only."); | |
27949 | return 1; | |
27950 | } | |
27951 | ||
27952 | ||
27953 | static PyObject *_wrap_DefaultVideoMode_get() { | |
27954 | PyObject *pyobj; | |
27955 | ||
27956 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0); | |
27957 | return pyobj; | |
27958 | } | |
27959 | ||
27960 | ||
27961 | static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27962 | PyObject *resultobj; | |
27963 | size_t arg1 = (size_t) 0 ; | |
27964 | wxDisplay *result; | |
27965 | PyObject * obj0 = 0 ; | |
27966 | char *kwnames[] = { | |
27967 | (char *) "index", NULL | |
27968 | }; | |
27969 | ||
27970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail; | |
27971 | if (obj0) { | |
27972 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); | |
27973 | if (PyErr_Occurred()) SWIG_fail; | |
27974 | } | |
27975 | { | |
27976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27977 | result = (wxDisplay *)new wxDisplay(arg1); | |
27978 | ||
27979 | wxPyEndAllowThreads(__tstate); | |
27980 | if (PyErr_Occurred()) SWIG_fail; | |
27981 | } | |
27982 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1); | |
27983 | return resultobj; | |
27984 | fail: | |
27985 | return NULL; | |
27986 | } | |
27987 | ||
27988 | ||
27989 | static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27990 | PyObject *resultobj; | |
27991 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27992 | PyObject * obj0 = 0 ; | |
27993 | char *kwnames[] = { | |
27994 | (char *) "self", NULL | |
27995 | }; | |
27996 | ||
27997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail; | |
27998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28000 | { | |
28001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28002 | delete arg1; | |
28003 | ||
28004 | wxPyEndAllowThreads(__tstate); | |
28005 | if (PyErr_Occurred()) SWIG_fail; | |
28006 | } | |
28007 | Py_INCREF(Py_None); resultobj = Py_None; | |
28008 | return resultobj; | |
28009 | fail: | |
28010 | return NULL; | |
28011 | } | |
28012 | ||
28013 | ||
28014 | static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28015 | PyObject *resultobj; | |
28016 | size_t result; | |
28017 | char *kwnames[] = { | |
28018 | NULL | |
28019 | }; | |
28020 | ||
28021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail; | |
28022 | { | |
28023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28024 | result = (size_t)wxDisplay::GetCount(); | |
28025 | ||
28026 | wxPyEndAllowThreads(__tstate); | |
28027 | if (PyErr_Occurred()) SWIG_fail; | |
28028 | } | |
28029 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
28030 | return resultobj; | |
28031 | fail: | |
28032 | return NULL; | |
28033 | } | |
28034 | ||
28035 | ||
28036 | static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28037 | PyObject *resultobj; | |
28038 | wxPoint *arg1 = 0 ; | |
28039 | int result; | |
28040 | wxPoint temp1 ; | |
28041 | PyObject * obj0 = 0 ; | |
28042 | char *kwnames[] = { | |
28043 | (char *) "pt", NULL | |
28044 | }; | |
28045 | ||
28046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail; | |
28047 | { | |
28048 | arg1 = &temp1; | |
28049 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
28050 | } | |
28051 | { | |
28052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28053 | result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1); | |
28054 | ||
28055 | wxPyEndAllowThreads(__tstate); | |
28056 | if (PyErr_Occurred()) SWIG_fail; | |
28057 | } | |
28058 | resultobj = SWIG_FromInt((int)result); | |
28059 | return resultobj; | |
28060 | fail: | |
28061 | return NULL; | |
28062 | } | |
28063 | ||
28064 | ||
28065 | static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28066 | PyObject *resultobj; | |
28067 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28068 | int result; | |
28069 | PyObject * obj0 = 0 ; | |
28070 | char *kwnames[] = { | |
28071 | (char *) "window", NULL | |
28072 | }; | |
28073 | ||
28074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail; | |
28075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28077 | { | |
28078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28079 | result = (int)Display_GetFromWindow(arg1); | |
28080 | ||
28081 | wxPyEndAllowThreads(__tstate); | |
28082 | if (PyErr_Occurred()) SWIG_fail; | |
28083 | } | |
28084 | resultobj = SWIG_FromInt((int)result); | |
28085 | return resultobj; | |
28086 | fail: | |
28087 | return NULL; | |
28088 | } | |
28089 | ||
28090 | ||
28091 | static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28092 | PyObject *resultobj; | |
28093 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28094 | bool result; | |
28095 | PyObject * obj0 = 0 ; | |
28096 | char *kwnames[] = { | |
28097 | (char *) "self", NULL | |
28098 | }; | |
28099 | ||
28100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail; | |
28101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28103 | { | |
28104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28105 | result = (bool)((wxDisplay const *)arg1)->IsOk(); | |
28106 | ||
28107 | wxPyEndAllowThreads(__tstate); | |
28108 | if (PyErr_Occurred()) SWIG_fail; | |
28109 | } | |
4f89f6a3 RD |
28110 | { |
28111 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28112 | } | |
4276dc52 RD |
28113 | return resultobj; |
28114 | fail: | |
28115 | return NULL; | |
28116 | } | |
28117 | ||
28118 | ||
28119 | static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28120 | PyObject *resultobj; | |
28121 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28122 | wxRect result; | |
28123 | PyObject * obj0 = 0 ; | |
28124 | char *kwnames[] = { | |
28125 | (char *) "self", NULL | |
28126 | }; | |
28127 | ||
28128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail; | |
28129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28131 | { | |
28132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28133 | result = ((wxDisplay const *)arg1)->GetGeometry(); | |
28134 | ||
28135 | wxPyEndAllowThreads(__tstate); | |
28136 | if (PyErr_Occurred()) SWIG_fail; | |
28137 | } | |
28138 | { | |
28139 | wxRect * resultptr; | |
28140 | resultptr = new wxRect((wxRect &) result); | |
28141 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
28142 | } | |
28143 | return resultobj; | |
28144 | fail: | |
28145 | return NULL; | |
28146 | } | |
28147 | ||
28148 | ||
28149 | static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28150 | PyObject *resultobj; | |
28151 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28152 | wxString result; | |
28153 | PyObject * obj0 = 0 ; | |
28154 | char *kwnames[] = { | |
28155 | (char *) "self", NULL | |
28156 | }; | |
28157 | ||
28158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail; | |
28159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28161 | { | |
28162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28163 | result = ((wxDisplay const *)arg1)->GetName(); | |
28164 | ||
28165 | wxPyEndAllowThreads(__tstate); | |
28166 | if (PyErr_Occurred()) SWIG_fail; | |
28167 | } | |
28168 | { | |
28169 | #if wxUSE_UNICODE | |
28170 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28171 | #else | |
28172 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28173 | #endif | |
28174 | } | |
28175 | return resultobj; | |
28176 | fail: | |
28177 | return NULL; | |
28178 | } | |
28179 | ||
28180 | ||
28181 | static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28182 | PyObject *resultobj; | |
28183 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28184 | bool result; | |
28185 | PyObject * obj0 = 0 ; | |
28186 | char *kwnames[] = { | |
28187 | (char *) "self", NULL | |
28188 | }; | |
28189 | ||
28190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail; | |
28191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28193 | { | |
28194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28195 | result = (bool)((wxDisplay const *)arg1)->IsPrimary(); | |
28196 | ||
28197 | wxPyEndAllowThreads(__tstate); | |
28198 | if (PyErr_Occurred()) SWIG_fail; | |
28199 | } | |
4f89f6a3 RD |
28200 | { |
28201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28202 | } | |
4276dc52 RD |
28203 | return resultobj; |
28204 | fail: | |
28205 | return NULL; | |
28206 | } | |
28207 | ||
28208 | ||
28209 | static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28210 | PyObject *resultobj; | |
28211 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28212 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
28213 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
28214 | PyObject *result; | |
28215 | PyObject * obj0 = 0 ; | |
28216 | PyObject * obj1 = 0 ; | |
28217 | char *kwnames[] = { | |
28218 | (char *) "self",(char *) "mode", NULL | |
28219 | }; | |
28220 | ||
28221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail; | |
28222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28224 | if (obj1) { | |
28225 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28226 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28227 | SWIG_fail; | |
28228 | if (arg2 == NULL) { | |
28229 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28230 | SWIG_fail; | |
28231 | } | |
28232 | } | |
28233 | { | |
28234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28235 | result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2); | |
28236 | ||
28237 | wxPyEndAllowThreads(__tstate); | |
28238 | if (PyErr_Occurred()) SWIG_fail; | |
28239 | } | |
28240 | resultobj = result; | |
28241 | return resultobj; | |
28242 | fail: | |
28243 | return NULL; | |
28244 | } | |
28245 | ||
28246 | ||
28247 | static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28248 | PyObject *resultobj; | |
28249 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28250 | wxVideoMode result; | |
28251 | PyObject * obj0 = 0 ; | |
28252 | char *kwnames[] = { | |
28253 | (char *) "self", NULL | |
28254 | }; | |
28255 | ||
28256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail; | |
28257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28259 | { | |
28260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28261 | result = ((wxDisplay const *)arg1)->GetCurrentMode(); | |
28262 | ||
28263 | wxPyEndAllowThreads(__tstate); | |
28264 | if (PyErr_Occurred()) SWIG_fail; | |
28265 | } | |
28266 | { | |
28267 | wxVideoMode * resultptr; | |
28268 | resultptr = new wxVideoMode((wxVideoMode &) result); | |
28269 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1); | |
28270 | } | |
28271 | return resultobj; | |
28272 | fail: | |
28273 | return NULL; | |
28274 | } | |
28275 | ||
28276 | ||
28277 | static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28278 | PyObject *resultobj; | |
28279 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28280 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
28281 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
28282 | bool result; | |
28283 | PyObject * obj0 = 0 ; | |
28284 | PyObject * obj1 = 0 ; | |
28285 | char *kwnames[] = { | |
28286 | (char *) "self",(char *) "mode", NULL | |
28287 | }; | |
28288 | ||
28289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail; | |
28290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28292 | if (obj1) { | |
28293 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28294 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28295 | SWIG_fail; | |
28296 | if (arg2 == NULL) { | |
28297 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28298 | SWIG_fail; | |
28299 | } | |
28300 | } | |
28301 | { | |
28302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28303 | result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2); | |
28304 | ||
28305 | wxPyEndAllowThreads(__tstate); | |
28306 | if (PyErr_Occurred()) SWIG_fail; | |
28307 | } | |
4f89f6a3 RD |
28308 | { |
28309 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28310 | } | |
4276dc52 RD |
28311 | return resultobj; |
28312 | fail: | |
28313 | return NULL; | |
28314 | } | |
28315 | ||
28316 | ||
28317 | static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28318 | PyObject *resultobj; | |
28319 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28320 | PyObject * obj0 = 0 ; | |
28321 | char *kwnames[] = { | |
28322 | (char *) "self", NULL | |
28323 | }; | |
28324 | ||
28325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail; | |
28326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28328 | { | |
28329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28330 | (arg1)->ResetMode(); | |
28331 | ||
28332 | wxPyEndAllowThreads(__tstate); | |
28333 | if (PyErr_Occurred()) SWIG_fail; | |
28334 | } | |
28335 | Py_INCREF(Py_None); resultobj = Py_None; | |
28336 | return resultobj; | |
28337 | fail: | |
28338 | return NULL; | |
28339 | } | |
28340 | ||
28341 | ||
28342 | static PyObject * Display_swigregister(PyObject *self, PyObject *args) { | |
28343 | PyObject *obj; | |
28344 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28345 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj); | |
28346 | Py_INCREF(obj); | |
28347 | return Py_BuildValue((char *)""); | |
28348 | } | |
d14a1e28 RD |
28349 | static PyMethodDef SwigMethods[] = { |
28350 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
28351 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
28352 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
28353 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, | |
28354 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
28355 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
28356 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS }, | |
28357 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS }, | |
28358 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
28359 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
28360 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
28361 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
28362 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
28363 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS }, | |
28364 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS }, | |
28365 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS }, | |
28366 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS }, | |
023a034e RD |
28367 | { (char *)"wxIsStockID", (PyCFunction) _wrap_wxIsStockID, METH_VARARGS | METH_KEYWORDS }, |
28368 | { (char *)"wxIsStockLabel", (PyCFunction) _wrap_wxIsStockLabel, METH_VARARGS | METH_KEYWORDS }, | |
28369 | { (char *)"wxGetStockLabel", (PyCFunction) _wrap_wxGetStockLabel, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
28370 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS }, |
28371 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28372 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS }, | |
28373 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS }, | |
28374 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS }, | |
28375 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS }, | |
28376 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS }, | |
28377 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS }, | |
28378 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS }, | |
28379 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS }, | |
28380 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS }, | |
28381 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS }, | |
28382 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS }, | |
7f98d120 RD |
28383 | { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS }, |
28384 | { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
28385 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS }, |
28386 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS }, | |
28387 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS }, | |
28388 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS }, | |
28389 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS }, | |
28390 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS }, | |
28391 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS }, | |
28392 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS }, | |
28393 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS }, | |
28394 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS }, | |
28395 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS }, | |
28396 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28397 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28398 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28399 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS }, | |
28400 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28401 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28402 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
28403 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
28404 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS }, | |
28405 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28406 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
28407 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
28408 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
28409 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
28410 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
28411 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
28412 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
28413 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
28414 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
28415 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
28416 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28417 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
28418 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
28419 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
28420 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, | |
39f61e25 | 28421 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28422 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, |
28423 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
28424 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
28425 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
28426 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
28427 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS }, | |
28428 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS }, | |
28429 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS }, | |
28430 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
28431 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
28432 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
28433 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
28434 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
28435 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS }, | |
28436 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS }, | |
28437 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS }, | |
28438 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28439 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 28440 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 28441 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 28442 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 28443 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28444 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
28445 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
28446 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS }, | |
28447 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
28448 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
28449 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS }, | |
28450 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
28451 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS }, | |
28452 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
28453 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
28454 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28455 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28456 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS }, | |
28457 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
28458 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
28459 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS }, | |
28460 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
28461 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
28462 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS }, | |
28463 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS }, | |
28464 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
28465 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
28466 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
28467 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS }, | |
28468 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS }, | |
28469 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
28470 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
28471 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
28472 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
28473 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
28474 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
28475 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
28476 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
28477 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
28478 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
28479 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, | |
28480 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
28481 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
28482 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS }, | |
28483 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28484 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28485 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28486 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
28487 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, | |
28488 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS }, | |
28489 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS }, | |
28490 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28491 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
28492 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
28493 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, | |
28494 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS }, | |
28495 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28496 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28497 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS }, | |
28498 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS }, | |
28499 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28500 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS }, | |
28501 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS }, | |
7722248d | 28502 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 28503 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS }, |
1c0f361b | 28504 | { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28505 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS }, |
28506 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
28507 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS }, |
28508 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
28509 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
cc6dd355 | 28510 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28511 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS }, |
28512 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS }, | |
28513 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
28514 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS }, | |
28515 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS }, | |
28516 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS }, | |
28517 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS }, | |
28518 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS }, | |
28519 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS }, | |
28520 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
28521 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
28522 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
28523 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28524 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
28525 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
28526 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
28527 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
28528 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS }, | |
28529 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28530 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
28531 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
28532 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28533 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28534 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28535 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
28536 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
28537 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
28538 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28539 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28540 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28541 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
28542 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
28543 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS }, | |
28544 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
28545 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS }, | |
28546 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS }, | |
28547 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS }, | |
28548 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
28549 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS }, | |
28550 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS }, | |
28551 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS }, | |
28552 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS }, | |
28553 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
28554 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
28555 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
28556 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
28557 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
28558 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS }, | |
28559 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS }, | |
28560 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
28561 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
28562 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
28563 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
28564 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS }, | |
28565 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
28566 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
28567 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
28568 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS }, | |
28569 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS }, | |
28570 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS }, | |
28571 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS }, | |
28572 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS }, | |
28573 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28574 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS }, | |
28575 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
28576 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS }, | |
cc6dd355 | 28577 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS }, |
d14a1e28 RD |
28578 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS }, |
28579 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS }, | |
28580 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
28581 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
28582 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS }, | |
28583 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS }, | |
28584 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28585 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS }, | |
28586 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS }, | |
28587 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS }, | |
28588 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS }, | |
28589 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS }, | |
28590 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28591 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
28592 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
28593 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
28594 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS }, | |
28595 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
28596 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
28597 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
28598 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS }, | |
28599 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
28600 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
28601 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, | |
28602 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS }, | |
28603 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
28604 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
28605 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
28606 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
28607 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
28608 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
28609 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
28610 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS }, | |
28611 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS }, | |
28612 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
28613 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
28614 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28615 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28616 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28617 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
28618 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
28619 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
28620 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
28621 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
28622 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
28623 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
28624 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28625 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
28626 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
28627 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
28628 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
28629 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
28630 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
28631 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
28632 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
28633 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
28634 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
28635 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
28636 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
28637 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
28638 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
28639 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
28640 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
28641 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
28642 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
28643 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
28644 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
28645 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
28646 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
28647 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
28648 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
28649 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
28650 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
28651 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
28652 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
28653 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
28654 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
28655 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
28656 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS }, | |
28657 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
28658 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
28659 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS }, | |
28660 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS }, | |
28661 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS }, | |
28662 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS }, | |
28663 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS }, | |
28664 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS }, | |
28665 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS }, | |
28666 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS }, | |
28667 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS }, | |
28668 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28669 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28670 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28671 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
28672 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
28673 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
28674 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28675 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
28676 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28677 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28678 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
28679 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS }, | |
28680 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS }, | |
28681 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
28682 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
28683 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
28684 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS }, | |
36cadbf7 RD |
28685 | { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS }, |
28686 | { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS }, | |
4d5c3d91 | 28687 | { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS }, |
36cadbf7 RD |
28688 | { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS }, |
28689 | { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS }, | |
4d5c3d91 | 28690 | { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS }, |
36cadbf7 RD |
28691 | { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS }, |
28692 | { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS }, | |
4d5c3d91 RD |
28693 | { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS }, |
28694 | { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28695 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS }, |
28696 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
28697 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
28698 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
28699 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28700 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
28701 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28702 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
28703 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
28704 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
28705 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
28706 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
28707 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
28708 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
28709 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
28710 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS }, | |
28711 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS }, | |
28712 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS }, | |
28713 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28714 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
28715 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
28716 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28717 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
28718 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
28719 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
28720 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
28721 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
28722 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
28723 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
28724 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
28725 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
28726 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS }, | |
28727 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
28728 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
28729 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
28730 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
28731 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
28732 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28733 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
28734 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
28735 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
28736 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
28737 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
28738 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
28739 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
28740 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS }, | |
28741 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
28742 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
28743 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
28744 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
28745 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
28746 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28747 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
1e0c8722 | 28748 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28749 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS }, |
28750 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS }, | |
28751 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, | |
28752 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, | |
28753 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, | |
28754 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
28755 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
28756 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
28757 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, | |
28758 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, | |
28759 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, | |
28760 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, | |
28761 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, | |
28762 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, | |
28763 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, | |
28764 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, | |
28765 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, | |
28766 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, | |
28767 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, | |
28768 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, | |
28769 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, | |
28770 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS }, | |
28771 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, | |
28772 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, | |
28773 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, | |
28774 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS }, | |
28775 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28776 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, | |
28777 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, | |
28778 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, | |
28779 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, | |
28780 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 28781 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, |
b88bce5f | 28782 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28783 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, |
28784 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, | |
28785 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28786 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
28787 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
28788 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
28789 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
28790 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28791 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28792 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28793 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS }, |
28794 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS }, | |
28795 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS }, | |
28796 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
28797 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
28798 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS }, | |
b88bce5f RD |
28799 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, |
28800 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
28801 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS }, | |
28802 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28803 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, |
28804 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, | |
28805 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, | |
28806 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, | |
28807 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, | |
28808 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, | |
28809 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, | |
28810 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, | |
28811 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, | |
28812 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, | |
28813 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, | |
28814 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, | |
28815 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, | |
28816 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, | |
28817 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, | |
28818 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, | |
28819 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, | |
28820 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS }, | |
28821 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS }, | |
28822 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS }, | |
28823 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
28824 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, | |
28825 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, | |
28826 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, | |
28827 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, | |
28828 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
28829 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, | |
28830 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, | |
28831 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, | |
28832 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, | |
28833 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS }, | |
28834 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, | |
28835 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, | |
28836 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, | |
28837 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, | |
28838 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, | |
28839 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, | |
28840 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, | |
28841 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
28842 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
28843 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
28844 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28845 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28846 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28847 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28848 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28849 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28850 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28851 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, | |
28852 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, | |
28853 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
28854 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
28855 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, | |
28856 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, | |
28857 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
28858 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, | |
28859 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
28860 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, | |
28861 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, | |
28862 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, | |
28863 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, | |
28864 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, | |
28865 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, | |
28866 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, | |
28867 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
28868 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, | |
28869 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, | |
28870 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, | |
28871 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, | |
28872 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28873 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, | |
28874 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, | |
28875 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, | |
28876 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
28877 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, | |
28878 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, | |
28879 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, | |
28880 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, | |
28881 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
28882 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, | |
28883 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, | |
28884 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, | |
28885 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, | |
28886 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, | |
28887 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, | |
28888 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, | |
28889 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, | |
28890 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, | |
28891 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, | |
28892 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, | |
28893 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28894 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS }, | |
28895 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS }, | |
28896 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS }, | |
28897 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS }, | |
28898 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS }, | |
28899 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS }, | |
28900 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS }, | |
28901 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS }, | |
28902 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS }, | |
28903 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS }, | |
28904 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, | |
28905 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, | |
28906 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, | |
28907 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, | |
28908 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, | |
28909 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS }, | |
28910 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, | |
28911 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, | |
28912 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, | |
28913 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, | |
28914 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS }, | |
28915 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, | |
28916 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, | |
28917 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, | |
28918 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, | |
28919 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, | |
28920 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, | |
28921 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
28922 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
28923 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
28924 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
28925 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
28926 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
28927 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
28928 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28929 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
28930 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
28931 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, | |
28932 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
28933 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
28934 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
28935 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
28936 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
28937 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
28938 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
28939 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
28940 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS }, | |
28941 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS }, | |
28942 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS }, | |
28943 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS }, | |
28944 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28945 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28946 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
28947 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, | |
28948 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, | |
28949 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
28950 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, | |
28951 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, | |
28952 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28953 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
28954 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, | |
28955 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, | |
28956 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, | |
28957 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, | |
28958 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, | |
28959 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS }, | |
28960 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
28961 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
28962 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
28963 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
28964 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
28965 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
28966 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS }, | |
28967 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS }, | |
28968 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS }, | |
28969 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS }, | |
28970 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, | |
28971 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, | |
28972 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28973 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, | |
28974 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, | |
28975 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, | |
28976 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28977 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
28978 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, | |
28979 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
28980 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28981 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
28982 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
28983 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
28984 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
28985 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
28986 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
28987 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
28988 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
28989 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
28990 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
28991 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28992 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28993 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS }, | |
28994 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS }, | |
28995 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS }, | |
28996 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS }, | |
28997 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, | |
28998 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28999 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS }, | |
29000 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
29001 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS }, | |
29002 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS }, | |
29003 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS }, | |
29004 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS }, | |
29005 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS }, | |
29006 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS }, | |
29007 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS }, | |
29008 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS }, | |
29009 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS }, | |
29010 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS }, | |
29011 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
29012 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS }, | |
29013 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS }, | |
29014 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
29015 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
29016 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS }, | |
29017 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
29018 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS }, | |
29019 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS }, | |
1a10c483 RD |
29020 | { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS }, |
29021 | { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
29022 | { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
29023 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS }, |
29024 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
29025 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
29026 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS }, | |
29027 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS }, | |
29028 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS }, | |
29029 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS }, | |
29030 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
29031 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS }, | |
29032 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS }, | |
29033 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS }, | |
29034 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS }, | |
29035 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
29036 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
29037 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS }, | |
29038 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
29039 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29040 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
29041 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS }, | |
29042 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
29043 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
29044 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS }, | |
29045 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
29046 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
15afbcd0 | 29047 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
29048 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS }, |
29049 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
29050 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, |
29051 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
29052 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS }, | |
29053 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS }, | |
29054 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS }, | |
29055 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS }, | |
29056 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS }, | |
29057 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS }, | |
29058 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
29059 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS }, | |
29060 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS }, | |
29061 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
29062 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
29063 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
29064 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS }, | |
29065 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
29066 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
29067 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS }, | |
29068 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS }, | |
29069 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS }, | |
15afbcd0 | 29070 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
29071 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
29072 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
29073 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
29074 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
29075 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
29076 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
29077 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
29078 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
29079 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS }, | |
29080 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS }, | |
29081 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
29082 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
29083 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
29084 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
29085 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
29086 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
29087 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
29088 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS }, | |
29089 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
29090 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
29091 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
29092 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
29093 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
29094 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
29095 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
29096 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS }, | |
29097 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
29098 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
29099 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS }, | |
29100 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS }, | |
29101 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS }, | |
29102 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS }, | |
29103 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS }, | |
29104 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
29105 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS }, | |
29106 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS }, | |
29107 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS }, | |
29108 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS }, | |
dfbb5885 | 29109 | { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
29110 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS }, |
29111 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
29112 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
29113 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
29114 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS }, | |
4276dc52 RD |
29115 | { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS }, |
29116 | { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS }, | |
29117 | { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS }, | |
29118 | { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
29119 | { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
29120 | { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
29121 | { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
29122 | { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS }, | |
29123 | { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS }, | |
29124 | { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS }, | |
29125 | { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS }, | |
29126 | { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS }, | |
29127 | { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS }, | |
29128 | { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS }, | |
29129 | { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS }, | |
29130 | { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS }, | |
29131 | { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS }, | |
29132 | { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS }, | |
29133 | { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS }, | |
29134 | { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS }, | |
29135 | { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
29136 | { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
29137 | { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
29138 | { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
29139 | { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS }, | |
29140 | { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS }, | |
29141 | { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS }, | |
29142 | { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS }, | |
29143 | { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS }, | |
29144 | { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS }, | |
29145 | { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS }, | |
29146 | { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
29147 | { NULL, NULL } |
29148 | }; | |
29149 | ||
29150 | ||
29151 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
29152 | ||
29153 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
29154 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
29155 | } | |
29156 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
29157 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
29158 | } | |
29159 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
29160 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
29161 | } | |
29162 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
29163 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
29164 | } | |
29165 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
29166 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
29167 | } | |
29168 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
29169 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
29170 | } | |
29171 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
29172 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
29173 | } | |
29174 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
29175 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
29176 | } | |
29177 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
29178 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
29179 | } | |
29180 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
29181 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
29182 | } | |
29183 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
29184 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
29185 | } | |
29186 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
29187 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
29188 | } | |
29189 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
29190 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
29191 | } | |
29192 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
29193 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
29194 | } | |
29195 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
29196 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
29197 | } | |
29198 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
29199 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
29200 | } | |
29201 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
29202 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
29203 | } | |
29204 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
29205 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
29206 | } | |
29207 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
29208 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
29209 | } | |
29210 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
29211 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
29212 | } | |
29213 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
29214 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
29215 | } | |
29216 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
29217 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
29218 | } | |
29219 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
29220 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
29221 | } | |
29222 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
29223 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
29224 | } | |
29225 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
29226 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
29227 | } | |
29228 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
29229 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
29230 | } | |
29231 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
29232 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
29233 | } | |
29234 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
29235 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
29236 | } | |
29237 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
29238 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
29239 | } | |
29240 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
29241 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
29242 | } | |
29243 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
29244 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
29245 | } | |
29246 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
29247 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
29248 | } | |
29249 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
29250 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
29251 | } | |
29252 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
29253 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
29254 | } | |
29255 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
29256 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
29257 | } | |
29258 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
29259 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
29260 | } | |
29261 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
29262 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
29263 | } | |
29264 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
29265 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
29266 | } | |
29267 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
29268 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
29269 | } | |
29270 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
29271 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
29272 | } | |
29273 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
29274 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29275 | } | |
29276 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
29277 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29278 | } | |
29279 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
29280 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
29281 | } | |
29282 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
29283 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
29284 | } | |
29285 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
29286 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
29287 | } | |
29288 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
29289 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
29290 | } | |
29291 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
29292 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29293 | } | |
29294 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
29295 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
29296 | } | |
29297 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
29298 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29299 | } | |
29300 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
29301 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
29302 | } | |
29303 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
29304 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
29305 | } | |
29306 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
29307 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
29308 | } | |
29309 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
29310 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
29311 | } | |
29312 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
29313 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
29314 | } | |
29315 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
29316 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
29317 | } | |
29318 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29319 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
29320 | } | |
29321 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29322 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29323 | } | |
29324 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29325 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
29326 | } | |
29327 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29328 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29329 | } | |
29330 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29331 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
29332 | } | |
29333 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29334 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
29335 | } | |
29336 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29337 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
29338 | } | |
29339 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
29340 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
29341 | } | |
29342 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
29343 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
29344 | } | |
29345 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
29346 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29347 | } | |
29348 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
29349 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
29350 | } | |
29351 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
29352 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
29353 | } | |
29354 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
29355 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
29356 | } | |
29357 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
29358 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
29359 | } | |
29360 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
29361 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
29362 | } | |
29363 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
29364 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
29365 | } | |
29366 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
29367 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
29368 | } | |
29369 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
29370 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
29371 | } | |
29372 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
29373 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
29374 | } | |
29375 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
29376 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
29377 | } | |
29378 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
29379 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
29380 | } | |
29381 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
29382 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
29383 | } | |
29384 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
29385 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
29386 | } | |
29387 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
29388 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
29389 | } | |
29390 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
29391 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
29392 | } | |
29393 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
29394 | return (void *)((wxObject *) ((wxSizer *) x)); | |
29395 | } | |
29396 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
29397 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
29398 | } | |
29399 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
29400 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
29401 | } | |
29402 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
29403 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
29404 | } | |
29405 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
29406 | return (void *)((wxObject *) ((wxEvent *) x)); | |
29407 | } | |
29408 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
29409 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
29410 | } | |
29411 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
29412 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
29413 | } | |
29414 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
29415 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
29416 | } | |
29417 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
29418 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
29419 | } | |
29420 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
29421 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
29422 | } | |
29423 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
29424 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
29425 | } | |
29426 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
29427 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
29428 | } | |
29429 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
29430 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
29431 | } | |
29432 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
29433 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
29434 | } | |
29435 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
29436 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
29437 | } | |
29438 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
29439 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
29440 | } | |
29441 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
29442 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
29443 | } | |
29444 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
29445 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
29446 | } | |
29447 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
29448 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
29449 | } | |
29450 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
29451 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
29452 | } | |
29453 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
29454 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
29455 | } | |
29456 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
29457 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
29458 | } | |
29459 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
29460 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
29461 | } | |
29462 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
29463 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
29464 | } | |
29465 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
29466 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
29467 | } | |
29468 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
29469 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
29470 | } | |
29471 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
29472 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
29473 | } | |
29474 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
29475 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
29476 | } | |
29477 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
29478 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
29479 | } | |
29480 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
29481 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
29482 | } | |
29483 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
29484 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
29485 | } | |
29486 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
29487 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
29488 | } | |
29489 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
29490 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
29491 | } | |
29492 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
29493 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
29494 | } | |
29495 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
29496 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
29497 | } | |
29498 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
29499 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
29500 | } | |
29501 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
29502 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
29503 | } | |
29504 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
29505 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
29506 | } | |
29507 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
29508 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
29509 | } | |
29510 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
29511 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
29512 | } | |
29513 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
29514 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
29515 | } | |
29516 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
29517 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
29518 | } | |
29519 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
29520 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
29521 | } | |
29522 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
29523 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
29524 | } | |
29525 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
29526 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
29527 | } | |
29528 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
29529 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
29530 | } | |
1e0c8722 RD |
29531 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
29532 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
29533 | } | |
d14a1e28 RD |
29534 | static void *_p_wxImageTo_p_wxObject(void *x) { |
29535 | return (void *)((wxObject *) ((wxImage *) x)); | |
29536 | } | |
29537 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
29538 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
29539 | } | |
29540 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
29541 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
29542 | } | |
29543 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
29544 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
29545 | } | |
29546 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
29547 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
29548 | } | |
29549 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
29550 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
29551 | } | |
29552 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
29553 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
29554 | } | |
29555 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
29556 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
29557 | } | |
29558 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
29559 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
29560 | } | |
29561 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
29562 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
29563 | } | |
29564 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
29565 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
29566 | } | |
29567 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
29568 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
29569 | } | |
29570 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
29571 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
29572 | } | |
29573 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
29574 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
29575 | } | |
29576 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
29577 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
29578 | } | |
29579 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
29580 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
29581 | } | |
29582 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
29583 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
29584 | } | |
29585 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
29586 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
29587 | } | |
29588 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
29589 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
29590 | } | |
29591 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
29592 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
29593 | } | |
29594 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
29595 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
29596 | } | |
29597 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
29598 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
29599 | } | |
29600 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
29601 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
29602 | } | |
29603 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
29604 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
29605 | } | |
29606 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
29607 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
29608 | } | |
29609 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
29610 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29611 | } | |
29612 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
29613 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
29614 | } | |
29615 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
29616 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
29617 | } | |
29618 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
29619 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
29620 | } | |
29621 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
29622 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
29623 | } | |
29624 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
29625 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
29626 | } | |
29627 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
29628 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
29629 | } | |
29630 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
29631 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
29632 | } | |
29633 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
29634 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
29635 | } | |
29636 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
29637 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
29638 | } | |
29639 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
29640 | return (void *)((wxWindow *) ((wxControl *) x)); | |
29641 | } | |
29642 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
29643 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
29644 | } | |
29645 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
29646 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
29647 | } | |
29648 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
29649 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
29650 | } | |
29651 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
29652 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
29653 | } | |
15afbcd0 RD |
29654 | 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}}; |
29655 | 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}}; | |
29656 | 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}}; | |
29657 | 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}}; | |
29658 | 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}}; | |
29659 | 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}}; | |
29660 | 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}}; | |
29661 | 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 | 29662 | 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 |
29663 | 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}}; |
29664 | 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}}; | |
29665 | 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}}; | |
29666 | 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}}; | |
29667 | 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}}; | |
29668 | 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}}; | |
29669 | 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}}; | |
29670 | 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}}; | |
29671 | 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}}; | |
29672 | 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}}; | |
29673 | 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}}; | |
29674 | 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}}; | |
29675 | 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}}; | |
29676 | 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}}; | |
29677 | 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}}; | |
29678 | 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}}; | |
29679 | 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 | 29680 | 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 |
29681 | 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}}; |
29682 | 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}}; | |
29683 | 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}}; | |
29684 | 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 |
29685 | 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}}; |
29686 | 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}}; | |
29687 | 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}}; | |
29688 | 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}}; | |
29689 | 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}}; | |
29690 | 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}}; | |
29691 | 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}}; | |
29692 | 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}}; | |
29693 | 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}}; | |
29694 | 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}}; | |
29695 | 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}}; | |
29696 | 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}}; | |
29697 | 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}}; | |
29698 | 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 | 29699 | 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 |
29700 | 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}}; |
29701 | 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}}; | |
29702 | 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}}; | |
29703 | 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}}; | |
29704 | 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}}; | |
29705 | 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}}; | |
29706 | 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}}; | |
29707 | 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}}; | |
29708 | 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}}; | |
29709 | 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}}; | |
29710 | 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}}; | |
29711 | 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}}; | |
29712 | 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}}; | |
29713 | 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}}; | |
29714 | 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}}; | |
29715 | 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}}; | |
29716 | 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}}; | |
29717 | 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}}; | |
29718 | 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}}; | |
29719 | 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}}; | |
29720 | 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}}; | |
29721 | 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}}; | |
29722 | 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}}; | |
29723 | 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}}; | |
29724 | 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}}; | |
29725 | 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}}; | |
29726 | 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}}; | |
29727 | 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}}; | |
29728 | 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}}; | |
29729 | 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}}; | |
29730 | 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}}; | |
29731 | 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}}; | |
29732 | 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}}; | |
29733 | 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}}; | |
29734 | 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}}; | |
29735 | 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 |
29736 | 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}}; |
29737 | 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}}; | |
29738 | 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 |
29739 | |
29740 | static swig_type_info *swig_types_initial[] = { | |
29741 | _swigt__p_wxLogChain, | |
29742 | _swigt__p_wxMutexGuiLocker, | |
29743 | _swigt__p_wxFileHistory, | |
29744 | _swigt__p_wxLog, | |
29745 | _swigt__p_wxDateTime__TimeZone, | |
29746 | _swigt__p_wxMenu, | |
29747 | _swigt__p_wxEvent, | |
29748 | _swigt__p_wxConfigBase, | |
4276dc52 | 29749 | _swigt__p_wxDisplay, |
d14a1e28 RD |
29750 | _swigt__p_wxFileType, |
29751 | _swigt__p_wxLogGui, | |
29752 | _swigt__p_wxFont, | |
29753 | _swigt__p_wxDataFormat, | |
29754 | _swigt__p_wxTimerEvent, | |
29755 | _swigt__p_wxCaret, | |
29756 | _swigt__p_int, | |
29757 | _swigt__p_wxSize, | |
29758 | _swigt__p_wxClipboard, | |
29759 | _swigt__p_wxStopWatch, | |
29760 | _swigt__p_wxDC, | |
29761 | _swigt__p_wxClipboardLocker, | |
29762 | _swigt__p_wxIcon, | |
29763 | _swigt__p_wxLogStderr, | |
29764 | _swigt__p_wxLogTextCtrl, | |
29765 | _swigt__p_wxTextCtrl, | |
29766 | _swigt__p_wxBusyCursor, | |
36cadbf7 | 29767 | _swigt__p_wxPyBitmapDataObject, |
d14a1e28 RD |
29768 | _swigt__p_wxPyTextDataObject, |
29769 | _swigt__p_wxBitmapDataObject, | |
29770 | _swigt__p_wxTextDataObject, | |
29771 | _swigt__p_wxDataObject, | |
994141e6 | 29772 | _swigt__p_wxFileDataObject, |
d14a1e28 RD |
29773 | _swigt__p_wxCustomDataObject, |
29774 | _swigt__p_wxURLDataObject, | |
29775 | _swigt__p_wxMetafileDataObject, | |
4d5c3d91 | 29776 | _swigt__p_wxSound, |
d14a1e28 RD |
29777 | _swigt__p_wxTimerRunner, |
29778 | _swigt__p_wxLogWindow, | |
29779 | _swigt__p_wxTimeSpan, | |
29780 | _swigt__p_wxArrayString, | |
29781 | _swigt__p_wxWindowDisabler, | |
29782 | _swigt__p_wxToolTip, | |
29783 | _swigt__p_wxDataObjectComposite, | |
29784 | _swigt__p_wxFileConfig, | |
29785 | _swigt__p_wxSystemSettings, | |
4276dc52 | 29786 | _swigt__p_wxVideoMode, |
d14a1e28 RD |
29787 | _swigt__p_wxPyDataObjectSimple, |
29788 | _swigt__p_wxDataObjectSimple, | |
29789 | _swigt__p_wxEvtHandler, | |
29790 | _swigt__p_wxRect, | |
994141e6 | 29791 | _swigt__p_char, |
d14a1e28 RD |
29792 | _swigt__p_wxSingleInstanceChecker, |
29793 | _swigt__p_wxFileTypeInfo, | |
29794 | _swigt__p_wxFrame, | |
29795 | _swigt__p_wxTimer, | |
29796 | _swigt__p_wxMimeTypesManager, | |
29797 | _swigt__p_wxPyArtProvider, | |
29798 | _swigt__p_wxPyTipProvider, | |
29799 | _swigt__p_wxTipProvider, | |
29800 | _swigt__p_wxJoystick, | |
29801 | _swigt__p_wxSystemOptions, | |
29802 | _swigt__p_wxPoint, | |
29803 | _swigt__p_wxJoystickEvent, | |
29804 | _swigt__p_wxCursor, | |
29805 | _swigt__p_wxObject, | |
29806 | _swigt__p_wxOutputStream, | |
29807 | _swigt__p_wxDateTime, | |
29808 | _swigt__p_wxPyDropSource, | |
29809 | _swigt__p_wxWindow, | |
29810 | _swigt__p_wxString, | |
29811 | _swigt__p_wxPyProcess, | |
29812 | _swigt__p_wxBitmap, | |
29813 | _swigt__p_wxConfig, | |
29814 | _swigt__p_wxChar, | |
29815 | _swigt__p_wxBusyInfo, | |
29816 | _swigt__p_wxPyDropTarget, | |
29817 | _swigt__p_wxPyTextDropTarget, | |
29818 | _swigt__p_wxPyFileDropTarget, | |
29819 | _swigt__p_wxProcessEvent, | |
29820 | _swigt__p_wxPyLog, | |
29821 | _swigt__p_wxLogNull, | |
29822 | _swigt__p_wxColour, | |
29823 | _swigt__p_wxConfigPathChanger, | |
29824 | _swigt__p_wxPyTimer, | |
29825 | _swigt__p_wxDateSpan, | |
29826 | 0 | |
29827 | }; | |
29828 | ||
29829 | ||
29830 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
29831 | ||
29832 | static swig_const_info swig_const_table[] = { | |
15afbcd0 RD |
29833 | { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char}, |
29834 | { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char}, | |
29835 | { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char}, | |
29836 | { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char}, | |
29837 | { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char}, | |
d14a1e28 RD |
29838 | {0}}; |
29839 | ||
29840 | #ifdef __cplusplus | |
29841 | } | |
29842 | #endif | |
29843 | ||
29844 | #ifdef __cplusplus | |
29845 | extern "C" | |
29846 | #endif | |
29847 | SWIGEXPORT(void) SWIG_init(void) { | |
29848 | static PyObject *SWIG_globals = 0; | |
29849 | static int typeinit = 0; | |
29850 | PyObject *m, *d; | |
29851 | int i; | |
29852 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
29853 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
29854 | d = PyModule_GetDict(m); | |
29855 | ||
29856 | if (!typeinit) { | |
29857 | for (i = 0; swig_types_initial[i]; i++) { | |
29858 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
29859 | } | |
29860 | typeinit = 1; | |
29861 | } | |
29862 | SWIG_InstallConstants(d,swig_const_table); | |
29863 | ||
15afbcd0 RD |
29864 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT)); |
29865 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT)); | |
29866 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT)); | |
29867 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT)); | |
29868 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT)); | |
29869 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE)); | |
29870 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT)); | |
29871 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT)); | |
29872 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT)); | |
29873 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR)); | |
29874 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND)); | |
29875 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP)); | |
29876 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION)); | |
29877 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION)); | |
29878 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU)); | |
29879 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW)); | |
29880 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME)); | |
29881 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT)); | |
29882 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT)); | |
29883 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT)); | |
29884 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER)); | |
29885 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER)); | |
29886 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE)); | |
29887 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT)); | |
29888 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
29889 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE)); | |
29890 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE)); | |
29891 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW)); | |
29892 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW)); | |
29893 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT)); | |
29894 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT)); | |
29895 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
29896 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT)); | |
29897 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT)); | |
29898 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT)); | |
29899 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT)); | |
29900 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW)); | |
29901 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT)); | |
29902 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT)); | |
29903 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK)); | |
29904 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX)); | |
29905 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT)); | |
29906 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
29907 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
29908 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT)); | |
29909 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR)); | |
29910 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX)); | |
29911 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS)); | |
29912 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X)); | |
29913 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y)); | |
29914 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X)); | |
29915 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y)); | |
29916 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X)); | |
29917 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y)); | |
29918 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X)); | |
29919 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y)); | |
29920 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X)); | |
29921 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y)); | |
29922 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X)); | |
29923 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y)); | |
29924 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X)); | |
29925 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X)); | |
29926 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y)); | |
29927 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X)); | |
29928 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y)); | |
29929 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X)); | |
29930 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y)); | |
29931 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X)); | |
29932 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y)); | |
29933 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X)); | |
29934 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y)); | |
29935 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X)); | |
29936 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y)); | |
29937 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y)); | |
29938 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X)); | |
29939 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X)); | |
29940 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y)); | |
29941 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y)); | |
29942 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y)); | |
29943 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y)); | |
29944 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT)); | |
29945 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT)); | |
29946 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS)); | |
29947 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS)); | |
29948 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS)); | |
29949 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME)); | |
29950 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE)); | |
29951 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY)); | |
29952 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA)); | |
29953 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL)); | |
29954 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP)); | |
b2dc1044 RD |
29955 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
29956 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
29957 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
29958 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
15afbcd0 RD |
29959 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF)); |
29960 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT)); | |
29961 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS)); | |
29962 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT)); | |
d14a1e28 | 29963 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); |
1c0f361b RD |
29964 | |
29965 | wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer"); | |
29966 | ||
15afbcd0 RD |
29967 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError)); |
29968 | PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error)); | |
29969 | PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning)); | |
29970 | PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message)); | |
29971 | PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status)); | |
29972 | PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info)); | |
29973 | PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug)); | |
29974 | PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace)); | |
29975 | PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress)); | |
29976 | PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User)); | |
29977 | PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max)); | |
29978 | PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc")); | |
29979 | PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages")); | |
29980 | PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc")); | |
29981 | PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount")); | |
29982 | PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole")); | |
29983 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001)); | |
29984 | PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002)); | |
29985 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004)); | |
29986 | PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008)); | |
29987 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100)); | |
29988 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT)); | |
29989 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT)); | |
29990 | PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK)); | |
29991 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL)); | |
29992 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED)); | |
29993 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS)); | |
29994 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR)); | |
29995 | PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE)); | |
29996 | PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP)); | |
29997 | PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT)); | |
29998 | PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT)); | |
29999 | PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL)); | |
30000 | PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP)); | |
30001 | PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT)); | |
30002 | PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT)); | |
30003 | PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT)); | |
30004 | PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE)); | |
30005 | PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL)); | |
30006 | PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS)); | |
30007 | PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV)); | |
30008 | PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS)); | |
30009 | PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE)); | |
30010 | PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM)); | |
30011 | PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM)); | |
d14a1e28 | 30012 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); |
15afbcd0 RD |
30013 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC)); |
30014 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC)); | |
30015 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE)); | |
30016 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER)); | |
d14a1e28 RD |
30017 | |
30018 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
30019 | ||
15afbcd0 RD |
30020 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1)); |
30021 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2)); | |
30022 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY)); | |
30023 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1)); | |
30024 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2)); | |
30025 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3)); | |
30026 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4)); | |
d14a1e28 RD |
30027 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); |
30028 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
30029 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
30030 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
15afbcd0 RD |
30031 | PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC)); |
30032 | PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC)); | |
30033 | PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP)); | |
30034 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD)); | |
30035 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE)); | |
30036 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE)); | |
30037 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME)); | |
30038 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL)); | |
d14a1e28 RD |
30039 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); |
30040 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
30041 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
30042 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
30043 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
30044 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
30045 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
4cf4100f | 30046 | SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set); |
d14a1e28 RD |
30047 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); |
30048 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
30049 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
30050 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
30051 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
30052 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
30053 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
30054 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
30055 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
30056 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
30057 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
30058 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
30059 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
30060 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
30061 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
30062 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
30063 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
30064 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
30065 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
30066 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
30067 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
30068 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
30069 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
30070 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
30071 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
30072 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
30073 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
30074 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
30075 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
30076 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
30077 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
30078 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
30079 | ||
30080 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
30081 | ||
15afbcd0 RD |
30082 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE)); |
30083 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE)); | |
30084 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH)); | |
30085 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS)); | |
30086 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown)); | |
30087 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String)); | |
30088 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean)); | |
30089 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer)); | |
30090 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float)); | |
b2dc1044 RD |
30091 | SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); |
30092 | SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); | |
15afbcd0 RD |
30093 | PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local)); |
30094 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12)); | |
30095 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11)); | |
30096 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10)); | |
30097 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9)); | |
30098 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8)); | |
30099 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7)); | |
30100 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6)); | |
30101 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5)); | |
30102 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4)); | |
30103 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3)); | |
30104 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2)); | |
30105 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1)); | |
30106 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0)); | |
30107 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1)); | |
30108 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2)); | |
30109 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3)); | |
30110 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4)); | |
30111 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5)); | |
30112 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6)); | |
30113 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7)); | |
30114 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8)); | |
30115 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9)); | |
30116 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10)); | |
30117 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11)); | |
30118 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12)); | |
30119 | PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET)); | |
30120 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST)); | |
30121 | PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET)); | |
30122 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST)); | |
30123 | PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET)); | |
30124 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST)); | |
30125 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK)); | |
30126 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD)); | |
30127 | PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST)); | |
30128 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT)); | |
30129 | PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST)); | |
30130 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT)); | |
30131 | PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST)); | |
30132 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT)); | |
30133 | PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST)); | |
30134 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT)); | |
30135 | PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST)); | |
30136 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT)); | |
30137 | PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST)); | |
30138 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST)); | |
30139 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT)); | |
30140 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST)); | |
30141 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST)); | |
30142 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST)); | |
30143 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST)); | |
30144 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC)); | |
30145 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian)); | |
30146 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian)); | |
30147 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown)); | |
30148 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard)); | |
30149 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska)); | |
30150 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania)); | |
30151 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria)); | |
30152 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen)); | |
30153 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg)); | |
30154 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol)); | |
30155 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia)); | |
30156 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria)); | |
30157 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium)); | |
30158 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria)); | |
30159 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1)); | |
30160 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2)); | |
30161 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3)); | |
30162 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada)); | |
30163 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China)); | |
30164 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1)); | |
30165 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2)); | |
30166 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia)); | |
30167 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark)); | |
30168 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt)); | |
30169 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia)); | |
30170 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland)); | |
30171 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France)); | |
30172 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace)); | |
30173 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine)); | |
30174 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg)); | |
30175 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany)); | |
30176 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic)); | |
30177 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia)); | |
30178 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant)); | |
30179 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain)); | |
30180 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece)); | |
30181 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary)); | |
30182 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland)); | |
30183 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy)); | |
30184 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan)); | |
30185 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1)); | |
30186 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2)); | |
30187 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3)); | |
30188 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia)); | |
30189 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania)); | |
30190 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg)); | |
30191 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands)); | |
30192 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen)); | |
30193 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland)); | |
30194 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht)); | |
30195 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland)); | |
30196 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway)); | |
30197 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland)); | |
30198 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal)); | |
30199 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania)); | |
30200 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia)); | |
30201 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland)); | |
30202 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain)); | |
30203 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden)); | |
30204 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland)); | |
30205 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic)); | |
30206 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant)); | |
30207 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey)); | |
30208 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA)); | |
30209 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales)); | |
30210 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia)); | |
30211 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown)); | |
30212 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default)); | |
30213 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start)); | |
30214 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC)); | |
30215 | PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France)); | |
30216 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany)); | |
30217 | PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK)); | |
30218 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End)); | |
30219 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia)); | |
30220 | PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA)); | |
30221 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan)); | |
30222 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb)); | |
30223 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar)); | |
30224 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr)); | |
30225 | PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May)); | |
30226 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun)); | |
30227 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul)); | |
30228 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug)); | |
30229 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep)); | |
30230 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct)); | |
30231 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov)); | |
30232 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec)); | |
30233 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month)); | |
30234 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun)); | |
30235 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon)); | |
30236 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue)); | |
30237 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed)); | |
30238 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu)); | |
30239 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri)); | |
30240 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat)); | |
30241 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay)); | |
30242 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year)); | |
30243 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full)); | |
30244 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr)); | |
30245 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First)); | |
30246 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First)); | |
30247 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First)); | |
98e665d3 | 30248 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); |
15afbcd0 RD |
30249 | PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID)); |
30250 | PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT)); | |
30251 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP)); | |
30252 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE)); | |
30253 | PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK)); | |
30254 | PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF)); | |
30255 | PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF)); | |
30256 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT)); | |
30257 | PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB)); | |
30258 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE)); | |
30259 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA)); | |
30260 | PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF)); | |
30261 | PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE)); | |
30262 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT)); | |
30263 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE)); | |
30264 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME)); | |
30265 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE)); | |
30266 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE)); | |
30267 | PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML)); | |
30268 | PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX)); | |
d14a1e28 | 30269 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); |
15afbcd0 RD |
30270 | PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get)); |
30271 | PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set)); | |
30272 | PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both)); | |
30273 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly)); | |
30274 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove)); | |
30275 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove)); | |
30276 | PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError)); | |
30277 | PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone)); | |
30278 | PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy)); | |
30279 | PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove)); | |
30280 | PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink)); | |
30281 | PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel)); | |
d14a1e28 RD |
30282 | |
30283 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
30284 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
30285 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
30286 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
30287 | ||
4276dc52 | 30288 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set); |
d14a1e28 RD |
30289 | } |
30290 |