]>
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 | ||
cc6dd355 | 126 | |
d14a1e28 RD |
127 | /*********************************************************************** |
128 | * pyrun.swg for wxPython | |
129 | * | |
130 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
131 | * but not the runtime functions themselves. This helps keep the | |
132 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
133 | * anyway. | |
134 | * | |
135 | ************************************************************************/ | |
136 | ||
d14a1e28 RD |
137 | #include "Python.h" |
138 | ||
139 | #ifdef __cplusplus | |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | #define SWIG_PY_INT 1 | |
144 | #define SWIG_PY_FLOAT 2 | |
145 | #define SWIG_PY_STRING 3 | |
146 | #define SWIG_PY_POINTER 4 | |
147 | #define SWIG_PY_BINARY 5 | |
148 | ||
149 | /* Flags for pointer conversion */ | |
150 | ||
151 | #define SWIG_POINTER_EXCEPTION 0x1 | |
152 | #define SWIG_POINTER_DISOWN 0x2 | |
153 | ||
154 | /* Exception handling in wrappers */ | |
155 | #define SWIG_fail goto fail | |
156 | ||
157 | /* Constant information structure */ | |
158 | typedef struct swig_const_info { | |
159 | int type; | |
160 | char *name; | |
161 | long lvalue; | |
162 | double dvalue; | |
163 | void *pvalue; | |
164 | swig_type_info **ptype; | |
165 | } swig_const_info; | |
166 | ||
d14a1e28 RD |
167 | /* Common SWIG API */ |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
a41e16b6 | 174 | |
d14a1e28 RD |
175 | /* Python-specific SWIG API */ |
176 | #define SWIG_newvarlink() \ | |
177 | SWIG_Python_newvarlink() | |
178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
182 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
183 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
184 | #define SWIG_InstallConstants(d, constants) \ | |
185 | SWIG_Python_InstallConstants(d, constants) | |
186 | ||
994141e6 | 187 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 188 | |
cc6dd355 RD |
189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 197 | |
994141e6 RD |
198 | /* ----------------------------------------------------------------------------- |
199 | * the needed conversions between C++ and python | |
200 | * ----------------------------------------------------------------------------- */ | |
201 | /* basic types */ | |
202 | /* | |
203 | utilities | |
204 | */ | |
205 | SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject *obj, swig_type_info* pchar_info); | |
206 | SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharPtr(const char* cptr); | |
207 | SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject * obj); | |
208 | SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type, | |
209 | long min_value, long max_value); | |
210 | SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject *obj, const char* type, | |
211 | unsigned long max_value); | |
212 | SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject *obj, swig_type_info* pchar_info); | |
213 | SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject *obj, swig_type_info* pchar_info, | |
214 | char** cptr, size_t* size); | |
215 | SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject *obj, swig_type_info* pchar_info, | |
216 | char* carray, size_t size); | |
217 | SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharArray(const char* carray, size_t size); | |
218 | SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject *obj, py_objasdbl_conv pyconv); | |
d14a1e28 RD |
219 | |
220 | ||
221 | /* Contract support */ | |
222 | ||
9d1d5697 | 223 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 224 | |
d14a1e28 RD |
225 | #ifdef __cplusplus |
226 | } | |
227 | #endif | |
228 | ||
229 | ||
230 | ||
231 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
232 | ||
233 | #define SWIGTYPE_p_wxLogChain swig_types[0] | |
234 | #define SWIGTYPE_p_wxMutexGuiLocker swig_types[1] | |
235 | #define SWIGTYPE_p_wxFileHistory swig_types[2] | |
236 | #define SWIGTYPE_p_wxLog swig_types[3] | |
237 | #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[4] | |
238 | #define SWIGTYPE_p_wxMenu swig_types[5] | |
239 | #define SWIGTYPE_p_wxEvent swig_types[6] | |
240 | #define SWIGTYPE_p_wxConfigBase swig_types[7] | |
4d5c3d91 RD |
241 | #define SWIGTYPE_p_wxFileType swig_types[8] |
242 | #define SWIGTYPE_p_wxLogGui swig_types[9] | |
243 | #define SWIGTYPE_p_wxFont swig_types[10] | |
244 | #define SWIGTYPE_p_wxDataFormat swig_types[11] | |
245 | #define SWIGTYPE_p_wxTimerEvent swig_types[12] | |
246 | #define SWIGTYPE_p_wxCaret swig_types[13] | |
247 | #define SWIGTYPE_p_int swig_types[14] | |
248 | #define SWIGTYPE_p_wxSize swig_types[15] | |
249 | #define SWIGTYPE_p_wxClipboard swig_types[16] | |
250 | #define SWIGTYPE_p_wxStopWatch swig_types[17] | |
251 | #define SWIGTYPE_p_wxDC swig_types[18] | |
252 | #define SWIGTYPE_p_wxClipboardLocker swig_types[19] | |
253 | #define SWIGTYPE_p_wxIcon swig_types[20] | |
254 | #define SWIGTYPE_p_wxLogStderr swig_types[21] | |
255 | #define SWIGTYPE_p_wxLogTextCtrl swig_types[22] | |
256 | #define SWIGTYPE_p_wxTextCtrl swig_types[23] | |
257 | #define SWIGTYPE_p_wxBusyCursor swig_types[24] | |
258 | #define SWIGTYPE_p_wxPyTextDataObject swig_types[25] | |
259 | #define SWIGTYPE_p_wxBitmapDataObject swig_types[26] | |
260 | #define SWIGTYPE_p_wxTextDataObject swig_types[27] | |
261 | #define SWIGTYPE_p_wxDataObject swig_types[28] | |
262 | #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[29] | |
263 | #define SWIGTYPE_p_wxFileDataObject swig_types[30] | |
264 | #define SWIGTYPE_p_wxCustomDataObject swig_types[31] | |
265 | #define SWIGTYPE_p_wxURLDataObject swig_types[32] | |
266 | #define SWIGTYPE_p_wxMetafileDataObject swig_types[33] | |
267 | #define SWIGTYPE_p_wxSound swig_types[34] | |
d14a1e28 RD |
268 | #define SWIGTYPE_p_wxTimerRunner swig_types[35] |
269 | #define SWIGTYPE_p_wxLogWindow swig_types[36] | |
270 | #define SWIGTYPE_p_wxTimeSpan swig_types[37] | |
271 | #define SWIGTYPE_p_wxArrayString swig_types[38] | |
272 | #define SWIGTYPE_p_wxWindowDisabler swig_types[39] | |
273 | #define SWIGTYPE_p_wxToolTip swig_types[40] | |
274 | #define SWIGTYPE_p_wxDataObjectComposite swig_types[41] | |
275 | #define SWIGTYPE_p_wxFileConfig swig_types[42] | |
276 | #define SWIGTYPE_p_wxSystemSettings swig_types[43] | |
277 | #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[44] | |
278 | #define SWIGTYPE_p_wxDataObjectSimple swig_types[45] | |
279 | #define SWIGTYPE_p_wxEvtHandler swig_types[46] | |
280 | #define SWIGTYPE_p_wxRect swig_types[47] | |
994141e6 RD |
281 | #define SWIGTYPE_p_char swig_types[48] |
282 | #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[49] | |
283 | #define SWIGTYPE_p_wxFileTypeInfo swig_types[50] | |
284 | #define SWIGTYPE_p_wxFrame swig_types[51] | |
285 | #define SWIGTYPE_p_wxTimer swig_types[52] | |
286 | #define SWIGTYPE_p_wxMimeTypesManager swig_types[53] | |
287 | #define SWIGTYPE_p_wxPyArtProvider swig_types[54] | |
288 | #define SWIGTYPE_p_wxPyTipProvider swig_types[55] | |
289 | #define SWIGTYPE_p_wxTipProvider swig_types[56] | |
290 | #define SWIGTYPE_p_wxJoystick swig_types[57] | |
291 | #define SWIGTYPE_p_wxSystemOptions swig_types[58] | |
292 | #define SWIGTYPE_p_wxPoint swig_types[59] | |
293 | #define SWIGTYPE_p_wxJoystickEvent swig_types[60] | |
294 | #define SWIGTYPE_p_wxCursor swig_types[61] | |
295 | #define SWIGTYPE_p_wxObject swig_types[62] | |
296 | #define SWIGTYPE_p_wxOutputStream swig_types[63] | |
297 | #define SWIGTYPE_p_wxDateTime swig_types[64] | |
298 | #define SWIGTYPE_p_wxPyDropSource swig_types[65] | |
299 | #define SWIGTYPE_p_wxWindow swig_types[66] | |
300 | #define SWIGTYPE_p_wxString swig_types[67] | |
301 | #define SWIGTYPE_p_wxPyProcess swig_types[68] | |
302 | #define SWIGTYPE_p_wxBitmap swig_types[69] | |
303 | #define SWIGTYPE_p_wxConfig swig_types[70] | |
304 | #define SWIGTYPE_p_wxChar swig_types[71] | |
305 | #define SWIGTYPE_p_wxBusyInfo swig_types[72] | |
306 | #define SWIGTYPE_p_wxPyDropTarget swig_types[73] | |
307 | #define SWIGTYPE_p_wxPyTextDropTarget swig_types[74] | |
308 | #define SWIGTYPE_p_wxPyFileDropTarget swig_types[75] | |
309 | #define SWIGTYPE_p_wxProcessEvent swig_types[76] | |
310 | #define SWIGTYPE_p_wxPyLog swig_types[77] | |
311 | #define SWIGTYPE_p_wxLogNull swig_types[78] | |
312 | #define SWIGTYPE_p_wxColour swig_types[79] | |
4d5c3d91 RD |
313 | #define SWIGTYPE_p_wxByte swig_types[80] |
314 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[81] | |
315 | #define SWIGTYPE_p_wxPyTimer swig_types[82] | |
316 | #define SWIGTYPE_p_wxDateSpan swig_types[83] | |
317 | static swig_type_info *swig_types[85]; | |
d14a1e28 RD |
318 | |
319 | /* -------- TYPES TABLE (END) -------- */ | |
320 | ||
321 | ||
322 | /*----------------------------------------------- | |
323 | @(target):= _misc.so | |
324 | ------------------------------------------------*/ | |
325 | #define SWIG_init init_misc | |
326 | ||
327 | #define SWIG_name "_misc" | |
328 | ||
994141e6 RD |
329 | #include <limits.h> |
330 | #include <float.h> | |
331 | #include <string.h> | |
332 | ||
333 | #ifndef SWIGSTATIC | |
334 | #ifdef __cplusplus | |
335 | #define SWIGSTATIC(a) static inline a | |
336 | #else | |
337 | #define SWIGSTATIC(a) static a | |
338 | #endif | |
339 | #endif | |
340 | ||
341 | #ifndef numeric_cast | |
342 | #ifdef __cplusplus | |
343 | #ifdef HAVE_NUMERIC_CAST | |
344 | #define numeric_cast(type,a) numeric_cast<type>(a) | |
345 | #else | |
346 | #define numeric_cast(type,a) static_cast<type>(a) | |
347 | #endif | |
348 | #else | |
349 | #define numeric_cast(type,a) (type)(a) | |
350 | #endif | |
351 | #endif | |
352 | ||
353 | ||
354 | ||
355 | #define SWIG_PyObj_FromSignedChar PyInt_FromLong | |
356 | #define SWIG_PyObj_FromUnsignedChar PyInt_FromLong | |
357 | #define SWIG_PyObj_FromShort PyInt_FromLong | |
358 | #define SWIG_PyObj_FromUnsignedShort PyInt_FromLong | |
359 | #define SWIG_PyObj_FromInt PyInt_FromLong | |
360 | #define SWIG_PyObj_FromLong PyInt_FromLong | |
361 | #define SWIG_PyObj_FromFloat PyFloat_FromDouble | |
362 | #define SWIG_PyObj_FromDouble PyFloat_FromDouble | |
363 | #define SWIG_PyObj_FromFloat PyFloat_FromDouble | |
364 | #define SWIG_PyObj_FromDouble PyFloat_FromDouble | |
365 | ||
366 | ||
d14a1e28 RD |
367 | #include "wx/wxPython/wxPython.h" |
368 | #include "wx/wxPython/pyclasses.h" | |
369 | #include "wx/wxPython/pyistream.h" | |
370 | ||
d14a1e28 | 371 | |
b2dc1044 | 372 | static const wxString wxPyEmptyString(wxEmptyString); |
d14a1e28 | 373 | |
d14a1e28 | 374 | |
994141e6 RD |
375 | |
376 | SWIGSTATIC(int) | |
377 | SWIG_PyObj_AsInt(PyObject *obj) | |
378 | { | |
379 | return numeric_cast(int, | |
380 | SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX)); | |
381 | } | |
382 | ||
b2dc1044 RD |
383 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); |
384 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
385 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
d14a1e28 | 386 | |
994141e6 RD |
387 | SWIGSTATIC(long) |
388 | SWIG_PyObj_AsLong(PyObject * obj) | |
389 | { | |
390 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
391 | } | |
392 | ||
393 | ||
394 | SWIGSTATIC(bool) | |
395 | SWIG_PyObj_AsBool(PyObject *obj) | |
396 | { | |
397 | return PyObject_IsTrue(obj) ? true : false; | |
398 | } | |
399 | ||
400 | ||
d14a1e28 RD |
401 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
402 | PyObject* o2; | |
403 | PyObject* o3; | |
404 | ||
405 | if (!target) { | |
406 | target = o; | |
407 | } else if (target == Py_None) { | |
408 | Py_DECREF(Py_None); | |
409 | target = o; | |
410 | } else { | |
411 | if (!PyTuple_Check(target)) { | |
412 | o2 = target; | |
413 | target = PyTuple_New(1); | |
414 | PyTuple_SetItem(target, 0, o2); | |
415 | } | |
416 | o3 = PyTuple_New(1); | |
417 | PyTuple_SetItem(o3, 0, o); | |
418 | ||
419 | o2 = target; | |
420 | target = PySequence_Concat(o2, o3); | |
421 | Py_DECREF(o2); | |
422 | Py_DECREF(o3); | |
423 | } | |
424 | return target; | |
425 | } | |
426 | ||
427 | ||
428 | long wxGetFreeMemory() | |
39f61e25 RD |
429 | { wxPyRaiseNotImplemented(); return 0; } |
430 | ||
431 | ||
994141e6 RD |
432 | SWIGSTATIC(PyObject* ) |
433 | SWIG_PyObj_FromUnsignedLong(unsigned long value) | |
434 | { | |
435 | return (value > (unsigned long)(LONG_MAX)) ? | |
436 | PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value); | |
437 | } | |
438 | ||
439 | ||
39f61e25 RD |
440 | bool wxGetKeyState(wxKeyCode key) |
441 | { wxPyRaiseNotImplemented(); return False; } | |
d14a1e28 RD |
442 | |
443 | ||
444 | void wxWakeUpMainThread() {} | |
445 | ||
446 | ||
447 | bool wxThread_IsMain() { | |
448 | #ifdef WXP_WITH_THREAD | |
449 | return wxThread::IsMain(); | |
450 | #else | |
e811c8ce | 451 | return True; |
d14a1e28 RD |
452 | #endif |
453 | } | |
454 | ||
455 | ||
456 | int wxCaret_GetBlinkTime() { | |
457 | return wxCaret::GetBlinkTime(); | |
458 | } | |
459 | ||
460 | void wxCaret_SetBlinkTime(int milliseconds) { | |
461 | wxCaret::SetBlinkTime(milliseconds); | |
462 | } | |
463 | ||
464 | ||
465 | #include <wx/snglinst.h> | |
466 | ||
467 | ||
468 | #ifdef __WXMSW__ | |
469 | #include <wx/msw/private.h> | |
470 | #include <wx/dynload.h> | |
471 | #endif | |
472 | ||
473 | ||
474 | ||
475 | void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) | |
476 | { | |
477 | #ifdef __WXMSW__ | |
478 | ||
479 | switch (method) | |
480 | { | |
481 | case 1: | |
482 | // This one only partially works. Appears to be an undocumented | |
483 | // "standard" convention that not all widgets adhear to. For | |
484 | // example, for some widgets backgrounds or non-client areas may | |
485 | // not be painted. | |
486 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
487 | break; | |
488 | ||
489 | case 2: | |
490 | // This one works much better, except for on XP. On Win2k nearly | |
491 | // all widgets and their children are captured correctly[**]. On | |
492 | // XP with Themes activated most native widgets draw only | |
493 | // partially, if at all. Without themes it works just like on | |
494 | // Win2k. | |
495 | // | |
496 | // ** For example the radio buttons in a wxRadioBox are not its | |
497 | // children by default, but you can capture it via the panel | |
498 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
499 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
500 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
501 | PRF_ERASEBKGND | PRF_OWNED ); | |
502 | break; | |
503 | ||
504 | case 3: | |
505 | // This one is only defined in the latest SDK and is only | |
506 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
507 | // so I expect that it will work similar to the above. Since it | |
508 | // is avaialble only on XP, it can't be compiled like this and | |
509 | // will have to be loaded dynamically. | |
510 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
511 | ||
512 | // fall through | |
513 | ||
514 | case 4: | |
515 | // Use PrintWindow if available, or fallback to WM_PRINT | |
516 | // otherwise. Unfortunately using PrintWindow is even worse than | |
517 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
518 | // at all, with or without Themes. | |
519 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
e811c8ce | 520 | static bool s_triedToLoad = False; |
d14a1e28 RD |
521 | static PrintWindow_t pfnPrintWindow = NULL; |
522 | if ( !s_triedToLoad ) | |
523 | { | |
524 | ||
e811c8ce | 525 | s_triedToLoad = True; |
d14a1e28 RD |
526 | wxDynamicLibrary dllUser32(_T("user32.dll")); |
527 | if ( dllUser32.IsLoaded() ) | |
528 | { | |
529 | wxLogNull nolog; // Don't report errors here | |
530 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
531 | } | |
532 | } | |
533 | if (pfnPrintWindow) | |
534 | { | |
535 | printf("Using PrintWindow\n"); | |
536 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
537 | } | |
538 | else | |
539 | { | |
540 | printf("Using WM_PRINT\n"); | |
541 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
542 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); | |
543 | } | |
544 | } | |
545 | #endif | |
546 | } | |
547 | ||
548 | ||
549 | ||
550 | #include <wx/tipdlg.h> | |
551 | ||
552 | ||
553 | class wxPyTipProvider : public wxTipProvider { | |
554 | public: | |
555 | wxPyTipProvider(size_t currentTip) | |
556 | : wxTipProvider(currentTip) {} | |
557 | ||
558 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
559 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
560 | PYPRIVATE; | |
561 | }; | |
562 | ||
563 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
564 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
565 | ||
566 | ||
567 | IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); | |
568 | ||
994141e6 RD |
569 | |
570 | SWIGSTATIC(unsigned int) | |
571 | SWIG_PyObj_AsUnsignedInt(PyObject *obj) | |
572 | { | |
573 | return numeric_cast(unsigned int, | |
574 | SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned int", UINT_MAX)); | |
575 | } | |
576 | ||
d14a1e28 RD |
577 | wxString Log_TimeStamp(){ |
578 | wxString msg; | |
579 | wxLog::TimeStamp(&msg); | |
580 | return msg; | |
581 | } | |
582 | void wxLog_Destroy(wxLog *self){ delete self; } | |
583 | ||
584 | // A wxLog class that can be derived from in wxPython | |
585 | class wxPyLog : public wxLog { | |
586 | public: | |
587 | wxPyLog() : wxLog() {} | |
588 | ||
589 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
590 | bool found; | |
591 | wxPyBeginBlockThreads(); | |
592 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { | |
593 | PyObject* s = wx2PyString(szString); | |
594 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
595 | Py_DECREF(s); | |
596 | } | |
597 | wxPyEndBlockThreads(); | |
598 | if (! found) | |
599 | wxLog::DoLog(level, szString, t); | |
600 | } | |
601 | ||
602 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
603 | bool found; | |
604 | wxPyBeginBlockThreads(); | |
605 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { | |
606 | PyObject* s = wx2PyString(szString); | |
607 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
608 | Py_DECREF(s); | |
609 | } | |
610 | wxPyEndBlockThreads(); | |
611 | if (! found) | |
612 | wxLog::DoLogString(szString, t); | |
613 | } | |
614 | ||
615 | PYPRIVATE; | |
616 | }; | |
617 | ||
618 | ||
619 | ||
620 | ||
621 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
622 | ||
623 | ||
624 | #include <wx/joystick.h> | |
625 | ||
626 | ||
627 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
628 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
629 | class wxJoystick : public wxObject { | |
630 | public: | |
631 | wxJoystick(int joystick = wxJOYSTICK1) { | |
632 | wxPyBeginBlockThreads(); | |
39f61e25 RD |
633 | PyErr_SetString(PyExc_NotImplementedError, |
634 | "wxJoystick is not available on this platform."); | |
d14a1e28 RD |
635 | wxPyEndBlockThreads(); |
636 | } | |
637 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
638 | int GetZPosition() { return -1; } | |
639 | int GetButtonState() { return -1; } | |
640 | int GetPOVPosition() { return -1; } | |
641 | int GetPOVCTSPosition() { return -1; } | |
642 | int GetRudderPosition() { return -1; } | |
643 | int GetUPosition() { return -1; } | |
644 | int GetVPosition() { return -1; } | |
645 | int GetMovementThreshold() { return -1; } | |
646 | void SetMovementThreshold(int threshold) {} | |
647 | ||
e811c8ce | 648 | bool IsOk(void) { return False; } |
d14a1e28 RD |
649 | int GetNumberJoysticks() { return -1; } |
650 | int GetManufacturerId() { return -1; } | |
651 | int GetProductId() { return -1; } | |
652 | wxString GetProductName() { return ""; } | |
653 | int GetXMin() { return -1; } | |
654 | int GetYMin() { return -1; } | |
655 | int GetZMin() { return -1; } | |
656 | int GetXMax() { return -1; } | |
657 | int GetYMax() { return -1; } | |
658 | int GetZMax() { return -1; } | |
659 | int GetNumberButtons() { return -1; } | |
660 | int GetNumberAxes() { return -1; } | |
661 | int GetMaxButtons() { return -1; } | |
662 | int GetMaxAxes() { return -1; } | |
663 | int GetPollingMin() { return -1; } | |
664 | int GetPollingMax() { return -1; } | |
665 | int GetRudderMin() { return -1; } | |
666 | int GetRudderMax() { return -1; } | |
667 | int GetUMin() { return -1; } | |
668 | int GetUMax() { return -1; } | |
669 | int GetVMin() { return -1; } | |
670 | int GetVMax() { return -1; } | |
671 | ||
e811c8ce RD |
672 | bool HasRudder() { return False; } |
673 | bool HasZ() { return False; } | |
674 | bool HasU() { return False; } | |
675 | bool HasV() { return False; } | |
676 | bool HasPOV() { return False; } | |
677 | bool HasPOV4Dir() { return False; } | |
678 | bool HasPOVCTS() { return False; } | |
d14a1e28 | 679 | |
e811c8ce RD |
680 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; } |
681 | bool ReleaseCapture() { return False; } | |
d14a1e28 RD |
682 | }; |
683 | #endif | |
684 | ||
685 | ||
4d5c3d91 | 686 | #include <wx/sound.h> |
d14a1e28 RD |
687 | |
688 | ||
dff1fa9b | 689 | #if !wxUSE_SOUND |
d14a1e28 | 690 | // A C++ stub class for wxWave for platforms that don't have it. |
4d5c3d91 | 691 | class wxSound : public wxObject |
d14a1e28 RD |
692 | { |
693 | public: | |
4d5c3d91 | 694 | wxSound() { |
d14a1e28 | 695 | wxPyBeginBlockThreads(); |
39f61e25 | 696 | PyErr_SetString(PyExc_NotImplementedError, |
4d5c3d91 | 697 | "wxSound is not available on this platform."); |
d14a1e28 RD |
698 | wxPyEndBlockThreads(); |
699 | } | |
4d5c3d91 | 700 | wxSound(const wxString&, bool) { |
d14a1e28 | 701 | wxPyBeginBlockThreads(); |
39f61e25 | 702 | PyErr_SetString(PyExc_NotImplementedError, |
4d5c3d91 | 703 | "wxSound is not available on this platform."); |
d14a1e28 RD |
704 | wxPyEndBlockThreads(); |
705 | } | |
4d5c3d91 RD |
706 | wxSound(int, const wxByte*) { |
707 | wxPyBeginBlockThreads(); | |
708 | PyErr_SetString(PyExc_NotImplementedError, | |
709 | "wxSound is not available on this platform."); | |
710 | wxPyEndBlockThreads(); | |
711 | } | |
712 | ||
713 | ~wxSound() {}; | |
d14a1e28 | 714 | |
4d5c3d91 RD |
715 | bool Create(const wxString&, bool) { return false; } |
716 | bool Create(int, const wxByte*) { return false; }; | |
717 | bool IsOk() { return false; }; | |
718 | bool Play(unsigned) const { return false; } | |
719 | static bool Play(const wxString&, unsigned) { return false; } | |
720 | static void Stop() {} | |
d14a1e28 RD |
721 | }; |
722 | ||
723 | #endif | |
724 | ||
d14a1e28 RD |
725 | |
726 | #include <wx/mimetype.h> | |
727 | ||
728 | PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
729 | wxString str; | |
730 | if (self->GetMimeType(&str)) | |
731 | return wx2PyString(str); | |
732 | else | |
733 | RETURN_NONE(); | |
734 | } | |
735 | PyObject *wxFileType_GetMimeTypes(wxFileType *self){ | |
736 | wxArrayString arr; | |
737 | if (self->GetMimeTypes(arr)) | |
738 | return wxArrayString2PyList_helper(arr); | |
739 | else | |
740 | RETURN_NONE(); | |
741 | } | |
742 | PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
743 | wxArrayString arr; | |
744 | if (self->GetExtensions(arr)) | |
745 | return wxArrayString2PyList_helper(arr); | |
746 | else | |
747 | RETURN_NONE(); | |
748 | } | |
749 | wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
750 | wxIconLocation loc; | |
751 | if (self->GetIcon(&loc)) | |
752 | return new wxIcon(loc); | |
753 | else | |
754 | return NULL; | |
755 | } | |
756 | PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
757 | wxIconLocation loc; | |
758 | if (self->GetIcon(&loc)) { | |
759 | wxString iconFile = loc.GetFileName(); | |
760 | int iconIndex = -1; | |
761 | ||
762 | ||
763 | ||
764 | // Make a tuple and put the values in it | |
765 | wxPyBeginBlockThreads(); | |
766 | PyObject* tuple = PyTuple_New(3); | |
767 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
e811c8ce | 768 | wxT("wxIcon"), True)); |
d14a1e28 RD |
769 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); |
770 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
771 | wxPyEndBlockThreads(); | |
772 | return tuple; | |
773 | } | |
774 | else | |
775 | RETURN_NONE(); | |
776 | } | |
777 | PyObject *wxFileType_GetDescription(wxFileType *self){ | |
778 | wxString str; | |
779 | if (self->GetDescription(&str)) | |
780 | return wx2PyString(str); | |
781 | else | |
782 | RETURN_NONE(); | |
783 | } | |
784 | PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
785 | wxString str; | |
786 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
787 | return wx2PyString(str); | |
788 | else | |
789 | RETURN_NONE(); | |
790 | } | |
791 | PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
792 | wxString str; | |
793 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
794 | return wx2PyString(str); | |
795 | else | |
796 | RETURN_NONE(); | |
797 | } | |
798 | PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
799 | wxArrayString verbs; | |
800 | wxArrayString commands; | |
801 | if (self->GetAllCommands(&verbs, &commands, | |
802 | wxFileType::MessageParameters(filename, mimetype))) { | |
803 | wxPyBeginBlockThreads(); | |
804 | PyObject* tuple = PyTuple_New(2); | |
805 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
806 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
807 | wxPyEndBlockThreads(); | |
808 | return tuple; | |
809 | } | |
810 | else | |
811 | RETURN_NONE(); | |
812 | } | |
813 | wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ | |
814 | return wxFileType::ExpandCommand(command, | |
815 | wxFileType::MessageParameters(filename, mimetype)); | |
816 | } | |
817 | PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
818 | wxArrayString arr; | |
819 | self->EnumAllFileTypes(arr); | |
820 | return wxArrayString2PyList_helper(arr); | |
821 | } | |
822 | ||
823 | #include <wx/artprov.h> | |
824 | ||
825 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); | |
826 | static const wxString wxPyART_MENU(wxART_MENU); | |
827 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
828 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
829 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
830 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
831 | static const wxString wxPyART_OTHER(wxART_OTHER); | |
832 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
833 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
834 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
835 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
836 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
837 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
838 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
839 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
840 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
841 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
842 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
843 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
844 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
845 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
846 | static const wxString wxPyART_PRINT(wxART_PRINT); | |
847 | static const wxString wxPyART_HELP(wxART_HELP); | |
848 | static const wxString wxPyART_TIP(wxART_TIP); | |
849 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
850 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
851 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
852 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
853 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
854 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
855 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
856 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
857 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
858 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
859 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
860 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
861 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
862 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
863 | // Python aware wxArtProvider | |
864 | class wxPyArtProvider : public wxArtProvider { | |
865 | public: | |
866 | ||
867 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
868 | const wxArtClient& client, | |
869 | const wxSize& size) { | |
870 | wxBitmap rval = wxNullBitmap; | |
871 | wxPyBeginBlockThreads(); | |
872 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
873 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
874 | PyObject* ro; | |
875 | wxBitmap* ptr; | |
876 | PyObject* s1, *s2; | |
877 | s1 = wx2PyString(id); | |
878 | s2 = wx2PyString(client); | |
879 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
880 | Py_DECREF(so); | |
881 | Py_DECREF(s1); | |
882 | Py_DECREF(s2); | |
883 | if (ro) { | |
884 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
885 | rval = *ptr; | |
886 | Py_DECREF(ro); | |
887 | } | |
888 | } | |
889 | wxPyEndBlockThreads(); | |
890 | return rval; | |
891 | } | |
892 | ||
893 | PYPRIVATE; | |
894 | }; | |
895 | ||
1e0c8722 | 896 | void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } |
d14a1e28 RD |
897 | |
898 | ||
899 | ||
900 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
901 | PyObject* ret = PyTuple_New(3); | |
902 | if (ret) { | |
903 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
904 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
905 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
906 | } | |
907 | return ret; | |
908 | } | |
909 | ||
910 | PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ | |
911 | bool cont; | |
912 | long index = 0; | |
913 | wxString value; | |
914 | ||
915 | cont = self->GetFirstGroup(value, index); | |
916 | return __EnumerationHelper(cont, value, index); | |
917 | } | |
918 | PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
919 | bool cont; | |
920 | wxString value; | |
921 | ||
922 | cont = self->GetNextGroup(value, index); | |
923 | return __EnumerationHelper(cont, value, index); | |
924 | } | |
925 | PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
926 | bool cont; | |
927 | long index = 0; | |
928 | wxString value; | |
929 | ||
930 | cont = self->GetFirstEntry(value, index); | |
931 | return __EnumerationHelper(cont, value, index); | |
932 | } | |
933 | PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
934 | bool cont; | |
935 | wxString value; | |
936 | ||
937 | cont = self->GetNextEntry(value, index); | |
938 | return __EnumerationHelper(cont, value, index); | |
939 | } | |
940 | long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ | |
941 | long rv; | |
942 | self->Read(key, &rv, defaultVal); | |
943 | return rv; | |
944 | } | |
994141e6 RD |
945 | |
946 | SWIGSTATIC(double) | |
947 | SWIG_PyObj_AsDouble(PyObject *obj) | |
948 | { | |
949 | return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) : | |
950 | #if HAVE_LONG_LONG | |
951 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj)); | |
952 | #else | |
953 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj)); | |
954 | #endif | |
955 | if (PyErr_Occurred()) { | |
956 | PyErr_Clear(); | |
957 | PyErr_SetString(PyExc_TypeError, "a double is expected"); | |
958 | } | |
959 | } | |
960 | ||
d14a1e28 RD |
961 | double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ |
962 | double rv; | |
963 | self->Read(key, &rv, defaultVal); | |
964 | return rv; | |
965 | } | |
966 | bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){ | |
967 | bool rv; | |
968 | self->Read(key, &rv, defaultVal); | |
969 | return rv; | |
970 | } | |
971 | ||
972 | #include <wx/datetime.h> | |
973 | ||
d14a1e28 | 974 | |
33b885b9 RD |
975 | static const wxString wxPyDateFormatStr(wxT("%c")); |
976 | static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S")); | |
d14a1e28 RD |
977 | |
978 | #define LOCAL_TZ wxDateTime::Local | |
979 | ||
994141e6 RD |
980 | |
981 | #define SWIG_PyObj_FromUnsignedInt SWIG_PyObj_FromUnsignedLong | |
982 | ||
d14a1e28 RD |
983 | wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } |
984 | wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
985 | wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
986 | wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
987 | wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
988 | bool wxDateTime___lt__(wxDateTime *self,wxDateTime const &other){ return *self < other; } | |
989 | bool wxDateTime___le__(wxDateTime *self,wxDateTime const &other){ return *self <= other; } | |
990 | bool wxDateTime___gt__(wxDateTime *self,wxDateTime const &other){ return *self > other; } | |
991 | bool wxDateTime___ge__(wxDateTime *self,wxDateTime const &other){ return *self >= other; } | |
992 | bool wxDateTime___eq__(wxDateTime *self,wxDateTime const &other){ return *self == other; } | |
993 | bool wxDateTime___ne__(wxDateTime *self,wxDateTime const &other){ return *self != other; } | |
994 | int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ | |
995 | const wxChar* rv; | |
996 | const wxChar* _date = date; | |
997 | rv = self->ParseRfc822Date(_date); | |
998 | if (rv == NULL) return -1; | |
999 | return rv - _date; | |
1000 | } | |
1001 | int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){ | |
1002 | const wxChar* rv; | |
1003 | const wxChar* _date = date; | |
1004 | rv = self->ParseFormat(_date, format, dateDef); | |
1005 | if (rv == NULL) return -1; | |
1006 | return rv - _date; | |
1007 | } | |
1008 | int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
1009 | const wxChar* rv; | |
1010 | const wxChar* _datetime = datetime; | |
1011 | rv = self->ParseDateTime(_datetime); | |
1012 | if (rv == NULL) return -1; | |
1013 | return rv - _datetime; | |
1014 | } | |
1015 | int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
1016 | const wxChar* rv; | |
1017 | const wxChar* _date = date; | |
1018 | rv = self->ParseDate(_date); | |
1019 | if (rv == NULL) return -1; | |
1020 | return rv - _date; | |
1021 | } | |
1022 | int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
1023 | const wxChar* rv; | |
1024 | const wxChar* _time = time; | |
1025 | rv = self->ParseTime(_time); | |
1026 | if (rv == NULL) return -1; | |
1027 | return rv - _time; | |
1028 | } | |
1029 | wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
1030 | wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
1031 | wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
1032 | wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
1033 | bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const &other){ return *self < other; } | |
1034 | bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const &other){ return *self <= other; } | |
1035 | bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const &other){ return *self > other; } | |
1036 | bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const &other){ return *self >= other; } | |
1037 | bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const &other){ return *self == other; } | |
1038 | bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const &other){ return *self != other; } | |
1039 | wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } | |
1040 | wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
1041 | wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
1042 | wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
1043 | bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const &other){ return *self == other; } | |
1044 | bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const &other){ return *self != other; } | |
1045 | ||
1046 | #include <wx/dataobj.h> | |
1047 | ||
1048 | // Create a new class for wxPython to use | |
1049 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
1050 | public: | |
1051 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
1052 | : wxDataObjectSimple(format) {} | |
1053 | ||
1054 | DEC_PYCALLBACK_SIZET__const(GetDataSize); | |
1055 | bool GetDataHere(void *buf) const; | |
1056 | bool SetData(size_t len, const void *buf) const; | |
1057 | PYPRIVATE; | |
1058 | }; | |
1059 | ||
1060 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
1061 | ||
1062 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { | |
1063 | // We need to get the data for this object and write it to buf. I think | |
1064 | // the best way to do this for wxPython is to have the Python method | |
1065 | // return either a string or None and then act appropriately with the | |
1066 | // C++ version. | |
1067 | ||
e811c8ce | 1068 | bool rval = False; |
d14a1e28 RD |
1069 | wxPyBeginBlockThreads(); |
1070 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { | |
1071 | PyObject* ro; | |
1072 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1073 | if (ro) { | |
1074 | rval = (ro != Py_None && PyString_Check(ro)); | |
1075 | if (rval) | |
1076 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
1077 | Py_DECREF(ro); | |
1078 | } | |
1079 | } | |
1080 | wxPyEndBlockThreads(); | |
1081 | return rval; | |
1082 | } | |
1083 | ||
1084 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ | |
1085 | // For this one we simply need to make a string from buf and len | |
1086 | // and send it to the Python method. | |
e811c8ce | 1087 | bool rval = False; |
d14a1e28 RD |
1088 | wxPyBeginBlockThreads(); |
1089 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { | |
1090 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
1091 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
1092 | Py_DECREF(data); | |
1093 | } | |
1094 | wxPyEndBlockThreads(); | |
1095 | return rval; | |
1096 | } | |
1097 | ||
1098 | // Create a new class for wxPython to use | |
1099 | class wxPyTextDataObject : public wxTextDataObject { | |
1100 | public: | |
1101 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
1102 | : wxTextDataObject(text) {} | |
1103 | ||
1104 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
1105 | DEC_PYCALLBACK_STRING__const(GetText); | |
1106 | DEC_PYCALLBACK__STRING(SetText); | |
1107 | PYPRIVATE; | |
1108 | }; | |
1109 | ||
1110 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
1111 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
1112 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
1113 | ||
1114 | ||
1115 | // Create a new class for wxPython to use | |
1116 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
1117 | public: | |
1118 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
1119 | : wxBitmapDataObject(bitmap) {} | |
1120 | ||
1121 | wxBitmap GetBitmap() const; | |
1122 | void SetBitmap(const wxBitmap& bitmap); | |
1123 | PYPRIVATE; | |
1124 | }; | |
1125 | ||
1126 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
1127 | wxBitmap* rval = &wxNullBitmap; | |
1128 | wxPyBeginBlockThreads(); | |
1129 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { | |
1130 | PyObject* ro; | |
1131 | wxBitmap* ptr; | |
1132 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1133 | if (ro) { | |
1134 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
1135 | rval = ptr; | |
1136 | Py_DECREF(ro); | |
1137 | } | |
1138 | } | |
1139 | wxPyEndBlockThreads(); | |
1140 | return *rval; | |
1141 | } | |
1142 | ||
1143 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { | |
1144 | wxPyBeginBlockThreads(); | |
1145 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { | |
e811c8ce | 1146 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False); |
d14a1e28 RD |
1147 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); |
1148 | Py_DECREF(bo); | |
1149 | } | |
1150 | wxPyEndBlockThreads(); | |
1151 | } | |
1152 | ||
1153 | void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){ | |
1154 | if (PyString_Check(data)) { | |
1155 | // for Python we just call SetData here since we always need it to make a copy. | |
1156 | self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1157 | } | |
1158 | else { | |
1159 | // raise a TypeError if not a string | |
1160 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1161 | } | |
1162 | } | |
1163 | bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ | |
1164 | if (PyString_Check(data)) { | |
1165 | return self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1166 | } | |
1167 | else { | |
1168 | // raise a TypeError if not a string | |
1169 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
e811c8ce | 1170 | return False; |
d14a1e28 RD |
1171 | } |
1172 | } | |
1173 | PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
1174 | return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
1175 | } | |
1176 | ||
1177 | class wxMetafileDataObject : public wxDataObjectSimple | |
1178 | { | |
1179 | public: | |
39f61e25 | 1180 | wxMetafileDataObject() { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
1181 | }; |
1182 | ||
1183 | ||
d14a1e28 RD |
1184 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); |
1185 | ||
1186 | ||
d14a1e28 RD |
1187 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); |
1188 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1189 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1190 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1191 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1192 | ||
1193 | ||
d14a1e28 RD |
1194 | class wxPyTextDropTarget : public wxTextDropTarget { |
1195 | public: | |
1196 | wxPyTextDropTarget() {} | |
1197 | ||
1198 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1199 | ||
1200 | DEC_PYCALLBACK__(OnLeave); | |
1201 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1202 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1203 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1204 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1205 | ||
1206 | PYPRIVATE; | |
1207 | }; | |
1208 | ||
1209 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1210 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1211 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1212 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1213 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1214 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1215 | ||
1216 | ||
1217 | ||
1218 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1219 | public: | |
1220 | wxPyFileDropTarget() {} | |
1221 | ||
1222 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1223 | ||
1224 | DEC_PYCALLBACK__(OnLeave); | |
1225 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1226 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1227 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1228 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1229 | ||
1230 | PYPRIVATE; | |
1231 | }; | |
1232 | ||
1233 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1234 | const wxArrayString& filenames) { | |
e811c8ce | 1235 | bool rval = False; |
d14a1e28 RD |
1236 | wxPyBeginBlockThreads(); |
1237 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { | |
1238 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1239 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1240 | Py_DECREF(list); | |
1241 | } | |
1242 | wxPyEndBlockThreads(); | |
1243 | return rval; | |
1244 | } | |
1245 | ||
1246 | ||
1247 | ||
1248 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1249 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1250 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1251 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1252 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1253 | ||
1254 | ||
1255 | ||
1256 | ||
1257 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
1258 | #ifdef __cplusplus | |
1259 | extern "C" { | |
1260 | #endif | |
1261 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1262 | PyObject *resultobj; | |
1263 | int arg1 ; | |
1264 | wxColour result; | |
994141e6 | 1265 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1266 | char *kwnames[] = { |
1267 | (char *) "index", NULL | |
1268 | }; | |
1269 | ||
994141e6 RD |
1270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; |
1271 | { | |
1272 | arg1 = (wxSystemColour) SWIG_PyObj_AsInt(obj0); | |
1273 | if (PyErr_Occurred()) SWIG_fail; | |
1274 | } | |
d14a1e28 RD |
1275 | { |
1276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1277 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1278 | ||
1279 | wxPyEndAllowThreads(__tstate); | |
1280 | if (PyErr_Occurred()) SWIG_fail; | |
1281 | } | |
1282 | { | |
1283 | wxColour * resultptr; | |
1284 | resultptr = new wxColour((wxColour &) result); | |
1285 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1286 | } | |
1287 | return resultobj; | |
1288 | fail: | |
1289 | return NULL; | |
1290 | } | |
1291 | ||
1292 | ||
1293 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1294 | PyObject *resultobj; | |
1295 | int arg1 ; | |
1296 | wxFont result; | |
994141e6 | 1297 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1298 | char *kwnames[] = { |
1299 | (char *) "index", NULL | |
1300 | }; | |
1301 | ||
994141e6 RD |
1302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; |
1303 | { | |
1304 | arg1 = (wxSystemFont) SWIG_PyObj_AsInt(obj0); | |
1305 | if (PyErr_Occurred()) SWIG_fail; | |
1306 | } | |
d14a1e28 RD |
1307 | { |
1308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1309 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1310 | ||
1311 | wxPyEndAllowThreads(__tstate); | |
1312 | if (PyErr_Occurred()) SWIG_fail; | |
1313 | } | |
1314 | { | |
1315 | wxFont * resultptr; | |
1316 | resultptr = new wxFont((wxFont &) result); | |
1317 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
1318 | } | |
1319 | return resultobj; | |
1320 | fail: | |
1321 | return NULL; | |
1322 | } | |
1323 | ||
1324 | ||
1325 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1326 | PyObject *resultobj; | |
1327 | int arg1 ; | |
1328 | int result; | |
994141e6 | 1329 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1330 | char *kwnames[] = { |
1331 | (char *) "index", NULL | |
1332 | }; | |
1333 | ||
994141e6 RD |
1334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail; |
1335 | { | |
1336 | arg1 = (wxSystemMetric) SWIG_PyObj_AsInt(obj0); | |
1337 | if (PyErr_Occurred()) SWIG_fail; | |
1338 | } | |
d14a1e28 RD |
1339 | { |
1340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1341 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1342 | ||
1343 | wxPyEndAllowThreads(__tstate); | |
1344 | if (PyErr_Occurred()) SWIG_fail; | |
1345 | } | |
994141e6 | 1346 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1347 | return resultobj; |
1348 | fail: | |
1349 | return NULL; | |
1350 | } | |
1351 | ||
1352 | ||
1353 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1354 | PyObject *resultobj; | |
1355 | int arg1 ; | |
1356 | bool result; | |
994141e6 | 1357 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1358 | char *kwnames[] = { |
1359 | (char *) "index", NULL | |
1360 | }; | |
1361 | ||
994141e6 RD |
1362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; |
1363 | { | |
1364 | arg1 = (wxSystemFeature) SWIG_PyObj_AsInt(obj0); | |
1365 | if (PyErr_Occurred()) SWIG_fail; | |
1366 | } | |
d14a1e28 RD |
1367 | { |
1368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1369 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1370 | ||
1371 | wxPyEndAllowThreads(__tstate); | |
1372 | if (PyErr_Occurred()) SWIG_fail; | |
1373 | } | |
4d5c3d91 | 1374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1375 | return resultobj; |
1376 | fail: | |
1377 | return NULL; | |
1378 | } | |
1379 | ||
1380 | ||
1381 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1382 | PyObject *resultobj; | |
1383 | int result; | |
1384 | char *kwnames[] = { | |
1385 | NULL | |
1386 | }; | |
1387 | ||
1388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1389 | { | |
1390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1391 | result = (int)wxSystemSettings::GetScreenType(); | |
1392 | ||
1393 | wxPyEndAllowThreads(__tstate); | |
1394 | if (PyErr_Occurred()) SWIG_fail; | |
1395 | } | |
994141e6 | 1396 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1397 | return resultobj; |
1398 | fail: | |
1399 | return NULL; | |
1400 | } | |
1401 | ||
1402 | ||
1403 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1404 | PyObject *resultobj; | |
1405 | int arg1 ; | |
994141e6 | 1406 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1407 | char *kwnames[] = { |
1408 | (char *) "screen", NULL | |
1409 | }; | |
1410 | ||
994141e6 RD |
1411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; |
1412 | { | |
1413 | arg1 = (wxSystemScreenType) SWIG_PyObj_AsInt(obj0); | |
1414 | if (PyErr_Occurred()) SWIG_fail; | |
1415 | } | |
d14a1e28 RD |
1416 | { |
1417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1418 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
1419 | ||
1420 | wxPyEndAllowThreads(__tstate); | |
1421 | if (PyErr_Occurred()) SWIG_fail; | |
1422 | } | |
1423 | Py_INCREF(Py_None); resultobj = Py_None; | |
1424 | return resultobj; | |
1425 | fail: | |
1426 | return NULL; | |
1427 | } | |
1428 | ||
1429 | ||
1430 | static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) { | |
1431 | PyObject *obj; | |
1432 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1433 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
1434 | Py_INCREF(obj); | |
1435 | return Py_BuildValue((char *)""); | |
1436 | } | |
1437 | static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1438 | PyObject *resultobj; | |
1439 | wxSystemOptions *result; | |
1440 | char *kwnames[] = { | |
1441 | NULL | |
1442 | }; | |
1443 | ||
1444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
1445 | { | |
1446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1447 | result = (wxSystemOptions *)new wxSystemOptions(); | |
1448 | ||
1449 | wxPyEndAllowThreads(__tstate); | |
1450 | if (PyErr_Occurred()) SWIG_fail; | |
1451 | } | |
1452 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSystemOptions, 1); | |
1453 | return resultobj; | |
1454 | fail: | |
1455 | return NULL; | |
1456 | } | |
1457 | ||
1458 | ||
1459 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1460 | PyObject *resultobj; | |
1461 | wxString *arg1 = 0 ; | |
1462 | wxString *arg2 = 0 ; | |
e811c8ce RD |
1463 | bool temp1 = False ; |
1464 | bool temp2 = False ; | |
d14a1e28 RD |
1465 | PyObject * obj0 = 0 ; |
1466 | PyObject * obj1 = 0 ; | |
1467 | char *kwnames[] = { | |
1468 | (char *) "name",(char *) "value", NULL | |
1469 | }; | |
1470 | ||
1471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
1472 | { | |
1473 | arg1 = wxString_in_helper(obj0); | |
1474 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1475 | temp1 = True; |
d14a1e28 RD |
1476 | } |
1477 | { | |
1478 | arg2 = wxString_in_helper(obj1); | |
1479 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 1480 | temp2 = True; |
d14a1e28 RD |
1481 | } |
1482 | { | |
1483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1484 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
1485 | ||
1486 | wxPyEndAllowThreads(__tstate); | |
1487 | if (PyErr_Occurred()) SWIG_fail; | |
1488 | } | |
1489 | Py_INCREF(Py_None); resultobj = Py_None; | |
1490 | { | |
1491 | if (temp1) | |
1492 | delete arg1; | |
1493 | } | |
1494 | { | |
1495 | if (temp2) | |
1496 | delete arg2; | |
1497 | } | |
1498 | return resultobj; | |
1499 | fail: | |
1500 | { | |
1501 | if (temp1) | |
1502 | delete arg1; | |
1503 | } | |
1504 | { | |
1505 | if (temp2) | |
1506 | delete arg2; | |
1507 | } | |
1508 | return NULL; | |
1509 | } | |
1510 | ||
1511 | ||
1512 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1513 | PyObject *resultobj; | |
1514 | wxString *arg1 = 0 ; | |
1515 | int arg2 ; | |
e811c8ce | 1516 | bool temp1 = False ; |
d14a1e28 | 1517 | PyObject * obj0 = 0 ; |
994141e6 | 1518 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1519 | char *kwnames[] = { |
1520 | (char *) "name",(char *) "value", NULL | |
1521 | }; | |
1522 | ||
994141e6 | 1523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
1524 | { |
1525 | arg1 = wxString_in_helper(obj0); | |
1526 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1527 | temp1 = True; |
d14a1e28 | 1528 | } |
994141e6 RD |
1529 | { |
1530 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1531 | if (PyErr_Occurred()) SWIG_fail; | |
1532 | } | |
d14a1e28 RD |
1533 | { |
1534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1535 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
1536 | ||
1537 | wxPyEndAllowThreads(__tstate); | |
1538 | if (PyErr_Occurred()) SWIG_fail; | |
1539 | } | |
1540 | Py_INCREF(Py_None); resultobj = Py_None; | |
1541 | { | |
1542 | if (temp1) | |
1543 | delete arg1; | |
1544 | } | |
1545 | return resultobj; | |
1546 | fail: | |
1547 | { | |
1548 | if (temp1) | |
1549 | delete arg1; | |
1550 | } | |
1551 | return NULL; | |
1552 | } | |
1553 | ||
1554 | ||
1555 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1556 | PyObject *resultobj; | |
1557 | wxString *arg1 = 0 ; | |
1558 | wxString result; | |
e811c8ce | 1559 | bool temp1 = False ; |
d14a1e28 RD |
1560 | PyObject * obj0 = 0 ; |
1561 | char *kwnames[] = { | |
1562 | (char *) "name", NULL | |
1563 | }; | |
1564 | ||
1565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
1566 | { | |
1567 | arg1 = wxString_in_helper(obj0); | |
1568 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1569 | temp1 = True; |
d14a1e28 RD |
1570 | } |
1571 | { | |
1572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1573 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
1574 | ||
1575 | wxPyEndAllowThreads(__tstate); | |
1576 | if (PyErr_Occurred()) SWIG_fail; | |
1577 | } | |
1578 | { | |
1579 | #if wxUSE_UNICODE | |
1580 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1581 | #else | |
1582 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1583 | #endif | |
1584 | } | |
1585 | { | |
1586 | if (temp1) | |
1587 | delete arg1; | |
1588 | } | |
1589 | return resultobj; | |
1590 | fail: | |
1591 | { | |
1592 | if (temp1) | |
1593 | delete arg1; | |
1594 | } | |
1595 | return NULL; | |
1596 | } | |
1597 | ||
1598 | ||
1599 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1600 | PyObject *resultobj; | |
1601 | wxString *arg1 = 0 ; | |
1602 | int result; | |
e811c8ce | 1603 | bool temp1 = False ; |
d14a1e28 RD |
1604 | PyObject * obj0 = 0 ; |
1605 | char *kwnames[] = { | |
1606 | (char *) "name", NULL | |
1607 | }; | |
1608 | ||
1609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
1610 | { | |
1611 | arg1 = wxString_in_helper(obj0); | |
1612 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1613 | temp1 = True; |
d14a1e28 RD |
1614 | } |
1615 | { | |
1616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1617 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
1618 | ||
1619 | wxPyEndAllowThreads(__tstate); | |
1620 | if (PyErr_Occurred()) SWIG_fail; | |
1621 | } | |
994141e6 | 1622 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1623 | { |
1624 | if (temp1) | |
1625 | delete arg1; | |
1626 | } | |
1627 | return resultobj; | |
1628 | fail: | |
1629 | { | |
1630 | if (temp1) | |
1631 | delete arg1; | |
1632 | } | |
1633 | return NULL; | |
1634 | } | |
1635 | ||
1636 | ||
1637 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1638 | PyObject *resultobj; | |
1639 | wxString *arg1 = 0 ; | |
1640 | bool result; | |
e811c8ce | 1641 | bool temp1 = False ; |
d14a1e28 RD |
1642 | PyObject * obj0 = 0 ; |
1643 | char *kwnames[] = { | |
1644 | (char *) "name", NULL | |
1645 | }; | |
1646 | ||
1647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
1648 | { | |
1649 | arg1 = wxString_in_helper(obj0); | |
1650 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1651 | temp1 = True; |
d14a1e28 RD |
1652 | } |
1653 | { | |
1654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1655 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
1656 | ||
1657 | wxPyEndAllowThreads(__tstate); | |
1658 | if (PyErr_Occurred()) SWIG_fail; | |
1659 | } | |
4d5c3d91 | 1660 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1661 | { |
1662 | if (temp1) | |
1663 | delete arg1; | |
1664 | } | |
1665 | return resultobj; | |
1666 | fail: | |
1667 | { | |
1668 | if (temp1) | |
1669 | delete arg1; | |
1670 | } | |
1671 | return NULL; | |
1672 | } | |
1673 | ||
1674 | ||
1675 | static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) { | |
1676 | PyObject *obj; | |
1677 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1678 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
1679 | Py_INCREF(obj); | |
1680 | return Py_BuildValue((char *)""); | |
1681 | } | |
b2dc1044 RD |
1682 | static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { |
1683 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
1684 | return 1; | |
1685 | } | |
1686 | ||
1687 | ||
1688 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
1689 | PyObject *pyobj; | |
1690 | ||
1691 | { | |
1692 | #if wxUSE_UNICODE | |
1693 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1694 | #else | |
1695 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1696 | #endif | |
1697 | } | |
1698 | return pyobj; | |
1699 | } | |
1700 | ||
1701 | ||
1702 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { | |
1703 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
1704 | return 1; | |
1705 | } | |
1706 | ||
1707 | ||
1708 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
1709 | PyObject *pyobj; | |
1710 | ||
1711 | { | |
1712 | #if wxUSE_UNICODE | |
1713 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1714 | #else | |
1715 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1716 | #endif | |
1717 | } | |
1718 | return pyobj; | |
1719 | } | |
1720 | ||
1721 | ||
1722 | static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { | |
1723 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
1724 | return 1; | |
1725 | } | |
1726 | ||
1727 | ||
1728 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
1729 | PyObject *pyobj; | |
1730 | ||
1731 | { | |
1732 | #if wxUSE_UNICODE | |
1733 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1734 | #else | |
1735 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1736 | #endif | |
1737 | } | |
1738 | return pyobj; | |
1739 | } | |
1740 | ||
1741 | ||
d14a1e28 RD |
1742 | static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) { |
1743 | PyObject *resultobj; | |
1744 | long result; | |
1745 | char *kwnames[] = { | |
1746 | NULL | |
1747 | }; | |
1748 | ||
1749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
1750 | { | |
1751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1752 | result = (long)wxNewId(); | |
1753 | ||
1754 | wxPyEndAllowThreads(__tstate); | |
1755 | if (PyErr_Occurred()) SWIG_fail; | |
1756 | } | |
994141e6 | 1757 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
1758 | return resultobj; |
1759 | fail: | |
1760 | return NULL; | |
1761 | } | |
1762 | ||
1763 | ||
1764 | static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1765 | PyObject *resultobj; | |
1766 | long arg1 ; | |
994141e6 | 1767 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1768 | char *kwnames[] = { |
1769 | (char *) "id", NULL | |
1770 | }; | |
1771 | ||
994141e6 RD |
1772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; |
1773 | { | |
1774 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
1775 | if (PyErr_Occurred()) SWIG_fail; | |
1776 | } | |
d14a1e28 RD |
1777 | { |
1778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1779 | wxRegisterId(arg1); | |
1780 | ||
1781 | wxPyEndAllowThreads(__tstate); | |
1782 | if (PyErr_Occurred()) SWIG_fail; | |
1783 | } | |
1784 | Py_INCREF(Py_None); resultobj = Py_None; | |
1785 | return resultobj; | |
1786 | fail: | |
1787 | return NULL; | |
1788 | } | |
1789 | ||
1790 | ||
1791 | static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1792 | PyObject *resultobj; | |
1793 | long result; | |
1794 | char *kwnames[] = { | |
1795 | NULL | |
1796 | }; | |
1797 | ||
1798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
1799 | { | |
1800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1801 | result = (long)wxGetCurrentId(); | |
1802 | ||
1803 | wxPyEndAllowThreads(__tstate); | |
1804 | if (PyErr_Occurred()) SWIG_fail; | |
1805 | } | |
994141e6 | 1806 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
1807 | return resultobj; |
1808 | fail: | |
1809 | return NULL; | |
1810 | } | |
1811 | ||
1812 | ||
1813 | static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1814 | PyObject *resultobj; | |
1815 | char *kwnames[] = { | |
1816 | NULL | |
1817 | }; | |
1818 | ||
1819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
1820 | { | |
1821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1822 | wxBell(); | |
1823 | ||
1824 | wxPyEndAllowThreads(__tstate); | |
1825 | if (PyErr_Occurred()) SWIG_fail; | |
1826 | } | |
1827 | Py_INCREF(Py_None); resultobj = Py_None; | |
1828 | return resultobj; | |
1829 | fail: | |
1830 | return NULL; | |
1831 | } | |
1832 | ||
1833 | ||
1834 | static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1835 | PyObject *resultobj; | |
1836 | char *kwnames[] = { | |
1837 | NULL | |
1838 | }; | |
1839 | ||
1840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
1841 | { | |
1842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1843 | wxEndBusyCursor(); | |
1844 | ||
1845 | wxPyEndAllowThreads(__tstate); | |
1846 | if (PyErr_Occurred()) SWIG_fail; | |
1847 | } | |
1848 | Py_INCREF(Py_None); resultobj = Py_None; | |
1849 | return resultobj; | |
1850 | fail: | |
1851 | return NULL; | |
1852 | } | |
1853 | ||
1854 | ||
1855 | static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1856 | PyObject *resultobj; | |
e811c8ce | 1857 | bool arg1 = (bool) True ; |
d14a1e28 RD |
1858 | long result; |
1859 | PyObject * obj0 = 0 ; | |
1860 | char *kwnames[] = { | |
1861 | (char *) "resetTimer", NULL | |
1862 | }; | |
1863 | ||
1864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
1865 | if (obj0) { | |
a41e16b6 | 1866 | { |
994141e6 | 1867 | arg1 = (bool) SWIG_PyObj_AsBool(obj0); |
a41e16b6 RD |
1868 | if (PyErr_Occurred()) SWIG_fail; |
1869 | } | |
d14a1e28 RD |
1870 | } |
1871 | { | |
1872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1873 | result = (long)wxGetElapsedTime(arg1); | |
1874 | ||
1875 | wxPyEndAllowThreads(__tstate); | |
1876 | if (PyErr_Occurred()) SWIG_fail; | |
1877 | } | |
994141e6 | 1878 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
1879 | return resultobj; |
1880 | fail: | |
1881 | return NULL; | |
1882 | } | |
1883 | ||
1884 | ||
1885 | static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1886 | PyObject *resultobj; | |
1887 | int *arg1 = (int *) 0 ; | |
1888 | int *arg2 = (int *) 0 ; | |
1889 | int temp1 ; | |
1890 | int temp2 ; | |
1891 | char *kwnames[] = { | |
1892 | NULL | |
1893 | }; | |
1894 | ||
1895 | arg1 = &temp1; | |
1896 | arg2 = &temp2; | |
1897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
1898 | { | |
1899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1900 | wxGetMousePosition(arg1,arg2); | |
1901 | ||
1902 | wxPyEndAllowThreads(__tstate); | |
1903 | if (PyErr_Occurred()) SWIG_fail; | |
1904 | } | |
1905 | Py_INCREF(Py_None); resultobj = Py_None; | |
1906 | { | |
1907 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
1908 | resultobj = t_output_helper(resultobj,o); | |
1909 | } | |
1910 | { | |
1911 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1912 | resultobj = t_output_helper(resultobj,o); | |
1913 | } | |
1914 | return resultobj; | |
1915 | fail: | |
1916 | return NULL; | |
1917 | } | |
1918 | ||
1919 | ||
1920 | static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1921 | PyObject *resultobj; | |
1922 | bool result; | |
1923 | char *kwnames[] = { | |
1924 | NULL | |
1925 | }; | |
1926 | ||
1927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
1928 | { | |
1929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1930 | result = (bool)wxIsBusy(); | |
1931 | ||
1932 | wxPyEndAllowThreads(__tstate); | |
1933 | if (PyErr_Occurred()) SWIG_fail; | |
1934 | } | |
4d5c3d91 | 1935 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1936 | return resultobj; |
1937 | fail: | |
1938 | return NULL; | |
1939 | } | |
1940 | ||
1941 | ||
1942 | static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1943 | PyObject *resultobj; | |
1944 | wxString result; | |
1945 | char *kwnames[] = { | |
1946 | NULL | |
1947 | }; | |
1948 | ||
1949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
1950 | { | |
1951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1952 | result = wxNow(); | |
1953 | ||
1954 | wxPyEndAllowThreads(__tstate); | |
1955 | if (PyErr_Occurred()) SWIG_fail; | |
1956 | } | |
1957 | { | |
1958 | #if wxUSE_UNICODE | |
1959 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1960 | #else | |
1961 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1962 | #endif | |
1963 | } | |
1964 | return resultobj; | |
1965 | fail: | |
1966 | return NULL; | |
1967 | } | |
1968 | ||
1969 | ||
1970 | static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1971 | PyObject *resultobj; | |
1972 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
1973 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
1974 | bool result; | |
e811c8ce | 1975 | bool temp1 = False ; |
d14a1e28 RD |
1976 | PyObject * obj0 = 0 ; |
1977 | char *kwnames[] = { | |
1978 | (char *) "command", NULL | |
1979 | }; | |
1980 | ||
1981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
1982 | if (obj0) { | |
1983 | { | |
1984 | arg1 = wxString_in_helper(obj0); | |
1985 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1986 | temp1 = True; |
d14a1e28 RD |
1987 | } |
1988 | } | |
1989 | { | |
1990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1991 | result = (bool)wxShell((wxString const &)*arg1); | |
1992 | ||
1993 | wxPyEndAllowThreads(__tstate); | |
1994 | if (PyErr_Occurred()) SWIG_fail; | |
1995 | } | |
4d5c3d91 | 1996 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1997 | { |
1998 | if (temp1) | |
1999 | delete arg1; | |
2000 | } | |
2001 | return resultobj; | |
2002 | fail: | |
2003 | { | |
2004 | if (temp1) | |
2005 | delete arg1; | |
2006 | } | |
2007 | return NULL; | |
2008 | } | |
2009 | ||
2010 | ||
2011 | static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2012 | PyObject *resultobj; | |
2013 | char *kwnames[] = { | |
2014 | NULL | |
2015 | }; | |
2016 | ||
2017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
2018 | { | |
2019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2020 | wxStartTimer(); | |
2021 | ||
2022 | wxPyEndAllowThreads(__tstate); | |
2023 | if (PyErr_Occurred()) SWIG_fail; | |
2024 | } | |
2025 | Py_INCREF(Py_None); resultobj = Py_None; | |
2026 | return resultobj; | |
2027 | fail: | |
2028 | return NULL; | |
2029 | } | |
2030 | ||
2031 | ||
2032 | static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2033 | PyObject *resultobj; | |
2034 | int *arg1 = (int *) 0 ; | |
2035 | int *arg2 = (int *) 0 ; | |
2036 | int result; | |
2037 | int temp1 ; | |
2038 | int temp2 ; | |
2039 | char *kwnames[] = { | |
2040 | NULL | |
2041 | }; | |
2042 | ||
2043 | arg1 = &temp1; | |
2044 | arg2 = &temp2; | |
2045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
2046 | { | |
2047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2048 | result = (int)wxGetOsVersion(arg1,arg2); | |
2049 | ||
2050 | wxPyEndAllowThreads(__tstate); | |
2051 | if (PyErr_Occurred()) SWIG_fail; | |
2052 | } | |
994141e6 | 2053 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2054 | { |
2055 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2056 | resultobj = t_output_helper(resultobj,o); | |
2057 | } | |
2058 | { | |
2059 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2060 | resultobj = t_output_helper(resultobj,o); | |
2061 | } | |
2062 | return resultobj; | |
2063 | fail: | |
2064 | return NULL; | |
2065 | } | |
2066 | ||
2067 | ||
2068 | static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2069 | PyObject *resultobj; | |
2070 | wxString result; | |
2071 | char *kwnames[] = { | |
2072 | NULL | |
2073 | }; | |
2074 | ||
2075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
2076 | { | |
2077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2078 | result = wxGetOsDescription(); | |
2079 | ||
2080 | wxPyEndAllowThreads(__tstate); | |
2081 | if (PyErr_Occurred()) SWIG_fail; | |
2082 | } | |
2083 | { | |
2084 | #if wxUSE_UNICODE | |
2085 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2086 | #else | |
2087 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2088 | #endif | |
2089 | } | |
2090 | return resultobj; | |
2091 | fail: | |
2092 | return NULL; | |
2093 | } | |
2094 | ||
2095 | ||
2096 | static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2097 | PyObject *resultobj; | |
2098 | long result; | |
2099 | char *kwnames[] = { | |
2100 | NULL | |
2101 | }; | |
2102 | ||
2103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
2104 | { | |
2105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2106 | result = (long)wxGetFreeMemory(); | |
2107 | ||
2108 | wxPyEndAllowThreads(__tstate); | |
2109 | if (PyErr_Occurred()) SWIG_fail; | |
2110 | } | |
994141e6 | 2111 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
2112 | return resultobj; |
2113 | fail: | |
2114 | return NULL; | |
2115 | } | |
2116 | ||
2117 | ||
2118 | static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2119 | PyObject *resultobj; | |
2120 | int arg1 ; | |
2121 | bool result; | |
994141e6 | 2122 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2123 | char *kwnames[] = { |
2124 | (char *) "wFlags", NULL | |
2125 | }; | |
2126 | ||
994141e6 RD |
2127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; |
2128 | { | |
2129 | arg1 = (wxShutdownFlags) SWIG_PyObj_AsInt(obj0); | |
2130 | if (PyErr_Occurred()) SWIG_fail; | |
2131 | } | |
d14a1e28 RD |
2132 | { |
2133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2134 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
2135 | ||
2136 | wxPyEndAllowThreads(__tstate); | |
2137 | if (PyErr_Occurred()) SWIG_fail; | |
2138 | } | |
4d5c3d91 | 2139 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2140 | return resultobj; |
2141 | fail: | |
2142 | return NULL; | |
2143 | } | |
2144 | ||
2145 | ||
2146 | static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2147 | PyObject *resultobj; | |
2148 | int arg1 ; | |
994141e6 | 2149 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2150 | char *kwnames[] = { |
2151 | (char *) "secs", NULL | |
2152 | }; | |
2153 | ||
994141e6 RD |
2154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; |
2155 | { | |
2156 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
2157 | if (PyErr_Occurred()) SWIG_fail; | |
2158 | } | |
d14a1e28 RD |
2159 | { |
2160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2161 | wxSleep(arg1); | |
2162 | ||
2163 | wxPyEndAllowThreads(__tstate); | |
2164 | if (PyErr_Occurred()) SWIG_fail; | |
2165 | } | |
2166 | Py_INCREF(Py_None); resultobj = Py_None; | |
2167 | return resultobj; | |
2168 | fail: | |
2169 | return NULL; | |
2170 | } | |
2171 | ||
2172 | ||
2173 | static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2174 | PyObject *resultobj; | |
2175 | unsigned long arg1 ; | |
2176 | PyObject * obj0 = 0 ; | |
2177 | char *kwnames[] = { | |
2178 | (char *) "milliseconds", NULL | |
2179 | }; | |
2180 | ||
2181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail; | |
a41e16b6 | 2182 | { |
994141e6 | 2183 | arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0); |
a41e16b6 RD |
2184 | if (PyErr_Occurred()) SWIG_fail; |
2185 | } | |
d14a1e28 RD |
2186 | { |
2187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2188 | wxUsleep(arg1); | |
2189 | ||
2190 | wxPyEndAllowThreads(__tstate); | |
2191 | if (PyErr_Occurred()) SWIG_fail; | |
2192 | } | |
2193 | Py_INCREF(Py_None); resultobj = Py_None; | |
2194 | return resultobj; | |
2195 | fail: | |
2196 | return NULL; | |
2197 | } | |
2198 | ||
2199 | ||
2200 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2201 | PyObject *resultobj; | |
2202 | bool arg1 ; | |
2203 | PyObject * obj0 = 0 ; | |
2204 | char *kwnames[] = { | |
2205 | (char *) "enable", NULL | |
2206 | }; | |
2207 | ||
2208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
a41e16b6 | 2209 | { |
994141e6 | 2210 | arg1 = (bool) SWIG_PyObj_AsBool(obj0); |
a41e16b6 RD |
2211 | if (PyErr_Occurred()) SWIG_fail; |
2212 | } | |
d14a1e28 RD |
2213 | { |
2214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2215 | wxEnableTopLevelWindows(arg1); | |
2216 | ||
2217 | wxPyEndAllowThreads(__tstate); | |
2218 | if (PyErr_Occurred()) SWIG_fail; | |
2219 | } | |
2220 | Py_INCREF(Py_None); resultobj = Py_None; | |
2221 | return resultobj; | |
2222 | fail: | |
2223 | return NULL; | |
2224 | } | |
2225 | ||
2226 | ||
2227 | static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2228 | PyObject *resultobj; | |
2229 | wxString *arg1 = 0 ; | |
2230 | wxString result; | |
e811c8ce | 2231 | bool temp1 = False ; |
d14a1e28 RD |
2232 | PyObject * obj0 = 0 ; |
2233 | char *kwnames[] = { | |
2234 | (char *) "in", NULL | |
2235 | }; | |
2236 | ||
2237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2238 | { | |
2239 | arg1 = wxString_in_helper(obj0); | |
2240 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2241 | temp1 = True; |
d14a1e28 RD |
2242 | } |
2243 | { | |
2244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2245 | result = wxStripMenuCodes((wxString const &)*arg1); | |
2246 | ||
2247 | wxPyEndAllowThreads(__tstate); | |
2248 | if (PyErr_Occurred()) SWIG_fail; | |
2249 | } | |
2250 | { | |
2251 | #if wxUSE_UNICODE | |
2252 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2253 | #else | |
2254 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2255 | #endif | |
2256 | } | |
2257 | { | |
2258 | if (temp1) | |
2259 | delete arg1; | |
2260 | } | |
2261 | return resultobj; | |
2262 | fail: | |
2263 | { | |
2264 | if (temp1) | |
2265 | delete arg1; | |
2266 | } | |
2267 | return NULL; | |
2268 | } | |
2269 | ||
2270 | ||
2271 | static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2272 | PyObject *resultobj; | |
2273 | wxString result; | |
2274 | char *kwnames[] = { | |
2275 | NULL | |
2276 | }; | |
2277 | ||
2278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2279 | { | |
2280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2281 | result = wxGetEmailAddress(); | |
2282 | ||
2283 | wxPyEndAllowThreads(__tstate); | |
2284 | if (PyErr_Occurred()) SWIG_fail; | |
2285 | } | |
2286 | { | |
2287 | #if wxUSE_UNICODE | |
2288 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2289 | #else | |
2290 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2291 | #endif | |
2292 | } | |
2293 | return resultobj; | |
2294 | fail: | |
2295 | return NULL; | |
2296 | } | |
2297 | ||
2298 | ||
2299 | static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2300 | PyObject *resultobj; | |
2301 | wxString result; | |
2302 | char *kwnames[] = { | |
2303 | NULL | |
2304 | }; | |
2305 | ||
2306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2307 | { | |
2308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2309 | result = wxGetHostName(); | |
2310 | ||
2311 | wxPyEndAllowThreads(__tstate); | |
2312 | if (PyErr_Occurred()) SWIG_fail; | |
2313 | } | |
2314 | { | |
2315 | #if wxUSE_UNICODE | |
2316 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2317 | #else | |
2318 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2319 | #endif | |
2320 | } | |
2321 | return resultobj; | |
2322 | fail: | |
2323 | return NULL; | |
2324 | } | |
2325 | ||
2326 | ||
2327 | static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2328 | PyObject *resultobj; | |
2329 | wxString result; | |
2330 | char *kwnames[] = { | |
2331 | NULL | |
2332 | }; | |
2333 | ||
2334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2335 | { | |
2336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2337 | result = wxGetFullHostName(); | |
2338 | ||
2339 | wxPyEndAllowThreads(__tstate); | |
2340 | if (PyErr_Occurred()) SWIG_fail; | |
2341 | } | |
2342 | { | |
2343 | #if wxUSE_UNICODE | |
2344 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2345 | #else | |
2346 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2347 | #endif | |
2348 | } | |
2349 | return resultobj; | |
2350 | fail: | |
2351 | return NULL; | |
2352 | } | |
2353 | ||
2354 | ||
2355 | static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2356 | PyObject *resultobj; | |
2357 | wxString result; | |
2358 | char *kwnames[] = { | |
2359 | NULL | |
2360 | }; | |
2361 | ||
2362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
2363 | { | |
2364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2365 | result = wxGetUserId(); | |
2366 | ||
2367 | wxPyEndAllowThreads(__tstate); | |
2368 | if (PyErr_Occurred()) SWIG_fail; | |
2369 | } | |
2370 | { | |
2371 | #if wxUSE_UNICODE | |
2372 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2373 | #else | |
2374 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2375 | #endif | |
2376 | } | |
2377 | return resultobj; | |
2378 | fail: | |
2379 | return NULL; | |
2380 | } | |
2381 | ||
2382 | ||
2383 | static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2384 | PyObject *resultobj; | |
2385 | wxString result; | |
2386 | char *kwnames[] = { | |
2387 | NULL | |
2388 | }; | |
2389 | ||
2390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
2391 | { | |
2392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2393 | result = wxGetUserName(); | |
2394 | ||
2395 | wxPyEndAllowThreads(__tstate); | |
2396 | if (PyErr_Occurred()) SWIG_fail; | |
2397 | } | |
2398 | { | |
2399 | #if wxUSE_UNICODE | |
2400 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2401 | #else | |
2402 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2403 | #endif | |
2404 | } | |
2405 | return resultobj; | |
2406 | fail: | |
2407 | return NULL; | |
2408 | } | |
2409 | ||
2410 | ||
2411 | static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2412 | PyObject *resultobj; | |
2413 | wxString result; | |
2414 | char *kwnames[] = { | |
2415 | NULL | |
2416 | }; | |
2417 | ||
2418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
2419 | { | |
2420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2421 | result = wxGetHomeDir(); | |
2422 | ||
2423 | wxPyEndAllowThreads(__tstate); | |
2424 | if (PyErr_Occurred()) SWIG_fail; | |
2425 | } | |
2426 | { | |
2427 | #if wxUSE_UNICODE | |
2428 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2429 | #else | |
2430 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2431 | #endif | |
2432 | } | |
2433 | return resultobj; | |
2434 | fail: | |
2435 | return NULL; | |
2436 | } | |
2437 | ||
2438 | ||
2439 | static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2440 | PyObject *resultobj; | |
2441 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2442 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2443 | wxString result; | |
e811c8ce | 2444 | bool temp1 = False ; |
d14a1e28 RD |
2445 | PyObject * obj0 = 0 ; |
2446 | char *kwnames[] = { | |
2447 | (char *) "user", NULL | |
2448 | }; | |
2449 | ||
2450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
2451 | if (obj0) { | |
2452 | { | |
2453 | arg1 = wxString_in_helper(obj0); | |
2454 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2455 | temp1 = True; |
d14a1e28 RD |
2456 | } |
2457 | } | |
2458 | { | |
2459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2460 | result = wxGetUserHome((wxString const &)*arg1); | |
2461 | ||
2462 | wxPyEndAllowThreads(__tstate); | |
2463 | if (PyErr_Occurred()) SWIG_fail; | |
2464 | } | |
2465 | { | |
2466 | #if wxUSE_UNICODE | |
2467 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2468 | #else | |
2469 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2470 | #endif | |
2471 | } | |
2472 | { | |
2473 | if (temp1) | |
2474 | delete arg1; | |
2475 | } | |
2476 | return resultobj; | |
2477 | fail: | |
2478 | { | |
2479 | if (temp1) | |
2480 | delete arg1; | |
2481 | } | |
2482 | return NULL; | |
2483 | } | |
2484 | ||
2485 | ||
2486 | static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2487 | PyObject *resultobj; | |
2488 | unsigned long result; | |
2489 | char *kwnames[] = { | |
2490 | NULL | |
2491 | }; | |
2492 | ||
2493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
2494 | { | |
2495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2496 | result = (unsigned long)wxGetProcessId(); | |
2497 | ||
2498 | wxPyEndAllowThreads(__tstate); | |
2499 | if (PyErr_Occurred()) SWIG_fail; | |
2500 | } | |
994141e6 | 2501 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
2502 | return resultobj; |
2503 | fail: | |
2504 | return NULL; | |
2505 | } | |
2506 | ||
2507 | ||
2508 | static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2509 | PyObject *resultobj; | |
2510 | char *kwnames[] = { | |
2511 | NULL | |
2512 | }; | |
2513 | ||
2514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
2515 | { | |
2516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2517 | wxTrap(); | |
2518 | ||
2519 | wxPyEndAllowThreads(__tstate); | |
2520 | if (PyErr_Occurred()) SWIG_fail; | |
2521 | } | |
2522 | Py_INCREF(Py_None); resultobj = Py_None; | |
2523 | return resultobj; | |
2524 | fail: | |
2525 | return NULL; | |
2526 | } | |
2527 | ||
2528 | ||
2529 | static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2530 | PyObject *resultobj; | |
2531 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
2532 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2533 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2534 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2535 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2536 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2537 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2538 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2539 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
2540 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
2541 | int arg6 = (int) 0 ; | |
2542 | wxWindow *arg7 = (wxWindow *) NULL ; | |
2543 | int arg8 = (int) -1 ; | |
2544 | int arg9 = (int) -1 ; | |
2545 | wxString result; | |
e811c8ce RD |
2546 | bool temp1 = False ; |
2547 | bool temp2 = False ; | |
2548 | bool temp3 = False ; | |
2549 | bool temp4 = False ; | |
2550 | bool temp5 = False ; | |
d14a1e28 RD |
2551 | PyObject * obj0 = 0 ; |
2552 | PyObject * obj1 = 0 ; | |
2553 | PyObject * obj2 = 0 ; | |
2554 | PyObject * obj3 = 0 ; | |
2555 | PyObject * obj4 = 0 ; | |
994141e6 | 2556 | PyObject * obj5 = 0 ; |
d14a1e28 | 2557 | PyObject * obj6 = 0 ; |
994141e6 RD |
2558 | PyObject * obj7 = 0 ; |
2559 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
2560 | char *kwnames[] = { |
2561 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
2562 | }; | |
2563 | ||
994141e6 | 2564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
2565 | if (obj0) { |
2566 | { | |
2567 | arg1 = wxString_in_helper(obj0); | |
2568 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2569 | temp1 = True; |
d14a1e28 RD |
2570 | } |
2571 | } | |
2572 | if (obj1) { | |
2573 | { | |
2574 | arg2 = wxString_in_helper(obj1); | |
2575 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2576 | temp2 = True; |
d14a1e28 RD |
2577 | } |
2578 | } | |
2579 | if (obj2) { | |
2580 | { | |
2581 | arg3 = wxString_in_helper(obj2); | |
2582 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2583 | temp3 = True; |
d14a1e28 RD |
2584 | } |
2585 | } | |
2586 | if (obj3) { | |
2587 | { | |
2588 | arg4 = wxString_in_helper(obj3); | |
2589 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 2590 | temp4 = True; |
d14a1e28 RD |
2591 | } |
2592 | } | |
2593 | if (obj4) { | |
2594 | { | |
2595 | arg5 = wxString_in_helper(obj4); | |
2596 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 2597 | temp5 = True; |
d14a1e28 RD |
2598 | } |
2599 | } | |
994141e6 RD |
2600 | if (obj5) { |
2601 | { | |
2602 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
2603 | if (PyErr_Occurred()) SWIG_fail; | |
2604 | } | |
2605 | } | |
d14a1e28 RD |
2606 | if (obj6) { |
2607 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2608 | } | |
994141e6 RD |
2609 | if (obj7) { |
2610 | { | |
2611 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
2612 | if (PyErr_Occurred()) SWIG_fail; | |
2613 | } | |
2614 | } | |
2615 | if (obj8) { | |
2616 | { | |
2617 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
2618 | if (PyErr_Occurred()) SWIG_fail; | |
2619 | } | |
2620 | } | |
d14a1e28 RD |
2621 | { |
2622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2623 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
2624 | ||
2625 | wxPyEndAllowThreads(__tstate); | |
2626 | if (PyErr_Occurred()) SWIG_fail; | |
2627 | } | |
2628 | { | |
2629 | #if wxUSE_UNICODE | |
2630 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2631 | #else | |
2632 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2633 | #endif | |
2634 | } | |
2635 | { | |
2636 | if (temp1) | |
2637 | delete arg1; | |
2638 | } | |
2639 | { | |
2640 | if (temp2) | |
2641 | delete arg2; | |
2642 | } | |
2643 | { | |
2644 | if (temp3) | |
2645 | delete arg3; | |
2646 | } | |
2647 | { | |
2648 | if (temp4) | |
2649 | delete arg4; | |
2650 | } | |
2651 | { | |
2652 | if (temp5) | |
2653 | delete arg5; | |
2654 | } | |
2655 | return resultobj; | |
2656 | fail: | |
2657 | { | |
2658 | if (temp1) | |
2659 | delete arg1; | |
2660 | } | |
2661 | { | |
2662 | if (temp2) | |
2663 | delete arg2; | |
2664 | } | |
2665 | { | |
2666 | if (temp3) | |
2667 | delete arg3; | |
2668 | } | |
2669 | { | |
2670 | if (temp4) | |
2671 | delete arg4; | |
2672 | } | |
2673 | { | |
2674 | if (temp5) | |
2675 | delete arg5; | |
2676 | } | |
2677 | return NULL; | |
2678 | } | |
2679 | ||
2680 | ||
2681 | static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2682 | PyObject *resultobj; | |
2683 | wxString *arg1 = 0 ; | |
2684 | wxString *arg2 = 0 ; | |
2685 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2686 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2687 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2688 | wxString result; | |
e811c8ce RD |
2689 | bool temp1 = False ; |
2690 | bool temp2 = False ; | |
2691 | bool temp3 = False ; | |
d14a1e28 RD |
2692 | PyObject * obj0 = 0 ; |
2693 | PyObject * obj1 = 0 ; | |
2694 | PyObject * obj2 = 0 ; | |
2695 | PyObject * obj3 = 0 ; | |
2696 | char *kwnames[] = { | |
2697 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2698 | }; | |
2699 | ||
2700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2701 | { | |
2702 | arg1 = wxString_in_helper(obj0); | |
2703 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2704 | temp1 = True; |
d14a1e28 RD |
2705 | } |
2706 | { | |
2707 | arg2 = wxString_in_helper(obj1); | |
2708 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2709 | temp2 = True; |
d14a1e28 RD |
2710 | } |
2711 | if (obj2) { | |
2712 | { | |
2713 | arg3 = wxString_in_helper(obj2); | |
2714 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2715 | temp3 = True; |
d14a1e28 RD |
2716 | } |
2717 | } | |
2718 | if (obj3) { | |
2719 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2720 | } | |
2721 | { | |
2722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2723 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2724 | ||
2725 | wxPyEndAllowThreads(__tstate); | |
2726 | if (PyErr_Occurred()) SWIG_fail; | |
2727 | } | |
2728 | { | |
2729 | #if wxUSE_UNICODE | |
2730 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2731 | #else | |
2732 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2733 | #endif | |
2734 | } | |
2735 | { | |
2736 | if (temp1) | |
2737 | delete arg1; | |
2738 | } | |
2739 | { | |
2740 | if (temp2) | |
2741 | delete arg2; | |
2742 | } | |
2743 | { | |
2744 | if (temp3) | |
2745 | delete arg3; | |
2746 | } | |
2747 | return resultobj; | |
2748 | fail: | |
2749 | { | |
2750 | if (temp1) | |
2751 | delete arg1; | |
2752 | } | |
2753 | { | |
2754 | if (temp2) | |
2755 | delete arg2; | |
2756 | } | |
2757 | { | |
2758 | if (temp3) | |
2759 | delete arg3; | |
2760 | } | |
2761 | return NULL; | |
2762 | } | |
2763 | ||
2764 | ||
2765 | static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2766 | PyObject *resultobj; | |
2767 | wxString *arg1 = 0 ; | |
2768 | wxString *arg2 = 0 ; | |
2769 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2770 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2771 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2772 | wxString result; | |
e811c8ce RD |
2773 | bool temp1 = False ; |
2774 | bool temp2 = False ; | |
2775 | bool temp3 = False ; | |
d14a1e28 RD |
2776 | PyObject * obj0 = 0 ; |
2777 | PyObject * obj1 = 0 ; | |
2778 | PyObject * obj2 = 0 ; | |
2779 | PyObject * obj3 = 0 ; | |
2780 | char *kwnames[] = { | |
2781 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2782 | }; | |
2783 | ||
2784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2785 | { | |
2786 | arg1 = wxString_in_helper(obj0); | |
2787 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2788 | temp1 = True; |
d14a1e28 RD |
2789 | } |
2790 | { | |
2791 | arg2 = wxString_in_helper(obj1); | |
2792 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2793 | temp2 = True; |
d14a1e28 RD |
2794 | } |
2795 | if (obj2) { | |
2796 | { | |
2797 | arg3 = wxString_in_helper(obj2); | |
2798 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2799 | temp3 = True; |
d14a1e28 RD |
2800 | } |
2801 | } | |
2802 | if (obj3) { | |
2803 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2804 | } | |
2805 | { | |
2806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2807 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2808 | ||
2809 | wxPyEndAllowThreads(__tstate); | |
2810 | if (PyErr_Occurred()) SWIG_fail; | |
2811 | } | |
2812 | { | |
2813 | #if wxUSE_UNICODE | |
2814 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2815 | #else | |
2816 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2817 | #endif | |
2818 | } | |
2819 | { | |
2820 | if (temp1) | |
2821 | delete arg1; | |
2822 | } | |
2823 | { | |
2824 | if (temp2) | |
2825 | delete arg2; | |
2826 | } | |
2827 | { | |
2828 | if (temp3) | |
2829 | delete arg3; | |
2830 | } | |
2831 | return resultobj; | |
2832 | fail: | |
2833 | { | |
2834 | if (temp1) | |
2835 | delete arg1; | |
2836 | } | |
2837 | { | |
2838 | if (temp2) | |
2839 | delete arg2; | |
2840 | } | |
2841 | { | |
2842 | if (temp3) | |
2843 | delete arg3; | |
2844 | } | |
2845 | return NULL; | |
2846 | } | |
2847 | ||
2848 | ||
2849 | static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2850 | PyObject *resultobj; | |
2851 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
2852 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2853 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2854 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2855 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
2856 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2857 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2858 | wxWindow *arg5 = (wxWindow *) NULL ; | |
2859 | wxString result; | |
e811c8ce RD |
2860 | bool temp1 = False ; |
2861 | bool temp2 = False ; | |
d14a1e28 RD |
2862 | wxPoint temp4 ; |
2863 | PyObject * obj0 = 0 ; | |
2864 | PyObject * obj1 = 0 ; | |
994141e6 | 2865 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2866 | PyObject * obj3 = 0 ; |
2867 | PyObject * obj4 = 0 ; | |
2868 | char *kwnames[] = { | |
2869 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
2870 | }; | |
2871 | ||
994141e6 | 2872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
2873 | if (obj0) { |
2874 | { | |
2875 | arg1 = wxString_in_helper(obj0); | |
2876 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2877 | temp1 = True; |
d14a1e28 RD |
2878 | } |
2879 | } | |
2880 | if (obj1) { | |
2881 | { | |
2882 | arg2 = wxString_in_helper(obj1); | |
2883 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2884 | temp2 = True; |
d14a1e28 RD |
2885 | } |
2886 | } | |
994141e6 RD |
2887 | if (obj2) { |
2888 | { | |
2889 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
2890 | if (PyErr_Occurred()) SWIG_fail; | |
2891 | } | |
2892 | } | |
d14a1e28 RD |
2893 | if (obj3) { |
2894 | { | |
2895 | arg4 = &temp4; | |
2896 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2897 | } | |
2898 | } | |
2899 | if (obj4) { | |
2900 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2901 | } | |
2902 | { | |
2903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2904 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
2905 | ||
2906 | wxPyEndAllowThreads(__tstate); | |
2907 | if (PyErr_Occurred()) SWIG_fail; | |
2908 | } | |
2909 | { | |
2910 | #if wxUSE_UNICODE | |
2911 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2912 | #else | |
2913 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2914 | #endif | |
2915 | } | |
2916 | { | |
2917 | if (temp1) | |
2918 | delete arg1; | |
2919 | } | |
2920 | { | |
2921 | if (temp2) | |
2922 | delete arg2; | |
2923 | } | |
2924 | return resultobj; | |
2925 | fail: | |
2926 | { | |
2927 | if (temp1) | |
2928 | delete arg1; | |
2929 | } | |
2930 | { | |
2931 | if (temp2) | |
2932 | delete arg2; | |
2933 | } | |
2934 | return NULL; | |
2935 | } | |
2936 | ||
2937 | ||
2938 | static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2939 | PyObject *resultobj; | |
2940 | wxString *arg1 = 0 ; | |
2941 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2942 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2943 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2944 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2945 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2946 | int arg5 = (int) -1 ; | |
2947 | int arg6 = (int) -1 ; | |
e811c8ce | 2948 | bool arg7 = (bool) True ; |
d14a1e28 | 2949 | wxString result; |
e811c8ce RD |
2950 | bool temp1 = False ; |
2951 | bool temp2 = False ; | |
2952 | bool temp3 = False ; | |
d14a1e28 RD |
2953 | PyObject * obj0 = 0 ; |
2954 | PyObject * obj1 = 0 ; | |
2955 | PyObject * obj2 = 0 ; | |
2956 | PyObject * obj3 = 0 ; | |
994141e6 RD |
2957 | PyObject * obj4 = 0 ; |
2958 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
2959 | PyObject * obj6 = 0 ; |
2960 | char *kwnames[] = { | |
2961 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
2962 | }; | |
2963 | ||
994141e6 | 2964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
2965 | { |
2966 | arg1 = wxString_in_helper(obj0); | |
2967 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2968 | temp1 = True; |
d14a1e28 RD |
2969 | } |
2970 | if (obj1) { | |
2971 | { | |
2972 | arg2 = wxString_in_helper(obj1); | |
2973 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2974 | temp2 = True; |
d14a1e28 RD |
2975 | } |
2976 | } | |
2977 | if (obj2) { | |
2978 | { | |
2979 | arg3 = wxString_in_helper(obj2); | |
2980 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2981 | temp3 = True; |
d14a1e28 RD |
2982 | } |
2983 | } | |
2984 | if (obj3) { | |
2985 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2986 | } | |
994141e6 RD |
2987 | if (obj4) { |
2988 | { | |
2989 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
2990 | if (PyErr_Occurred()) SWIG_fail; | |
2991 | } | |
2992 | } | |
2993 | if (obj5) { | |
2994 | { | |
2995 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
2996 | if (PyErr_Occurred()) SWIG_fail; | |
2997 | } | |
2998 | } | |
d14a1e28 | 2999 | if (obj6) { |
a41e16b6 | 3000 | { |
994141e6 | 3001 | arg7 = (bool) SWIG_PyObj_AsBool(obj6); |
a41e16b6 RD |
3002 | if (PyErr_Occurred()) SWIG_fail; |
3003 | } | |
d14a1e28 RD |
3004 | } |
3005 | { | |
3006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3007 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
3008 | ||
3009 | wxPyEndAllowThreads(__tstate); | |
3010 | if (PyErr_Occurred()) SWIG_fail; | |
3011 | } | |
3012 | { | |
3013 | #if wxUSE_UNICODE | |
3014 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3015 | #else | |
3016 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3017 | #endif | |
3018 | } | |
3019 | { | |
3020 | if (temp1) | |
3021 | delete arg1; | |
3022 | } | |
3023 | { | |
3024 | if (temp2) | |
3025 | delete arg2; | |
3026 | } | |
3027 | { | |
3028 | if (temp3) | |
3029 | delete arg3; | |
3030 | } | |
3031 | return resultobj; | |
3032 | fail: | |
3033 | { | |
3034 | if (temp1) | |
3035 | delete arg1; | |
3036 | } | |
3037 | { | |
3038 | if (temp2) | |
3039 | delete arg2; | |
3040 | } | |
3041 | { | |
3042 | if (temp3) | |
3043 | delete arg3; | |
3044 | } | |
3045 | return NULL; | |
3046 | } | |
3047 | ||
3048 | ||
3049 | static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3050 | PyObject *resultobj; | |
3051 | wxString *arg1 = 0 ; | |
3052 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3053 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3054 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3055 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3056 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3057 | wxString result; | |
e811c8ce RD |
3058 | bool temp1 = False ; |
3059 | bool temp2 = False ; | |
3060 | bool temp3 = False ; | |
d14a1e28 RD |
3061 | PyObject * obj0 = 0 ; |
3062 | PyObject * obj1 = 0 ; | |
3063 | PyObject * obj2 = 0 ; | |
3064 | PyObject * obj3 = 0 ; | |
3065 | char *kwnames[] = { | |
3066 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
3067 | }; | |
3068 | ||
3069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3070 | { | |
3071 | arg1 = wxString_in_helper(obj0); | |
3072 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3073 | temp1 = True; |
d14a1e28 RD |
3074 | } |
3075 | if (obj1) { | |
3076 | { | |
3077 | arg2 = wxString_in_helper(obj1); | |
3078 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3079 | temp2 = True; |
d14a1e28 RD |
3080 | } |
3081 | } | |
3082 | if (obj2) { | |
3083 | { | |
3084 | arg3 = wxString_in_helper(obj2); | |
3085 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3086 | temp3 = True; |
d14a1e28 RD |
3087 | } |
3088 | } | |
3089 | if (obj3) { | |
3090 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3091 | } | |
3092 | { | |
3093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3094 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3095 | ||
3096 | wxPyEndAllowThreads(__tstate); | |
3097 | if (PyErr_Occurred()) SWIG_fail; | |
3098 | } | |
3099 | { | |
3100 | #if wxUSE_UNICODE | |
3101 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3102 | #else | |
3103 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3104 | #endif | |
3105 | } | |
3106 | { | |
3107 | if (temp1) | |
3108 | delete arg1; | |
3109 | } | |
3110 | { | |
3111 | if (temp2) | |
3112 | delete arg2; | |
3113 | } | |
3114 | { | |
3115 | if (temp3) | |
3116 | delete arg3; | |
3117 | } | |
3118 | return resultobj; | |
3119 | fail: | |
3120 | { | |
3121 | if (temp1) | |
3122 | delete arg1; | |
3123 | } | |
3124 | { | |
3125 | if (temp2) | |
3126 | delete arg2; | |
3127 | } | |
3128 | { | |
3129 | if (temp3) | |
3130 | delete arg3; | |
3131 | } | |
3132 | return NULL; | |
3133 | } | |
3134 | ||
3135 | ||
3136 | static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3137 | PyObject *resultobj; | |
3138 | wxString *arg1 = 0 ; | |
3139 | wxString *arg2 = 0 ; | |
3140 | int arg3 ; | |
3141 | wxString *arg4 = (wxString *) 0 ; | |
3142 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3143 | int arg6 = (int) -1 ; | |
3144 | int arg7 = (int) -1 ; | |
e811c8ce | 3145 | bool arg8 = (bool) True ; |
d14a1e28 RD |
3146 | int arg9 = (int) 150 ; |
3147 | int arg10 = (int) 200 ; | |
3148 | wxString result; | |
e811c8ce RD |
3149 | bool temp1 = False ; |
3150 | bool temp2 = False ; | |
d14a1e28 RD |
3151 | PyObject * obj0 = 0 ; |
3152 | PyObject * obj1 = 0 ; | |
3153 | PyObject * obj2 = 0 ; | |
3154 | PyObject * obj3 = 0 ; | |
994141e6 RD |
3155 | PyObject * obj4 = 0 ; |
3156 | PyObject * obj5 = 0 ; | |
d14a1e28 | 3157 | PyObject * obj6 = 0 ; |
994141e6 RD |
3158 | PyObject * obj7 = 0 ; |
3159 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
3160 | char *kwnames[] = { |
3161 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3162 | }; | |
3163 | ||
994141e6 | 3164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3165 | { |
3166 | arg1 = wxString_in_helper(obj0); | |
3167 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3168 | temp1 = True; |
d14a1e28 RD |
3169 | } |
3170 | { | |
3171 | arg2 = wxString_in_helper(obj1); | |
3172 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3173 | temp2 = True; |
d14a1e28 RD |
3174 | } |
3175 | { | |
3176 | arg3 = PyList_Size(obj2); | |
3177 | arg4 = wxString_LIST_helper(obj2); | |
3178 | if (arg4 == NULL) SWIG_fail; | |
3179 | } | |
3180 | if (obj3) { | |
3181 | if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3182 | } | |
994141e6 RD |
3183 | if (obj4) { |
3184 | { | |
3185 | arg6 = (int) SWIG_PyObj_AsInt(obj4); | |
3186 | if (PyErr_Occurred()) SWIG_fail; | |
3187 | } | |
3188 | } | |
3189 | if (obj5) { | |
3190 | { | |
3191 | arg7 = (int) SWIG_PyObj_AsInt(obj5); | |
3192 | if (PyErr_Occurred()) SWIG_fail; | |
3193 | } | |
3194 | } | |
d14a1e28 | 3195 | if (obj6) { |
a41e16b6 | 3196 | { |
994141e6 RD |
3197 | arg8 = (bool) SWIG_PyObj_AsBool(obj6); |
3198 | if (PyErr_Occurred()) SWIG_fail; | |
3199 | } | |
3200 | } | |
3201 | if (obj7) { | |
3202 | { | |
3203 | arg9 = (int) SWIG_PyObj_AsInt(obj7); | |
3204 | if (PyErr_Occurred()) SWIG_fail; | |
3205 | } | |
3206 | } | |
3207 | if (obj8) { | |
3208 | { | |
3209 | arg10 = (int) SWIG_PyObj_AsInt(obj8); | |
a41e16b6 RD |
3210 | if (PyErr_Occurred()) SWIG_fail; |
3211 | } | |
d14a1e28 RD |
3212 | } |
3213 | { | |
3214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3215 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3216 | ||
3217 | wxPyEndAllowThreads(__tstate); | |
3218 | if (PyErr_Occurred()) SWIG_fail; | |
3219 | } | |
3220 | { | |
3221 | #if wxUSE_UNICODE | |
3222 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3223 | #else | |
3224 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3225 | #endif | |
3226 | } | |
3227 | { | |
3228 | if (temp1) | |
3229 | delete arg1; | |
3230 | } | |
3231 | { | |
3232 | if (temp2) | |
3233 | delete arg2; | |
3234 | } | |
3235 | { | |
3236 | if (arg4) delete [] arg4; | |
3237 | } | |
3238 | return resultobj; | |
3239 | fail: | |
3240 | { | |
3241 | if (temp1) | |
3242 | delete arg1; | |
3243 | } | |
3244 | { | |
3245 | if (temp2) | |
3246 | delete arg2; | |
3247 | } | |
3248 | { | |
3249 | if (arg4) delete [] arg4; | |
3250 | } | |
3251 | return NULL; | |
3252 | } | |
3253 | ||
3254 | ||
3255 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3256 | PyObject *resultobj; | |
3257 | wxString *arg1 = 0 ; | |
3258 | wxString *arg2 = 0 ; | |
3259 | int arg3 ; | |
3260 | wxString *arg4 = (wxString *) 0 ; | |
3261 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3262 | int arg6 = (int) -1 ; | |
3263 | int arg7 = (int) -1 ; | |
e811c8ce | 3264 | bool arg8 = (bool) True ; |
d14a1e28 RD |
3265 | int arg9 = (int) 150 ; |
3266 | int arg10 = (int) 200 ; | |
3267 | int result; | |
e811c8ce RD |
3268 | bool temp1 = False ; |
3269 | bool temp2 = False ; | |
d14a1e28 RD |
3270 | PyObject * obj0 = 0 ; |
3271 | PyObject * obj1 = 0 ; | |
3272 | PyObject * obj2 = 0 ; | |
3273 | PyObject * obj3 = 0 ; | |
994141e6 RD |
3274 | PyObject * obj4 = 0 ; |
3275 | PyObject * obj5 = 0 ; | |
d14a1e28 | 3276 | PyObject * obj6 = 0 ; |
994141e6 RD |
3277 | PyObject * obj7 = 0 ; |
3278 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
3279 | char *kwnames[] = { |
3280 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3281 | }; | |
3282 | ||
994141e6 | 3283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3284 | { |
3285 | arg1 = wxString_in_helper(obj0); | |
3286 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3287 | temp1 = True; |
d14a1e28 RD |
3288 | } |
3289 | { | |
3290 | arg2 = wxString_in_helper(obj1); | |
3291 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3292 | temp2 = True; |
d14a1e28 RD |
3293 | } |
3294 | { | |
3295 | arg3 = PyList_Size(obj2); | |
3296 | arg4 = wxString_LIST_helper(obj2); | |
3297 | if (arg4 == NULL) SWIG_fail; | |
3298 | } | |
3299 | if (obj3) { | |
3300 | if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3301 | } | |
994141e6 RD |
3302 | if (obj4) { |
3303 | { | |
3304 | arg6 = (int) SWIG_PyObj_AsInt(obj4); | |
3305 | if (PyErr_Occurred()) SWIG_fail; | |
3306 | } | |
3307 | } | |
3308 | if (obj5) { | |
3309 | { | |
3310 | arg7 = (int) SWIG_PyObj_AsInt(obj5); | |
3311 | if (PyErr_Occurred()) SWIG_fail; | |
3312 | } | |
3313 | } | |
d14a1e28 | 3314 | if (obj6) { |
a41e16b6 | 3315 | { |
994141e6 RD |
3316 | arg8 = (bool) SWIG_PyObj_AsBool(obj6); |
3317 | if (PyErr_Occurred()) SWIG_fail; | |
3318 | } | |
3319 | } | |
3320 | if (obj7) { | |
3321 | { | |
3322 | arg9 = (int) SWIG_PyObj_AsInt(obj7); | |
3323 | if (PyErr_Occurred()) SWIG_fail; | |
3324 | } | |
3325 | } | |
3326 | if (obj8) { | |
3327 | { | |
3328 | arg10 = (int) SWIG_PyObj_AsInt(obj8); | |
a41e16b6 RD |
3329 | if (PyErr_Occurred()) SWIG_fail; |
3330 | } | |
d14a1e28 RD |
3331 | } |
3332 | { | |
3333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3334 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3335 | ||
3336 | wxPyEndAllowThreads(__tstate); | |
3337 | if (PyErr_Occurred()) SWIG_fail; | |
3338 | } | |
994141e6 | 3339 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3340 | { |
3341 | if (temp1) | |
3342 | delete arg1; | |
3343 | } | |
3344 | { | |
3345 | if (temp2) | |
3346 | delete arg2; | |
3347 | } | |
3348 | { | |
3349 | if (arg4) delete [] arg4; | |
3350 | } | |
3351 | return resultobj; | |
3352 | fail: | |
3353 | { | |
3354 | if (temp1) | |
3355 | delete arg1; | |
3356 | } | |
3357 | { | |
3358 | if (temp2) | |
3359 | delete arg2; | |
3360 | } | |
3361 | { | |
3362 | if (arg4) delete [] arg4; | |
3363 | } | |
3364 | return NULL; | |
3365 | } | |
3366 | ||
3367 | ||
3368 | static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3369 | PyObject *resultobj; | |
3370 | wxString *arg1 = 0 ; | |
3371 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3372 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3373 | int arg3 = (int) wxOK|wxCENTRE ; | |
3374 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3375 | int arg5 = (int) -1 ; | |
3376 | int arg6 = (int) -1 ; | |
3377 | int result; | |
e811c8ce RD |
3378 | bool temp1 = False ; |
3379 | bool temp2 = False ; | |
d14a1e28 RD |
3380 | PyObject * obj0 = 0 ; |
3381 | PyObject * obj1 = 0 ; | |
994141e6 | 3382 | PyObject * obj2 = 0 ; |
d14a1e28 | 3383 | PyObject * obj3 = 0 ; |
994141e6 RD |
3384 | PyObject * obj4 = 0 ; |
3385 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
3386 | char *kwnames[] = { |
3387 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3388 | }; | |
3389 | ||
994141e6 | 3390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
3391 | { |
3392 | arg1 = wxString_in_helper(obj0); | |
3393 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3394 | temp1 = True; |
d14a1e28 RD |
3395 | } |
3396 | if (obj1) { | |
3397 | { | |
3398 | arg2 = wxString_in_helper(obj1); | |
3399 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3400 | temp2 = True; |
d14a1e28 RD |
3401 | } |
3402 | } | |
994141e6 RD |
3403 | if (obj2) { |
3404 | { | |
3405 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3406 | if (PyErr_Occurred()) SWIG_fail; | |
3407 | } | |
3408 | } | |
d14a1e28 RD |
3409 | if (obj3) { |
3410 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3411 | } | |
994141e6 RD |
3412 | if (obj4) { |
3413 | { | |
3414 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
3415 | if (PyErr_Occurred()) SWIG_fail; | |
3416 | } | |
3417 | } | |
3418 | if (obj5) { | |
3419 | { | |
3420 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
3421 | if (PyErr_Occurred()) SWIG_fail; | |
3422 | } | |
3423 | } | |
d14a1e28 RD |
3424 | { |
3425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3426 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
3427 | ||
3428 | wxPyEndAllowThreads(__tstate); | |
3429 | if (PyErr_Occurred()) SWIG_fail; | |
3430 | } | |
994141e6 | 3431 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3432 | { |
3433 | if (temp1) | |
3434 | delete arg1; | |
3435 | } | |
3436 | { | |
3437 | if (temp2) | |
3438 | delete arg2; | |
3439 | } | |
3440 | return resultobj; | |
3441 | fail: | |
3442 | { | |
3443 | if (temp1) | |
3444 | delete arg1; | |
3445 | } | |
3446 | { | |
3447 | if (temp2) | |
3448 | delete arg2; | |
3449 | } | |
3450 | return NULL; | |
3451 | } | |
3452 | ||
3453 | ||
3454 | static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3455 | PyObject *resultobj; | |
3456 | wxString *arg1 = 0 ; | |
3457 | wxString *arg2 = 0 ; | |
3458 | wxString *arg3 = 0 ; | |
3459 | long arg4 ; | |
3460 | long arg5 = (long) 0 ; | |
3461 | long arg6 = (long) 100 ; | |
3462 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3463 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
3464 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
3465 | long result; | |
e811c8ce RD |
3466 | bool temp1 = False ; |
3467 | bool temp2 = False ; | |
3468 | bool temp3 = False ; | |
d14a1e28 RD |
3469 | wxPoint temp8 ; |
3470 | PyObject * obj0 = 0 ; | |
3471 | PyObject * obj1 = 0 ; | |
3472 | PyObject * obj2 = 0 ; | |
994141e6 RD |
3473 | PyObject * obj3 = 0 ; |
3474 | PyObject * obj4 = 0 ; | |
3475 | PyObject * obj5 = 0 ; | |
3476 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
3477 | PyObject * obj7 = 0 ; |
3478 | char *kwnames[] = { | |
3479 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
3480 | }; | |
3481 | ||
994141e6 | 3482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
3483 | { |
3484 | arg1 = wxString_in_helper(obj0); | |
3485 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3486 | temp1 = True; |
d14a1e28 RD |
3487 | } |
3488 | { | |
3489 | arg2 = wxString_in_helper(obj1); | |
3490 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3491 | temp2 = True; |
d14a1e28 RD |
3492 | } |
3493 | { | |
3494 | arg3 = wxString_in_helper(obj2); | |
3495 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3496 | temp3 = True; |
d14a1e28 | 3497 | } |
994141e6 RD |
3498 | { |
3499 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
3500 | if (PyErr_Occurred()) SWIG_fail; | |
3501 | } | |
3502 | if (obj4) { | |
3503 | { | |
3504 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
3505 | if (PyErr_Occurred()) SWIG_fail; | |
3506 | } | |
3507 | } | |
3508 | if (obj5) { | |
3509 | { | |
3510 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
3511 | if (PyErr_Occurred()) SWIG_fail; | |
3512 | } | |
3513 | } | |
d14a1e28 RD |
3514 | if (obj6) { |
3515 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3516 | } | |
3517 | if (obj7) { | |
3518 | { | |
3519 | arg8 = &temp8; | |
3520 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
3521 | } | |
3522 | } | |
3523 | { | |
3524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3525 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
3526 | ||
3527 | wxPyEndAllowThreads(__tstate); | |
3528 | if (PyErr_Occurred()) SWIG_fail; | |
3529 | } | |
994141e6 | 3530 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
3531 | { |
3532 | if (temp1) | |
3533 | delete arg1; | |
3534 | } | |
3535 | { | |
3536 | if (temp2) | |
3537 | delete arg2; | |
3538 | } | |
3539 | { | |
3540 | if (temp3) | |
3541 | delete arg3; | |
3542 | } | |
3543 | return resultobj; | |
3544 | fail: | |
3545 | { | |
3546 | if (temp1) | |
3547 | delete arg1; | |
3548 | } | |
3549 | { | |
3550 | if (temp2) | |
3551 | delete arg2; | |
3552 | } | |
3553 | { | |
3554 | if (temp3) | |
3555 | delete arg3; | |
3556 | } | |
3557 | return NULL; | |
3558 | } | |
3559 | ||
3560 | ||
3561 | static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3562 | PyObject *resultobj; | |
3563 | bool result; | |
3564 | char *kwnames[] = { | |
3565 | NULL | |
3566 | }; | |
3567 | ||
3568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
3569 | { | |
3570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3571 | result = (bool)wxColourDisplay(); | |
3572 | ||
3573 | wxPyEndAllowThreads(__tstate); | |
3574 | if (PyErr_Occurred()) SWIG_fail; | |
3575 | } | |
4d5c3d91 | 3576 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3577 | return resultobj; |
3578 | fail: | |
3579 | return NULL; | |
3580 | } | |
3581 | ||
3582 | ||
3583 | static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3584 | PyObject *resultobj; | |
3585 | int result; | |
3586 | char *kwnames[] = { | |
3587 | NULL | |
3588 | }; | |
3589 | ||
3590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
3591 | { | |
3592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3593 | result = (int)wxDisplayDepth(); | |
3594 | ||
3595 | wxPyEndAllowThreads(__tstate); | |
3596 | if (PyErr_Occurred()) SWIG_fail; | |
3597 | } | |
994141e6 | 3598 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3599 | return resultobj; |
3600 | fail: | |
3601 | return NULL; | |
3602 | } | |
3603 | ||
3604 | ||
3605 | static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3606 | PyObject *resultobj; | |
3607 | int result; | |
3608 | char *kwnames[] = { | |
3609 | NULL | |
3610 | }; | |
3611 | ||
3612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
3613 | { | |
3614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3615 | result = (int)wxGetDisplayDepth(); | |
3616 | ||
3617 | wxPyEndAllowThreads(__tstate); | |
3618 | if (PyErr_Occurred()) SWIG_fail; | |
3619 | } | |
994141e6 | 3620 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3621 | return resultobj; |
3622 | fail: | |
3623 | return NULL; | |
3624 | } | |
3625 | ||
3626 | ||
3627 | static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3628 | PyObject *resultobj; | |
3629 | int *arg1 = (int *) 0 ; | |
3630 | int *arg2 = (int *) 0 ; | |
3631 | int temp1 ; | |
3632 | int temp2 ; | |
3633 | char *kwnames[] = { | |
3634 | NULL | |
3635 | }; | |
3636 | ||
3637 | arg1 = &temp1; | |
3638 | arg2 = &temp2; | |
3639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; | |
3640 | { | |
3641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3642 | wxDisplaySize(arg1,arg2); | |
3643 | ||
3644 | wxPyEndAllowThreads(__tstate); | |
3645 | if (PyErr_Occurred()) SWIG_fail; | |
3646 | } | |
3647 | Py_INCREF(Py_None); resultobj = Py_None; | |
3648 | { | |
3649 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3650 | resultobj = t_output_helper(resultobj,o); | |
3651 | } | |
3652 | { | |
3653 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3654 | resultobj = t_output_helper(resultobj,o); | |
3655 | } | |
3656 | return resultobj; | |
3657 | fail: | |
3658 | return NULL; | |
3659 | } | |
3660 | ||
3661 | ||
3662 | static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3663 | PyObject *resultobj; | |
3664 | wxSize result; | |
3665 | char *kwnames[] = { | |
3666 | NULL | |
3667 | }; | |
3668 | ||
3669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
3670 | { | |
3671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3672 | result = wxGetDisplaySize(); | |
3673 | ||
3674 | wxPyEndAllowThreads(__tstate); | |
3675 | if (PyErr_Occurred()) SWIG_fail; | |
3676 | } | |
3677 | { | |
3678 | wxSize * resultptr; | |
3679 | resultptr = new wxSize((wxSize &) result); | |
3680 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
3681 | } | |
3682 | return resultobj; | |
3683 | fail: | |
3684 | return NULL; | |
3685 | } | |
3686 | ||
3687 | ||
3688 | static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3689 | PyObject *resultobj; | |
3690 | int *arg1 = (int *) 0 ; | |
3691 | int *arg2 = (int *) 0 ; | |
3692 | int temp1 ; | |
3693 | int temp2 ; | |
3694 | char *kwnames[] = { | |
3695 | NULL | |
3696 | }; | |
3697 | ||
3698 | arg1 = &temp1; | |
3699 | arg2 = &temp2; | |
3700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; | |
3701 | { | |
3702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3703 | wxDisplaySizeMM(arg1,arg2); | |
3704 | ||
3705 | wxPyEndAllowThreads(__tstate); | |
3706 | if (PyErr_Occurred()) SWIG_fail; | |
3707 | } | |
3708 | Py_INCREF(Py_None); resultobj = Py_None; | |
3709 | { | |
3710 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3711 | resultobj = t_output_helper(resultobj,o); | |
3712 | } | |
3713 | { | |
3714 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3715 | resultobj = t_output_helper(resultobj,o); | |
3716 | } | |
3717 | return resultobj; | |
3718 | fail: | |
3719 | return NULL; | |
3720 | } | |
3721 | ||
3722 | ||
3723 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3724 | PyObject *resultobj; | |
3725 | wxSize result; | |
3726 | char *kwnames[] = { | |
3727 | NULL | |
3728 | }; | |
3729 | ||
3730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
3731 | { | |
3732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3733 | result = wxGetDisplaySizeMM(); | |
3734 | ||
3735 | wxPyEndAllowThreads(__tstate); | |
3736 | if (PyErr_Occurred()) SWIG_fail; | |
3737 | } | |
3738 | { | |
3739 | wxSize * resultptr; | |
3740 | resultptr = new wxSize((wxSize &) result); | |
3741 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
3742 | } | |
3743 | return resultobj; | |
3744 | fail: | |
3745 | return NULL; | |
3746 | } | |
3747 | ||
3748 | ||
3749 | static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3750 | PyObject *resultobj; | |
3751 | int *arg1 = (int *) 0 ; | |
3752 | int *arg2 = (int *) 0 ; | |
3753 | int *arg3 = (int *) 0 ; | |
3754 | int *arg4 = (int *) 0 ; | |
3755 | int temp1 ; | |
3756 | int temp2 ; | |
3757 | int temp3 ; | |
3758 | int temp4 ; | |
3759 | char *kwnames[] = { | |
3760 | NULL | |
3761 | }; | |
3762 | ||
3763 | arg1 = &temp1; | |
3764 | arg2 = &temp2; | |
3765 | arg3 = &temp3; | |
3766 | arg4 = &temp4; | |
3767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; | |
3768 | { | |
3769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3770 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
3771 | ||
3772 | wxPyEndAllowThreads(__tstate); | |
3773 | if (PyErr_Occurred()) SWIG_fail; | |
3774 | } | |
3775 | Py_INCREF(Py_None); resultobj = Py_None; | |
3776 | { | |
3777 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3778 | resultobj = t_output_helper(resultobj,o); | |
3779 | } | |
3780 | { | |
3781 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3782 | resultobj = t_output_helper(resultobj,o); | |
3783 | } | |
3784 | { | |
3785 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
3786 | resultobj = t_output_helper(resultobj,o); | |
3787 | } | |
3788 | { | |
3789 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
3790 | resultobj = t_output_helper(resultobj,o); | |
3791 | } | |
3792 | return resultobj; | |
3793 | fail: | |
3794 | return NULL; | |
3795 | } | |
3796 | ||
3797 | ||
3798 | static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3799 | PyObject *resultobj; | |
3800 | wxRect result; | |
3801 | char *kwnames[] = { | |
3802 | NULL | |
3803 | }; | |
3804 | ||
3805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
3806 | { | |
3807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3808 | result = wxGetClientDisplayRect(); | |
3809 | ||
3810 | wxPyEndAllowThreads(__tstate); | |
3811 | if (PyErr_Occurred()) SWIG_fail; | |
3812 | } | |
3813 | { | |
3814 | wxRect * resultptr; | |
3815 | resultptr = new wxRect((wxRect &) result); | |
3816 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
3817 | } | |
3818 | return resultobj; | |
3819 | fail: | |
3820 | return NULL; | |
3821 | } | |
3822 | ||
3823 | ||
3824 | static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3825 | PyObject *resultobj; | |
3826 | wxCursor *arg1 = 0 ; | |
3827 | PyObject * obj0 = 0 ; | |
3828 | char *kwnames[] = { | |
3829 | (char *) "cursor", NULL | |
3830 | }; | |
3831 | ||
3832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
3833 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3834 | if (arg1 == NULL) { | |
3835 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3836 | } | |
3837 | { | |
3838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3839 | wxSetCursor(*arg1); | |
3840 | ||
3841 | wxPyEndAllowThreads(__tstate); | |
3842 | if (PyErr_Occurred()) SWIG_fail; | |
3843 | } | |
3844 | Py_INCREF(Py_None); resultobj = Py_None; | |
3845 | return resultobj; | |
3846 | fail: | |
3847 | return NULL; | |
3848 | } | |
3849 | ||
3850 | ||
3851 | static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3852 | PyObject *resultobj; | |
3853 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
3854 | PyObject * obj0 = 0 ; | |
3855 | char *kwnames[] = { | |
3856 | (char *) "cursor", NULL | |
3857 | }; | |
3858 | ||
3859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
3860 | if (obj0) { | |
3861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3862 | } | |
3863 | { | |
3864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3865 | wxBeginBusyCursor(arg1); | |
3866 | ||
3867 | wxPyEndAllowThreads(__tstate); | |
3868 | if (PyErr_Occurred()) SWIG_fail; | |
3869 | } | |
3870 | Py_INCREF(Py_None); resultobj = Py_None; | |
3871 | return resultobj; | |
3872 | fail: | |
3873 | return NULL; | |
3874 | } | |
3875 | ||
3876 | ||
3877 | static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3878 | PyObject *resultobj; | |
3879 | wxWindow *result; | |
3880 | char *kwnames[] = { | |
3881 | NULL | |
3882 | }; | |
3883 | ||
3884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
3885 | { | |
3886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3887 | result = (wxWindow *)wxGetActiveWindow(); | |
3888 | ||
3889 | wxPyEndAllowThreads(__tstate); | |
3890 | if (PyErr_Occurred()) SWIG_fail; | |
3891 | } | |
3892 | { | |
3893 | resultobj = wxPyMake_wxObject(result); | |
3894 | } | |
3895 | return resultobj; | |
3896 | fail: | |
3897 | return NULL; | |
3898 | } | |
3899 | ||
3900 | ||
3901 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3902 | PyObject *resultobj; | |
3903 | wxPoint *arg1 = 0 ; | |
3904 | wxWindow *result; | |
3905 | wxPoint temp1 ; | |
3906 | PyObject * obj0 = 0 ; | |
3907 | char *kwnames[] = { | |
3908 | (char *) "pt", NULL | |
3909 | }; | |
3910 | ||
3911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
3912 | { | |
3913 | arg1 = &temp1; | |
3914 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3915 | } | |
3916 | { | |
3917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3918 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
3919 | ||
3920 | wxPyEndAllowThreads(__tstate); | |
3921 | if (PyErr_Occurred()) SWIG_fail; | |
3922 | } | |
3923 | { | |
3924 | resultobj = wxPyMake_wxObject(result); | |
3925 | } | |
3926 | return resultobj; | |
3927 | fail: | |
3928 | return NULL; | |
3929 | } | |
3930 | ||
3931 | ||
3932 | static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3933 | PyObject *resultobj; | |
3934 | wxPoint *arg1 = 0 ; | |
3935 | wxWindow *result; | |
3936 | wxPoint temp1 ; | |
3937 | PyObject * obj0 = 0 ; | |
3938 | char *kwnames[] = { | |
3939 | (char *) "pt", NULL | |
3940 | }; | |
3941 | ||
3942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
3943 | { | |
3944 | arg1 = &temp1; | |
3945 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3946 | } | |
3947 | { | |
3948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3949 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
3950 | ||
3951 | wxPyEndAllowThreads(__tstate); | |
3952 | if (PyErr_Occurred()) SWIG_fail; | |
3953 | } | |
3954 | { | |
3955 | resultobj = wxPyMake_wxObject(result); | |
3956 | } | |
3957 | return resultobj; | |
3958 | fail: | |
3959 | return NULL; | |
3960 | } | |
3961 | ||
3962 | ||
3963 | static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3964 | PyObject *resultobj; | |
3965 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3966 | wxWindow *result; | |
3967 | PyObject * obj0 = 0 ; | |
3968 | char *kwnames[] = { | |
3969 | (char *) "win", NULL | |
3970 | }; | |
3971 | ||
3972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
3973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3974 | { | |
3975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3976 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
3977 | ||
3978 | wxPyEndAllowThreads(__tstate); | |
3979 | if (PyErr_Occurred()) SWIG_fail; | |
3980 | } | |
3981 | { | |
3982 | resultobj = wxPyMake_wxObject(result); | |
3983 | } | |
3984 | return resultobj; | |
3985 | fail: | |
3986 | return NULL; | |
3987 | } | |
3988 | ||
3989 | ||
39f61e25 RD |
3990 | static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) { |
3991 | PyObject *resultobj; | |
3992 | int arg1 ; | |
3993 | bool result; | |
994141e6 | 3994 | PyObject * obj0 = 0 ; |
39f61e25 RD |
3995 | char *kwnames[] = { |
3996 | (char *) "key", NULL | |
3997 | }; | |
3998 | ||
994141e6 RD |
3999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; |
4000 | { | |
4001 | arg1 = (wxKeyCode) SWIG_PyObj_AsInt(obj0); | |
4002 | if (PyErr_Occurred()) SWIG_fail; | |
4003 | } | |
39f61e25 RD |
4004 | { |
4005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4006 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
4007 | ||
4008 | wxPyEndAllowThreads(__tstate); | |
4009 | if (PyErr_Occurred()) SWIG_fail; | |
4010 | } | |
4d5c3d91 | 4011 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
39f61e25 RD |
4012 | return resultobj; |
4013 | fail: | |
4014 | return NULL; | |
4015 | } | |
4016 | ||
4017 | ||
d14a1e28 RD |
4018 | static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { |
4019 | PyObject *resultobj; | |
4020 | char *kwnames[] = { | |
4021 | NULL | |
4022 | }; | |
4023 | ||
4024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
4025 | { | |
4026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4027 | wxWakeUpMainThread(); | |
4028 | ||
4029 | wxPyEndAllowThreads(__tstate); | |
4030 | if (PyErr_Occurred()) SWIG_fail; | |
4031 | } | |
4032 | Py_INCREF(Py_None); resultobj = Py_None; | |
4033 | return resultobj; | |
4034 | fail: | |
4035 | return NULL; | |
4036 | } | |
4037 | ||
4038 | ||
4039 | static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4040 | PyObject *resultobj; | |
4041 | char *kwnames[] = { | |
4042 | NULL | |
4043 | }; | |
4044 | ||
4045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
4046 | { | |
4047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4048 | wxMutexGuiEnter(); | |
4049 | ||
4050 | wxPyEndAllowThreads(__tstate); | |
4051 | if (PyErr_Occurred()) SWIG_fail; | |
4052 | } | |
4053 | Py_INCREF(Py_None); resultobj = Py_None; | |
4054 | return resultobj; | |
4055 | fail: | |
4056 | return NULL; | |
4057 | } | |
4058 | ||
4059 | ||
4060 | static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4061 | PyObject *resultobj; | |
4062 | char *kwnames[] = { | |
4063 | NULL | |
4064 | }; | |
4065 | ||
4066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
4067 | { | |
4068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4069 | wxMutexGuiLeave(); | |
4070 | ||
4071 | wxPyEndAllowThreads(__tstate); | |
4072 | if (PyErr_Occurred()) SWIG_fail; | |
4073 | } | |
4074 | Py_INCREF(Py_None); resultobj = Py_None; | |
4075 | return resultobj; | |
4076 | fail: | |
4077 | return NULL; | |
4078 | } | |
4079 | ||
4080 | ||
4081 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4082 | PyObject *resultobj; | |
4083 | wxMutexGuiLocker *result; | |
4084 | char *kwnames[] = { | |
4085 | NULL | |
4086 | }; | |
4087 | ||
4088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
4089 | { | |
4090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4091 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
4092 | ||
4093 | wxPyEndAllowThreads(__tstate); | |
4094 | if (PyErr_Occurred()) SWIG_fail; | |
4095 | } | |
4096 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMutexGuiLocker, 1); | |
4097 | return resultobj; | |
4098 | fail: | |
4099 | return NULL; | |
4100 | } | |
4101 | ||
4102 | ||
4103 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4104 | PyObject *resultobj; | |
4105 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
4106 | PyObject * obj0 = 0 ; | |
4107 | char *kwnames[] = { | |
4108 | (char *) "self", NULL | |
4109 | }; | |
4110 | ||
4111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
4112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMutexGuiLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4113 | { | |
4114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4115 | delete arg1; | |
4116 | ||
4117 | wxPyEndAllowThreads(__tstate); | |
4118 | if (PyErr_Occurred()) SWIG_fail; | |
4119 | } | |
4120 | Py_INCREF(Py_None); resultobj = Py_None; | |
4121 | return resultobj; | |
4122 | fail: | |
4123 | return NULL; | |
4124 | } | |
4125 | ||
4126 | ||
4127 | static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) { | |
4128 | PyObject *obj; | |
4129 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4130 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
4131 | Py_INCREF(obj); | |
4132 | return Py_BuildValue((char *)""); | |
4133 | } | |
4134 | static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4135 | PyObject *resultobj; | |
4136 | bool result; | |
4137 | char *kwnames[] = { | |
4138 | NULL | |
4139 | }; | |
4140 | ||
4141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
4142 | { | |
4143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4144 | result = (bool)wxThread_IsMain(); | |
4145 | ||
4146 | wxPyEndAllowThreads(__tstate); | |
4147 | if (PyErr_Occurred()) SWIG_fail; | |
4148 | } | |
4d5c3d91 | 4149 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4150 | return resultobj; |
4151 | fail: | |
4152 | return NULL; | |
4153 | } | |
4154 | ||
4155 | ||
4156 | static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4157 | PyObject *resultobj; | |
4158 | wxString *arg1 = 0 ; | |
4159 | wxToolTip *result; | |
e811c8ce | 4160 | bool temp1 = False ; |
d14a1e28 RD |
4161 | PyObject * obj0 = 0 ; |
4162 | char *kwnames[] = { | |
4163 | (char *) "tip", NULL | |
4164 | }; | |
4165 | ||
4166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
4167 | { | |
4168 | arg1 = wxString_in_helper(obj0); | |
4169 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 4170 | temp1 = True; |
d14a1e28 RD |
4171 | } |
4172 | { | |
4173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4174 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
4175 | ||
4176 | wxPyEndAllowThreads(__tstate); | |
4177 | if (PyErr_Occurred()) SWIG_fail; | |
4178 | } | |
4179 | { | |
4180 | resultobj = wxPyMake_wxObject(result); | |
4181 | } | |
4182 | { | |
4183 | if (temp1) | |
4184 | delete arg1; | |
4185 | } | |
4186 | return resultobj; | |
4187 | fail: | |
4188 | { | |
4189 | if (temp1) | |
4190 | delete arg1; | |
4191 | } | |
4192 | return NULL; | |
4193 | } | |
4194 | ||
4195 | ||
4196 | static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4197 | PyObject *resultobj; | |
4198 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4199 | wxString *arg2 = 0 ; | |
e811c8ce | 4200 | bool temp2 = False ; |
d14a1e28 RD |
4201 | PyObject * obj0 = 0 ; |
4202 | PyObject * obj1 = 0 ; | |
4203 | char *kwnames[] = { | |
4204 | (char *) "self",(char *) "tip", NULL | |
4205 | }; | |
4206 | ||
4207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
4208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4209 | { | |
4210 | arg2 = wxString_in_helper(obj1); | |
4211 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4212 | temp2 = True; |
d14a1e28 RD |
4213 | } |
4214 | { | |
4215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4216 | (arg1)->SetTip((wxString const &)*arg2); | |
4217 | ||
4218 | wxPyEndAllowThreads(__tstate); | |
4219 | if (PyErr_Occurred()) SWIG_fail; | |
4220 | } | |
4221 | Py_INCREF(Py_None); resultobj = Py_None; | |
4222 | { | |
4223 | if (temp2) | |
4224 | delete arg2; | |
4225 | } | |
4226 | return resultobj; | |
4227 | fail: | |
4228 | { | |
4229 | if (temp2) | |
4230 | delete arg2; | |
4231 | } | |
4232 | return NULL; | |
4233 | } | |
4234 | ||
4235 | ||
4236 | static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4237 | PyObject *resultobj; | |
4238 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4239 | wxString result; | |
4240 | PyObject * obj0 = 0 ; | |
4241 | char *kwnames[] = { | |
4242 | (char *) "self", NULL | |
4243 | }; | |
4244 | ||
4245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
4246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4247 | { | |
4248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4249 | result = (arg1)->GetTip(); | |
4250 | ||
4251 | wxPyEndAllowThreads(__tstate); | |
4252 | if (PyErr_Occurred()) SWIG_fail; | |
4253 | } | |
4254 | { | |
4255 | #if wxUSE_UNICODE | |
4256 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4257 | #else | |
4258 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4259 | #endif | |
4260 | } | |
4261 | return resultobj; | |
4262 | fail: | |
4263 | return NULL; | |
4264 | } | |
4265 | ||
4266 | ||
4267 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4268 | PyObject *resultobj; | |
4269 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4270 | wxWindow *result; | |
4271 | PyObject * obj0 = 0 ; | |
4272 | char *kwnames[] = { | |
4273 | (char *) "self", NULL | |
4274 | }; | |
4275 | ||
4276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
4277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4278 | { | |
4279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4280 | result = (wxWindow *)(arg1)->GetWindow(); | |
4281 | ||
4282 | wxPyEndAllowThreads(__tstate); | |
4283 | if (PyErr_Occurred()) SWIG_fail; | |
4284 | } | |
4285 | { | |
4286 | resultobj = wxPyMake_wxObject(result); | |
4287 | } | |
4288 | return resultobj; | |
4289 | fail: | |
4290 | return NULL; | |
4291 | } | |
4292 | ||
4293 | ||
4294 | static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4295 | PyObject *resultobj; | |
4296 | bool arg1 ; | |
4297 | PyObject * obj0 = 0 ; | |
4298 | char *kwnames[] = { | |
4299 | (char *) "flag", NULL | |
4300 | }; | |
4301 | ||
4302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
a41e16b6 | 4303 | { |
994141e6 | 4304 | arg1 = (bool) SWIG_PyObj_AsBool(obj0); |
a41e16b6 RD |
4305 | if (PyErr_Occurred()) SWIG_fail; |
4306 | } | |
d14a1e28 RD |
4307 | { |
4308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4309 | wxToolTip::Enable(arg1); | |
4310 | ||
4311 | wxPyEndAllowThreads(__tstate); | |
4312 | if (PyErr_Occurred()) SWIG_fail; | |
4313 | } | |
4314 | Py_INCREF(Py_None); resultobj = Py_None; | |
4315 | return resultobj; | |
4316 | fail: | |
4317 | return NULL; | |
4318 | } | |
4319 | ||
4320 | ||
4321 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4322 | PyObject *resultobj; | |
4323 | long arg1 ; | |
994141e6 | 4324 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
4325 | char *kwnames[] = { |
4326 | (char *) "milliseconds", NULL | |
4327 | }; | |
4328 | ||
994141e6 RD |
4329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; |
4330 | { | |
4331 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
4332 | if (PyErr_Occurred()) SWIG_fail; | |
4333 | } | |
d14a1e28 RD |
4334 | { |
4335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4336 | wxToolTip::SetDelay(arg1); | |
4337 | ||
4338 | wxPyEndAllowThreads(__tstate); | |
4339 | if (PyErr_Occurred()) SWIG_fail; | |
4340 | } | |
4341 | Py_INCREF(Py_None); resultobj = Py_None; | |
4342 | return resultobj; | |
4343 | fail: | |
4344 | return NULL; | |
4345 | } | |
4346 | ||
4347 | ||
4348 | static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) { | |
4349 | PyObject *obj; | |
4350 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4351 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
4352 | Py_INCREF(obj); | |
4353 | return Py_BuildValue((char *)""); | |
4354 | } | |
4355 | static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4356 | PyObject *resultobj; | |
4357 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4358 | wxSize *arg2 = 0 ; | |
4359 | wxCaret *result; | |
4360 | wxSize temp2 ; | |
4361 | PyObject * obj0 = 0 ; | |
4362 | PyObject * obj1 = 0 ; | |
4363 | char *kwnames[] = { | |
4364 | (char *) "window",(char *) "size", NULL | |
4365 | }; | |
4366 | ||
4367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
4368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4369 | { | |
4370 | arg2 = &temp2; | |
4371 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4372 | } | |
4373 | { | |
4374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4375 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
4376 | ||
4377 | wxPyEndAllowThreads(__tstate); | |
4378 | if (PyErr_Occurred()) SWIG_fail; | |
4379 | } | |
4380 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCaret, 1); | |
4381 | return resultobj; | |
4382 | fail: | |
4383 | return NULL; | |
4384 | } | |
4385 | ||
4386 | ||
4387 | static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4388 | PyObject *resultobj; | |
4389 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4390 | PyObject * obj0 = 0 ; | |
4391 | char *kwnames[] = { | |
4392 | (char *) "self", NULL | |
4393 | }; | |
4394 | ||
4395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
4396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4397 | { | |
4398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4399 | delete arg1; | |
4400 | ||
4401 | wxPyEndAllowThreads(__tstate); | |
4402 | if (PyErr_Occurred()) SWIG_fail; | |
4403 | } | |
4404 | Py_INCREF(Py_None); resultobj = Py_None; | |
4405 | return resultobj; | |
4406 | fail: | |
4407 | return NULL; | |
4408 | } | |
4409 | ||
4410 | ||
4411 | static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4412 | PyObject *resultobj; | |
4413 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4414 | bool result; | |
4415 | PyObject * obj0 = 0 ; | |
4416 | char *kwnames[] = { | |
4417 | (char *) "self", NULL | |
4418 | }; | |
4419 | ||
4420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
4421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4422 | { | |
4423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4424 | result = (bool)(arg1)->IsOk(); | |
4425 | ||
4426 | wxPyEndAllowThreads(__tstate); | |
4427 | if (PyErr_Occurred()) SWIG_fail; | |
4428 | } | |
4d5c3d91 | 4429 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4430 | return resultobj; |
4431 | fail: | |
4432 | return NULL; | |
4433 | } | |
4434 | ||
4435 | ||
4436 | static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4437 | PyObject *resultobj; | |
4438 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4439 | bool result; | |
4440 | PyObject * obj0 = 0 ; | |
4441 | char *kwnames[] = { | |
4442 | (char *) "self", NULL | |
4443 | }; | |
4444 | ||
4445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
4446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4447 | { | |
4448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4449 | result = (bool)(arg1)->IsVisible(); | |
4450 | ||
4451 | wxPyEndAllowThreads(__tstate); | |
4452 | if (PyErr_Occurred()) SWIG_fail; | |
4453 | } | |
4d5c3d91 | 4454 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4455 | return resultobj; |
4456 | fail: | |
4457 | return NULL; | |
4458 | } | |
4459 | ||
4460 | ||
322913ce RD |
4461 | static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
4462 | PyObject *resultobj; | |
4463 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4464 | wxPoint result; | |
4465 | PyObject * obj0 = 0 ; | |
4466 | char *kwnames[] = { | |
4467 | (char *) "self", NULL | |
4468 | }; | |
4469 | ||
4470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
4471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4472 | { | |
4473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4474 | result = (arg1)->GetPosition(); | |
4475 | ||
4476 | wxPyEndAllowThreads(__tstate); | |
4477 | if (PyErr_Occurred()) SWIG_fail; | |
4478 | } | |
4479 | { | |
4480 | wxPoint * resultptr; | |
4481 | resultptr = new wxPoint((wxPoint &) result); | |
4482 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
4483 | } | |
4484 | return resultobj; | |
4485 | fail: | |
4486 | return NULL; | |
4487 | } | |
4488 | ||
4489 | ||
d14a1e28 RD |
4490 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
4491 | PyObject *resultobj; | |
4492 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4493 | int *arg2 = (int *) 0 ; | |
4494 | int *arg3 = (int *) 0 ; | |
4495 | int temp2 ; | |
4496 | int temp3 ; | |
4497 | PyObject * obj0 = 0 ; | |
4498 | char *kwnames[] = { | |
4499 | (char *) "self", NULL | |
4500 | }; | |
4501 | ||
4502 | arg2 = &temp2; | |
4503 | arg3 = &temp3; | |
4504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; | |
4505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4506 | { | |
4507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4508 | (arg1)->GetPosition(arg2,arg3); | |
4509 | ||
4510 | wxPyEndAllowThreads(__tstate); | |
4511 | if (PyErr_Occurred()) SWIG_fail; | |
4512 | } | |
4513 | Py_INCREF(Py_None); resultobj = Py_None; | |
4514 | { | |
4515 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4516 | resultobj = t_output_helper(resultobj,o); | |
4517 | } | |
4518 | { | |
4519 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4520 | resultobj = t_output_helper(resultobj,o); | |
4521 | } | |
4522 | return resultobj; | |
4523 | fail: | |
4524 | return NULL; | |
4525 | } | |
4526 | ||
4527 | ||
322913ce | 4528 | static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4529 | PyObject *resultobj; |
4530 | wxCaret *arg1 = (wxCaret *) 0 ; | |
322913ce | 4531 | wxSize result; |
d14a1e28 RD |
4532 | PyObject * obj0 = 0 ; |
4533 | char *kwnames[] = { | |
4534 | (char *) "self", NULL | |
4535 | }; | |
4536 | ||
322913ce | 4537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
4538 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4539 | { | |
4540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 4541 | result = (arg1)->GetSize(); |
d14a1e28 RD |
4542 | |
4543 | wxPyEndAllowThreads(__tstate); | |
4544 | if (PyErr_Occurred()) SWIG_fail; | |
4545 | } | |
4546 | { | |
322913ce RD |
4547 | wxSize * resultptr; |
4548 | resultptr = new wxSize((wxSize &) result); | |
4549 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
d14a1e28 RD |
4550 | } |
4551 | return resultobj; | |
4552 | fail: | |
4553 | return NULL; | |
4554 | } | |
4555 | ||
4556 | ||
4557 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4558 | PyObject *resultobj; | |
4559 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4560 | int *arg2 = (int *) 0 ; | |
4561 | int *arg3 = (int *) 0 ; | |
4562 | int temp2 ; | |
4563 | int temp3 ; | |
4564 | PyObject * obj0 = 0 ; | |
4565 | char *kwnames[] = { | |
4566 | (char *) "self", NULL | |
4567 | }; | |
4568 | ||
4569 | arg2 = &temp2; | |
4570 | arg3 = &temp3; | |
4571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; | |
4572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4573 | { | |
4574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4575 | (arg1)->GetSize(arg2,arg3); | |
4576 | ||
4577 | wxPyEndAllowThreads(__tstate); | |
4578 | if (PyErr_Occurred()) SWIG_fail; | |
4579 | } | |
4580 | Py_INCREF(Py_None); resultobj = Py_None; | |
4581 | { | |
4582 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4583 | resultobj = t_output_helper(resultobj,o); | |
4584 | } | |
4585 | { | |
4586 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4587 | resultobj = t_output_helper(resultobj,o); | |
4588 | } | |
4589 | return resultobj; | |
4590 | fail: | |
4591 | return NULL; | |
4592 | } | |
4593 | ||
4594 | ||
d14a1e28 RD |
4595 | static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
4596 | PyObject *resultobj; | |
4597 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4598 | wxWindow *result; | |
4599 | PyObject * obj0 = 0 ; | |
4600 | char *kwnames[] = { | |
4601 | (char *) "self", NULL | |
4602 | }; | |
4603 | ||
4604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
4605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4606 | { | |
4607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4608 | result = (wxWindow *)(arg1)->GetWindow(); | |
4609 | ||
4610 | wxPyEndAllowThreads(__tstate); | |
4611 | if (PyErr_Occurred()) SWIG_fail; | |
4612 | } | |
4613 | { | |
4614 | resultobj = wxPyMake_wxObject(result); | |
4615 | } | |
4616 | return resultobj; | |
4617 | fail: | |
4618 | return NULL; | |
4619 | } | |
4620 | ||
4621 | ||
4622 | static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4623 | PyObject *resultobj; | |
4624 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4625 | int arg2 ; | |
4626 | int arg3 ; | |
4627 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4628 | PyObject * obj1 = 0 ; |
4629 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4630 | char *kwnames[] = { |
4631 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4632 | }; | |
4633 | ||
994141e6 | 4634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 4635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4636 | { |
4637 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4638 | if (PyErr_Occurred()) SWIG_fail; | |
4639 | } | |
4640 | { | |
4641 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4642 | if (PyErr_Occurred()) SWIG_fail; | |
4643 | } | |
d14a1e28 RD |
4644 | { |
4645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4646 | (arg1)->Move(arg2,arg3); | |
4647 | ||
4648 | wxPyEndAllowThreads(__tstate); | |
4649 | if (PyErr_Occurred()) SWIG_fail; | |
4650 | } | |
4651 | Py_INCREF(Py_None); resultobj = Py_None; | |
4652 | return resultobj; | |
4653 | fail: | |
4654 | return NULL; | |
4655 | } | |
4656 | ||
4657 | ||
4658 | static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4659 | PyObject *resultobj; | |
4660 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4661 | wxPoint *arg2 = 0 ; | |
4662 | wxPoint temp2 ; | |
4663 | PyObject * obj0 = 0 ; | |
4664 | PyObject * obj1 = 0 ; | |
4665 | char *kwnames[] = { | |
4666 | (char *) "self",(char *) "pt", NULL | |
4667 | }; | |
4668 | ||
4669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
4670 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4671 | { | |
4672 | arg2 = &temp2; | |
4673 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4674 | } | |
4675 | { | |
4676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4677 | (arg1)->Move((wxPoint const &)*arg2); | |
4678 | ||
4679 | wxPyEndAllowThreads(__tstate); | |
4680 | if (PyErr_Occurred()) SWIG_fail; | |
4681 | } | |
4682 | Py_INCREF(Py_None); resultobj = Py_None; | |
4683 | return resultobj; | |
4684 | fail: | |
4685 | return NULL; | |
4686 | } | |
4687 | ||
4688 | ||
4689 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4690 | PyObject *resultobj; | |
4691 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4692 | int arg2 ; | |
4693 | int arg3 ; | |
4694 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4695 | PyObject * obj1 = 0 ; |
4696 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4697 | char *kwnames[] = { |
4698 | (char *) "self",(char *) "width",(char *) "height", NULL | |
4699 | }; | |
4700 | ||
994141e6 | 4701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 4702 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4703 | { |
4704 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4705 | if (PyErr_Occurred()) SWIG_fail; | |
4706 | } | |
4707 | { | |
4708 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4709 | if (PyErr_Occurred()) SWIG_fail; | |
4710 | } | |
d14a1e28 RD |
4711 | { |
4712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4713 | (arg1)->SetSize(arg2,arg3); | |
4714 | ||
4715 | wxPyEndAllowThreads(__tstate); | |
4716 | if (PyErr_Occurred()) SWIG_fail; | |
4717 | } | |
4718 | Py_INCREF(Py_None); resultobj = Py_None; | |
4719 | return resultobj; | |
4720 | fail: | |
4721 | return NULL; | |
4722 | } | |
4723 | ||
4724 | ||
4725 | static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4726 | PyObject *resultobj; | |
4727 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4728 | wxSize *arg2 = 0 ; | |
4729 | wxSize temp2 ; | |
4730 | PyObject * obj0 = 0 ; | |
4731 | PyObject * obj1 = 0 ; | |
4732 | char *kwnames[] = { | |
4733 | (char *) "self",(char *) "size", NULL | |
4734 | }; | |
4735 | ||
4736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4738 | { | |
4739 | arg2 = &temp2; | |
4740 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4741 | } | |
4742 | { | |
4743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4744 | (arg1)->SetSize((wxSize const &)*arg2); | |
4745 | ||
4746 | wxPyEndAllowThreads(__tstate); | |
4747 | if (PyErr_Occurred()) SWIG_fail; | |
4748 | } | |
4749 | Py_INCREF(Py_None); resultobj = Py_None; | |
4750 | return resultobj; | |
4751 | fail: | |
4752 | return NULL; | |
4753 | } | |
4754 | ||
4755 | ||
4756 | static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4757 | PyObject *resultobj; | |
4758 | wxCaret *arg1 = (wxCaret *) 0 ; | |
e811c8ce | 4759 | int arg2 = (int) True ; |
d14a1e28 | 4760 | PyObject * obj0 = 0 ; |
994141e6 | 4761 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4762 | char *kwnames[] = { |
4763 | (char *) "self",(char *) "show", NULL | |
4764 | }; | |
4765 | ||
994141e6 | 4766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4768 | if (obj1) { |
4769 | { | |
4770 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4771 | if (PyErr_Occurred()) SWIG_fail; | |
4772 | } | |
4773 | } | |
d14a1e28 RD |
4774 | { |
4775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4776 | (arg1)->Show(arg2); | |
4777 | ||
4778 | wxPyEndAllowThreads(__tstate); | |
4779 | if (PyErr_Occurred()) SWIG_fail; | |
4780 | } | |
4781 | Py_INCREF(Py_None); resultobj = Py_None; | |
4782 | return resultobj; | |
4783 | fail: | |
4784 | return NULL; | |
4785 | } | |
4786 | ||
4787 | ||
4788 | static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4789 | PyObject *resultobj; | |
4790 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4791 | PyObject * obj0 = 0 ; | |
4792 | char *kwnames[] = { | |
4793 | (char *) "self", NULL | |
4794 | }; | |
4795 | ||
4796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
4797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4798 | { | |
4799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4800 | (arg1)->Hide(); | |
4801 | ||
4802 | wxPyEndAllowThreads(__tstate); | |
4803 | if (PyErr_Occurred()) SWIG_fail; | |
4804 | } | |
4805 | Py_INCREF(Py_None); resultobj = Py_None; | |
4806 | return resultobj; | |
4807 | fail: | |
4808 | return NULL; | |
4809 | } | |
4810 | ||
4811 | ||
4812 | static PyObject * Caret_swigregister(PyObject *self, PyObject *args) { | |
4813 | PyObject *obj; | |
4814 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4815 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
4816 | Py_INCREF(obj); | |
4817 | return Py_BuildValue((char *)""); | |
4818 | } | |
4819 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4820 | PyObject *resultobj; | |
4821 | int result; | |
4822 | char *kwnames[] = { | |
4823 | NULL | |
4824 | }; | |
4825 | ||
4826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
4827 | { | |
4828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4829 | result = (int)wxCaret_GetBlinkTime(); | |
4830 | ||
4831 | wxPyEndAllowThreads(__tstate); | |
4832 | if (PyErr_Occurred()) SWIG_fail; | |
4833 | } | |
994141e6 | 4834 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4835 | return resultobj; |
4836 | fail: | |
4837 | return NULL; | |
4838 | } | |
4839 | ||
4840 | ||
4841 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4842 | PyObject *resultobj; | |
4843 | int arg1 ; | |
994141e6 | 4844 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
4845 | char *kwnames[] = { |
4846 | (char *) "milliseconds", NULL | |
4847 | }; | |
4848 | ||
994141e6 RD |
4849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; |
4850 | { | |
4851 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
4852 | if (PyErr_Occurred()) SWIG_fail; | |
4853 | } | |
d14a1e28 RD |
4854 | { |
4855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4856 | wxCaret_SetBlinkTime(arg1); | |
4857 | ||
4858 | wxPyEndAllowThreads(__tstate); | |
4859 | if (PyErr_Occurred()) SWIG_fail; | |
4860 | } | |
4861 | Py_INCREF(Py_None); resultobj = Py_None; | |
4862 | return resultobj; | |
4863 | fail: | |
4864 | return NULL; | |
4865 | } | |
4866 | ||
4867 | ||
4868 | static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4869 | PyObject *resultobj; | |
4870 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4871 | wxBusyCursor *result; | |
4872 | PyObject * obj0 = 0 ; | |
4873 | char *kwnames[] = { | |
4874 | (char *) "cursor", NULL | |
4875 | }; | |
4876 | ||
4877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
4878 | if (obj0) { | |
4879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4880 | } | |
4881 | { | |
4882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4883 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
4884 | ||
4885 | wxPyEndAllowThreads(__tstate); | |
4886 | if (PyErr_Occurred()) SWIG_fail; | |
4887 | } | |
4888 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBusyCursor, 1); | |
4889 | return resultobj; | |
4890 | fail: | |
4891 | return NULL; | |
4892 | } | |
4893 | ||
4894 | ||
4895 | static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4896 | PyObject *resultobj; | |
4897 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
4898 | PyObject * obj0 = 0 ; | |
4899 | char *kwnames[] = { | |
4900 | (char *) "self", NULL | |
4901 | }; | |
4902 | ||
4903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
4904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBusyCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4905 | { | |
4906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4907 | delete arg1; | |
4908 | ||
4909 | wxPyEndAllowThreads(__tstate); | |
4910 | if (PyErr_Occurred()) SWIG_fail; | |
4911 | } | |
4912 | Py_INCREF(Py_None); resultobj = Py_None; | |
4913 | return resultobj; | |
4914 | fail: | |
4915 | return NULL; | |
4916 | } | |
4917 | ||
4918 | ||
4919 | static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) { | |
4920 | PyObject *obj; | |
4921 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4922 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
4923 | Py_INCREF(obj); | |
4924 | return Py_BuildValue((char *)""); | |
4925 | } | |
4926 | static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4927 | PyObject *resultobj; | |
4928 | wxWindow *arg1 = (wxWindow *) NULL ; | |
4929 | wxWindowDisabler *result; | |
4930 | PyObject * obj0 = 0 ; | |
4931 | char *kwnames[] = { | |
4932 | (char *) "winToSkip", NULL | |
4933 | }; | |
4934 | ||
4935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
4936 | if (obj0) { | |
4937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4938 | } | |
4939 | { | |
4940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4941 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
4942 | ||
4943 | wxPyEndAllowThreads(__tstate); | |
4944 | if (PyErr_Occurred()) SWIG_fail; | |
4945 | } | |
4946 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDisabler, 1); | |
4947 | return resultobj; | |
4948 | fail: | |
4949 | return NULL; | |
4950 | } | |
4951 | ||
4952 | ||
4953 | static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4954 | PyObject *resultobj; | |
4955 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
4956 | PyObject * obj0 = 0 ; | |
4957 | char *kwnames[] = { | |
4958 | (char *) "self", NULL | |
4959 | }; | |
4960 | ||
4961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
4962 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowDisabler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4963 | { | |
4964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4965 | delete arg1; | |
4966 | ||
4967 | wxPyEndAllowThreads(__tstate); | |
4968 | if (PyErr_Occurred()) SWIG_fail; | |
4969 | } | |
4970 | Py_INCREF(Py_None); resultobj = Py_None; | |
4971 | return resultobj; | |
4972 | fail: | |
4973 | return NULL; | |
4974 | } | |
4975 | ||
4976 | ||
4977 | static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) { | |
4978 | PyObject *obj; | |
4979 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4980 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
4981 | Py_INCREF(obj); | |
4982 | return Py_BuildValue((char *)""); | |
4983 | } | |
4984 | static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4985 | PyObject *resultobj; | |
4986 | wxString *arg1 = 0 ; | |
4987 | wxBusyInfo *result; | |
e811c8ce | 4988 | bool temp1 = False ; |
d14a1e28 RD |
4989 | PyObject * obj0 = 0 ; |
4990 | char *kwnames[] = { | |
4991 | (char *) "message", NULL | |
4992 | }; | |
4993 | ||
4994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
4995 | { | |
4996 | arg1 = wxString_in_helper(obj0); | |
4997 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 4998 | temp1 = True; |
d14a1e28 RD |
4999 | } |
5000 | { | |
5001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5002 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
5003 | ||
5004 | wxPyEndAllowThreads(__tstate); | |
5005 | if (PyErr_Occurred()) SWIG_fail; | |
5006 | } | |
5007 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBusyInfo, 1); | |
5008 | { | |
5009 | if (temp1) | |
5010 | delete arg1; | |
5011 | } | |
5012 | return resultobj; | |
5013 | fail: | |
5014 | { | |
5015 | if (temp1) | |
5016 | delete arg1; | |
5017 | } | |
5018 | return NULL; | |
5019 | } | |
5020 | ||
5021 | ||
5022 | static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5023 | PyObject *resultobj; | |
5024 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
5025 | PyObject * obj0 = 0 ; | |
5026 | char *kwnames[] = { | |
5027 | (char *) "self", NULL | |
5028 | }; | |
5029 | ||
5030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
5031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBusyInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5032 | { | |
5033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5034 | delete arg1; | |
5035 | ||
5036 | wxPyEndAllowThreads(__tstate); | |
5037 | if (PyErr_Occurred()) SWIG_fail; | |
5038 | } | |
5039 | Py_INCREF(Py_None); resultobj = Py_None; | |
5040 | return resultobj; | |
5041 | fail: | |
5042 | return NULL; | |
5043 | } | |
5044 | ||
5045 | ||
5046 | static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) { | |
5047 | PyObject *obj; | |
5048 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5049 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
5050 | Py_INCREF(obj); | |
5051 | return Py_BuildValue((char *)""); | |
5052 | } | |
5053 | static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5054 | PyObject *resultobj; | |
5055 | wxStopWatch *result; | |
5056 | char *kwnames[] = { | |
5057 | NULL | |
5058 | }; | |
5059 | ||
5060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
5061 | { | |
5062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5063 | result = (wxStopWatch *)new wxStopWatch(); | |
5064 | ||
5065 | wxPyEndAllowThreads(__tstate); | |
5066 | if (PyErr_Occurred()) SWIG_fail; | |
5067 | } | |
5068 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStopWatch, 1); | |
5069 | return resultobj; | |
5070 | fail: | |
5071 | return NULL; | |
5072 | } | |
5073 | ||
5074 | ||
5075 | static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5076 | PyObject *resultobj; | |
5077 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5078 | long arg2 = (long) 0 ; | |
5079 | PyObject * obj0 = 0 ; | |
994141e6 | 5080 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5081 | char *kwnames[] = { |
5082 | (char *) "self",(char *) "t0", NULL | |
5083 | }; | |
5084 | ||
994141e6 | 5085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5087 | if (obj1) { |
5088 | { | |
5089 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
5090 | if (PyErr_Occurred()) SWIG_fail; | |
5091 | } | |
5092 | } | |
d14a1e28 RD |
5093 | { |
5094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5095 | (arg1)->Start(arg2); | |
5096 | ||
5097 | wxPyEndAllowThreads(__tstate); | |
5098 | if (PyErr_Occurred()) SWIG_fail; | |
5099 | } | |
5100 | Py_INCREF(Py_None); resultobj = Py_None; | |
5101 | return resultobj; | |
5102 | fail: | |
5103 | return NULL; | |
5104 | } | |
5105 | ||
5106 | ||
5107 | static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5108 | PyObject *resultobj; | |
5109 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5110 | PyObject * obj0 = 0 ; | |
5111 | char *kwnames[] = { | |
5112 | (char *) "self", NULL | |
5113 | }; | |
5114 | ||
5115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
5116 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5117 | { | |
5118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5119 | (arg1)->Pause(); | |
5120 | ||
5121 | wxPyEndAllowThreads(__tstate); | |
5122 | if (PyErr_Occurred()) SWIG_fail; | |
5123 | } | |
5124 | Py_INCREF(Py_None); resultobj = Py_None; | |
5125 | return resultobj; | |
5126 | fail: | |
5127 | return NULL; | |
5128 | } | |
5129 | ||
5130 | ||
5131 | static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5132 | PyObject *resultobj; | |
5133 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5134 | PyObject * obj0 = 0 ; | |
5135 | char *kwnames[] = { | |
5136 | (char *) "self", NULL | |
5137 | }; | |
5138 | ||
5139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
5140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5141 | { | |
5142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5143 | (arg1)->Resume(); | |
5144 | ||
5145 | wxPyEndAllowThreads(__tstate); | |
5146 | if (PyErr_Occurred()) SWIG_fail; | |
5147 | } | |
5148 | Py_INCREF(Py_None); resultobj = Py_None; | |
5149 | return resultobj; | |
5150 | fail: | |
5151 | return NULL; | |
5152 | } | |
5153 | ||
5154 | ||
5155 | static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5156 | PyObject *resultobj; | |
5157 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5158 | long result; | |
5159 | PyObject * obj0 = 0 ; | |
5160 | char *kwnames[] = { | |
5161 | (char *) "self", NULL | |
5162 | }; | |
5163 | ||
5164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
5165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5166 | { | |
5167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5168 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
5169 | ||
5170 | wxPyEndAllowThreads(__tstate); | |
5171 | if (PyErr_Occurred()) SWIG_fail; | |
5172 | } | |
994141e6 | 5173 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
5174 | return resultobj; |
5175 | fail: | |
5176 | return NULL; | |
5177 | } | |
5178 | ||
5179 | ||
5180 | static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) { | |
5181 | PyObject *obj; | |
5182 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5183 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
5184 | Py_INCREF(obj); | |
5185 | return Py_BuildValue((char *)""); | |
5186 | } | |
5187 | static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5188 | PyObject *resultobj; | |
5189 | int arg1 = (int) 9 ; | |
5190 | wxFileHistory *result; | |
994141e6 | 5191 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
5192 | char *kwnames[] = { |
5193 | (char *) "maxFiles", NULL | |
5194 | }; | |
5195 | ||
994141e6 RD |
5196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail; |
5197 | if (obj0) { | |
5198 | { | |
5199 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
5200 | if (PyErr_Occurred()) SWIG_fail; | |
5201 | } | |
5202 | } | |
d14a1e28 RD |
5203 | { |
5204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5205 | result = (wxFileHistory *)new wxFileHistory(arg1); | |
5206 | ||
5207 | wxPyEndAllowThreads(__tstate); | |
5208 | if (PyErr_Occurred()) SWIG_fail; | |
5209 | } | |
5210 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileHistory, 1); | |
5211 | return resultobj; | |
5212 | fail: | |
5213 | return NULL; | |
5214 | } | |
5215 | ||
5216 | ||
5217 | static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5218 | PyObject *resultobj; | |
5219 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5220 | PyObject * obj0 = 0 ; | |
5221 | char *kwnames[] = { | |
5222 | (char *) "self", NULL | |
5223 | }; | |
5224 | ||
5225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
5226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5227 | { | |
5228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5229 | delete arg1; | |
5230 | ||
5231 | wxPyEndAllowThreads(__tstate); | |
5232 | if (PyErr_Occurred()) SWIG_fail; | |
5233 | } | |
5234 | Py_INCREF(Py_None); resultobj = Py_None; | |
5235 | return resultobj; | |
5236 | fail: | |
5237 | return NULL; | |
5238 | } | |
5239 | ||
5240 | ||
5241 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5242 | PyObject *resultobj; | |
5243 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5244 | wxString *arg2 = 0 ; | |
e811c8ce | 5245 | bool temp2 = False ; |
d14a1e28 RD |
5246 | PyObject * obj0 = 0 ; |
5247 | PyObject * obj1 = 0 ; | |
5248 | char *kwnames[] = { | |
5249 | (char *) "self",(char *) "file", NULL | |
5250 | }; | |
5251 | ||
5252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
5253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5254 | { | |
5255 | arg2 = wxString_in_helper(obj1); | |
5256 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5257 | temp2 = True; |
d14a1e28 RD |
5258 | } |
5259 | { | |
5260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5261 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
5262 | ||
5263 | wxPyEndAllowThreads(__tstate); | |
5264 | if (PyErr_Occurred()) SWIG_fail; | |
5265 | } | |
5266 | Py_INCREF(Py_None); resultobj = Py_None; | |
5267 | { | |
5268 | if (temp2) | |
5269 | delete arg2; | |
5270 | } | |
5271 | return resultobj; | |
5272 | fail: | |
5273 | { | |
5274 | if (temp2) | |
5275 | delete arg2; | |
5276 | } | |
5277 | return NULL; | |
5278 | } | |
5279 | ||
5280 | ||
5281 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5282 | PyObject *resultobj; | |
5283 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5284 | int arg2 ; | |
5285 | PyObject * obj0 = 0 ; | |
994141e6 | 5286 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5287 | char *kwnames[] = { |
5288 | (char *) "self",(char *) "i", NULL | |
5289 | }; | |
5290 | ||
994141e6 | 5291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5293 | { |
5294 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5295 | if (PyErr_Occurred()) SWIG_fail; | |
5296 | } | |
d14a1e28 RD |
5297 | { |
5298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5299 | (arg1)->RemoveFileFromHistory(arg2); | |
5300 | ||
5301 | wxPyEndAllowThreads(__tstate); | |
5302 | if (PyErr_Occurred()) SWIG_fail; | |
5303 | } | |
5304 | Py_INCREF(Py_None); resultobj = Py_None; | |
5305 | return resultobj; | |
5306 | fail: | |
5307 | return NULL; | |
5308 | } | |
5309 | ||
5310 | ||
5311 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5312 | PyObject *resultobj; | |
5313 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5314 | int result; | |
5315 | PyObject * obj0 = 0 ; | |
5316 | char *kwnames[] = { | |
5317 | (char *) "self", NULL | |
5318 | }; | |
5319 | ||
5320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
5321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5322 | { | |
5323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5324 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
5325 | ||
5326 | wxPyEndAllowThreads(__tstate); | |
5327 | if (PyErr_Occurred()) SWIG_fail; | |
5328 | } | |
994141e6 | 5329 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5330 | return resultobj; |
5331 | fail: | |
5332 | return NULL; | |
5333 | } | |
5334 | ||
5335 | ||
5336 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5337 | PyObject *resultobj; | |
5338 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5339 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5340 | PyObject * obj0 = 0 ; | |
5341 | PyObject * obj1 = 0 ; | |
5342 | char *kwnames[] = { | |
5343 | (char *) "self",(char *) "menu", NULL | |
5344 | }; | |
5345 | ||
5346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
5347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5348 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5349 | { | |
5350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5351 | (arg1)->UseMenu(arg2); | |
5352 | ||
5353 | wxPyEndAllowThreads(__tstate); | |
5354 | if (PyErr_Occurred()) SWIG_fail; | |
5355 | } | |
5356 | Py_INCREF(Py_None); resultobj = Py_None; | |
5357 | return resultobj; | |
5358 | fail: | |
5359 | return NULL; | |
5360 | } | |
5361 | ||
5362 | ||
5363 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5364 | PyObject *resultobj; | |
5365 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5366 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5367 | PyObject * obj0 = 0 ; | |
5368 | PyObject * obj1 = 0 ; | |
5369 | char *kwnames[] = { | |
5370 | (char *) "self",(char *) "menu", NULL | |
5371 | }; | |
5372 | ||
5373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
5374 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5375 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5376 | { | |
5377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5378 | (arg1)->RemoveMenu(arg2); | |
5379 | ||
5380 | wxPyEndAllowThreads(__tstate); | |
5381 | if (PyErr_Occurred()) SWIG_fail; | |
5382 | } | |
5383 | Py_INCREF(Py_None); resultobj = Py_None; | |
5384 | return resultobj; | |
5385 | fail: | |
5386 | return NULL; | |
5387 | } | |
5388 | ||
5389 | ||
5390 | static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5391 | PyObject *resultobj; | |
5392 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5393 | wxConfigBase *arg2 = 0 ; | |
5394 | PyObject * obj0 = 0 ; | |
5395 | PyObject * obj1 = 0 ; | |
5396 | char *kwnames[] = { | |
5397 | (char *) "self",(char *) "config", NULL | |
5398 | }; | |
5399 | ||
5400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
5401 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5402 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5403 | if (arg2 == NULL) { | |
5404 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5405 | } | |
5406 | { | |
5407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5408 | (arg1)->Load(*arg2); | |
5409 | ||
5410 | wxPyEndAllowThreads(__tstate); | |
5411 | if (PyErr_Occurred()) SWIG_fail; | |
5412 | } | |
5413 | Py_INCREF(Py_None); resultobj = Py_None; | |
5414 | return resultobj; | |
5415 | fail: | |
5416 | return NULL; | |
5417 | } | |
5418 | ||
5419 | ||
5420 | static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5421 | PyObject *resultobj; | |
5422 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5423 | wxConfigBase *arg2 = 0 ; | |
5424 | PyObject * obj0 = 0 ; | |
5425 | PyObject * obj1 = 0 ; | |
5426 | char *kwnames[] = { | |
5427 | (char *) "self",(char *) "config", NULL | |
5428 | }; | |
5429 | ||
5430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
5431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5432 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5433 | if (arg2 == NULL) { | |
5434 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5435 | } | |
5436 | { | |
5437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5438 | (arg1)->Save(*arg2); | |
5439 | ||
5440 | wxPyEndAllowThreads(__tstate); | |
5441 | if (PyErr_Occurred()) SWIG_fail; | |
5442 | } | |
5443 | Py_INCREF(Py_None); resultobj = Py_None; | |
5444 | return resultobj; | |
5445 | fail: | |
5446 | return NULL; | |
5447 | } | |
5448 | ||
5449 | ||
5450 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5451 | PyObject *resultobj; | |
5452 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5453 | PyObject * obj0 = 0 ; | |
5454 | char *kwnames[] = { | |
5455 | (char *) "self", NULL | |
5456 | }; | |
5457 | ||
5458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
5459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5460 | { | |
5461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5462 | (arg1)->AddFilesToMenu(); | |
5463 | ||
5464 | wxPyEndAllowThreads(__tstate); | |
5465 | if (PyErr_Occurred()) SWIG_fail; | |
5466 | } | |
5467 | Py_INCREF(Py_None); resultobj = Py_None; | |
5468 | return resultobj; | |
5469 | fail: | |
5470 | return NULL; | |
5471 | } | |
5472 | ||
5473 | ||
5474 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5475 | PyObject *resultobj; | |
5476 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5477 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5478 | PyObject * obj0 = 0 ; | |
5479 | PyObject * obj1 = 0 ; | |
5480 | char *kwnames[] = { | |
5481 | (char *) "self",(char *) "menu", NULL | |
5482 | }; | |
5483 | ||
5484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
5485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5486 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5487 | { | |
5488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5489 | (arg1)->AddFilesToMenu(arg2); | |
5490 | ||
5491 | wxPyEndAllowThreads(__tstate); | |
5492 | if (PyErr_Occurred()) SWIG_fail; | |
5493 | } | |
5494 | Py_INCREF(Py_None); resultobj = Py_None; | |
5495 | return resultobj; | |
5496 | fail: | |
5497 | return NULL; | |
5498 | } | |
5499 | ||
5500 | ||
5501 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5502 | PyObject *resultobj; | |
5503 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5504 | int arg2 ; | |
5505 | wxString result; | |
5506 | PyObject * obj0 = 0 ; | |
994141e6 | 5507 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5508 | char *kwnames[] = { |
5509 | (char *) "self",(char *) "i", NULL | |
5510 | }; | |
5511 | ||
994141e6 | 5512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5514 | { |
5515 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5516 | if (PyErr_Occurred()) SWIG_fail; | |
5517 | } | |
d14a1e28 RD |
5518 | { |
5519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5520 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
5521 | ||
5522 | wxPyEndAllowThreads(__tstate); | |
5523 | if (PyErr_Occurred()) SWIG_fail; | |
5524 | } | |
5525 | { | |
5526 | #if wxUSE_UNICODE | |
5527 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5528 | #else | |
5529 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5530 | #endif | |
5531 | } | |
5532 | return resultobj; | |
5533 | fail: | |
5534 | return NULL; | |
5535 | } | |
5536 | ||
5537 | ||
5538 | static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5539 | PyObject *resultobj; | |
5540 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5541 | int result; | |
5542 | PyObject * obj0 = 0 ; | |
5543 | char *kwnames[] = { | |
5544 | (char *) "self", NULL | |
5545 | }; | |
5546 | ||
5547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
5548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5549 | { | |
5550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5551 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
5552 | ||
5553 | wxPyEndAllowThreads(__tstate); | |
5554 | if (PyErr_Occurred()) SWIG_fail; | |
5555 | } | |
994141e6 | 5556 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5557 | return resultobj; |
5558 | fail: | |
5559 | return NULL; | |
5560 | } | |
5561 | ||
5562 | ||
5563 | static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) { | |
5564 | PyObject *obj; | |
5565 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5566 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
5567 | Py_INCREF(obj); | |
5568 | return Py_BuildValue((char *)""); | |
5569 | } | |
5570 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5571 | PyObject *resultobj; | |
5572 | wxString *arg1 = 0 ; | |
5573 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5574 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5575 | wxSingleInstanceChecker *result; | |
e811c8ce RD |
5576 | bool temp1 = False ; |
5577 | bool temp2 = False ; | |
d14a1e28 RD |
5578 | PyObject * obj0 = 0 ; |
5579 | PyObject * obj1 = 0 ; | |
5580 | char *kwnames[] = { | |
5581 | (char *) "name",(char *) "path", NULL | |
5582 | }; | |
5583 | ||
5584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
5585 | { | |
5586 | arg1 = wxString_in_helper(obj0); | |
5587 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 5588 | temp1 = True; |
d14a1e28 RD |
5589 | } |
5590 | if (obj1) { | |
5591 | { | |
5592 | arg2 = wxString_in_helper(obj1); | |
5593 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5594 | temp2 = True; |
d14a1e28 RD |
5595 | } |
5596 | } | |
5597 | { | |
5598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5599 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
5600 | ||
5601 | wxPyEndAllowThreads(__tstate); | |
5602 | if (PyErr_Occurred()) SWIG_fail; | |
5603 | } | |
5604 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5605 | { | |
5606 | if (temp1) | |
5607 | delete arg1; | |
5608 | } | |
5609 | { | |
5610 | if (temp2) | |
5611 | delete arg2; | |
5612 | } | |
5613 | return resultobj; | |
5614 | fail: | |
5615 | { | |
5616 | if (temp1) | |
5617 | delete arg1; | |
5618 | } | |
5619 | { | |
5620 | if (temp2) | |
5621 | delete arg2; | |
5622 | } | |
5623 | return NULL; | |
5624 | } | |
5625 | ||
5626 | ||
5627 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5628 | PyObject *resultobj; | |
5629 | wxSingleInstanceChecker *result; | |
5630 | char *kwnames[] = { | |
5631 | NULL | |
5632 | }; | |
5633 | ||
5634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
5635 | { | |
5636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5637 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
5638 | ||
5639 | wxPyEndAllowThreads(__tstate); | |
5640 | if (PyErr_Occurred()) SWIG_fail; | |
5641 | } | |
5642 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5643 | return resultobj; | |
5644 | fail: | |
5645 | return NULL; | |
5646 | } | |
5647 | ||
5648 | ||
5649 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5650 | PyObject *resultobj; | |
5651 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5652 | PyObject * obj0 = 0 ; | |
5653 | char *kwnames[] = { | |
5654 | (char *) "self", NULL | |
5655 | }; | |
5656 | ||
5657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
5658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5659 | { | |
5660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5661 | delete arg1; | |
5662 | ||
5663 | wxPyEndAllowThreads(__tstate); | |
5664 | if (PyErr_Occurred()) SWIG_fail; | |
5665 | } | |
5666 | Py_INCREF(Py_None); resultobj = Py_None; | |
5667 | return resultobj; | |
5668 | fail: | |
5669 | return NULL; | |
5670 | } | |
5671 | ||
5672 | ||
5673 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5674 | PyObject *resultobj; | |
5675 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5676 | wxString *arg2 = 0 ; | |
5677 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5678 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5679 | bool result; | |
e811c8ce RD |
5680 | bool temp2 = False ; |
5681 | bool temp3 = False ; | |
d14a1e28 RD |
5682 | PyObject * obj0 = 0 ; |
5683 | PyObject * obj1 = 0 ; | |
5684 | PyObject * obj2 = 0 ; | |
5685 | char *kwnames[] = { | |
5686 | (char *) "self",(char *) "name",(char *) "path", NULL | |
5687 | }; | |
5688 | ||
5689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5690 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5691 | { | |
5692 | arg2 = wxString_in_helper(obj1); | |
5693 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5694 | temp2 = True; |
d14a1e28 RD |
5695 | } |
5696 | if (obj2) { | |
5697 | { | |
5698 | arg3 = wxString_in_helper(obj2); | |
5699 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 5700 | temp3 = True; |
d14a1e28 RD |
5701 | } |
5702 | } | |
5703 | { | |
5704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5705 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
5706 | ||
5707 | wxPyEndAllowThreads(__tstate); | |
5708 | if (PyErr_Occurred()) SWIG_fail; | |
5709 | } | |
4d5c3d91 | 5710 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5711 | { |
5712 | if (temp2) | |
5713 | delete arg2; | |
5714 | } | |
5715 | { | |
5716 | if (temp3) | |
5717 | delete arg3; | |
5718 | } | |
5719 | return resultobj; | |
5720 | fail: | |
5721 | { | |
5722 | if (temp2) | |
5723 | delete arg2; | |
5724 | } | |
5725 | { | |
5726 | if (temp3) | |
5727 | delete arg3; | |
5728 | } | |
5729 | return NULL; | |
5730 | } | |
5731 | ||
5732 | ||
5733 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5734 | PyObject *resultobj; | |
5735 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5736 | bool result; | |
5737 | PyObject * obj0 = 0 ; | |
5738 | char *kwnames[] = { | |
5739 | (char *) "self", NULL | |
5740 | }; | |
5741 | ||
5742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
5743 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5744 | { | |
5745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5746 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
5747 | ||
5748 | wxPyEndAllowThreads(__tstate); | |
5749 | if (PyErr_Occurred()) SWIG_fail; | |
5750 | } | |
4d5c3d91 | 5751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5752 | return resultobj; |
5753 | fail: | |
5754 | return NULL; | |
5755 | } | |
5756 | ||
5757 | ||
5758 | static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) { | |
5759 | PyObject *obj; | |
5760 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5761 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
5762 | Py_INCREF(obj); | |
5763 | return Py_BuildValue((char *)""); | |
5764 | } | |
5765 | static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5766 | PyObject *resultobj; | |
5767 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5768 | wxDC *arg2 = 0 ; | |
5769 | int arg3 ; | |
5770 | PyObject * obj0 = 0 ; | |
5771 | PyObject * obj1 = 0 ; | |
994141e6 | 5772 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5773 | char *kwnames[] = { |
5774 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
5775 | }; | |
5776 | ||
994141e6 | 5777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
5778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5779 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5780 | if (arg2 == NULL) { | |
5781 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5782 | } | |
994141e6 RD |
5783 | { |
5784 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5785 | if (PyErr_Occurred()) SWIG_fail; | |
5786 | } | |
d14a1e28 RD |
5787 | { |
5788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5789 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
5790 | ||
5791 | wxPyEndAllowThreads(__tstate); | |
5792 | if (PyErr_Occurred()) SWIG_fail; | |
5793 | } | |
5794 | Py_INCREF(Py_None); resultobj = Py_None; | |
5795 | return resultobj; | |
5796 | fail: | |
5797 | return NULL; | |
5798 | } | |
5799 | ||
5800 | ||
5801 | static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5802 | PyObject *resultobj; | |
5803 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5804 | PyObject * obj0 = 0 ; | |
5805 | char *kwnames[] = { | |
5806 | (char *) "self", NULL | |
5807 | }; | |
5808 | ||
5809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
5810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5811 | { | |
5812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5813 | delete arg1; | |
5814 | ||
5815 | wxPyEndAllowThreads(__tstate); | |
5816 | if (PyErr_Occurred()) SWIG_fail; | |
5817 | } | |
5818 | Py_INCREF(Py_None); resultobj = Py_None; | |
5819 | return resultobj; | |
5820 | fail: | |
5821 | return NULL; | |
5822 | } | |
5823 | ||
5824 | ||
5825 | static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5826 | PyObject *resultobj; | |
5827 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5828 | wxString result; | |
5829 | PyObject * obj0 = 0 ; | |
5830 | char *kwnames[] = { | |
5831 | (char *) "self", NULL | |
5832 | }; | |
5833 | ||
5834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
5835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5836 | { | |
5837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5838 | result = (arg1)->GetTip(); | |
5839 | ||
5840 | wxPyEndAllowThreads(__tstate); | |
5841 | if (PyErr_Occurred()) SWIG_fail; | |
5842 | } | |
5843 | { | |
5844 | #if wxUSE_UNICODE | |
5845 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5846 | #else | |
5847 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5848 | #endif | |
5849 | } | |
5850 | return resultobj; | |
5851 | fail: | |
5852 | return NULL; | |
5853 | } | |
5854 | ||
5855 | ||
5856 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5857 | PyObject *resultobj; | |
5858 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5859 | size_t result; | |
5860 | PyObject * obj0 = 0 ; | |
5861 | char *kwnames[] = { | |
5862 | (char *) "self", NULL | |
5863 | }; | |
5864 | ||
5865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
5866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5867 | { | |
5868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5869 | result = (size_t)(arg1)->GetCurrentTip(); | |
5870 | ||
5871 | wxPyEndAllowThreads(__tstate); | |
5872 | if (PyErr_Occurred()) SWIG_fail; | |
5873 | } | |
994141e6 | 5874 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
5875 | return resultobj; |
5876 | fail: | |
5877 | return NULL; | |
5878 | } | |
5879 | ||
5880 | ||
5881 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5882 | PyObject *resultobj; | |
5883 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5884 | wxString *arg2 = 0 ; | |
5885 | wxString result; | |
e811c8ce | 5886 | bool temp2 = False ; |
d14a1e28 RD |
5887 | PyObject * obj0 = 0 ; |
5888 | PyObject * obj1 = 0 ; | |
5889 | char *kwnames[] = { | |
5890 | (char *) "self",(char *) "tip", NULL | |
5891 | }; | |
5892 | ||
5893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
5894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5895 | { | |
5896 | arg2 = wxString_in_helper(obj1); | |
5897 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5898 | temp2 = True; |
d14a1e28 RD |
5899 | } |
5900 | { | |
5901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5902 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
5903 | ||
5904 | wxPyEndAllowThreads(__tstate); | |
5905 | if (PyErr_Occurred()) SWIG_fail; | |
5906 | } | |
5907 | { | |
5908 | #if wxUSE_UNICODE | |
5909 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5910 | #else | |
5911 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5912 | #endif | |
5913 | } | |
5914 | { | |
5915 | if (temp2) | |
5916 | delete arg2; | |
5917 | } | |
5918 | return resultobj; | |
5919 | fail: | |
5920 | { | |
5921 | if (temp2) | |
5922 | delete arg2; | |
5923 | } | |
5924 | return NULL; | |
5925 | } | |
5926 | ||
5927 | ||
5928 | static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) { | |
5929 | PyObject *obj; | |
5930 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5931 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
5932 | Py_INCREF(obj); | |
5933 | return Py_BuildValue((char *)""); | |
5934 | } | |
5935 | static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5936 | PyObject *resultobj; | |
5937 | size_t arg1 ; | |
5938 | wxPyTipProvider *result; | |
5939 | PyObject * obj0 = 0 ; | |
5940 | char *kwnames[] = { | |
5941 | (char *) "currentTip", NULL | |
5942 | }; | |
5943 | ||
5944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
a41e16b6 | 5945 | { |
994141e6 | 5946 | arg1 = (size_t) SWIG_PyObj_AsUnsignedLong(obj0); |
a41e16b6 RD |
5947 | if (PyErr_Occurred()) SWIG_fail; |
5948 | } | |
d14a1e28 RD |
5949 | { |
5950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5951 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
5952 | ||
5953 | wxPyEndAllowThreads(__tstate); | |
5954 | if (PyErr_Occurred()) SWIG_fail; | |
5955 | } | |
5956 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTipProvider, 1); | |
5957 | return resultobj; | |
5958 | fail: | |
5959 | return NULL; | |
5960 | } | |
5961 | ||
5962 | ||
5963 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5964 | PyObject *resultobj; | |
5965 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
5966 | PyObject *arg2 = (PyObject *) 0 ; | |
5967 | PyObject *arg3 = (PyObject *) 0 ; | |
5968 | PyObject * obj0 = 0 ; | |
5969 | PyObject * obj1 = 0 ; | |
5970 | PyObject * obj2 = 0 ; | |
5971 | char *kwnames[] = { | |
5972 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
5973 | }; | |
5974 | ||
5975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5977 | arg2 = obj1; | |
5978 | arg3 = obj2; | |
5979 | { | |
5980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5981 | (arg1)->_setCallbackInfo(arg2,arg3); | |
5982 | ||
5983 | wxPyEndAllowThreads(__tstate); | |
5984 | if (PyErr_Occurred()) SWIG_fail; | |
5985 | } | |
5986 | Py_INCREF(Py_None); resultobj = Py_None; | |
5987 | return resultobj; | |
5988 | fail: | |
5989 | return NULL; | |
5990 | } | |
5991 | ||
5992 | ||
5993 | static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) { | |
5994 | PyObject *obj; | |
5995 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5996 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
5997 | Py_INCREF(obj); | |
5998 | return Py_BuildValue((char *)""); | |
5999 | } | |
6000 | static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6001 | PyObject *resultobj; | |
6002 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6003 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
e811c8ce | 6004 | bool arg3 = (bool) True ; |
d14a1e28 RD |
6005 | bool result; |
6006 | PyObject * obj0 = 0 ; | |
6007 | PyObject * obj1 = 0 ; | |
6008 | PyObject * obj2 = 0 ; | |
6009 | char *kwnames[] = { | |
6010 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
6011 | }; | |
6012 | ||
6013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6015 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6016 | if (obj2) { | |
a41e16b6 | 6017 | { |
994141e6 | 6018 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
6019 | if (PyErr_Occurred()) SWIG_fail; |
6020 | } | |
d14a1e28 RD |
6021 | } |
6022 | { | |
6023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6024 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
6025 | ||
6026 | wxPyEndAllowThreads(__tstate); | |
6027 | if (PyErr_Occurred()) SWIG_fail; | |
6028 | } | |
4d5c3d91 | 6029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6030 | return resultobj; |
6031 | fail: | |
6032 | return NULL; | |
6033 | } | |
6034 | ||
6035 | ||
6036 | static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6037 | PyObject *resultobj; | |
6038 | wxString *arg1 = 0 ; | |
6039 | size_t arg2 ; | |
6040 | wxTipProvider *result; | |
e811c8ce | 6041 | bool temp1 = False ; |
d14a1e28 RD |
6042 | PyObject * obj0 = 0 ; |
6043 | PyObject * obj1 = 0 ; | |
6044 | char *kwnames[] = { | |
6045 | (char *) "filename",(char *) "currentTip", NULL | |
6046 | }; | |
6047 | ||
6048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
6049 | { | |
6050 | arg1 = wxString_in_helper(obj0); | |
6051 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 6052 | temp1 = True; |
d14a1e28 | 6053 | } |
a41e16b6 | 6054 | { |
994141e6 | 6055 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
6056 | if (PyErr_Occurred()) SWIG_fail; |
6057 | } | |
d14a1e28 RD |
6058 | { |
6059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6060 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
6061 | ||
6062 | wxPyEndAllowThreads(__tstate); | |
6063 | if (PyErr_Occurred()) SWIG_fail; | |
6064 | } | |
6065 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTipProvider, 1); | |
6066 | { | |
6067 | if (temp1) | |
6068 | delete arg1; | |
6069 | } | |
6070 | return resultobj; | |
6071 | fail: | |
6072 | { | |
6073 | if (temp1) | |
6074 | delete arg1; | |
6075 | } | |
6076 | return NULL; | |
6077 | } | |
6078 | ||
6079 | ||
6080 | static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6081 | PyObject *resultobj; | |
6082 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
6083 | int arg2 = (int) -1 ; | |
6084 | wxPyTimer *result; | |
6085 | PyObject * obj0 = 0 ; | |
994141e6 | 6086 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6087 | char *kwnames[] = { |
6088 | (char *) "owner",(char *) "id", NULL | |
6089 | }; | |
6090 | ||
994141e6 | 6091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
6092 | if (obj0) { |
6093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6094 | } | |
994141e6 RD |
6095 | if (obj1) { |
6096 | { | |
6097 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6098 | if (PyErr_Occurred()) SWIG_fail; | |
6099 | } | |
6100 | } | |
d14a1e28 RD |
6101 | { |
6102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6103 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
6104 | ||
6105 | wxPyEndAllowThreads(__tstate); | |
6106 | if (PyErr_Occurred()) SWIG_fail; | |
6107 | } | |
6108 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTimer, 1); | |
6109 | return resultobj; | |
6110 | fail: | |
6111 | return NULL; | |
6112 | } | |
6113 | ||
6114 | ||
6115 | static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6116 | PyObject *resultobj; | |
6117 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6118 | PyObject * obj0 = 0 ; | |
6119 | char *kwnames[] = { | |
6120 | (char *) "self", NULL | |
6121 | }; | |
6122 | ||
6123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
6124 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6125 | { | |
6126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6127 | delete arg1; | |
6128 | ||
6129 | wxPyEndAllowThreads(__tstate); | |
6130 | if (PyErr_Occurred()) SWIG_fail; | |
6131 | } | |
6132 | Py_INCREF(Py_None); resultobj = Py_None; | |
6133 | return resultobj; | |
6134 | fail: | |
6135 | return NULL; | |
6136 | } | |
6137 | ||
6138 | ||
7722248d RD |
6139 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
6140 | PyObject *resultobj; | |
6141 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6142 | PyObject *arg2 = (PyObject *) 0 ; | |
6143 | PyObject *arg3 = (PyObject *) 0 ; | |
6144 | PyObject * obj0 = 0 ; | |
6145 | PyObject * obj1 = 0 ; | |
6146 | PyObject * obj2 = 0 ; | |
6147 | char *kwnames[] = { | |
6148 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6149 | }; | |
6150 | ||
6151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6153 | arg2 = obj1; | |
6154 | arg3 = obj2; | |
6155 | { | |
6156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6157 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6158 | ||
6159 | wxPyEndAllowThreads(__tstate); | |
6160 | if (PyErr_Occurred()) SWIG_fail; | |
6161 | } | |
6162 | Py_INCREF(Py_None); resultobj = Py_None; | |
6163 | return resultobj; | |
6164 | fail: | |
6165 | return NULL; | |
6166 | } | |
6167 | ||
6168 | ||
d14a1e28 RD |
6169 | static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { |
6170 | PyObject *resultobj; | |
6171 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6172 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
6173 | int arg3 = (int) -1 ; | |
6174 | PyObject * obj0 = 0 ; | |
6175 | PyObject * obj1 = 0 ; | |
994141e6 | 6176 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6177 | char *kwnames[] = { |
6178 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
6179 | }; | |
6180 | ||
994141e6 | 6181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
6182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6183 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
6184 | if (obj2) { |
6185 | { | |
6186 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6187 | if (PyErr_Occurred()) SWIG_fail; | |
6188 | } | |
6189 | } | |
d14a1e28 RD |
6190 | { |
6191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6192 | (arg1)->SetOwner(arg2,arg3); | |
6193 | ||
6194 | wxPyEndAllowThreads(__tstate); | |
6195 | if (PyErr_Occurred()) SWIG_fail; | |
6196 | } | |
6197 | Py_INCREF(Py_None); resultobj = Py_None; | |
6198 | return resultobj; | |
6199 | fail: | |
6200 | return NULL; | |
6201 | } | |
6202 | ||
6203 | ||
6204 | static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6205 | PyObject *resultobj; | |
6206 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6207 | int arg2 = (int) -1 ; | |
e811c8ce | 6208 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6209 | bool result; |
6210 | PyObject * obj0 = 0 ; | |
994141e6 | 6211 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6212 | PyObject * obj2 = 0 ; |
6213 | char *kwnames[] = { | |
6214 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
6215 | }; | |
6216 | ||
994141e6 | 6217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6218 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6219 | if (obj1) { |
6220 | { | |
6221 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6222 | if (PyErr_Occurred()) SWIG_fail; | |
6223 | } | |
6224 | } | |
d14a1e28 | 6225 | if (obj2) { |
a41e16b6 | 6226 | { |
994141e6 | 6227 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
6228 | if (PyErr_Occurred()) SWIG_fail; |
6229 | } | |
d14a1e28 RD |
6230 | } |
6231 | { | |
6232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6233 | result = (bool)(arg1)->Start(arg2,arg3); | |
6234 | ||
6235 | wxPyEndAllowThreads(__tstate); | |
6236 | if (PyErr_Occurred()) SWIG_fail; | |
6237 | } | |
4d5c3d91 | 6238 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6239 | return resultobj; |
6240 | fail: | |
6241 | return NULL; | |
6242 | } | |
6243 | ||
6244 | ||
6245 | static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6246 | PyObject *resultobj; | |
6247 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6248 | PyObject * obj0 = 0 ; | |
6249 | char *kwnames[] = { | |
6250 | (char *) "self", NULL | |
6251 | }; | |
6252 | ||
6253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
6254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6255 | { | |
6256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6257 | (arg1)->Stop(); | |
6258 | ||
6259 | wxPyEndAllowThreads(__tstate); | |
6260 | if (PyErr_Occurred()) SWIG_fail; | |
6261 | } | |
6262 | Py_INCREF(Py_None); resultobj = Py_None; | |
6263 | return resultobj; | |
6264 | fail: | |
6265 | return NULL; | |
6266 | } | |
6267 | ||
6268 | ||
d14a1e28 RD |
6269 | static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { |
6270 | PyObject *resultobj; | |
6271 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6272 | bool result; | |
6273 | PyObject * obj0 = 0 ; | |
6274 | char *kwnames[] = { | |
6275 | (char *) "self", NULL | |
6276 | }; | |
6277 | ||
6278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
6279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6280 | { | |
6281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6282 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
6283 | ||
6284 | wxPyEndAllowThreads(__tstate); | |
6285 | if (PyErr_Occurred()) SWIG_fail; | |
6286 | } | |
4d5c3d91 | 6287 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6288 | return resultobj; |
6289 | fail: | |
6290 | return NULL; | |
6291 | } | |
6292 | ||
6293 | ||
6294 | static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6295 | PyObject *resultobj; | |
6296 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6297 | int result; | |
6298 | PyObject * obj0 = 0 ; | |
6299 | char *kwnames[] = { | |
6300 | (char *) "self", NULL | |
6301 | }; | |
6302 | ||
6303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
6304 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6305 | { | |
6306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6307 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
6308 | ||
6309 | wxPyEndAllowThreads(__tstate); | |
6310 | if (PyErr_Occurred()) SWIG_fail; | |
6311 | } | |
994141e6 | 6312 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6313 | return resultobj; |
6314 | fail: | |
6315 | return NULL; | |
6316 | } | |
6317 | ||
6318 | ||
6319 | static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6320 | PyObject *resultobj; | |
6321 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6322 | bool result; | |
6323 | PyObject * obj0 = 0 ; | |
6324 | char *kwnames[] = { | |
6325 | (char *) "self", NULL | |
6326 | }; | |
6327 | ||
6328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
6329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6330 | { | |
6331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6332 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
6333 | ||
6334 | wxPyEndAllowThreads(__tstate); | |
6335 | if (PyErr_Occurred()) SWIG_fail; | |
6336 | } | |
4d5c3d91 | 6337 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6338 | return resultobj; |
6339 | fail: | |
6340 | return NULL; | |
6341 | } | |
6342 | ||
6343 | ||
cc6dd355 RD |
6344 | static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
6345 | PyObject *resultobj; | |
6346 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6347 | int result; | |
6348 | PyObject * obj0 = 0 ; | |
6349 | char *kwnames[] = { | |
6350 | (char *) "self", NULL | |
6351 | }; | |
6352 | ||
6353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
6354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6355 | { | |
6356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6357 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
6358 | ||
6359 | wxPyEndAllowThreads(__tstate); | |
6360 | if (PyErr_Occurred()) SWIG_fail; | |
6361 | } | |
994141e6 | 6362 | resultobj = SWIG_PyObj_FromInt((int)result); |
cc6dd355 RD |
6363 | return resultobj; |
6364 | fail: | |
6365 | return NULL; | |
6366 | } | |
6367 | ||
6368 | ||
d14a1e28 RD |
6369 | static PyObject * Timer_swigregister(PyObject *self, PyObject *args) { |
6370 | PyObject *obj; | |
6371 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6372 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
6373 | Py_INCREF(obj); | |
6374 | return Py_BuildValue((char *)""); | |
6375 | } | |
6376 | static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6377 | PyObject *resultobj; | |
6378 | int arg1 = (int) 0 ; | |
6379 | int arg2 = (int) 0 ; | |
6380 | wxTimerEvent *result; | |
994141e6 RD |
6381 | PyObject * obj0 = 0 ; |
6382 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
6383 | char *kwnames[] = { |
6384 | (char *) "timerid",(char *) "interval", NULL | |
6385 | }; | |
6386 | ||
994141e6 RD |
6387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; |
6388 | if (obj0) { | |
6389 | { | |
6390 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
6391 | if (PyErr_Occurred()) SWIG_fail; | |
6392 | } | |
6393 | } | |
6394 | if (obj1) { | |
6395 | { | |
6396 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6397 | if (PyErr_Occurred()) SWIG_fail; | |
6398 | } | |
6399 | } | |
d14a1e28 RD |
6400 | { |
6401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6402 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
6403 | ||
6404 | wxPyEndAllowThreads(__tstate); | |
6405 | if (PyErr_Occurred()) SWIG_fail; | |
6406 | } | |
6407 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerEvent, 1); | |
6408 | return resultobj; | |
6409 | fail: | |
6410 | return NULL; | |
6411 | } | |
6412 | ||
6413 | ||
6414 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6415 | PyObject *resultobj; | |
6416 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
6417 | int result; | |
6418 | PyObject * obj0 = 0 ; | |
6419 | char *kwnames[] = { | |
6420 | (char *) "self", NULL | |
6421 | }; | |
6422 | ||
6423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
6424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6425 | { | |
6426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6427 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
6428 | ||
6429 | wxPyEndAllowThreads(__tstate); | |
6430 | if (PyErr_Occurred()) SWIG_fail; | |
6431 | } | |
994141e6 | 6432 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6433 | return resultobj; |
6434 | fail: | |
6435 | return NULL; | |
6436 | } | |
6437 | ||
6438 | ||
6439 | static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) { | |
6440 | PyObject *obj; | |
6441 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6442 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
6443 | Py_INCREF(obj); | |
6444 | return Py_BuildValue((char *)""); | |
6445 | } | |
6446 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) { | |
6447 | PyObject *resultobj; | |
6448 | wxTimer *arg1 = 0 ; | |
6449 | wxTimerRunner *result; | |
6450 | PyObject * obj0 = 0 ; | |
6451 | ||
6452 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
6453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6454 | if (arg1 == NULL) { | |
6455 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6456 | } | |
6457 | { | |
6458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6459 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
6460 | ||
6461 | wxPyEndAllowThreads(__tstate); | |
6462 | if (PyErr_Occurred()) SWIG_fail; | |
6463 | } | |
6464 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerRunner, 1); | |
6465 | return resultobj; | |
6466 | fail: | |
6467 | return NULL; | |
6468 | } | |
6469 | ||
6470 | ||
6471 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) { | |
6472 | PyObject *resultobj; | |
6473 | wxTimer *arg1 = 0 ; | |
6474 | int arg2 ; | |
e811c8ce | 6475 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6476 | wxTimerRunner *result; |
6477 | PyObject * obj0 = 0 ; | |
994141e6 | 6478 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6479 | PyObject * obj2 = 0 ; |
6480 | ||
994141e6 | 6481 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
6482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6483 | if (arg1 == NULL) { | |
6484 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6485 | } | |
994141e6 RD |
6486 | { |
6487 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6488 | if (PyErr_Occurred()) SWIG_fail; | |
6489 | } | |
d14a1e28 | 6490 | if (obj2) { |
a41e16b6 | 6491 | { |
994141e6 | 6492 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
6493 | if (PyErr_Occurred()) SWIG_fail; |
6494 | } | |
d14a1e28 RD |
6495 | } |
6496 | { | |
6497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6498 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
6499 | ||
6500 | wxPyEndAllowThreads(__tstate); | |
6501 | if (PyErr_Occurred()) SWIG_fail; | |
6502 | } | |
6503 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerRunner, 1); | |
6504 | return resultobj; | |
6505 | fail: | |
6506 | return NULL; | |
6507 | } | |
6508 | ||
6509 | ||
6510 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
6511 | int argc; | |
6512 | PyObject *argv[4]; | |
6513 | int ii; | |
6514 | ||
6515 | argc = PyObject_Length(args); | |
6516 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
6517 | argv[ii] = PyTuple_GetItem(args,ii); | |
6518 | } | |
6519 | if (argc == 1) { | |
6520 | int _v; | |
6521 | { | |
6522 | void *ptr; | |
6523 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6524 | _v = 0; | |
6525 | PyErr_Clear(); | |
6526 | } else { | |
6527 | _v = 1; | |
6528 | } | |
6529 | } | |
6530 | if (_v) { | |
6531 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
6532 | } | |
6533 | } | |
6534 | if ((argc >= 2) && (argc <= 3)) { | |
6535 | int _v; | |
6536 | { | |
6537 | void *ptr; | |
6538 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6539 | _v = 0; | |
6540 | PyErr_Clear(); | |
6541 | } else { | |
6542 | _v = 1; | |
6543 | } | |
6544 | } | |
6545 | if (_v) { | |
6546 | { | |
994141e6 | 6547 | SWIG_PyObj_AsInt(argv[1]); |
a41e16b6 RD |
6548 | if (PyErr_Occurred()) { |
6549 | _v = 0; | |
6550 | PyErr_Clear(); | |
6551 | } else { | |
6552 | _v = 1; | |
6553 | } | |
d14a1e28 RD |
6554 | } |
6555 | if (_v) { | |
6556 | if (argc <= 2) { | |
6557 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6558 | } | |
6559 | { | |
994141e6 | 6560 | SWIG_PyObj_AsBool(argv[2]); |
a41e16b6 RD |
6561 | if (PyErr_Occurred()) { |
6562 | _v = 0; | |
6563 | PyErr_Clear(); | |
6564 | } else { | |
6565 | _v = 1; | |
6566 | } | |
d14a1e28 RD |
6567 | } |
6568 | if (_v) { | |
6569 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6570 | } | |
6571 | } | |
6572 | } | |
6573 | } | |
6574 | ||
6575 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
6576 | return NULL; | |
6577 | } | |
6578 | ||
6579 | ||
6580 | static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6581 | PyObject *resultobj; | |
6582 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6583 | PyObject * obj0 = 0 ; | |
6584 | char *kwnames[] = { | |
6585 | (char *) "self", NULL | |
6586 | }; | |
6587 | ||
6588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
6589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerRunner,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6590 | { | |
6591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6592 | delete arg1; | |
6593 | ||
6594 | wxPyEndAllowThreads(__tstate); | |
6595 | if (PyErr_Occurred()) SWIG_fail; | |
6596 | } | |
6597 | Py_INCREF(Py_None); resultobj = Py_None; | |
6598 | return resultobj; | |
6599 | fail: | |
6600 | return NULL; | |
6601 | } | |
6602 | ||
6603 | ||
6604 | static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6605 | PyObject *resultobj; | |
6606 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6607 | int arg2 ; | |
e811c8ce | 6608 | bool arg3 = (bool) False ; |
d14a1e28 | 6609 | PyObject * obj0 = 0 ; |
994141e6 | 6610 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6611 | PyObject * obj2 = 0 ; |
6612 | char *kwnames[] = { | |
6613 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
6614 | }; | |
6615 | ||
994141e6 | 6616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerRunner,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6618 | { |
6619 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6620 | if (PyErr_Occurred()) SWIG_fail; | |
6621 | } | |
d14a1e28 | 6622 | if (obj2) { |
a41e16b6 | 6623 | { |
994141e6 | 6624 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
6625 | if (PyErr_Occurred()) SWIG_fail; |
6626 | } | |
d14a1e28 RD |
6627 | } |
6628 | { | |
6629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6630 | (arg1)->Start(arg2,arg3); | |
6631 | ||
6632 | wxPyEndAllowThreads(__tstate); | |
6633 | if (PyErr_Occurred()) SWIG_fail; | |
6634 | } | |
6635 | Py_INCREF(Py_None); resultobj = Py_None; | |
6636 | return resultobj; | |
6637 | fail: | |
6638 | return NULL; | |
6639 | } | |
6640 | ||
6641 | ||
6642 | static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) { | |
6643 | PyObject *obj; | |
6644 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6645 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
6646 | Py_INCREF(obj); | |
6647 | return Py_BuildValue((char *)""); | |
6648 | } | |
6649 | static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6650 | PyObject *resultobj; | |
6651 | wxLog *result; | |
6652 | char *kwnames[] = { | |
6653 | NULL | |
6654 | }; | |
6655 | ||
6656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
6657 | { | |
6658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6659 | result = (wxLog *)new wxLog(); | |
6660 | ||
6661 | wxPyEndAllowThreads(__tstate); | |
6662 | if (PyErr_Occurred()) SWIG_fail; | |
6663 | } | |
6664 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 1); | |
6665 | return resultobj; | |
6666 | fail: | |
6667 | return NULL; | |
6668 | } | |
6669 | ||
6670 | ||
6671 | static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6672 | PyObject *resultobj; | |
6673 | bool result; | |
6674 | char *kwnames[] = { | |
6675 | NULL | |
6676 | }; | |
6677 | ||
6678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
6679 | { | |
6680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6681 | result = (bool)wxLog::IsEnabled(); | |
6682 | ||
6683 | wxPyEndAllowThreads(__tstate); | |
6684 | if (PyErr_Occurred()) SWIG_fail; | |
6685 | } | |
4d5c3d91 | 6686 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6687 | return resultobj; |
6688 | fail: | |
6689 | return NULL; | |
6690 | } | |
6691 | ||
6692 | ||
6693 | static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6694 | PyObject *resultobj; | |
e811c8ce | 6695 | bool arg1 = (bool) True ; |
d14a1e28 RD |
6696 | bool result; |
6697 | PyObject * obj0 = 0 ; | |
6698 | char *kwnames[] = { | |
6699 | (char *) "doIt", NULL | |
6700 | }; | |
6701 | ||
6702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
6703 | if (obj0) { | |
a41e16b6 | 6704 | { |
994141e6 | 6705 | arg1 = (bool) SWIG_PyObj_AsBool(obj0); |
a41e16b6 RD |
6706 | if (PyErr_Occurred()) SWIG_fail; |
6707 | } | |
d14a1e28 RD |
6708 | } |
6709 | { | |
6710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6711 | result = (bool)wxLog::EnableLogging(arg1); | |
6712 | ||
6713 | wxPyEndAllowThreads(__tstate); | |
6714 | if (PyErr_Occurred()) SWIG_fail; | |
6715 | } | |
4d5c3d91 | 6716 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6717 | return resultobj; |
6718 | fail: | |
6719 | return NULL; | |
6720 | } | |
6721 | ||
6722 | ||
6723 | static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6724 | PyObject *resultobj; | |
6725 | wxLogLevel arg1 ; | |
6726 | wxChar *arg2 = (wxChar *) 0 ; | |
6727 | time_t arg3 ; | |
6728 | PyObject * obj0 = 0 ; | |
6729 | PyObject * obj1 = 0 ; | |
6730 | PyObject * obj2 = 0 ; | |
6731 | char *kwnames[] = { | |
6732 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
6733 | }; | |
6734 | ||
6735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
a41e16b6 | 6736 | { |
994141e6 | 6737 | arg1 = (wxLogLevel) SWIG_PyObj_AsUnsignedLong(obj0); |
a41e16b6 RD |
6738 | if (PyErr_Occurred()) SWIG_fail; |
6739 | } | |
d14a1e28 | 6740 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 6741 | { |
994141e6 | 6742 | arg3 = (time_t) SWIG_PyObj_AsUnsignedInt(obj2); |
a41e16b6 RD |
6743 | if (PyErr_Occurred()) SWIG_fail; |
6744 | } | |
d14a1e28 RD |
6745 | { |
6746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6747 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
6748 | ||
6749 | wxPyEndAllowThreads(__tstate); | |
6750 | if (PyErr_Occurred()) SWIG_fail; | |
6751 | } | |
6752 | Py_INCREF(Py_None); resultobj = Py_None; | |
6753 | return resultobj; | |
6754 | fail: | |
6755 | return NULL; | |
6756 | } | |
6757 | ||
6758 | ||
6759 | static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6760 | PyObject *resultobj; | |
6761 | wxLog *arg1 = (wxLog *) 0 ; | |
6762 | PyObject * obj0 = 0 ; | |
6763 | char *kwnames[] = { | |
6764 | (char *) "self", NULL | |
6765 | }; | |
6766 | ||
6767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
6768 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6769 | { | |
6770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6771 | (arg1)->Flush(); | |
6772 | ||
6773 | wxPyEndAllowThreads(__tstate); | |
6774 | if (PyErr_Occurred()) SWIG_fail; | |
6775 | } | |
6776 | Py_INCREF(Py_None); resultobj = Py_None; | |
6777 | return resultobj; | |
6778 | fail: | |
6779 | return NULL; | |
6780 | } | |
6781 | ||
6782 | ||
6783 | static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6784 | PyObject *resultobj; | |
6785 | char *kwnames[] = { | |
6786 | NULL | |
6787 | }; | |
6788 | ||
6789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
6790 | { | |
6791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6792 | wxLog::FlushActive(); | |
6793 | ||
6794 | wxPyEndAllowThreads(__tstate); | |
6795 | if (PyErr_Occurred()) SWIG_fail; | |
6796 | } | |
6797 | Py_INCREF(Py_None); resultobj = Py_None; | |
6798 | return resultobj; | |
6799 | fail: | |
6800 | return NULL; | |
6801 | } | |
6802 | ||
6803 | ||
6804 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6805 | PyObject *resultobj; | |
6806 | wxLog *result; | |
6807 | char *kwnames[] = { | |
6808 | NULL | |
6809 | }; | |
6810 | ||
6811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
6812 | { | |
6813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6814 | result = (wxLog *)wxLog::GetActiveTarget(); | |
6815 | ||
6816 | wxPyEndAllowThreads(__tstate); | |
6817 | if (PyErr_Occurred()) SWIG_fail; | |
6818 | } | |
6819 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
6820 | return resultobj; | |
6821 | fail: | |
6822 | return NULL; | |
6823 | } | |
6824 | ||
6825 | ||
6826 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6827 | PyObject *resultobj; | |
6828 | wxLog *arg1 = (wxLog *) 0 ; | |
6829 | wxLog *result; | |
6830 | PyObject * obj0 = 0 ; | |
6831 | char *kwnames[] = { | |
6832 | (char *) "pLogger", NULL | |
6833 | }; | |
6834 | ||
6835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
6836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6837 | { | |
6838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6839 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
6840 | ||
6841 | wxPyEndAllowThreads(__tstate); | |
6842 | if (PyErr_Occurred()) SWIG_fail; | |
6843 | } | |
6844 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
6845 | return resultobj; | |
6846 | fail: | |
6847 | return NULL; | |
6848 | } | |
6849 | ||
6850 | ||
6851 | static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6852 | PyObject *resultobj; | |
6853 | char *kwnames[] = { | |
6854 | NULL | |
6855 | }; | |
6856 | ||
6857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
6858 | { | |
6859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6860 | wxLog::Suspend(); | |
6861 | ||
6862 | wxPyEndAllowThreads(__tstate); | |
6863 | if (PyErr_Occurred()) SWIG_fail; | |
6864 | } | |
6865 | Py_INCREF(Py_None); resultobj = Py_None; | |
6866 | return resultobj; | |
6867 | fail: | |
6868 | return NULL; | |
6869 | } | |
6870 | ||
6871 | ||
6872 | static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6873 | PyObject *resultobj; | |
6874 | char *kwnames[] = { | |
6875 | NULL | |
6876 | }; | |
6877 | ||
6878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
6879 | { | |
6880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6881 | wxLog::Resume(); | |
6882 | ||
6883 | wxPyEndAllowThreads(__tstate); | |
6884 | if (PyErr_Occurred()) SWIG_fail; | |
6885 | } | |
6886 | Py_INCREF(Py_None); resultobj = Py_None; | |
6887 | return resultobj; | |
6888 | fail: | |
6889 | return NULL; | |
6890 | } | |
6891 | ||
6892 | ||
6893 | static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6894 | PyObject *resultobj; | |
e811c8ce | 6895 | bool arg1 = (bool) True ; |
d14a1e28 RD |
6896 | PyObject * obj0 = 0 ; |
6897 | char *kwnames[] = { | |
6898 | (char *) "bVerbose", NULL | |
6899 | }; | |
6900 | ||
6901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
6902 | if (obj0) { | |
a41e16b6 | 6903 | { |
994141e6 | 6904 | arg1 = (bool) SWIG_PyObj_AsBool(obj0); |
a41e16b6 RD |
6905 | if (PyErr_Occurred()) SWIG_fail; |
6906 | } | |
d14a1e28 RD |
6907 | } |
6908 | { | |
6909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6910 | wxLog::SetVerbose(arg1); | |
6911 | ||
6912 | wxPyEndAllowThreads(__tstate); | |
6913 | if (PyErr_Occurred()) SWIG_fail; | |
6914 | } | |
6915 | Py_INCREF(Py_None); resultobj = Py_None; | |
6916 | return resultobj; | |
6917 | fail: | |
6918 | return NULL; | |
6919 | } | |
6920 | ||
6921 | ||
6922 | static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6923 | PyObject *resultobj; | |
6924 | wxLogLevel arg1 ; | |
6925 | PyObject * obj0 = 0 ; | |
6926 | char *kwnames[] = { | |
6927 | (char *) "logLevel", NULL | |
6928 | }; | |
6929 | ||
6930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
a41e16b6 | 6931 | { |
994141e6 | 6932 | arg1 = (wxLogLevel) SWIG_PyObj_AsUnsignedLong(obj0); |
a41e16b6 RD |
6933 | if (PyErr_Occurred()) SWIG_fail; |
6934 | } | |
d14a1e28 RD |
6935 | { |
6936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6937 | wxLog::SetLogLevel(arg1); | |
6938 | ||
6939 | wxPyEndAllowThreads(__tstate); | |
6940 | if (PyErr_Occurred()) SWIG_fail; | |
6941 | } | |
6942 | Py_INCREF(Py_None); resultobj = Py_None; | |
6943 | return resultobj; | |
6944 | fail: | |
6945 | return NULL; | |
6946 | } | |
6947 | ||
6948 | ||
6949 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6950 | PyObject *resultobj; | |
6951 | char *kwnames[] = { | |
6952 | NULL | |
6953 | }; | |
6954 | ||
6955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
6956 | { | |
6957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6958 | wxLog::DontCreateOnDemand(); | |
6959 | ||
6960 | wxPyEndAllowThreads(__tstate); | |
6961 | if (PyErr_Occurred()) SWIG_fail; | |
6962 | } | |
6963 | Py_INCREF(Py_None); resultobj = Py_None; | |
6964 | return resultobj; | |
6965 | fail: | |
6966 | return NULL; | |
6967 | } | |
6968 | ||
6969 | ||
6970 | static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6971 | PyObject *resultobj; | |
6972 | wxTraceMask arg1 ; | |
6973 | PyObject * obj0 = 0 ; | |
6974 | char *kwnames[] = { | |
6975 | (char *) "ulMask", NULL | |
6976 | }; | |
6977 | ||
6978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
a41e16b6 | 6979 | { |
994141e6 | 6980 | arg1 = (wxTraceMask) SWIG_PyObj_AsUnsignedLong(obj0); |
a41e16b6 RD |
6981 | if (PyErr_Occurred()) SWIG_fail; |
6982 | } | |
d14a1e28 RD |
6983 | { |
6984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6985 | wxLog::SetTraceMask(arg1); | |
6986 | ||
6987 | wxPyEndAllowThreads(__tstate); | |
6988 | if (PyErr_Occurred()) SWIG_fail; | |
6989 | } | |
6990 | Py_INCREF(Py_None); resultobj = Py_None; | |
6991 | return resultobj; | |
6992 | fail: | |
6993 | return NULL; | |
6994 | } | |
6995 | ||
6996 | ||
6997 | static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6998 | PyObject *resultobj; | |
6999 | wxString *arg1 = 0 ; | |
e811c8ce | 7000 | bool temp1 = False ; |
d14a1e28 RD |
7001 | PyObject * obj0 = 0 ; |
7002 | char *kwnames[] = { | |
7003 | (char *) "str", NULL | |
7004 | }; | |
7005 | ||
7006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
7007 | { | |
7008 | arg1 = wxString_in_helper(obj0); | |
7009 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7010 | temp1 = True; |
d14a1e28 RD |
7011 | } |
7012 | { | |
7013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7014 | wxLog::AddTraceMask((wxString const &)*arg1); | |
7015 | ||
7016 | wxPyEndAllowThreads(__tstate); | |
7017 | if (PyErr_Occurred()) SWIG_fail; | |
7018 | } | |
7019 | Py_INCREF(Py_None); resultobj = Py_None; | |
7020 | { | |
7021 | if (temp1) | |
7022 | delete arg1; | |
7023 | } | |
7024 | return resultobj; | |
7025 | fail: | |
7026 | { | |
7027 | if (temp1) | |
7028 | delete arg1; | |
7029 | } | |
7030 | return NULL; | |
7031 | } | |
7032 | ||
7033 | ||
7034 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7035 | PyObject *resultobj; | |
7036 | wxString *arg1 = 0 ; | |
e811c8ce | 7037 | bool temp1 = False ; |
d14a1e28 RD |
7038 | PyObject * obj0 = 0 ; |
7039 | char *kwnames[] = { | |
7040 | (char *) "str", NULL | |
7041 | }; | |
7042 | ||
7043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
7044 | { | |
7045 | arg1 = wxString_in_helper(obj0); | |
7046 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7047 | temp1 = True; |
d14a1e28 RD |
7048 | } |
7049 | { | |
7050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7051 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
7052 | ||
7053 | wxPyEndAllowThreads(__tstate); | |
7054 | if (PyErr_Occurred()) SWIG_fail; | |
7055 | } | |
7056 | Py_INCREF(Py_None); resultobj = Py_None; | |
7057 | { | |
7058 | if (temp1) | |
7059 | delete arg1; | |
7060 | } | |
7061 | return resultobj; | |
7062 | fail: | |
7063 | { | |
7064 | if (temp1) | |
7065 | delete arg1; | |
7066 | } | |
7067 | return NULL; | |
7068 | } | |
7069 | ||
7070 | ||
7071 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7072 | PyObject *resultobj; | |
7073 | char *kwnames[] = { | |
7074 | NULL | |
7075 | }; | |
7076 | ||
7077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
7078 | { | |
7079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7080 | wxLog::ClearTraceMasks(); | |
7081 | ||
7082 | wxPyEndAllowThreads(__tstate); | |
7083 | if (PyErr_Occurred()) SWIG_fail; | |
7084 | } | |
7085 | Py_INCREF(Py_None); resultobj = Py_None; | |
7086 | return resultobj; | |
7087 | fail: | |
7088 | return NULL; | |
7089 | } | |
7090 | ||
7091 | ||
7092 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7093 | PyObject *resultobj; | |
7094 | wxArrayString *result; | |
7095 | char *kwnames[] = { | |
7096 | NULL | |
7097 | }; | |
7098 | ||
7099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
7100 | { | |
7101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7102 | { | |
7103 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
7104 | result = (wxArrayString *) &_result_ref; | |
7105 | } | |
7106 | ||
7107 | wxPyEndAllowThreads(__tstate); | |
7108 | if (PyErr_Occurred()) SWIG_fail; | |
7109 | } | |
7110 | { | |
7111 | resultobj = wxArrayString2PyList_helper(*result); | |
7112 | } | |
7113 | return resultobj; | |
7114 | fail: | |
7115 | return NULL; | |
7116 | } | |
7117 | ||
7118 | ||
7119 | static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7120 | PyObject *resultobj; | |
7121 | wxChar *arg1 = (wxChar *) 0 ; | |
7122 | PyObject * obj0 = 0 ; | |
7123 | char *kwnames[] = { | |
7124 | (char *) "ts", NULL | |
7125 | }; | |
7126 | ||
7127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
7128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7129 | { | |
7130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7131 | wxLog::SetTimestamp((wxChar const *)arg1); | |
7132 | ||
7133 | wxPyEndAllowThreads(__tstate); | |
7134 | if (PyErr_Occurred()) SWIG_fail; | |
7135 | } | |
7136 | Py_INCREF(Py_None); resultobj = Py_None; | |
7137 | return resultobj; | |
7138 | fail: | |
7139 | return NULL; | |
7140 | } | |
7141 | ||
7142 | ||
7143 | static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7144 | PyObject *resultobj; | |
7145 | bool result; | |
7146 | char *kwnames[] = { | |
7147 | NULL | |
7148 | }; | |
7149 | ||
7150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
7151 | { | |
7152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7153 | result = (bool)wxLog::GetVerbose(); | |
7154 | ||
7155 | wxPyEndAllowThreads(__tstate); | |
7156 | if (PyErr_Occurred()) SWIG_fail; | |
7157 | } | |
4d5c3d91 | 7158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7159 | return resultobj; |
7160 | fail: | |
7161 | return NULL; | |
7162 | } | |
7163 | ||
7164 | ||
7165 | static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7166 | PyObject *resultobj; | |
7167 | wxTraceMask result; | |
7168 | char *kwnames[] = { | |
7169 | NULL | |
7170 | }; | |
7171 | ||
7172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
7173 | { | |
7174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7175 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
7176 | ||
7177 | wxPyEndAllowThreads(__tstate); | |
7178 | if (PyErr_Occurred()) SWIG_fail; | |
7179 | } | |
994141e6 | 7180 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7181 | return resultobj; |
7182 | fail: | |
7183 | return NULL; | |
7184 | } | |
7185 | ||
7186 | ||
7187 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7188 | PyObject *resultobj; | |
7189 | wxChar *arg1 = (wxChar *) 0 ; | |
7190 | bool result; | |
7191 | PyObject * obj0 = 0 ; | |
7192 | char *kwnames[] = { | |
7193 | (char *) "mask", NULL | |
7194 | }; | |
7195 | ||
7196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
7197 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7198 | { | |
7199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7200 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
7201 | ||
7202 | wxPyEndAllowThreads(__tstate); | |
7203 | if (PyErr_Occurred()) SWIG_fail; | |
7204 | } | |
4d5c3d91 | 7205 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7206 | return resultobj; |
7207 | fail: | |
7208 | return NULL; | |
7209 | } | |
7210 | ||
7211 | ||
7212 | static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7213 | PyObject *resultobj; | |
7214 | wxLogLevel result; | |
7215 | char *kwnames[] = { | |
7216 | NULL | |
7217 | }; | |
7218 | ||
7219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
7220 | { | |
7221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7222 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
7223 | ||
7224 | wxPyEndAllowThreads(__tstate); | |
7225 | if (PyErr_Occurred()) SWIG_fail; | |
7226 | } | |
994141e6 | 7227 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7228 | return resultobj; |
7229 | fail: | |
7230 | return NULL; | |
7231 | } | |
7232 | ||
7233 | ||
7234 | static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7235 | PyObject *resultobj; | |
7236 | wxChar *result; | |
7237 | char *kwnames[] = { | |
7238 | NULL | |
7239 | }; | |
7240 | ||
7241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
7242 | { | |
7243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7244 | result = (wxChar *)wxLog::GetTimestamp(); | |
7245 | ||
7246 | wxPyEndAllowThreads(__tstate); | |
7247 | if (PyErr_Occurred()) SWIG_fail; | |
7248 | } | |
7249 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChar, 0); | |
7250 | return resultobj; | |
7251 | fail: | |
7252 | return NULL; | |
7253 | } | |
7254 | ||
7255 | ||
7256 | static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7257 | PyObject *resultobj; | |
7258 | wxString result; | |
7259 | char *kwnames[] = { | |
7260 | NULL | |
7261 | }; | |
7262 | ||
7263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
7264 | { | |
7265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7266 | result = Log_TimeStamp(); | |
7267 | ||
7268 | wxPyEndAllowThreads(__tstate); | |
7269 | if (PyErr_Occurred()) SWIG_fail; | |
7270 | } | |
7271 | { | |
7272 | #if wxUSE_UNICODE | |
7273 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7274 | #else | |
7275 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7276 | #endif | |
7277 | } | |
7278 | return resultobj; | |
7279 | fail: | |
7280 | return NULL; | |
7281 | } | |
7282 | ||
7283 | ||
7284 | static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7285 | PyObject *resultobj; | |
7286 | wxLog *arg1 = (wxLog *) 0 ; | |
7287 | PyObject * obj0 = 0 ; | |
7288 | char *kwnames[] = { | |
7289 | (char *) "self", NULL | |
7290 | }; | |
7291 | ||
7292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
7293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7294 | { | |
7295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7296 | wxLog_Destroy(arg1); | |
7297 | ||
7298 | wxPyEndAllowThreads(__tstate); | |
7299 | if (PyErr_Occurred()) SWIG_fail; | |
7300 | } | |
7301 | Py_INCREF(Py_None); resultobj = Py_None; | |
7302 | return resultobj; | |
7303 | fail: | |
7304 | return NULL; | |
7305 | } | |
7306 | ||
7307 | ||
7308 | static PyObject * Log_swigregister(PyObject *self, PyObject *args) { | |
7309 | PyObject *obj; | |
7310 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7311 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
7312 | Py_INCREF(obj); | |
7313 | return Py_BuildValue((char *)""); | |
7314 | } | |
7315 | static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7316 | PyObject *resultobj; | |
7317 | wxLogStderr *result; | |
7318 | char *kwnames[] = { | |
7319 | NULL | |
7320 | }; | |
7321 | ||
7322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
7323 | { | |
7324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7325 | result = (wxLogStderr *)new wxLogStderr(); | |
7326 | ||
7327 | wxPyEndAllowThreads(__tstate); | |
7328 | if (PyErr_Occurred()) SWIG_fail; | |
7329 | } | |
7330 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogStderr, 1); | |
7331 | return resultobj; | |
7332 | fail: | |
7333 | return NULL; | |
7334 | } | |
7335 | ||
7336 | ||
7337 | static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) { | |
7338 | PyObject *obj; | |
7339 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7340 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
7341 | Py_INCREF(obj); | |
7342 | return Py_BuildValue((char *)""); | |
7343 | } | |
7344 | static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7345 | PyObject *resultobj; | |
7346 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7347 | wxLogTextCtrl *result; | |
7348 | PyObject * obj0 = 0 ; | |
7349 | char *kwnames[] = { | |
7350 | (char *) "pTextCtrl", NULL | |
7351 | }; | |
7352 | ||
7353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
7354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7355 | { | |
7356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7357 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
7358 | ||
7359 | wxPyEndAllowThreads(__tstate); | |
7360 | if (PyErr_Occurred()) SWIG_fail; | |
7361 | } | |
7362 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogTextCtrl, 1); | |
7363 | return resultobj; | |
7364 | fail: | |
7365 | return NULL; | |
7366 | } | |
7367 | ||
7368 | ||
7369 | static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) { | |
7370 | PyObject *obj; | |
7371 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7372 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
7373 | Py_INCREF(obj); | |
7374 | return Py_BuildValue((char *)""); | |
7375 | } | |
7376 | static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7377 | PyObject *resultobj; | |
7378 | wxLogGui *result; | |
7379 | char *kwnames[] = { | |
7380 | NULL | |
7381 | }; | |
7382 | ||
7383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
7384 | { | |
7385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7386 | result = (wxLogGui *)new wxLogGui(); | |
7387 | ||
7388 | wxPyEndAllowThreads(__tstate); | |
7389 | if (PyErr_Occurred()) SWIG_fail; | |
7390 | } | |
7391 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogGui, 1); | |
7392 | return resultobj; | |
7393 | fail: | |
7394 | return NULL; | |
7395 | } | |
7396 | ||
7397 | ||
7398 | static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) { | |
7399 | PyObject *obj; | |
7400 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7401 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
7402 | Py_INCREF(obj); | |
7403 | return Py_BuildValue((char *)""); | |
7404 | } | |
7405 | static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7406 | PyObject *resultobj; | |
7407 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7408 | wxString *arg2 = 0 ; | |
e811c8ce RD |
7409 | bool arg3 = (bool) True ; |
7410 | bool arg4 = (bool) True ; | |
d14a1e28 | 7411 | wxLogWindow *result; |
e811c8ce | 7412 | bool temp2 = False ; |
d14a1e28 RD |
7413 | PyObject * obj0 = 0 ; |
7414 | PyObject * obj1 = 0 ; | |
7415 | PyObject * obj2 = 0 ; | |
7416 | PyObject * obj3 = 0 ; | |
7417 | char *kwnames[] = { | |
7418 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
7419 | }; | |
7420 | ||
7421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7423 | { | |
7424 | arg2 = wxString_in_helper(obj1); | |
7425 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7426 | temp2 = True; |
d14a1e28 RD |
7427 | } |
7428 | if (obj2) { | |
a41e16b6 | 7429 | { |
994141e6 | 7430 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
7431 | if (PyErr_Occurred()) SWIG_fail; |
7432 | } | |
d14a1e28 RD |
7433 | } |
7434 | if (obj3) { | |
a41e16b6 | 7435 | { |
994141e6 | 7436 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
a41e16b6 RD |
7437 | if (PyErr_Occurred()) SWIG_fail; |
7438 | } | |
d14a1e28 RD |
7439 | } |
7440 | { | |
7441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7442 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
7443 | ||
7444 | wxPyEndAllowThreads(__tstate); | |
7445 | if (PyErr_Occurred()) SWIG_fail; | |
7446 | } | |
7447 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogWindow, 1); | |
7448 | { | |
7449 | if (temp2) | |
7450 | delete arg2; | |
7451 | } | |
7452 | return resultobj; | |
7453 | fail: | |
7454 | { | |
7455 | if (temp2) | |
7456 | delete arg2; | |
7457 | } | |
7458 | return NULL; | |
7459 | } | |
7460 | ||
7461 | ||
7462 | static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7463 | PyObject *resultobj; | |
7464 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
e811c8ce | 7465 | bool arg2 = (bool) True ; |
d14a1e28 RD |
7466 | PyObject * obj0 = 0 ; |
7467 | PyObject * obj1 = 0 ; | |
7468 | char *kwnames[] = { | |
7469 | (char *) "self",(char *) "bShow", NULL | |
7470 | }; | |
7471 | ||
7472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
7473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7474 | if (obj1) { | |
a41e16b6 | 7475 | { |
994141e6 | 7476 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
7477 | if (PyErr_Occurred()) SWIG_fail; |
7478 | } | |
d14a1e28 RD |
7479 | } |
7480 | { | |
7481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7482 | (arg1)->Show(arg2); | |
7483 | ||
7484 | wxPyEndAllowThreads(__tstate); | |
7485 | if (PyErr_Occurred()) SWIG_fail; | |
7486 | } | |
7487 | Py_INCREF(Py_None); resultobj = Py_None; | |
7488 | return resultobj; | |
7489 | fail: | |
7490 | return NULL; | |
7491 | } | |
7492 | ||
7493 | ||
7494 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7495 | PyObject *resultobj; | |
7496 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7497 | wxFrame *result; | |
7498 | PyObject * obj0 = 0 ; | |
7499 | char *kwnames[] = { | |
7500 | (char *) "self", NULL | |
7501 | }; | |
7502 | ||
7503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
7504 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7505 | { | |
7506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7507 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
7508 | ||
7509 | wxPyEndAllowThreads(__tstate); | |
7510 | if (PyErr_Occurred()) SWIG_fail; | |
7511 | } | |
7512 | { | |
7513 | resultobj = wxPyMake_wxObject(result); | |
7514 | } | |
7515 | return resultobj; | |
7516 | fail: | |
7517 | return NULL; | |
7518 | } | |
7519 | ||
7520 | ||
7521 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7522 | PyObject *resultobj; | |
7523 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7524 | wxLog *result; | |
7525 | PyObject * obj0 = 0 ; | |
7526 | char *kwnames[] = { | |
7527 | (char *) "self", NULL | |
7528 | }; | |
7529 | ||
7530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
7531 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7532 | { | |
7533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7534 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
7535 | ||
7536 | wxPyEndAllowThreads(__tstate); | |
7537 | if (PyErr_Occurred()) SWIG_fail; | |
7538 | } | |
7539 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
7540 | return resultobj; | |
7541 | fail: | |
7542 | return NULL; | |
7543 | } | |
7544 | ||
7545 | ||
7546 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7547 | PyObject *resultobj; | |
7548 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7549 | bool result; | |
7550 | PyObject * obj0 = 0 ; | |
7551 | char *kwnames[] = { | |
7552 | (char *) "self", NULL | |
7553 | }; | |
7554 | ||
7555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7557 | { | |
7558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7559 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
7560 | ||
7561 | wxPyEndAllowThreads(__tstate); | |
7562 | if (PyErr_Occurred()) SWIG_fail; | |
7563 | } | |
4d5c3d91 | 7564 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7565 | return resultobj; |
7566 | fail: | |
7567 | return NULL; | |
7568 | } | |
7569 | ||
7570 | ||
7571 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7572 | PyObject *resultobj; | |
7573 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7574 | bool arg2 ; | |
7575 | PyObject * obj0 = 0 ; | |
7576 | PyObject * obj1 = 0 ; | |
7577 | char *kwnames[] = { | |
7578 | (char *) "self",(char *) "bDoPass", NULL | |
7579 | }; | |
7580 | ||
7581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7582 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 7583 | { |
994141e6 | 7584 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
7585 | if (PyErr_Occurred()) SWIG_fail; |
7586 | } | |
d14a1e28 RD |
7587 | { |
7588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7589 | (arg1)->PassMessages(arg2); | |
7590 | ||
7591 | wxPyEndAllowThreads(__tstate); | |
7592 | if (PyErr_Occurred()) SWIG_fail; | |
7593 | } | |
7594 | Py_INCREF(Py_None); resultobj = Py_None; | |
7595 | return resultobj; | |
7596 | fail: | |
7597 | return NULL; | |
7598 | } | |
7599 | ||
7600 | ||
7601 | static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) { | |
7602 | PyObject *obj; | |
7603 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7604 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
7605 | Py_INCREF(obj); | |
7606 | return Py_BuildValue((char *)""); | |
7607 | } | |
7608 | static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7609 | PyObject *resultobj; | |
7610 | wxLog *arg1 = (wxLog *) 0 ; | |
7611 | wxLogChain *result; | |
7612 | PyObject * obj0 = 0 ; | |
7613 | char *kwnames[] = { | |
7614 | (char *) "logger", NULL | |
7615 | }; | |
7616 | ||
7617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
7618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7619 | { | |
7620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7621 | result = (wxLogChain *)new wxLogChain(arg1); | |
7622 | ||
7623 | wxPyEndAllowThreads(__tstate); | |
7624 | if (PyErr_Occurred()) SWIG_fail; | |
7625 | } | |
7626 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogChain, 1); | |
7627 | return resultobj; | |
7628 | fail: | |
7629 | return NULL; | |
7630 | } | |
7631 | ||
7632 | ||
7633 | static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7634 | PyObject *resultobj; | |
7635 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7636 | wxLog *arg2 = (wxLog *) 0 ; | |
7637 | PyObject * obj0 = 0 ; | |
7638 | PyObject * obj1 = 0 ; | |
7639 | char *kwnames[] = { | |
7640 | (char *) "self",(char *) "logger", NULL | |
7641 | }; | |
7642 | ||
7643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
7644 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7645 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7646 | { | |
7647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7648 | (arg1)->SetLog(arg2); | |
7649 | ||
7650 | wxPyEndAllowThreads(__tstate); | |
7651 | if (PyErr_Occurred()) SWIG_fail; | |
7652 | } | |
7653 | Py_INCREF(Py_None); resultobj = Py_None; | |
7654 | return resultobj; | |
7655 | fail: | |
7656 | return NULL; | |
7657 | } | |
7658 | ||
7659 | ||
7660 | static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7661 | PyObject *resultobj; | |
7662 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7663 | bool arg2 ; | |
7664 | PyObject * obj0 = 0 ; | |
7665 | PyObject * obj1 = 0 ; | |
7666 | char *kwnames[] = { | |
7667 | (char *) "self",(char *) "bDoPass", NULL | |
7668 | }; | |
7669 | ||
7670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 7672 | { |
994141e6 | 7673 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
7674 | if (PyErr_Occurred()) SWIG_fail; |
7675 | } | |
d14a1e28 RD |
7676 | { |
7677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7678 | (arg1)->PassMessages(arg2); | |
7679 | ||
7680 | wxPyEndAllowThreads(__tstate); | |
7681 | if (PyErr_Occurred()) SWIG_fail; | |
7682 | } | |
7683 | Py_INCREF(Py_None); resultobj = Py_None; | |
7684 | return resultobj; | |
7685 | fail: | |
7686 | return NULL; | |
7687 | } | |
7688 | ||
7689 | ||
7690 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7691 | PyObject *resultobj; | |
7692 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7693 | bool result; | |
7694 | PyObject * obj0 = 0 ; | |
7695 | char *kwnames[] = { | |
7696 | (char *) "self", NULL | |
7697 | }; | |
7698 | ||
7699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7701 | { | |
7702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7703 | result = (bool)(arg1)->IsPassingMessages(); | |
7704 | ||
7705 | wxPyEndAllowThreads(__tstate); | |
7706 | if (PyErr_Occurred()) SWIG_fail; | |
7707 | } | |
4d5c3d91 | 7708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7709 | return resultobj; |
7710 | fail: | |
7711 | return NULL; | |
7712 | } | |
7713 | ||
7714 | ||
7715 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7716 | PyObject *resultobj; | |
7717 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7718 | wxLog *result; | |
7719 | PyObject * obj0 = 0 ; | |
7720 | char *kwnames[] = { | |
7721 | (char *) "self", NULL | |
7722 | }; | |
7723 | ||
7724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
7725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7726 | { | |
7727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7728 | result = (wxLog *)(arg1)->GetOldLog(); | |
7729 | ||
7730 | wxPyEndAllowThreads(__tstate); | |
7731 | if (PyErr_Occurred()) SWIG_fail; | |
7732 | } | |
7733 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
7734 | return resultobj; | |
7735 | fail: | |
7736 | return NULL; | |
7737 | } | |
7738 | ||
7739 | ||
7740 | static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) { | |
7741 | PyObject *obj; | |
7742 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7743 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
7744 | Py_INCREF(obj); | |
7745 | return Py_BuildValue((char *)""); | |
7746 | } | |
7747 | static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7748 | PyObject *resultobj; | |
7749 | unsigned long result; | |
7750 | char *kwnames[] = { | |
7751 | NULL | |
7752 | }; | |
7753 | ||
7754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
7755 | { | |
7756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7757 | result = (unsigned long)wxSysErrorCode(); | |
7758 | ||
7759 | wxPyEndAllowThreads(__tstate); | |
7760 | if (PyErr_Occurred()) SWIG_fail; | |
7761 | } | |
994141e6 | 7762 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7763 | return resultobj; |
7764 | fail: | |
7765 | return NULL; | |
7766 | } | |
7767 | ||
7768 | ||
7769 | static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7770 | PyObject *resultobj; | |
7771 | unsigned long arg1 = (unsigned long) 0 ; | |
7772 | wxString result; | |
7773 | PyObject * obj0 = 0 ; | |
7774 | char *kwnames[] = { | |
7775 | (char *) "nErrCode", NULL | |
7776 | }; | |
7777 | ||
7778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
7779 | if (obj0) { | |
a41e16b6 | 7780 | { |
994141e6 | 7781 | arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0); |
a41e16b6 RD |
7782 | if (PyErr_Occurred()) SWIG_fail; |
7783 | } | |
d14a1e28 RD |
7784 | } |
7785 | { | |
7786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7787 | result = wxSysErrorMsg(arg1); | |
7788 | ||
7789 | wxPyEndAllowThreads(__tstate); | |
7790 | if (PyErr_Occurred()) SWIG_fail; | |
7791 | } | |
7792 | { | |
7793 | #if wxUSE_UNICODE | |
7794 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7795 | #else | |
7796 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7797 | #endif | |
7798 | } | |
7799 | return resultobj; | |
7800 | fail: | |
7801 | return NULL; | |
7802 | } | |
7803 | ||
7804 | ||
7805 | static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7806 | PyObject *resultobj; | |
7807 | wxString *arg1 = 0 ; | |
e811c8ce | 7808 | bool temp1 = False ; |
d14a1e28 RD |
7809 | PyObject * obj0 = 0 ; |
7810 | char *kwnames[] = { | |
7811 | (char *) "msg", NULL | |
7812 | }; | |
7813 | ||
7814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
7815 | { | |
7816 | arg1 = wxString_in_helper(obj0); | |
7817 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7818 | temp1 = True; |
d14a1e28 RD |
7819 | } |
7820 | { | |
7821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7822 | wxLogFatalError((wxString const &)*arg1); | |
7823 | ||
7824 | wxPyEndAllowThreads(__tstate); | |
7825 | if (PyErr_Occurred()) SWIG_fail; | |
7826 | } | |
7827 | Py_INCREF(Py_None); resultobj = Py_None; | |
7828 | { | |
7829 | if (temp1) | |
7830 | delete arg1; | |
7831 | } | |
7832 | return resultobj; | |
7833 | fail: | |
7834 | { | |
7835 | if (temp1) | |
7836 | delete arg1; | |
7837 | } | |
7838 | return NULL; | |
7839 | } | |
7840 | ||
7841 | ||
7842 | static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7843 | PyObject *resultobj; | |
7844 | wxString *arg1 = 0 ; | |
e811c8ce | 7845 | bool temp1 = False ; |
d14a1e28 RD |
7846 | PyObject * obj0 = 0 ; |
7847 | char *kwnames[] = { | |
7848 | (char *) "msg", NULL | |
7849 | }; | |
7850 | ||
7851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
7852 | { | |
7853 | arg1 = wxString_in_helper(obj0); | |
7854 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7855 | temp1 = True; |
d14a1e28 RD |
7856 | } |
7857 | { | |
7858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7859 | wxLogError((wxString const &)*arg1); | |
7860 | ||
7861 | wxPyEndAllowThreads(__tstate); | |
7862 | if (PyErr_Occurred()) SWIG_fail; | |
7863 | } | |
7864 | Py_INCREF(Py_None); resultobj = Py_None; | |
7865 | { | |
7866 | if (temp1) | |
7867 | delete arg1; | |
7868 | } | |
7869 | return resultobj; | |
7870 | fail: | |
7871 | { | |
7872 | if (temp1) | |
7873 | delete arg1; | |
7874 | } | |
7875 | return NULL; | |
7876 | } | |
7877 | ||
7878 | ||
7879 | static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7880 | PyObject *resultobj; | |
7881 | wxString *arg1 = 0 ; | |
e811c8ce | 7882 | bool temp1 = False ; |
d14a1e28 RD |
7883 | PyObject * obj0 = 0 ; |
7884 | char *kwnames[] = { | |
7885 | (char *) "msg", NULL | |
7886 | }; | |
7887 | ||
7888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
7889 | { | |
7890 | arg1 = wxString_in_helper(obj0); | |
7891 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7892 | temp1 = True; |
d14a1e28 RD |
7893 | } |
7894 | { | |
7895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7896 | wxLogWarning((wxString const &)*arg1); | |
7897 | ||
7898 | wxPyEndAllowThreads(__tstate); | |
7899 | if (PyErr_Occurred()) SWIG_fail; | |
7900 | } | |
7901 | Py_INCREF(Py_None); resultobj = Py_None; | |
7902 | { | |
7903 | if (temp1) | |
7904 | delete arg1; | |
7905 | } | |
7906 | return resultobj; | |
7907 | fail: | |
7908 | { | |
7909 | if (temp1) | |
7910 | delete arg1; | |
7911 | } | |
7912 | return NULL; | |
7913 | } | |
7914 | ||
7915 | ||
7916 | static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7917 | PyObject *resultobj; | |
7918 | wxString *arg1 = 0 ; | |
e811c8ce | 7919 | bool temp1 = False ; |
d14a1e28 RD |
7920 | PyObject * obj0 = 0 ; |
7921 | char *kwnames[] = { | |
7922 | (char *) "msg", NULL | |
7923 | }; | |
7924 | ||
7925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
7926 | { | |
7927 | arg1 = wxString_in_helper(obj0); | |
7928 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7929 | temp1 = True; |
d14a1e28 RD |
7930 | } |
7931 | { | |
7932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7933 | wxLogMessage((wxString const &)*arg1); | |
7934 | ||
7935 | wxPyEndAllowThreads(__tstate); | |
7936 | if (PyErr_Occurred()) SWIG_fail; | |
7937 | } | |
7938 | Py_INCREF(Py_None); resultobj = Py_None; | |
7939 | { | |
7940 | if (temp1) | |
7941 | delete arg1; | |
7942 | } | |
7943 | return resultobj; | |
7944 | fail: | |
7945 | { | |
7946 | if (temp1) | |
7947 | delete arg1; | |
7948 | } | |
7949 | return NULL; | |
7950 | } | |
7951 | ||
7952 | ||
7953 | static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7954 | PyObject *resultobj; | |
7955 | wxString *arg1 = 0 ; | |
e811c8ce | 7956 | bool temp1 = False ; |
d14a1e28 RD |
7957 | PyObject * obj0 = 0 ; |
7958 | char *kwnames[] = { | |
7959 | (char *) "msg", NULL | |
7960 | }; | |
7961 | ||
7962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
7963 | { | |
7964 | arg1 = wxString_in_helper(obj0); | |
7965 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7966 | temp1 = True; |
d14a1e28 RD |
7967 | } |
7968 | { | |
7969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7970 | wxLogInfo((wxString const &)*arg1); | |
7971 | ||
7972 | wxPyEndAllowThreads(__tstate); | |
7973 | if (PyErr_Occurred()) SWIG_fail; | |
7974 | } | |
7975 | Py_INCREF(Py_None); resultobj = Py_None; | |
7976 | { | |
7977 | if (temp1) | |
7978 | delete arg1; | |
7979 | } | |
7980 | return resultobj; | |
7981 | fail: | |
7982 | { | |
7983 | if (temp1) | |
7984 | delete arg1; | |
7985 | } | |
7986 | return NULL; | |
7987 | } | |
7988 | ||
7989 | ||
7990 | static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7991 | PyObject *resultobj; | |
7992 | wxString *arg1 = 0 ; | |
e811c8ce | 7993 | bool temp1 = False ; |
d14a1e28 RD |
7994 | PyObject * obj0 = 0 ; |
7995 | char *kwnames[] = { | |
7996 | (char *) "msg", NULL | |
7997 | }; | |
7998 | ||
7999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
8000 | { | |
8001 | arg1 = wxString_in_helper(obj0); | |
8002 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8003 | temp1 = True; |
d14a1e28 RD |
8004 | } |
8005 | { | |
8006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8007 | wxLogDebug((wxString const &)*arg1); | |
8008 | ||
8009 | wxPyEndAllowThreads(__tstate); | |
8010 | if (PyErr_Occurred()) SWIG_fail; | |
8011 | } | |
8012 | Py_INCREF(Py_None); resultobj = Py_None; | |
8013 | { | |
8014 | if (temp1) | |
8015 | delete arg1; | |
8016 | } | |
8017 | return resultobj; | |
8018 | fail: | |
8019 | { | |
8020 | if (temp1) | |
8021 | delete arg1; | |
8022 | } | |
8023 | return NULL; | |
8024 | } | |
8025 | ||
8026 | ||
8027 | static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8028 | PyObject *resultobj; | |
8029 | wxString *arg1 = 0 ; | |
e811c8ce | 8030 | bool temp1 = False ; |
d14a1e28 RD |
8031 | PyObject * obj0 = 0 ; |
8032 | char *kwnames[] = { | |
8033 | (char *) "msg", NULL | |
8034 | }; | |
8035 | ||
8036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
8037 | { | |
8038 | arg1 = wxString_in_helper(obj0); | |
8039 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8040 | temp1 = True; |
d14a1e28 RD |
8041 | } |
8042 | { | |
8043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8044 | wxLogVerbose((wxString const &)*arg1); | |
8045 | ||
8046 | wxPyEndAllowThreads(__tstate); | |
8047 | if (PyErr_Occurred()) SWIG_fail; | |
8048 | } | |
8049 | Py_INCREF(Py_None); resultobj = Py_None; | |
8050 | { | |
8051 | if (temp1) | |
8052 | delete arg1; | |
8053 | } | |
8054 | return resultobj; | |
8055 | fail: | |
8056 | { | |
8057 | if (temp1) | |
8058 | delete arg1; | |
8059 | } | |
8060 | return NULL; | |
8061 | } | |
8062 | ||
8063 | ||
8064 | static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8065 | PyObject *resultobj; | |
8066 | wxString *arg1 = 0 ; | |
e811c8ce | 8067 | bool temp1 = False ; |
d14a1e28 RD |
8068 | PyObject * obj0 = 0 ; |
8069 | char *kwnames[] = { | |
8070 | (char *) "msg", NULL | |
8071 | }; | |
8072 | ||
8073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
8074 | { | |
8075 | arg1 = wxString_in_helper(obj0); | |
8076 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8077 | temp1 = True; |
d14a1e28 RD |
8078 | } |
8079 | { | |
8080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8081 | wxLogStatus((wxString const &)*arg1); | |
8082 | ||
8083 | wxPyEndAllowThreads(__tstate); | |
8084 | if (PyErr_Occurred()) SWIG_fail; | |
8085 | } | |
8086 | Py_INCREF(Py_None); resultobj = Py_None; | |
8087 | { | |
8088 | if (temp1) | |
8089 | delete arg1; | |
8090 | } | |
8091 | return resultobj; | |
8092 | fail: | |
8093 | { | |
8094 | if (temp1) | |
8095 | delete arg1; | |
8096 | } | |
8097 | return NULL; | |
8098 | } | |
8099 | ||
8100 | ||
8101 | static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8102 | PyObject *resultobj; | |
8103 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8104 | wxString *arg2 = 0 ; | |
e811c8ce | 8105 | bool temp2 = False ; |
d14a1e28 RD |
8106 | PyObject * obj0 = 0 ; |
8107 | PyObject * obj1 = 0 ; | |
8108 | char *kwnames[] = { | |
8109 | (char *) "pFrame",(char *) "msg", NULL | |
8110 | }; | |
8111 | ||
8112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
8113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8114 | { | |
8115 | arg2 = wxString_in_helper(obj1); | |
8116 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8117 | temp2 = True; |
d14a1e28 RD |
8118 | } |
8119 | { | |
8120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8121 | wxLogStatus(arg1,(wxString const &)*arg2); | |
8122 | ||
8123 | wxPyEndAllowThreads(__tstate); | |
8124 | if (PyErr_Occurred()) SWIG_fail; | |
8125 | } | |
8126 | Py_INCREF(Py_None); resultobj = Py_None; | |
8127 | { | |
8128 | if (temp2) | |
8129 | delete arg2; | |
8130 | } | |
8131 | return resultobj; | |
8132 | fail: | |
8133 | { | |
8134 | if (temp2) | |
8135 | delete arg2; | |
8136 | } | |
8137 | return NULL; | |
8138 | } | |
8139 | ||
8140 | ||
8141 | static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8142 | PyObject *resultobj; | |
8143 | wxString *arg1 = 0 ; | |
e811c8ce | 8144 | bool temp1 = False ; |
d14a1e28 RD |
8145 | PyObject * obj0 = 0 ; |
8146 | char *kwnames[] = { | |
8147 | (char *) "msg", NULL | |
8148 | }; | |
8149 | ||
8150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
8151 | { | |
8152 | arg1 = wxString_in_helper(obj0); | |
8153 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8154 | temp1 = True; |
d14a1e28 RD |
8155 | } |
8156 | { | |
8157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8158 | wxLogSysError((wxString const &)*arg1); | |
8159 | ||
8160 | wxPyEndAllowThreads(__tstate); | |
8161 | if (PyErr_Occurred()) SWIG_fail; | |
8162 | } | |
8163 | Py_INCREF(Py_None); resultobj = Py_None; | |
8164 | { | |
8165 | if (temp1) | |
8166 | delete arg1; | |
8167 | } | |
8168 | return resultobj; | |
8169 | fail: | |
8170 | { | |
8171 | if (temp1) | |
8172 | delete arg1; | |
8173 | } | |
8174 | return NULL; | |
8175 | } | |
8176 | ||
8177 | ||
cc6dd355 | 8178 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 | 8179 | PyObject *resultobj; |
cc6dd355 RD |
8180 | unsigned long arg1 ; |
8181 | wxString *arg2 = 0 ; | |
8182 | bool temp2 = False ; | |
d14a1e28 | 8183 | PyObject * obj0 = 0 ; |
cc6dd355 | 8184 | PyObject * obj1 = 0 ; |
d14a1e28 | 8185 | |
cc6dd355 | 8186 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
a41e16b6 | 8187 | { |
994141e6 | 8188 | arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0); |
a41e16b6 RD |
8189 | if (PyErr_Occurred()) SWIG_fail; |
8190 | } | |
d14a1e28 | 8191 | { |
cc6dd355 RD |
8192 | arg2 = wxString_in_helper(obj1); |
8193 | if (arg2 == NULL) SWIG_fail; | |
8194 | temp2 = True; | |
d14a1e28 RD |
8195 | } |
8196 | { | |
8197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
cc6dd355 | 8198 | wxLogTrace(arg1,(wxString const &)*arg2); |
d14a1e28 RD |
8199 | |
8200 | wxPyEndAllowThreads(__tstate); | |
8201 | if (PyErr_Occurred()) SWIG_fail; | |
8202 | } | |
8203 | Py_INCREF(Py_None); resultobj = Py_None; | |
8204 | { | |
cc6dd355 RD |
8205 | if (temp2) |
8206 | delete arg2; | |
d14a1e28 RD |
8207 | } |
8208 | return resultobj; | |
8209 | fail: | |
8210 | { | |
cc6dd355 RD |
8211 | if (temp2) |
8212 | delete arg2; | |
d14a1e28 RD |
8213 | } |
8214 | return NULL; | |
8215 | } | |
8216 | ||
8217 | ||
cc6dd355 | 8218 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
8219 | PyObject *resultobj; |
8220 | wxString *arg1 = 0 ; | |
8221 | wxString *arg2 = 0 ; | |
e811c8ce RD |
8222 | bool temp1 = False ; |
8223 | bool temp2 = False ; | |
d14a1e28 RD |
8224 | PyObject * obj0 = 0 ; |
8225 | PyObject * obj1 = 0 ; | |
d14a1e28 | 8226 | |
cc6dd355 | 8227 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
8228 | { |
8229 | arg1 = wxString_in_helper(obj0); | |
8230 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8231 | temp1 = True; |
d14a1e28 RD |
8232 | } |
8233 | { | |
8234 | arg2 = wxString_in_helper(obj1); | |
8235 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8236 | temp2 = True; |
d14a1e28 RD |
8237 | } |
8238 | { | |
8239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8240 | wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); | |
8241 | ||
8242 | wxPyEndAllowThreads(__tstate); | |
8243 | if (PyErr_Occurred()) SWIG_fail; | |
8244 | } | |
8245 | Py_INCREF(Py_None); resultobj = Py_None; | |
8246 | { | |
8247 | if (temp1) | |
8248 | delete arg1; | |
8249 | } | |
8250 | { | |
8251 | if (temp2) | |
8252 | delete arg2; | |
8253 | } | |
8254 | return resultobj; | |
8255 | fail: | |
8256 | { | |
8257 | if (temp1) | |
8258 | delete arg1; | |
8259 | } | |
8260 | { | |
8261 | if (temp2) | |
8262 | delete arg2; | |
8263 | } | |
8264 | return NULL; | |
8265 | } | |
8266 | ||
8267 | ||
cc6dd355 RD |
8268 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { |
8269 | int argc; | |
8270 | PyObject *argv[3]; | |
8271 | int ii; | |
8272 | ||
8273 | argc = PyObject_Length(args); | |
8274 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
8275 | argv[ii] = PyTuple_GetItem(args,ii); | |
8276 | } | |
8277 | if (argc == 2) { | |
8278 | int _v; | |
8279 | { | |
4d5c3d91 | 8280 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
cc6dd355 RD |
8281 | } |
8282 | if (_v) { | |
8283 | { | |
4d5c3d91 | 8284 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
cc6dd355 RD |
8285 | } |
8286 | if (_v) { | |
8287 | return _wrap_LogTrace__SWIG_1(self,args); | |
8288 | } | |
8289 | } | |
8290 | } | |
8291 | if (argc == 2) { | |
8292 | int _v; | |
8293 | { | |
994141e6 | 8294 | SWIG_PyObj_AsUnsignedLong(argv[0]); |
a41e16b6 RD |
8295 | if (PyErr_Occurred()) { |
8296 | _v = 0; | |
8297 | PyErr_Clear(); | |
8298 | } else { | |
8299 | _v = 1; | |
8300 | } | |
cc6dd355 RD |
8301 | } |
8302 | if (_v) { | |
8303 | { | |
4d5c3d91 | 8304 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
cc6dd355 RD |
8305 | } |
8306 | if (_v) { | |
8307 | return _wrap_LogTrace__SWIG_0(self,args); | |
8308 | } | |
8309 | } | |
8310 | } | |
8311 | ||
8312 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
8313 | return NULL; | |
8314 | } | |
8315 | ||
8316 | ||
d14a1e28 RD |
8317 | static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { |
8318 | PyObject *resultobj; | |
8319 | unsigned long arg1 ; | |
8320 | wxString *arg2 = 0 ; | |
e811c8ce | 8321 | bool temp2 = False ; |
d14a1e28 RD |
8322 | PyObject * obj0 = 0 ; |
8323 | PyObject * obj1 = 0 ; | |
8324 | char *kwnames[] = { | |
8325 | (char *) "level",(char *) "msg", NULL | |
8326 | }; | |
8327 | ||
8328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
a41e16b6 | 8329 | { |
994141e6 | 8330 | arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0); |
a41e16b6 RD |
8331 | if (PyErr_Occurred()) SWIG_fail; |
8332 | } | |
d14a1e28 RD |
8333 | { |
8334 | arg2 = wxString_in_helper(obj1); | |
8335 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8336 | temp2 = True; |
d14a1e28 RD |
8337 | } |
8338 | { | |
8339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8340 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
8341 | ||
8342 | wxPyEndAllowThreads(__tstate); | |
8343 | if (PyErr_Occurred()) SWIG_fail; | |
8344 | } | |
8345 | Py_INCREF(Py_None); resultobj = Py_None; | |
8346 | { | |
8347 | if (temp2) | |
8348 | delete arg2; | |
8349 | } | |
8350 | return resultobj; | |
8351 | fail: | |
8352 | { | |
8353 | if (temp2) | |
8354 | delete arg2; | |
8355 | } | |
8356 | return NULL; | |
8357 | } | |
8358 | ||
8359 | ||
8360 | static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8361 | PyObject *resultobj; | |
8362 | wxString *arg1 = 0 ; | |
8363 | wxString *arg2 = 0 ; | |
e811c8ce RD |
8364 | bool temp1 = False ; |
8365 | bool temp2 = False ; | |
d14a1e28 RD |
8366 | PyObject * obj0 = 0 ; |
8367 | PyObject * obj1 = 0 ; | |
8368 | char *kwnames[] = { | |
8369 | (char *) "title",(char *) "text", NULL | |
8370 | }; | |
8371 | ||
8372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
8373 | { | |
8374 | arg1 = wxString_in_helper(obj0); | |
8375 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8376 | temp1 = True; |
d14a1e28 RD |
8377 | } |
8378 | { | |
8379 | arg2 = wxString_in_helper(obj1); | |
8380 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8381 | temp2 = True; |
d14a1e28 RD |
8382 | } |
8383 | { | |
8384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8385 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
8386 | ||
8387 | wxPyEndAllowThreads(__tstate); | |
8388 | if (PyErr_Occurred()) SWIG_fail; | |
8389 | } | |
8390 | Py_INCREF(Py_None); resultobj = Py_None; | |
8391 | { | |
8392 | if (temp1) | |
8393 | delete arg1; | |
8394 | } | |
8395 | { | |
8396 | if (temp2) | |
8397 | delete arg2; | |
8398 | } | |
8399 | return resultobj; | |
8400 | fail: | |
8401 | { | |
8402 | if (temp1) | |
8403 | delete arg1; | |
8404 | } | |
8405 | { | |
8406 | if (temp2) | |
8407 | delete arg2; | |
8408 | } | |
8409 | return NULL; | |
8410 | } | |
8411 | ||
8412 | ||
8413 | static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8414 | PyObject *resultobj; | |
8415 | wxLogNull *result; | |
8416 | char *kwnames[] = { | |
8417 | NULL | |
8418 | }; | |
8419 | ||
8420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
8421 | { | |
8422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8423 | result = (wxLogNull *)new wxLogNull(); | |
8424 | ||
8425 | wxPyEndAllowThreads(__tstate); | |
8426 | if (PyErr_Occurred()) SWIG_fail; | |
8427 | } | |
8428 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogNull, 1); | |
8429 | return resultobj; | |
8430 | fail: | |
8431 | return NULL; | |
8432 | } | |
8433 | ||
8434 | ||
8435 | static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8436 | PyObject *resultobj; | |
8437 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
8438 | PyObject * obj0 = 0 ; | |
8439 | char *kwnames[] = { | |
8440 | (char *) "self", NULL | |
8441 | }; | |
8442 | ||
8443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
8444 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogNull,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8445 | { | |
8446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8447 | delete arg1; | |
8448 | ||
8449 | wxPyEndAllowThreads(__tstate); | |
8450 | if (PyErr_Occurred()) SWIG_fail; | |
8451 | } | |
8452 | Py_INCREF(Py_None); resultobj = Py_None; | |
8453 | return resultobj; | |
8454 | fail: | |
8455 | return NULL; | |
8456 | } | |
8457 | ||
8458 | ||
8459 | static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) { | |
8460 | PyObject *obj; | |
8461 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8462 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
8463 | Py_INCREF(obj); | |
8464 | return Py_BuildValue((char *)""); | |
8465 | } | |
8466 | static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8467 | PyObject *resultobj; | |
8468 | wxPyLog *result; | |
8469 | char *kwnames[] = { | |
8470 | NULL | |
8471 | }; | |
8472 | ||
8473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
8474 | { | |
8475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8476 | result = (wxPyLog *)new wxPyLog(); | |
8477 | ||
8478 | wxPyEndAllowThreads(__tstate); | |
8479 | if (PyErr_Occurred()) SWIG_fail; | |
8480 | } | |
8481 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyLog, 1); | |
8482 | return resultobj; | |
8483 | fail: | |
8484 | return NULL; | |
8485 | } | |
8486 | ||
8487 | ||
8488 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8489 | PyObject *resultobj; | |
8490 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
8491 | PyObject *arg2 = (PyObject *) 0 ; | |
8492 | PyObject *arg3 = (PyObject *) 0 ; | |
8493 | PyObject * obj0 = 0 ; | |
8494 | PyObject * obj1 = 0 ; | |
8495 | PyObject * obj2 = 0 ; | |
8496 | char *kwnames[] = { | |
8497 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8498 | }; | |
8499 | ||
8500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8502 | arg2 = obj1; | |
8503 | arg3 = obj2; | |
8504 | { | |
8505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8506 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8507 | ||
8508 | wxPyEndAllowThreads(__tstate); | |
8509 | if (PyErr_Occurred()) SWIG_fail; | |
8510 | } | |
8511 | Py_INCREF(Py_None); resultobj = Py_None; | |
8512 | return resultobj; | |
8513 | fail: | |
8514 | return NULL; | |
8515 | } | |
8516 | ||
8517 | ||
8518 | static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) { | |
8519 | PyObject *obj; | |
8520 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8521 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
8522 | Py_INCREF(obj); | |
8523 | return Py_BuildValue((char *)""); | |
8524 | } | |
8525 | static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8526 | PyObject *resultobj; | |
8527 | int arg1 ; | |
8528 | int arg2 = (int) wxSIGTERM ; | |
8529 | int result; | |
994141e6 RD |
8530 | PyObject * obj0 = 0 ; |
8531 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8532 | char *kwnames[] = { |
8533 | (char *) "pid",(char *) "sig", NULL | |
8534 | }; | |
8535 | ||
994141e6 RD |
8536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail; |
8537 | { | |
8538 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
8539 | if (PyErr_Occurred()) SWIG_fail; | |
8540 | } | |
8541 | if (obj1) { | |
8542 | { | |
8543 | arg2 = (wxSignal) SWIG_PyObj_AsInt(obj1); | |
8544 | if (PyErr_Occurred()) SWIG_fail; | |
8545 | } | |
8546 | } | |
d14a1e28 RD |
8547 | { |
8548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8549 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
8550 | ||
8551 | wxPyEndAllowThreads(__tstate); | |
8552 | if (PyErr_Occurred()) SWIG_fail; | |
8553 | } | |
994141e6 | 8554 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8555 | return resultobj; |
8556 | fail: | |
8557 | return NULL; | |
8558 | } | |
8559 | ||
8560 | ||
8561 | static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8562 | PyObject *resultobj; | |
8563 | int arg1 ; | |
8564 | bool result; | |
994141e6 | 8565 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
8566 | char *kwnames[] = { |
8567 | (char *) "pid", NULL | |
8568 | }; | |
8569 | ||
994141e6 RD |
8570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; |
8571 | { | |
8572 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
8573 | if (PyErr_Occurred()) SWIG_fail; | |
8574 | } | |
d14a1e28 RD |
8575 | { |
8576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8577 | result = (bool)wxPyProcess::Exists(arg1); | |
8578 | ||
8579 | wxPyEndAllowThreads(__tstate); | |
8580 | if (PyErr_Occurred()) SWIG_fail; | |
8581 | } | |
4d5c3d91 | 8582 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8583 | return resultobj; |
8584 | fail: | |
8585 | return NULL; | |
8586 | } | |
8587 | ||
8588 | ||
8589 | static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8590 | PyObject *resultobj; | |
8591 | wxString *arg1 = 0 ; | |
8592 | int arg2 = (int) wxEXEC_ASYNC ; | |
8593 | wxPyProcess *result; | |
e811c8ce | 8594 | bool temp1 = False ; |
d14a1e28 | 8595 | PyObject * obj0 = 0 ; |
994141e6 | 8596 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8597 | char *kwnames[] = { |
8598 | (char *) "cmd",(char *) "flags", NULL | |
8599 | }; | |
8600 | ||
994141e6 | 8601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
8602 | { |
8603 | arg1 = wxString_in_helper(obj0); | |
8604 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8605 | temp1 = True; |
d14a1e28 | 8606 | } |
994141e6 RD |
8607 | if (obj1) { |
8608 | { | |
8609 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8610 | if (PyErr_Occurred()) SWIG_fail; | |
8611 | } | |
8612 | } | |
d14a1e28 RD |
8613 | { |
8614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8615 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
8616 | ||
8617 | wxPyEndAllowThreads(__tstate); | |
8618 | if (PyErr_Occurred()) SWIG_fail; | |
8619 | } | |
8620 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyProcess, 0); | |
8621 | { | |
8622 | if (temp1) | |
8623 | delete arg1; | |
8624 | } | |
8625 | return resultobj; | |
8626 | fail: | |
8627 | { | |
8628 | if (temp1) | |
8629 | delete arg1; | |
8630 | } | |
8631 | return NULL; | |
8632 | } | |
8633 | ||
8634 | ||
8635 | static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8636 | PyObject *resultobj; | |
8637 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
8638 | int arg2 = (int) -1 ; | |
8639 | wxPyProcess *result; | |
8640 | PyObject * obj0 = 0 ; | |
994141e6 | 8641 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8642 | char *kwnames[] = { |
8643 | (char *) "parent",(char *) "id", NULL | |
8644 | }; | |
8645 | ||
994141e6 | 8646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
8647 | if (obj0) { |
8648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8649 | } | |
994141e6 RD |
8650 | if (obj1) { |
8651 | { | |
8652 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8653 | if (PyErr_Occurred()) SWIG_fail; | |
8654 | } | |
8655 | } | |
d14a1e28 RD |
8656 | { |
8657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8658 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
8659 | ||
8660 | wxPyEndAllowThreads(__tstate); | |
8661 | if (PyErr_Occurred()) SWIG_fail; | |
8662 | } | |
8663 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyProcess, 1); | |
8664 | return resultobj; | |
8665 | fail: | |
8666 | return NULL; | |
8667 | } | |
8668 | ||
8669 | ||
8670 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8671 | PyObject *resultobj; | |
8672 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8673 | PyObject *arg2 = (PyObject *) 0 ; | |
8674 | PyObject *arg3 = (PyObject *) 0 ; | |
8675 | PyObject * obj0 = 0 ; | |
8676 | PyObject * obj1 = 0 ; | |
8677 | PyObject * obj2 = 0 ; | |
8678 | char *kwnames[] = { | |
8679 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8680 | }; | |
8681 | ||
8682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8684 | arg2 = obj1; | |
8685 | arg3 = obj2; | |
8686 | { | |
8687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8688 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8689 | ||
8690 | wxPyEndAllowThreads(__tstate); | |
8691 | if (PyErr_Occurred()) SWIG_fail; | |
8692 | } | |
8693 | Py_INCREF(Py_None); resultobj = Py_None; | |
8694 | return resultobj; | |
8695 | fail: | |
8696 | return NULL; | |
8697 | } | |
8698 | ||
8699 | ||
8700 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8701 | PyObject *resultobj; | |
8702 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8703 | int arg2 ; | |
8704 | int arg3 ; | |
8705 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8706 | PyObject * obj1 = 0 ; |
8707 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8708 | char *kwnames[] = { |
8709 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
8710 | }; | |
8711 | ||
994141e6 | 8712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8714 | { |
8715 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8716 | if (PyErr_Occurred()) SWIG_fail; | |
8717 | } | |
8718 | { | |
8719 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8720 | if (PyErr_Occurred()) SWIG_fail; | |
8721 | } | |
d14a1e28 RD |
8722 | { |
8723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8724 | (arg1)->base_OnTerminate(arg2,arg3); | |
8725 | ||
8726 | wxPyEndAllowThreads(__tstate); | |
8727 | if (PyErr_Occurred()) SWIG_fail; | |
8728 | } | |
8729 | Py_INCREF(Py_None); resultobj = Py_None; | |
8730 | return resultobj; | |
8731 | fail: | |
8732 | return NULL; | |
8733 | } | |
8734 | ||
8735 | ||
8736 | static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8737 | PyObject *resultobj; | |
8738 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8739 | PyObject * obj0 = 0 ; | |
8740 | char *kwnames[] = { | |
8741 | (char *) "self", NULL | |
8742 | }; | |
8743 | ||
8744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
8745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8746 | { | |
8747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8748 | (arg1)->Redirect(); | |
8749 | ||
8750 | wxPyEndAllowThreads(__tstate); | |
8751 | if (PyErr_Occurred()) SWIG_fail; | |
8752 | } | |
8753 | Py_INCREF(Py_None); resultobj = Py_None; | |
8754 | return resultobj; | |
8755 | fail: | |
8756 | return NULL; | |
8757 | } | |
8758 | ||
8759 | ||
8760 | static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8761 | PyObject *resultobj; | |
8762 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8763 | bool result; | |
8764 | PyObject * obj0 = 0 ; | |
8765 | char *kwnames[] = { | |
8766 | (char *) "self", NULL | |
8767 | }; | |
8768 | ||
8769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
8770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8771 | { | |
8772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8773 | result = (bool)(arg1)->IsRedirected(); | |
8774 | ||
8775 | wxPyEndAllowThreads(__tstate); | |
8776 | if (PyErr_Occurred()) SWIG_fail; | |
8777 | } | |
4d5c3d91 | 8778 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8779 | return resultobj; |
8780 | fail: | |
8781 | return NULL; | |
8782 | } | |
8783 | ||
8784 | ||
8785 | static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8786 | PyObject *resultobj; | |
8787 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8788 | PyObject * obj0 = 0 ; | |
8789 | char *kwnames[] = { | |
8790 | (char *) "self", NULL | |
8791 | }; | |
8792 | ||
8793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
8794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8795 | { | |
8796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8797 | (arg1)->Detach(); | |
8798 | ||
8799 | wxPyEndAllowThreads(__tstate); | |
8800 | if (PyErr_Occurred()) SWIG_fail; | |
8801 | } | |
8802 | Py_INCREF(Py_None); resultobj = Py_None; | |
8803 | return resultobj; | |
8804 | fail: | |
8805 | return NULL; | |
8806 | } | |
8807 | ||
8808 | ||
8809 | static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8810 | PyObject *resultobj; | |
8811 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8812 | wxInputStream *result; | |
8813 | PyObject * obj0 = 0 ; | |
8814 | char *kwnames[] = { | |
8815 | (char *) "self", NULL | |
8816 | }; | |
8817 | ||
8818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
8819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8820 | { | |
8821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8822 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
8823 | ||
8824 | wxPyEndAllowThreads(__tstate); | |
8825 | if (PyErr_Occurred()) SWIG_fail; | |
8826 | } | |
8827 | { | |
8828 | wxPyInputStream * _ptr = NULL; | |
8829 | ||
8830 | if (result) { | |
8831 | _ptr = new wxPyInputStream(result); | |
8832 | } | |
e811c8ce | 8833 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
8834 | } |
8835 | return resultobj; | |
8836 | fail: | |
8837 | return NULL; | |
8838 | } | |
8839 | ||
8840 | ||
8841 | static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8842 | PyObject *resultobj; | |
8843 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8844 | wxInputStream *result; | |
8845 | PyObject * obj0 = 0 ; | |
8846 | char *kwnames[] = { | |
8847 | (char *) "self", NULL | |
8848 | }; | |
8849 | ||
8850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
8851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8852 | { | |
8853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8854 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
8855 | ||
8856 | wxPyEndAllowThreads(__tstate); | |
8857 | if (PyErr_Occurred()) SWIG_fail; | |
8858 | } | |
8859 | { | |
8860 | wxPyInputStream * _ptr = NULL; | |
8861 | ||
8862 | if (result) { | |
8863 | _ptr = new wxPyInputStream(result); | |
8864 | } | |
e811c8ce | 8865 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
8866 | } |
8867 | return resultobj; | |
8868 | fail: | |
8869 | return NULL; | |
8870 | } | |
8871 | ||
8872 | ||
8873 | static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8874 | PyObject *resultobj; | |
8875 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8876 | wxOutputStream *result; | |
8877 | PyObject * obj0 = 0 ; | |
8878 | char *kwnames[] = { | |
8879 | (char *) "self", NULL | |
8880 | }; | |
8881 | ||
8882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
8883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8884 | { | |
8885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8886 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
8887 | ||
8888 | wxPyEndAllowThreads(__tstate); | |
8889 | if (PyErr_Occurred()) SWIG_fail; | |
8890 | } | |
8891 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxOutputStream, 0); | |
8892 | return resultobj; | |
8893 | fail: | |
8894 | return NULL; | |
8895 | } | |
8896 | ||
8897 | ||
8898 | static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8899 | PyObject *resultobj; | |
8900 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8901 | PyObject * obj0 = 0 ; | |
8902 | char *kwnames[] = { | |
8903 | (char *) "self", NULL | |
8904 | }; | |
8905 | ||
8906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
8907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8908 | { | |
8909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8910 | (arg1)->CloseOutput(); | |
8911 | ||
8912 | wxPyEndAllowThreads(__tstate); | |
8913 | if (PyErr_Occurred()) SWIG_fail; | |
8914 | } | |
8915 | Py_INCREF(Py_None); resultobj = Py_None; | |
8916 | return resultobj; | |
8917 | fail: | |
8918 | return NULL; | |
8919 | } | |
8920 | ||
8921 | ||
8922 | static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8923 | PyObject *resultobj; | |
8924 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8925 | bool result; | |
8926 | PyObject * obj0 = 0 ; | |
8927 | char *kwnames[] = { | |
8928 | (char *) "self", NULL | |
8929 | }; | |
8930 | ||
8931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
8932 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8933 | { | |
8934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8935 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
8936 | ||
8937 | wxPyEndAllowThreads(__tstate); | |
8938 | if (PyErr_Occurred()) SWIG_fail; | |
8939 | } | |
4d5c3d91 | 8940 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8941 | return resultobj; |
8942 | fail: | |
8943 | return NULL; | |
8944 | } | |
8945 | ||
8946 | ||
8947 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8948 | PyObject *resultobj; | |
8949 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8950 | bool result; | |
8951 | PyObject * obj0 = 0 ; | |
8952 | char *kwnames[] = { | |
8953 | (char *) "self", NULL | |
8954 | }; | |
8955 | ||
8956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
8957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8958 | { | |
8959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8960 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
8961 | ||
8962 | wxPyEndAllowThreads(__tstate); | |
8963 | if (PyErr_Occurred()) SWIG_fail; | |
8964 | } | |
4d5c3d91 | 8965 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8966 | return resultobj; |
8967 | fail: | |
8968 | return NULL; | |
8969 | } | |
8970 | ||
8971 | ||
8972 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8973 | PyObject *resultobj; | |
8974 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8975 | bool result; | |
8976 | PyObject * obj0 = 0 ; | |
8977 | char *kwnames[] = { | |
8978 | (char *) "self", NULL | |
8979 | }; | |
8980 | ||
8981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
8982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8983 | { | |
8984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8985 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
8986 | ||
8987 | wxPyEndAllowThreads(__tstate); | |
8988 | if (PyErr_Occurred()) SWIG_fail; | |
8989 | } | |
4d5c3d91 | 8990 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8991 | return resultobj; |
8992 | fail: | |
8993 | return NULL; | |
8994 | } | |
8995 | ||
8996 | ||
8997 | static PyObject * Process_swigregister(PyObject *self, PyObject *args) { | |
8998 | PyObject *obj; | |
8999 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9000 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
9001 | Py_INCREF(obj); | |
9002 | return Py_BuildValue((char *)""); | |
9003 | } | |
9004 | static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9005 | PyObject *resultobj; | |
9006 | int arg1 = (int) 0 ; | |
9007 | int arg2 = (int) 0 ; | |
9008 | int arg3 = (int) 0 ; | |
9009 | wxProcessEvent *result; | |
994141e6 RD |
9010 | PyObject * obj0 = 0 ; |
9011 | PyObject * obj1 = 0 ; | |
9012 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9013 | char *kwnames[] = { |
9014 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
9015 | }; | |
9016 | ||
994141e6 RD |
9017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
9018 | if (obj0) { | |
9019 | { | |
9020 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9021 | if (PyErr_Occurred()) SWIG_fail; | |
9022 | } | |
9023 | } | |
9024 | if (obj1) { | |
9025 | { | |
9026 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9027 | if (PyErr_Occurred()) SWIG_fail; | |
9028 | } | |
9029 | } | |
9030 | if (obj2) { | |
9031 | { | |
9032 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9033 | if (PyErr_Occurred()) SWIG_fail; | |
9034 | } | |
9035 | } | |
d14a1e28 RD |
9036 | { |
9037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9038 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
9039 | ||
9040 | wxPyEndAllowThreads(__tstate); | |
9041 | if (PyErr_Occurred()) SWIG_fail; | |
9042 | } | |
9043 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxProcessEvent, 1); | |
9044 | return resultobj; | |
9045 | fail: | |
9046 | return NULL; | |
9047 | } | |
9048 | ||
9049 | ||
9050 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9051 | PyObject *resultobj; | |
9052 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9053 | int result; | |
9054 | PyObject * obj0 = 0 ; | |
9055 | char *kwnames[] = { | |
9056 | (char *) "self", NULL | |
9057 | }; | |
9058 | ||
9059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
9060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9061 | { | |
9062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9063 | result = (int)(arg1)->GetPid(); | |
9064 | ||
9065 | wxPyEndAllowThreads(__tstate); | |
9066 | if (PyErr_Occurred()) SWIG_fail; | |
9067 | } | |
994141e6 | 9068 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9069 | return resultobj; |
9070 | fail: | |
9071 | return NULL; | |
9072 | } | |
9073 | ||
9074 | ||
9075 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9076 | PyObject *resultobj; | |
9077 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9078 | int result; | |
9079 | PyObject * obj0 = 0 ; | |
9080 | char *kwnames[] = { | |
9081 | (char *) "self", NULL | |
9082 | }; | |
9083 | ||
9084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
9085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9086 | { | |
9087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9088 | result = (int)(arg1)->GetExitCode(); | |
9089 | ||
9090 | wxPyEndAllowThreads(__tstate); | |
9091 | if (PyErr_Occurred()) SWIG_fail; | |
9092 | } | |
994141e6 | 9093 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9094 | return resultobj; |
9095 | fail: | |
9096 | return NULL; | |
9097 | } | |
9098 | ||
9099 | ||
9100 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9101 | PyObject *resultobj; | |
9102 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9103 | int arg2 ; | |
9104 | PyObject * obj0 = 0 ; | |
994141e6 | 9105 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9106 | char *kwnames[] = { |
9107 | (char *) "self",(char *) "m_pid", NULL | |
9108 | }; | |
9109 | ||
994141e6 | 9110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
9112 | { |
9113 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9114 | if (PyErr_Occurred()) SWIG_fail; | |
9115 | } | |
d14a1e28 RD |
9116 | if (arg1) (arg1)->m_pid = arg2; |
9117 | ||
9118 | Py_INCREF(Py_None); resultobj = Py_None; | |
9119 | return resultobj; | |
9120 | fail: | |
9121 | return NULL; | |
9122 | } | |
9123 | ||
9124 | ||
9125 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9126 | PyObject *resultobj; | |
9127 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9128 | int result; | |
9129 | PyObject * obj0 = 0 ; | |
9130 | char *kwnames[] = { | |
9131 | (char *) "self", NULL | |
9132 | }; | |
9133 | ||
9134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
9135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9136 | result = (int) ((arg1)->m_pid); | |
9137 | ||
994141e6 | 9138 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9139 | return resultobj; |
9140 | fail: | |
9141 | return NULL; | |
9142 | } | |
9143 | ||
9144 | ||
9145 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9146 | PyObject *resultobj; | |
9147 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9148 | int arg2 ; | |
9149 | PyObject * obj0 = 0 ; | |
994141e6 | 9150 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9151 | char *kwnames[] = { |
9152 | (char *) "self",(char *) "m_exitcode", NULL | |
9153 | }; | |
9154 | ||
994141e6 | 9155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
9157 | { |
9158 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9159 | if (PyErr_Occurred()) SWIG_fail; | |
9160 | } | |
d14a1e28 RD |
9161 | if (arg1) (arg1)->m_exitcode = arg2; |
9162 | ||
9163 | Py_INCREF(Py_None); resultobj = Py_None; | |
9164 | return resultobj; | |
9165 | fail: | |
9166 | return NULL; | |
9167 | } | |
9168 | ||
9169 | ||
9170 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9171 | PyObject *resultobj; | |
9172 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9173 | int result; | |
9174 | PyObject * obj0 = 0 ; | |
9175 | char *kwnames[] = { | |
9176 | (char *) "self", NULL | |
9177 | }; | |
9178 | ||
9179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
9180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9181 | result = (int) ((arg1)->m_exitcode); | |
9182 | ||
994141e6 | 9183 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9184 | return resultobj; |
9185 | fail: | |
9186 | return NULL; | |
9187 | } | |
9188 | ||
9189 | ||
9190 | static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) { | |
9191 | PyObject *obj; | |
9192 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9193 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
9194 | Py_INCREF(obj); | |
9195 | return Py_BuildValue((char *)""); | |
9196 | } | |
9197 | static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9198 | PyObject *resultobj; | |
9199 | wxString *arg1 = 0 ; | |
9200 | int arg2 = (int) wxEXEC_ASYNC ; | |
9201 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
9202 | long result; | |
e811c8ce | 9203 | bool temp1 = False ; |
d14a1e28 | 9204 | PyObject * obj0 = 0 ; |
994141e6 | 9205 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9206 | PyObject * obj2 = 0 ; |
9207 | char *kwnames[] = { | |
9208 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
9209 | }; | |
9210 | ||
994141e6 | 9211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
9212 | { |
9213 | arg1 = wxString_in_helper(obj0); | |
9214 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9215 | temp1 = True; |
d14a1e28 | 9216 | } |
994141e6 RD |
9217 | if (obj1) { |
9218 | { | |
9219 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9220 | if (PyErr_Occurred()) SWIG_fail; | |
9221 | } | |
9222 | } | |
d14a1e28 RD |
9223 | if (obj2) { |
9224 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9225 | } | |
9226 | { | |
9227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9228 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
9229 | ||
9230 | wxPyEndAllowThreads(__tstate); | |
9231 | if (PyErr_Occurred()) SWIG_fail; | |
9232 | } | |
994141e6 | 9233 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
9234 | { |
9235 | if (temp1) | |
9236 | delete arg1; | |
9237 | } | |
9238 | return resultobj; | |
9239 | fail: | |
9240 | { | |
9241 | if (temp1) | |
9242 | delete arg1; | |
9243 | } | |
9244 | return NULL; | |
9245 | } | |
9246 | ||
9247 | ||
9248 | static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9249 | PyObject *resultobj; | |
9250 | int arg1 = (int) wxJOYSTICK1 ; | |
9251 | wxJoystick *result; | |
994141e6 | 9252 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9253 | char *kwnames[] = { |
9254 | (char *) "joystick", NULL | |
9255 | }; | |
9256 | ||
994141e6 RD |
9257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; |
9258 | if (obj0) { | |
9259 | { | |
9260 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9261 | if (PyErr_Occurred()) SWIG_fail; | |
9262 | } | |
9263 | } | |
d14a1e28 RD |
9264 | { |
9265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9266 | result = (wxJoystick *)new wxJoystick(arg1); | |
9267 | ||
9268 | wxPyEndAllowThreads(__tstate); | |
9269 | if (PyErr_Occurred()) SWIG_fail; | |
9270 | } | |
9271 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJoystick, 1); | |
9272 | return resultobj; | |
9273 | fail: | |
9274 | return NULL; | |
9275 | } | |
9276 | ||
9277 | ||
9278 | static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9279 | PyObject *resultobj; | |
9280 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9281 | PyObject * obj0 = 0 ; | |
9282 | char *kwnames[] = { | |
9283 | (char *) "self", NULL | |
9284 | }; | |
9285 | ||
9286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
9287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9288 | { | |
9289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9290 | delete arg1; | |
9291 | ||
9292 | wxPyEndAllowThreads(__tstate); | |
9293 | if (PyErr_Occurred()) SWIG_fail; | |
9294 | } | |
9295 | Py_INCREF(Py_None); resultobj = Py_None; | |
9296 | return resultobj; | |
9297 | fail: | |
9298 | return NULL; | |
9299 | } | |
9300 | ||
9301 | ||
9302 | static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9303 | PyObject *resultobj; | |
9304 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9305 | wxPoint result; | |
9306 | PyObject * obj0 = 0 ; | |
9307 | char *kwnames[] = { | |
9308 | (char *) "self", NULL | |
9309 | }; | |
9310 | ||
9311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
9312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9313 | { | |
9314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9315 | result = (arg1)->GetPosition(); | |
9316 | ||
9317 | wxPyEndAllowThreads(__tstate); | |
9318 | if (PyErr_Occurred()) SWIG_fail; | |
9319 | } | |
9320 | { | |
9321 | wxPoint * resultptr; | |
9322 | resultptr = new wxPoint((wxPoint &) result); | |
9323 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
9324 | } | |
9325 | return resultobj; | |
9326 | fail: | |
9327 | return NULL; | |
9328 | } | |
9329 | ||
9330 | ||
9331 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9332 | PyObject *resultobj; | |
9333 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9334 | int result; | |
9335 | PyObject * obj0 = 0 ; | |
9336 | char *kwnames[] = { | |
9337 | (char *) "self", NULL | |
9338 | }; | |
9339 | ||
9340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
9341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9342 | { | |
9343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9344 | result = (int)(arg1)->GetZPosition(); | |
9345 | ||
9346 | wxPyEndAllowThreads(__tstate); | |
9347 | if (PyErr_Occurred()) SWIG_fail; | |
9348 | } | |
994141e6 | 9349 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9350 | return resultobj; |
9351 | fail: | |
9352 | return NULL; | |
9353 | } | |
9354 | ||
9355 | ||
9356 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9357 | PyObject *resultobj; | |
9358 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9359 | int result; | |
9360 | PyObject * obj0 = 0 ; | |
9361 | char *kwnames[] = { | |
9362 | (char *) "self", NULL | |
9363 | }; | |
9364 | ||
9365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
9366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9367 | { | |
9368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9369 | result = (int)(arg1)->GetButtonState(); | |
9370 | ||
9371 | wxPyEndAllowThreads(__tstate); | |
9372 | if (PyErr_Occurred()) SWIG_fail; | |
9373 | } | |
994141e6 | 9374 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9375 | return resultobj; |
9376 | fail: | |
9377 | return NULL; | |
9378 | } | |
9379 | ||
9380 | ||
9381 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9382 | PyObject *resultobj; | |
9383 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9384 | int result; | |
9385 | PyObject * obj0 = 0 ; | |
9386 | char *kwnames[] = { | |
9387 | (char *) "self", NULL | |
9388 | }; | |
9389 | ||
9390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
9391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9392 | { | |
9393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9394 | result = (int)(arg1)->GetPOVPosition(); | |
9395 | ||
9396 | wxPyEndAllowThreads(__tstate); | |
9397 | if (PyErr_Occurred()) SWIG_fail; | |
9398 | } | |
994141e6 | 9399 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9400 | return resultobj; |
9401 | fail: | |
9402 | return NULL; | |
9403 | } | |
9404 | ||
9405 | ||
9406 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9407 | PyObject *resultobj; | |
9408 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9409 | int result; | |
9410 | PyObject * obj0 = 0 ; | |
9411 | char *kwnames[] = { | |
9412 | (char *) "self", NULL | |
9413 | }; | |
9414 | ||
9415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
9416 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9417 | { | |
9418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9419 | result = (int)(arg1)->GetPOVCTSPosition(); | |
9420 | ||
9421 | wxPyEndAllowThreads(__tstate); | |
9422 | if (PyErr_Occurred()) SWIG_fail; | |
9423 | } | |
994141e6 | 9424 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9425 | return resultobj; |
9426 | fail: | |
9427 | return NULL; | |
9428 | } | |
9429 | ||
9430 | ||
9431 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9432 | PyObject *resultobj; | |
9433 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9434 | int result; | |
9435 | PyObject * obj0 = 0 ; | |
9436 | char *kwnames[] = { | |
9437 | (char *) "self", NULL | |
9438 | }; | |
9439 | ||
9440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
9441 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9442 | { | |
9443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9444 | result = (int)(arg1)->GetRudderPosition(); | |
9445 | ||
9446 | wxPyEndAllowThreads(__tstate); | |
9447 | if (PyErr_Occurred()) SWIG_fail; | |
9448 | } | |
994141e6 | 9449 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9450 | return resultobj; |
9451 | fail: | |
9452 | return NULL; | |
9453 | } | |
9454 | ||
9455 | ||
9456 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9457 | PyObject *resultobj; | |
9458 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9459 | int result; | |
9460 | PyObject * obj0 = 0 ; | |
9461 | char *kwnames[] = { | |
9462 | (char *) "self", NULL | |
9463 | }; | |
9464 | ||
9465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
9466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9467 | { | |
9468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9469 | result = (int)(arg1)->GetUPosition(); | |
9470 | ||
9471 | wxPyEndAllowThreads(__tstate); | |
9472 | if (PyErr_Occurred()) SWIG_fail; | |
9473 | } | |
994141e6 | 9474 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9475 | return resultobj; |
9476 | fail: | |
9477 | return NULL; | |
9478 | } | |
9479 | ||
9480 | ||
9481 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9482 | PyObject *resultobj; | |
9483 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9484 | int result; | |
9485 | PyObject * obj0 = 0 ; | |
9486 | char *kwnames[] = { | |
9487 | (char *) "self", NULL | |
9488 | }; | |
9489 | ||
9490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
9491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9492 | { | |
9493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9494 | result = (int)(arg1)->GetVPosition(); | |
9495 | ||
9496 | wxPyEndAllowThreads(__tstate); | |
9497 | if (PyErr_Occurred()) SWIG_fail; | |
9498 | } | |
994141e6 | 9499 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9500 | return resultobj; |
9501 | fail: | |
9502 | return NULL; | |
9503 | } | |
9504 | ||
9505 | ||
9506 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9507 | PyObject *resultobj; | |
9508 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9509 | int result; | |
9510 | PyObject * obj0 = 0 ; | |
9511 | char *kwnames[] = { | |
9512 | (char *) "self", NULL | |
9513 | }; | |
9514 | ||
9515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
9516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9517 | { | |
9518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9519 | result = (int)(arg1)->GetMovementThreshold(); | |
9520 | ||
9521 | wxPyEndAllowThreads(__tstate); | |
9522 | if (PyErr_Occurred()) SWIG_fail; | |
9523 | } | |
994141e6 | 9524 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9525 | return resultobj; |
9526 | fail: | |
9527 | return NULL; | |
9528 | } | |
9529 | ||
9530 | ||
9531 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9532 | PyObject *resultobj; | |
9533 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9534 | int arg2 ; | |
9535 | PyObject * obj0 = 0 ; | |
994141e6 | 9536 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9537 | char *kwnames[] = { |
9538 | (char *) "self",(char *) "threshold", NULL | |
9539 | }; | |
9540 | ||
994141e6 | 9541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
9543 | { |
9544 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9545 | if (PyErr_Occurred()) SWIG_fail; | |
9546 | } | |
d14a1e28 RD |
9547 | { |
9548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9549 | (arg1)->SetMovementThreshold(arg2); | |
9550 | ||
9551 | wxPyEndAllowThreads(__tstate); | |
9552 | if (PyErr_Occurred()) SWIG_fail; | |
9553 | } | |
9554 | Py_INCREF(Py_None); resultobj = Py_None; | |
9555 | return resultobj; | |
9556 | fail: | |
9557 | return NULL; | |
9558 | } | |
9559 | ||
9560 | ||
9561 | static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9562 | PyObject *resultobj; | |
9563 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9564 | bool result; | |
9565 | PyObject * obj0 = 0 ; | |
9566 | char *kwnames[] = { | |
9567 | (char *) "self", NULL | |
9568 | }; | |
9569 | ||
9570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
9571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9572 | { | |
9573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9574 | result = (bool)(arg1)->IsOk(); | |
9575 | ||
9576 | wxPyEndAllowThreads(__tstate); | |
9577 | if (PyErr_Occurred()) SWIG_fail; | |
9578 | } | |
4d5c3d91 | 9579 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9580 | return resultobj; |
9581 | fail: | |
9582 | return NULL; | |
9583 | } | |
9584 | ||
9585 | ||
9586 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9587 | PyObject *resultobj; | |
9588 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9589 | int result; | |
9590 | PyObject * obj0 = 0 ; | |
9591 | char *kwnames[] = { | |
9592 | (char *) "self", NULL | |
9593 | }; | |
9594 | ||
9595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
9596 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9597 | { | |
9598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9599 | result = (int)(arg1)->GetNumberJoysticks(); | |
9600 | ||
9601 | wxPyEndAllowThreads(__tstate); | |
9602 | if (PyErr_Occurred()) SWIG_fail; | |
9603 | } | |
994141e6 | 9604 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9605 | return resultobj; |
9606 | fail: | |
9607 | return NULL; | |
9608 | } | |
9609 | ||
9610 | ||
9611 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9612 | PyObject *resultobj; | |
9613 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9614 | int result; | |
9615 | PyObject * obj0 = 0 ; | |
9616 | char *kwnames[] = { | |
9617 | (char *) "self", NULL | |
9618 | }; | |
9619 | ||
9620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
9621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9622 | { | |
9623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9624 | result = (int)(arg1)->GetManufacturerId(); | |
9625 | ||
9626 | wxPyEndAllowThreads(__tstate); | |
9627 | if (PyErr_Occurred()) SWIG_fail; | |
9628 | } | |
994141e6 | 9629 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9630 | return resultobj; |
9631 | fail: | |
9632 | return NULL; | |
9633 | } | |
9634 | ||
9635 | ||
9636 | static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9637 | PyObject *resultobj; | |
9638 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9639 | int result; | |
9640 | PyObject * obj0 = 0 ; | |
9641 | char *kwnames[] = { | |
9642 | (char *) "self", NULL | |
9643 | }; | |
9644 | ||
9645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
9646 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9647 | { | |
9648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9649 | result = (int)(arg1)->GetProductId(); | |
9650 | ||
9651 | wxPyEndAllowThreads(__tstate); | |
9652 | if (PyErr_Occurred()) SWIG_fail; | |
9653 | } | |
994141e6 | 9654 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9655 | return resultobj; |
9656 | fail: | |
9657 | return NULL; | |
9658 | } | |
9659 | ||
9660 | ||
9661 | static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9662 | PyObject *resultobj; | |
9663 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9664 | wxString result; | |
9665 | PyObject * obj0 = 0 ; | |
9666 | char *kwnames[] = { | |
9667 | (char *) "self", NULL | |
9668 | }; | |
9669 | ||
9670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
9671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9672 | { | |
9673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9674 | result = (arg1)->GetProductName(); | |
9675 | ||
9676 | wxPyEndAllowThreads(__tstate); | |
9677 | if (PyErr_Occurred()) SWIG_fail; | |
9678 | } | |
9679 | { | |
9680 | #if wxUSE_UNICODE | |
9681 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9682 | #else | |
9683 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9684 | #endif | |
9685 | } | |
9686 | return resultobj; | |
9687 | fail: | |
9688 | return NULL; | |
9689 | } | |
9690 | ||
9691 | ||
9692 | static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9693 | PyObject *resultobj; | |
9694 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9695 | int result; | |
9696 | PyObject * obj0 = 0 ; | |
9697 | char *kwnames[] = { | |
9698 | (char *) "self", NULL | |
9699 | }; | |
9700 | ||
9701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
9702 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9703 | { | |
9704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9705 | result = (int)(arg1)->GetXMin(); | |
9706 | ||
9707 | wxPyEndAllowThreads(__tstate); | |
9708 | if (PyErr_Occurred()) SWIG_fail; | |
9709 | } | |
994141e6 | 9710 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9711 | return resultobj; |
9712 | fail: | |
9713 | return NULL; | |
9714 | } | |
9715 | ||
9716 | ||
9717 | static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9718 | PyObject *resultobj; | |
9719 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9720 | int result; | |
9721 | PyObject * obj0 = 0 ; | |
9722 | char *kwnames[] = { | |
9723 | (char *) "self", NULL | |
9724 | }; | |
9725 | ||
9726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
9727 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9728 | { | |
9729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9730 | result = (int)(arg1)->GetYMin(); | |
9731 | ||
9732 | wxPyEndAllowThreads(__tstate); | |
9733 | if (PyErr_Occurred()) SWIG_fail; | |
9734 | } | |
994141e6 | 9735 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9736 | return resultobj; |
9737 | fail: | |
9738 | return NULL; | |
9739 | } | |
9740 | ||
9741 | ||
9742 | static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9743 | PyObject *resultobj; | |
9744 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9745 | int result; | |
9746 | PyObject * obj0 = 0 ; | |
9747 | char *kwnames[] = { | |
9748 | (char *) "self", NULL | |
9749 | }; | |
9750 | ||
9751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
9752 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9753 | { | |
9754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9755 | result = (int)(arg1)->GetZMin(); | |
9756 | ||
9757 | wxPyEndAllowThreads(__tstate); | |
9758 | if (PyErr_Occurred()) SWIG_fail; | |
9759 | } | |
994141e6 | 9760 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9761 | return resultobj; |
9762 | fail: | |
9763 | return NULL; | |
9764 | } | |
9765 | ||
9766 | ||
9767 | static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9768 | PyObject *resultobj; | |
9769 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9770 | int result; | |
9771 | PyObject * obj0 = 0 ; | |
9772 | char *kwnames[] = { | |
9773 | (char *) "self", NULL | |
9774 | }; | |
9775 | ||
9776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
9777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9778 | { | |
9779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9780 | result = (int)(arg1)->GetXMax(); | |
9781 | ||
9782 | wxPyEndAllowThreads(__tstate); | |
9783 | if (PyErr_Occurred()) SWIG_fail; | |
9784 | } | |
994141e6 | 9785 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9786 | return resultobj; |
9787 | fail: | |
9788 | return NULL; | |
9789 | } | |
9790 | ||
9791 | ||
9792 | static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9793 | PyObject *resultobj; | |
9794 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9795 | int result; | |
9796 | PyObject * obj0 = 0 ; | |
9797 | char *kwnames[] = { | |
9798 | (char *) "self", NULL | |
9799 | }; | |
9800 | ||
9801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
9802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9803 | { | |
9804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9805 | result = (int)(arg1)->GetYMax(); | |
9806 | ||
9807 | wxPyEndAllowThreads(__tstate); | |
9808 | if (PyErr_Occurred()) SWIG_fail; | |
9809 | } | |
994141e6 | 9810 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9811 | return resultobj; |
9812 | fail: | |
9813 | return NULL; | |
9814 | } | |
9815 | ||
9816 | ||
9817 | static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9818 | PyObject *resultobj; | |
9819 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9820 | int result; | |
9821 | PyObject * obj0 = 0 ; | |
9822 | char *kwnames[] = { | |
9823 | (char *) "self", NULL | |
9824 | }; | |
9825 | ||
9826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
9827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9828 | { | |
9829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9830 | result = (int)(arg1)->GetZMax(); | |
9831 | ||
9832 | wxPyEndAllowThreads(__tstate); | |
9833 | if (PyErr_Occurred()) SWIG_fail; | |
9834 | } | |
994141e6 | 9835 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9836 | return resultobj; |
9837 | fail: | |
9838 | return NULL; | |
9839 | } | |
9840 | ||
9841 | ||
9842 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9843 | PyObject *resultobj; | |
9844 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9845 | int result; | |
9846 | PyObject * obj0 = 0 ; | |
9847 | char *kwnames[] = { | |
9848 | (char *) "self", NULL | |
9849 | }; | |
9850 | ||
9851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
9852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9853 | { | |
9854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9855 | result = (int)(arg1)->GetNumberButtons(); | |
9856 | ||
9857 | wxPyEndAllowThreads(__tstate); | |
9858 | if (PyErr_Occurred()) SWIG_fail; | |
9859 | } | |
994141e6 | 9860 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9861 | return resultobj; |
9862 | fail: | |
9863 | return NULL; | |
9864 | } | |
9865 | ||
9866 | ||
9867 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9868 | PyObject *resultobj; | |
9869 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9870 | int result; | |
9871 | PyObject * obj0 = 0 ; | |
9872 | char *kwnames[] = { | |
9873 | (char *) "self", NULL | |
9874 | }; | |
9875 | ||
9876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
9877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9878 | { | |
9879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9880 | result = (int)(arg1)->GetNumberAxes(); | |
9881 | ||
9882 | wxPyEndAllowThreads(__tstate); | |
9883 | if (PyErr_Occurred()) SWIG_fail; | |
9884 | } | |
994141e6 | 9885 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9886 | return resultobj; |
9887 | fail: | |
9888 | return NULL; | |
9889 | } | |
9890 | ||
9891 | ||
9892 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9893 | PyObject *resultobj; | |
9894 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9895 | int result; | |
9896 | PyObject * obj0 = 0 ; | |
9897 | char *kwnames[] = { | |
9898 | (char *) "self", NULL | |
9899 | }; | |
9900 | ||
9901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
9902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9903 | { | |
9904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9905 | result = (int)(arg1)->GetMaxButtons(); | |
9906 | ||
9907 | wxPyEndAllowThreads(__tstate); | |
9908 | if (PyErr_Occurred()) SWIG_fail; | |
9909 | } | |
994141e6 | 9910 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9911 | return resultobj; |
9912 | fail: | |
9913 | return NULL; | |
9914 | } | |
9915 | ||
9916 | ||
9917 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9918 | PyObject *resultobj; | |
9919 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9920 | int result; | |
9921 | PyObject * obj0 = 0 ; | |
9922 | char *kwnames[] = { | |
9923 | (char *) "self", NULL | |
9924 | }; | |
9925 | ||
9926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
9927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9928 | { | |
9929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9930 | result = (int)(arg1)->GetMaxAxes(); | |
9931 | ||
9932 | wxPyEndAllowThreads(__tstate); | |
9933 | if (PyErr_Occurred()) SWIG_fail; | |
9934 | } | |
994141e6 | 9935 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9936 | return resultobj; |
9937 | fail: | |
9938 | return NULL; | |
9939 | } | |
9940 | ||
9941 | ||
9942 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9943 | PyObject *resultobj; | |
9944 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9945 | int result; | |
9946 | PyObject * obj0 = 0 ; | |
9947 | char *kwnames[] = { | |
9948 | (char *) "self", NULL | |
9949 | }; | |
9950 | ||
9951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
9952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9953 | { | |
9954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9955 | result = (int)(arg1)->GetPollingMin(); | |
9956 | ||
9957 | wxPyEndAllowThreads(__tstate); | |
9958 | if (PyErr_Occurred()) SWIG_fail; | |
9959 | } | |
994141e6 | 9960 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9961 | return resultobj; |
9962 | fail: | |
9963 | return NULL; | |
9964 | } | |
9965 | ||
9966 | ||
9967 | static PyObject *_wrap_Joystick_GetPollingMax(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_GetPollingMax",kwnames,&obj0)) goto fail; | |
9977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9978 | { | |
9979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9980 | result = (int)(arg1)->GetPollingMax(); | |
9981 | ||
9982 | wxPyEndAllowThreads(__tstate); | |
9983 | if (PyErr_Occurred()) SWIG_fail; | |
9984 | } | |
994141e6 | 9985 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9986 | return resultobj; |
9987 | fail: | |
9988 | return NULL; | |
9989 | } | |
9990 | ||
9991 | ||
9992 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9993 | PyObject *resultobj; | |
9994 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9995 | int result; | |
9996 | PyObject * obj0 = 0 ; | |
9997 | char *kwnames[] = { | |
9998 | (char *) "self", NULL | |
9999 | }; | |
10000 | ||
10001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
10002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10003 | { | |
10004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10005 | result = (int)(arg1)->GetRudderMin(); | |
10006 | ||
10007 | wxPyEndAllowThreads(__tstate); | |
10008 | if (PyErr_Occurred()) SWIG_fail; | |
10009 | } | |
994141e6 | 10010 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10011 | return resultobj; |
10012 | fail: | |
10013 | return NULL; | |
10014 | } | |
10015 | ||
10016 | ||
10017 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10018 | PyObject *resultobj; | |
10019 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10020 | int result; | |
10021 | PyObject * obj0 = 0 ; | |
10022 | char *kwnames[] = { | |
10023 | (char *) "self", NULL | |
10024 | }; | |
10025 | ||
10026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
10027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10028 | { | |
10029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10030 | result = (int)(arg1)->GetRudderMax(); | |
10031 | ||
10032 | wxPyEndAllowThreads(__tstate); | |
10033 | if (PyErr_Occurred()) SWIG_fail; | |
10034 | } | |
994141e6 | 10035 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10036 | return resultobj; |
10037 | fail: | |
10038 | return NULL; | |
10039 | } | |
10040 | ||
10041 | ||
10042 | static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10043 | PyObject *resultobj; | |
10044 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10045 | int result; | |
10046 | PyObject * obj0 = 0 ; | |
10047 | char *kwnames[] = { | |
10048 | (char *) "self", NULL | |
10049 | }; | |
10050 | ||
10051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
10052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10053 | { | |
10054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10055 | result = (int)(arg1)->GetUMin(); | |
10056 | ||
10057 | wxPyEndAllowThreads(__tstate); | |
10058 | if (PyErr_Occurred()) SWIG_fail; | |
10059 | } | |
994141e6 | 10060 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10061 | return resultobj; |
10062 | fail: | |
10063 | return NULL; | |
10064 | } | |
10065 | ||
10066 | ||
10067 | static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10068 | PyObject *resultobj; | |
10069 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10070 | int result; | |
10071 | PyObject * obj0 = 0 ; | |
10072 | char *kwnames[] = { | |
10073 | (char *) "self", NULL | |
10074 | }; | |
10075 | ||
10076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
10077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10078 | { | |
10079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10080 | result = (int)(arg1)->GetUMax(); | |
10081 | ||
10082 | wxPyEndAllowThreads(__tstate); | |
10083 | if (PyErr_Occurred()) SWIG_fail; | |
10084 | } | |
994141e6 | 10085 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10086 | return resultobj; |
10087 | fail: | |
10088 | return NULL; | |
10089 | } | |
10090 | ||
10091 | ||
10092 | static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10093 | PyObject *resultobj; | |
10094 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10095 | int result; | |
10096 | PyObject * obj0 = 0 ; | |
10097 | char *kwnames[] = { | |
10098 | (char *) "self", NULL | |
10099 | }; | |
10100 | ||
10101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
10102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10103 | { | |
10104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10105 | result = (int)(arg1)->GetVMin(); | |
10106 | ||
10107 | wxPyEndAllowThreads(__tstate); | |
10108 | if (PyErr_Occurred()) SWIG_fail; | |
10109 | } | |
994141e6 | 10110 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10111 | return resultobj; |
10112 | fail: | |
10113 | return NULL; | |
10114 | } | |
10115 | ||
10116 | ||
10117 | static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10118 | PyObject *resultobj; | |
10119 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10120 | int result; | |
10121 | PyObject * obj0 = 0 ; | |
10122 | char *kwnames[] = { | |
10123 | (char *) "self", NULL | |
10124 | }; | |
10125 | ||
10126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
10127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10128 | { | |
10129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10130 | result = (int)(arg1)->GetVMax(); | |
10131 | ||
10132 | wxPyEndAllowThreads(__tstate); | |
10133 | if (PyErr_Occurred()) SWIG_fail; | |
10134 | } | |
994141e6 | 10135 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10136 | return resultobj; |
10137 | fail: | |
10138 | return NULL; | |
10139 | } | |
10140 | ||
10141 | ||
10142 | static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10143 | PyObject *resultobj; | |
10144 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10145 | bool result; | |
10146 | PyObject * obj0 = 0 ; | |
10147 | char *kwnames[] = { | |
10148 | (char *) "self", NULL | |
10149 | }; | |
10150 | ||
10151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
10152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10153 | { | |
10154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10155 | result = (bool)(arg1)->HasRudder(); | |
10156 | ||
10157 | wxPyEndAllowThreads(__tstate); | |
10158 | if (PyErr_Occurred()) SWIG_fail; | |
10159 | } | |
4d5c3d91 | 10160 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10161 | return resultobj; |
10162 | fail: | |
10163 | return NULL; | |
10164 | } | |
10165 | ||
10166 | ||
10167 | static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10168 | PyObject *resultobj; | |
10169 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10170 | bool result; | |
10171 | PyObject * obj0 = 0 ; | |
10172 | char *kwnames[] = { | |
10173 | (char *) "self", NULL | |
10174 | }; | |
10175 | ||
10176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
10177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10178 | { | |
10179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10180 | result = (bool)(arg1)->HasZ(); | |
10181 | ||
10182 | wxPyEndAllowThreads(__tstate); | |
10183 | if (PyErr_Occurred()) SWIG_fail; | |
10184 | } | |
4d5c3d91 | 10185 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10186 | return resultobj; |
10187 | fail: | |
10188 | return NULL; | |
10189 | } | |
10190 | ||
10191 | ||
10192 | static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10193 | PyObject *resultobj; | |
10194 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10195 | bool result; | |
10196 | PyObject * obj0 = 0 ; | |
10197 | char *kwnames[] = { | |
10198 | (char *) "self", NULL | |
10199 | }; | |
10200 | ||
10201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
10202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10203 | { | |
10204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10205 | result = (bool)(arg1)->HasU(); | |
10206 | ||
10207 | wxPyEndAllowThreads(__tstate); | |
10208 | if (PyErr_Occurred()) SWIG_fail; | |
10209 | } | |
4d5c3d91 | 10210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10211 | return resultobj; |
10212 | fail: | |
10213 | return NULL; | |
10214 | } | |
10215 | ||
10216 | ||
10217 | static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10218 | PyObject *resultobj; | |
10219 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10220 | bool result; | |
10221 | PyObject * obj0 = 0 ; | |
10222 | char *kwnames[] = { | |
10223 | (char *) "self", NULL | |
10224 | }; | |
10225 | ||
10226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
10227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10228 | { | |
10229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10230 | result = (bool)(arg1)->HasV(); | |
10231 | ||
10232 | wxPyEndAllowThreads(__tstate); | |
10233 | if (PyErr_Occurred()) SWIG_fail; | |
10234 | } | |
4d5c3d91 | 10235 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10236 | return resultobj; |
10237 | fail: | |
10238 | return NULL; | |
10239 | } | |
10240 | ||
10241 | ||
10242 | static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10243 | PyObject *resultobj; | |
10244 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10245 | bool result; | |
10246 | PyObject * obj0 = 0 ; | |
10247 | char *kwnames[] = { | |
10248 | (char *) "self", NULL | |
10249 | }; | |
10250 | ||
10251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
10252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10253 | { | |
10254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10255 | result = (bool)(arg1)->HasPOV(); | |
10256 | ||
10257 | wxPyEndAllowThreads(__tstate); | |
10258 | if (PyErr_Occurred()) SWIG_fail; | |
10259 | } | |
4d5c3d91 | 10260 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10261 | return resultobj; |
10262 | fail: | |
10263 | return NULL; | |
10264 | } | |
10265 | ||
10266 | ||
10267 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10268 | PyObject *resultobj; | |
10269 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10270 | bool result; | |
10271 | PyObject * obj0 = 0 ; | |
10272 | char *kwnames[] = { | |
10273 | (char *) "self", NULL | |
10274 | }; | |
10275 | ||
10276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
10277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10278 | { | |
10279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10280 | result = (bool)(arg1)->HasPOV4Dir(); | |
10281 | ||
10282 | wxPyEndAllowThreads(__tstate); | |
10283 | if (PyErr_Occurred()) SWIG_fail; | |
10284 | } | |
4d5c3d91 | 10285 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10286 | return resultobj; |
10287 | fail: | |
10288 | return NULL; | |
10289 | } | |
10290 | ||
10291 | ||
10292 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10293 | PyObject *resultobj; | |
10294 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10295 | bool result; | |
10296 | PyObject * obj0 = 0 ; | |
10297 | char *kwnames[] = { | |
10298 | (char *) "self", NULL | |
10299 | }; | |
10300 | ||
10301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
10302 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10303 | { | |
10304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10305 | result = (bool)(arg1)->HasPOVCTS(); | |
10306 | ||
10307 | wxPyEndAllowThreads(__tstate); | |
10308 | if (PyErr_Occurred()) SWIG_fail; | |
10309 | } | |
4d5c3d91 | 10310 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10311 | return resultobj; |
10312 | fail: | |
10313 | return NULL; | |
10314 | } | |
10315 | ||
10316 | ||
10317 | static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10318 | PyObject *resultobj; | |
10319 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10320 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10321 | int arg3 = (int) 0 ; | |
10322 | bool result; | |
10323 | PyObject * obj0 = 0 ; | |
10324 | PyObject * obj1 = 0 ; | |
994141e6 | 10325 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10326 | char *kwnames[] = { |
10327 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
10328 | }; | |
10329 | ||
994141e6 | 10330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
10331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10332 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
10333 | if (obj2) { |
10334 | { | |
10335 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10336 | if (PyErr_Occurred()) SWIG_fail; | |
10337 | } | |
10338 | } | |
d14a1e28 RD |
10339 | { |
10340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10341 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
10342 | ||
10343 | wxPyEndAllowThreads(__tstate); | |
10344 | if (PyErr_Occurred()) SWIG_fail; | |
10345 | } | |
4d5c3d91 | 10346 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10347 | return resultobj; |
10348 | fail: | |
10349 | return NULL; | |
10350 | } | |
10351 | ||
10352 | ||
10353 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10354 | PyObject *resultobj; | |
10355 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10356 | bool result; | |
10357 | PyObject * obj0 = 0 ; | |
10358 | char *kwnames[] = { | |
10359 | (char *) "self", NULL | |
10360 | }; | |
10361 | ||
10362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
10363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10364 | { | |
10365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10366 | result = (bool)(arg1)->ReleaseCapture(); | |
10367 | ||
10368 | wxPyEndAllowThreads(__tstate); | |
10369 | if (PyErr_Occurred()) SWIG_fail; | |
10370 | } | |
4d5c3d91 | 10371 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10372 | return resultobj; |
10373 | fail: | |
10374 | return NULL; | |
10375 | } | |
10376 | ||
10377 | ||
10378 | static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) { | |
10379 | PyObject *obj; | |
10380 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10381 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
10382 | Py_INCREF(obj); | |
10383 | return Py_BuildValue((char *)""); | |
10384 | } | |
10385 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10386 | PyObject *resultobj; | |
10387 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10388 | wxPoint *arg2 = (wxPoint *) 0 ; | |
10389 | PyObject * obj0 = 0 ; | |
10390 | PyObject * obj1 = 0 ; | |
10391 | char *kwnames[] = { | |
10392 | (char *) "self",(char *) "m_pos", NULL | |
10393 | }; | |
10394 | ||
10395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
10396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10397 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10398 | if (arg1) (arg1)->m_pos = *arg2; | |
10399 | ||
10400 | Py_INCREF(Py_None); resultobj = Py_None; | |
10401 | return resultobj; | |
10402 | fail: | |
10403 | return NULL; | |
10404 | } | |
10405 | ||
10406 | ||
10407 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10408 | PyObject *resultobj; | |
10409 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10410 | wxPoint *result; | |
10411 | PyObject * obj0 = 0 ; | |
10412 | char *kwnames[] = { | |
10413 | (char *) "self", NULL | |
10414 | }; | |
10415 | ||
10416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
10417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10418 | result = (wxPoint *)& ((arg1)->m_pos); | |
10419 | ||
10420 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
10421 | return resultobj; | |
10422 | fail: | |
10423 | return NULL; | |
10424 | } | |
10425 | ||
10426 | ||
10427 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10428 | PyObject *resultobj; | |
10429 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10430 | int arg2 ; | |
10431 | PyObject * obj0 = 0 ; | |
994141e6 | 10432 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10433 | char *kwnames[] = { |
10434 | (char *) "self",(char *) "m_zPosition", NULL | |
10435 | }; | |
10436 | ||
994141e6 | 10437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10439 | { |
10440 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10441 | if (PyErr_Occurred()) SWIG_fail; | |
10442 | } | |
d14a1e28 RD |
10443 | if (arg1) (arg1)->m_zPosition = arg2; |
10444 | ||
10445 | Py_INCREF(Py_None); resultobj = Py_None; | |
10446 | return resultobj; | |
10447 | fail: | |
10448 | return NULL; | |
10449 | } | |
10450 | ||
10451 | ||
10452 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10453 | PyObject *resultobj; | |
10454 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10455 | int result; | |
10456 | PyObject * obj0 = 0 ; | |
10457 | char *kwnames[] = { | |
10458 | (char *) "self", NULL | |
10459 | }; | |
10460 | ||
10461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
10462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10463 | result = (int) ((arg1)->m_zPosition); | |
10464 | ||
994141e6 | 10465 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10466 | return resultobj; |
10467 | fail: | |
10468 | return NULL; | |
10469 | } | |
10470 | ||
10471 | ||
10472 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10473 | PyObject *resultobj; | |
10474 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10475 | int arg2 ; | |
10476 | PyObject * obj0 = 0 ; | |
994141e6 | 10477 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10478 | char *kwnames[] = { |
10479 | (char *) "self",(char *) "m_buttonChange", NULL | |
10480 | }; | |
10481 | ||
994141e6 | 10482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10484 | { |
10485 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10486 | if (PyErr_Occurred()) SWIG_fail; | |
10487 | } | |
d14a1e28 RD |
10488 | if (arg1) (arg1)->m_buttonChange = arg2; |
10489 | ||
10490 | Py_INCREF(Py_None); resultobj = Py_None; | |
10491 | return resultobj; | |
10492 | fail: | |
10493 | return NULL; | |
10494 | } | |
10495 | ||
10496 | ||
10497 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10498 | PyObject *resultobj; | |
10499 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10500 | int result; | |
10501 | PyObject * obj0 = 0 ; | |
10502 | char *kwnames[] = { | |
10503 | (char *) "self", NULL | |
10504 | }; | |
10505 | ||
10506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
10507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10508 | result = (int) ((arg1)->m_buttonChange); | |
10509 | ||
994141e6 | 10510 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10511 | return resultobj; |
10512 | fail: | |
10513 | return NULL; | |
10514 | } | |
10515 | ||
10516 | ||
10517 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10518 | PyObject *resultobj; | |
10519 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10520 | int arg2 ; | |
10521 | PyObject * obj0 = 0 ; | |
994141e6 | 10522 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10523 | char *kwnames[] = { |
10524 | (char *) "self",(char *) "m_buttonState", NULL | |
10525 | }; | |
10526 | ||
994141e6 | 10527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10528 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10529 | { |
10530 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10531 | if (PyErr_Occurred()) SWIG_fail; | |
10532 | } | |
d14a1e28 RD |
10533 | if (arg1) (arg1)->m_buttonState = arg2; |
10534 | ||
10535 | Py_INCREF(Py_None); resultobj = Py_None; | |
10536 | return resultobj; | |
10537 | fail: | |
10538 | return NULL; | |
10539 | } | |
10540 | ||
10541 | ||
10542 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10543 | PyObject *resultobj; | |
10544 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10545 | int result; | |
10546 | PyObject * obj0 = 0 ; | |
10547 | char *kwnames[] = { | |
10548 | (char *) "self", NULL | |
10549 | }; | |
10550 | ||
10551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
10552 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10553 | result = (int) ((arg1)->m_buttonState); | |
10554 | ||
994141e6 | 10555 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10556 | return resultobj; |
10557 | fail: | |
10558 | return NULL; | |
10559 | } | |
10560 | ||
10561 | ||
10562 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10563 | PyObject *resultobj; | |
10564 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10565 | int arg2 ; | |
10566 | PyObject * obj0 = 0 ; | |
994141e6 | 10567 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10568 | char *kwnames[] = { |
10569 | (char *) "self",(char *) "m_joyStick", NULL | |
10570 | }; | |
10571 | ||
994141e6 | 10572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10574 | { |
10575 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10576 | if (PyErr_Occurred()) SWIG_fail; | |
10577 | } | |
d14a1e28 RD |
10578 | if (arg1) (arg1)->m_joyStick = arg2; |
10579 | ||
10580 | Py_INCREF(Py_None); resultobj = Py_None; | |
10581 | return resultobj; | |
10582 | fail: | |
10583 | return NULL; | |
10584 | } | |
10585 | ||
10586 | ||
10587 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10588 | PyObject *resultobj; | |
10589 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10590 | int result; | |
10591 | PyObject * obj0 = 0 ; | |
10592 | char *kwnames[] = { | |
10593 | (char *) "self", NULL | |
10594 | }; | |
10595 | ||
10596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
10597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10598 | result = (int) ((arg1)->m_joyStick); | |
10599 | ||
994141e6 | 10600 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10601 | return resultobj; |
10602 | fail: | |
10603 | return NULL; | |
10604 | } | |
10605 | ||
10606 | ||
10607 | static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10608 | PyObject *resultobj; | |
10609 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10610 | int arg2 = (int) 0 ; | |
10611 | int arg3 = (int) wxJOYSTICK1 ; | |
10612 | int arg4 = (int) 0 ; | |
10613 | wxJoystickEvent *result; | |
994141e6 RD |
10614 | PyObject * obj0 = 0 ; |
10615 | PyObject * obj1 = 0 ; | |
10616 | PyObject * obj2 = 0 ; | |
10617 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10618 | char *kwnames[] = { |
10619 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
10620 | }; | |
10621 | ||
994141e6 RD |
10622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
10623 | if (obj0) { | |
10624 | { | |
10625 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
10626 | if (PyErr_Occurred()) SWIG_fail; | |
10627 | } | |
10628 | } | |
10629 | if (obj1) { | |
10630 | { | |
10631 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10632 | if (PyErr_Occurred()) SWIG_fail; | |
10633 | } | |
10634 | } | |
10635 | if (obj2) { | |
10636 | { | |
10637 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10638 | if (PyErr_Occurred()) SWIG_fail; | |
10639 | } | |
10640 | } | |
10641 | if (obj3) { | |
10642 | { | |
10643 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10644 | if (PyErr_Occurred()) SWIG_fail; | |
10645 | } | |
10646 | } | |
d14a1e28 RD |
10647 | { |
10648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10649 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
10650 | ||
10651 | wxPyEndAllowThreads(__tstate); | |
10652 | if (PyErr_Occurred()) SWIG_fail; | |
10653 | } | |
10654 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJoystickEvent, 1); | |
10655 | return resultobj; | |
10656 | fail: | |
10657 | return NULL; | |
10658 | } | |
10659 | ||
10660 | ||
10661 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10662 | PyObject *resultobj; | |
10663 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10664 | wxPoint result; | |
10665 | PyObject * obj0 = 0 ; | |
10666 | char *kwnames[] = { | |
10667 | (char *) "self", NULL | |
10668 | }; | |
10669 | ||
10670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
10671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10672 | { | |
10673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10674 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
10675 | ||
10676 | wxPyEndAllowThreads(__tstate); | |
10677 | if (PyErr_Occurred()) SWIG_fail; | |
10678 | } | |
10679 | { | |
10680 | wxPoint * resultptr; | |
10681 | resultptr = new wxPoint((wxPoint &) result); | |
10682 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
10683 | } | |
10684 | return resultobj; | |
10685 | fail: | |
10686 | return NULL; | |
10687 | } | |
10688 | ||
10689 | ||
10690 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10691 | PyObject *resultobj; | |
10692 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10693 | int result; | |
10694 | PyObject * obj0 = 0 ; | |
10695 | char *kwnames[] = { | |
10696 | (char *) "self", NULL | |
10697 | }; | |
10698 | ||
10699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
10700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10701 | { | |
10702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10703 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
10704 | ||
10705 | wxPyEndAllowThreads(__tstate); | |
10706 | if (PyErr_Occurred()) SWIG_fail; | |
10707 | } | |
994141e6 | 10708 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10709 | return resultobj; |
10710 | fail: | |
10711 | return NULL; | |
10712 | } | |
10713 | ||
10714 | ||
10715 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10716 | PyObject *resultobj; | |
10717 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10718 | int result; | |
10719 | PyObject * obj0 = 0 ; | |
10720 | char *kwnames[] = { | |
10721 | (char *) "self", NULL | |
10722 | }; | |
10723 | ||
10724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
10725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10726 | { | |
10727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10728 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
10729 | ||
10730 | wxPyEndAllowThreads(__tstate); | |
10731 | if (PyErr_Occurred()) SWIG_fail; | |
10732 | } | |
994141e6 | 10733 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10734 | return resultobj; |
10735 | fail: | |
10736 | return NULL; | |
10737 | } | |
10738 | ||
10739 | ||
10740 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10741 | PyObject *resultobj; | |
10742 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10743 | int result; | |
10744 | PyObject * obj0 = 0 ; | |
10745 | char *kwnames[] = { | |
10746 | (char *) "self", NULL | |
10747 | }; | |
10748 | ||
10749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
10750 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10751 | { | |
10752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10753 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
10754 | ||
10755 | wxPyEndAllowThreads(__tstate); | |
10756 | if (PyErr_Occurred()) SWIG_fail; | |
10757 | } | |
994141e6 | 10758 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10759 | return resultobj; |
10760 | fail: | |
10761 | return NULL; | |
10762 | } | |
10763 | ||
10764 | ||
10765 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10766 | PyObject *resultobj; | |
10767 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10768 | int result; | |
10769 | PyObject * obj0 = 0 ; | |
10770 | char *kwnames[] = { | |
10771 | (char *) "self", NULL | |
10772 | }; | |
10773 | ||
10774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
10775 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10776 | { | |
10777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10778 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
10779 | ||
10780 | wxPyEndAllowThreads(__tstate); | |
10781 | if (PyErr_Occurred()) SWIG_fail; | |
10782 | } | |
994141e6 | 10783 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10784 | return resultobj; |
10785 | fail: | |
10786 | return NULL; | |
10787 | } | |
10788 | ||
10789 | ||
10790 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10791 | PyObject *resultobj; | |
10792 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10793 | int arg2 ; | |
10794 | PyObject * obj0 = 0 ; | |
994141e6 | 10795 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10796 | char *kwnames[] = { |
10797 | (char *) "self",(char *) "stick", NULL | |
10798 | }; | |
10799 | ||
994141e6 | 10800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10801 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10802 | { |
10803 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10804 | if (PyErr_Occurred()) SWIG_fail; | |
10805 | } | |
d14a1e28 RD |
10806 | { |
10807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10808 | (arg1)->SetJoystick(arg2); | |
10809 | ||
10810 | wxPyEndAllowThreads(__tstate); | |
10811 | if (PyErr_Occurred()) SWIG_fail; | |
10812 | } | |
10813 | Py_INCREF(Py_None); resultobj = Py_None; | |
10814 | return resultobj; | |
10815 | fail: | |
10816 | return NULL; | |
10817 | } | |
10818 | ||
10819 | ||
10820 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10821 | PyObject *resultobj; | |
10822 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10823 | int arg2 ; | |
10824 | PyObject * obj0 = 0 ; | |
994141e6 | 10825 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10826 | char *kwnames[] = { |
10827 | (char *) "self",(char *) "state", NULL | |
10828 | }; | |
10829 | ||
994141e6 | 10830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10831 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10832 | { |
10833 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10834 | if (PyErr_Occurred()) SWIG_fail; | |
10835 | } | |
d14a1e28 RD |
10836 | { |
10837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10838 | (arg1)->SetButtonState(arg2); | |
10839 | ||
10840 | wxPyEndAllowThreads(__tstate); | |
10841 | if (PyErr_Occurred()) SWIG_fail; | |
10842 | } | |
10843 | Py_INCREF(Py_None); resultobj = Py_None; | |
10844 | return resultobj; | |
10845 | fail: | |
10846 | return NULL; | |
10847 | } | |
10848 | ||
10849 | ||
10850 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10851 | PyObject *resultobj; | |
10852 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10853 | int arg2 ; | |
10854 | PyObject * obj0 = 0 ; | |
994141e6 | 10855 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10856 | char *kwnames[] = { |
10857 | (char *) "self",(char *) "change", NULL | |
10858 | }; | |
10859 | ||
994141e6 | 10860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10862 | { |
10863 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10864 | if (PyErr_Occurred()) SWIG_fail; | |
10865 | } | |
d14a1e28 RD |
10866 | { |
10867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10868 | (arg1)->SetButtonChange(arg2); | |
10869 | ||
10870 | wxPyEndAllowThreads(__tstate); | |
10871 | if (PyErr_Occurred()) SWIG_fail; | |
10872 | } | |
10873 | Py_INCREF(Py_None); resultobj = Py_None; | |
10874 | return resultobj; | |
10875 | fail: | |
10876 | return NULL; | |
10877 | } | |
10878 | ||
10879 | ||
10880 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10881 | PyObject *resultobj; | |
10882 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10883 | wxPoint *arg2 = 0 ; | |
10884 | wxPoint temp2 ; | |
10885 | PyObject * obj0 = 0 ; | |
10886 | PyObject * obj1 = 0 ; | |
10887 | char *kwnames[] = { | |
10888 | (char *) "self",(char *) "pos", NULL | |
10889 | }; | |
10890 | ||
10891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
10892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10893 | { | |
10894 | arg2 = &temp2; | |
10895 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10896 | } | |
10897 | { | |
10898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10899 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
10900 | ||
10901 | wxPyEndAllowThreads(__tstate); | |
10902 | if (PyErr_Occurred()) SWIG_fail; | |
10903 | } | |
10904 | Py_INCREF(Py_None); resultobj = Py_None; | |
10905 | return resultobj; | |
10906 | fail: | |
10907 | return NULL; | |
10908 | } | |
10909 | ||
10910 | ||
10911 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10912 | PyObject *resultobj; | |
10913 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10914 | int arg2 ; | |
10915 | PyObject * obj0 = 0 ; | |
994141e6 | 10916 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10917 | char *kwnames[] = { |
10918 | (char *) "self",(char *) "zPos", NULL | |
10919 | }; | |
10920 | ||
994141e6 | 10921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10923 | { |
10924 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10925 | if (PyErr_Occurred()) SWIG_fail; | |
10926 | } | |
d14a1e28 RD |
10927 | { |
10928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10929 | (arg1)->SetZPosition(arg2); | |
10930 | ||
10931 | wxPyEndAllowThreads(__tstate); | |
10932 | if (PyErr_Occurred()) SWIG_fail; | |
10933 | } | |
10934 | Py_INCREF(Py_None); resultobj = Py_None; | |
10935 | return resultobj; | |
10936 | fail: | |
10937 | return NULL; | |
10938 | } | |
10939 | ||
10940 | ||
10941 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10942 | PyObject *resultobj; | |
10943 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10944 | bool result; | |
10945 | PyObject * obj0 = 0 ; | |
10946 | char *kwnames[] = { | |
10947 | (char *) "self", NULL | |
10948 | }; | |
10949 | ||
10950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
10951 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10952 | { | |
10953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10954 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
10955 | ||
10956 | wxPyEndAllowThreads(__tstate); | |
10957 | if (PyErr_Occurred()) SWIG_fail; | |
10958 | } | |
4d5c3d91 | 10959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10960 | return resultobj; |
10961 | fail: | |
10962 | return NULL; | |
10963 | } | |
10964 | ||
10965 | ||
10966 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10967 | PyObject *resultobj; | |
10968 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10969 | bool result; | |
10970 | PyObject * obj0 = 0 ; | |
10971 | char *kwnames[] = { | |
10972 | (char *) "self", NULL | |
10973 | }; | |
10974 | ||
10975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
10976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10977 | { | |
10978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10979 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
10980 | ||
10981 | wxPyEndAllowThreads(__tstate); | |
10982 | if (PyErr_Occurred()) SWIG_fail; | |
10983 | } | |
4d5c3d91 | 10984 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10985 | return resultobj; |
10986 | fail: | |
10987 | return NULL; | |
10988 | } | |
10989 | ||
10990 | ||
10991 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10992 | PyObject *resultobj; | |
10993 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10994 | bool result; | |
10995 | PyObject * obj0 = 0 ; | |
10996 | char *kwnames[] = { | |
10997 | (char *) "self", NULL | |
10998 | }; | |
10999 | ||
11000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
11001 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11002 | { | |
11003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11004 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
11005 | ||
11006 | wxPyEndAllowThreads(__tstate); | |
11007 | if (PyErr_Occurred()) SWIG_fail; | |
11008 | } | |
4d5c3d91 | 11009 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11010 | return resultobj; |
11011 | fail: | |
11012 | return NULL; | |
11013 | } | |
11014 | ||
11015 | ||
11016 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11017 | PyObject *resultobj; | |
11018 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11019 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11020 | bool result; | |
11021 | PyObject * obj0 = 0 ; | |
994141e6 | 11022 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11023 | char *kwnames[] = { |
11024 | (char *) "self",(char *) "but", NULL | |
11025 | }; | |
11026 | ||
994141e6 | 11027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11029 | if (obj1) { |
11030 | { | |
11031 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11032 | if (PyErr_Occurred()) SWIG_fail; | |
11033 | } | |
11034 | } | |
d14a1e28 RD |
11035 | { |
11036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11037 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
11038 | ||
11039 | wxPyEndAllowThreads(__tstate); | |
11040 | if (PyErr_Occurred()) SWIG_fail; | |
11041 | } | |
4d5c3d91 | 11042 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11043 | return resultobj; |
11044 | fail: | |
11045 | return NULL; | |
11046 | } | |
11047 | ||
11048 | ||
11049 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11050 | PyObject *resultobj; | |
11051 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11052 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11053 | bool result; | |
11054 | PyObject * obj0 = 0 ; | |
994141e6 | 11055 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11056 | char *kwnames[] = { |
11057 | (char *) "self",(char *) "but", NULL | |
11058 | }; | |
11059 | ||
994141e6 | 11060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11062 | if (obj1) { |
11063 | { | |
11064 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11065 | if (PyErr_Occurred()) SWIG_fail; | |
11066 | } | |
11067 | } | |
d14a1e28 RD |
11068 | { |
11069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11070 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
11071 | ||
11072 | wxPyEndAllowThreads(__tstate); | |
11073 | if (PyErr_Occurred()) SWIG_fail; | |
11074 | } | |
4d5c3d91 | 11075 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11076 | return resultobj; |
11077 | fail: | |
11078 | return NULL; | |
11079 | } | |
11080 | ||
11081 | ||
11082 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11083 | PyObject *resultobj; | |
11084 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11085 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11086 | bool result; | |
11087 | PyObject * obj0 = 0 ; | |
994141e6 | 11088 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11089 | char *kwnames[] = { |
11090 | (char *) "self",(char *) "but", NULL | |
11091 | }; | |
11092 | ||
994141e6 | 11093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11095 | if (obj1) { |
11096 | { | |
11097 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11098 | if (PyErr_Occurred()) SWIG_fail; | |
11099 | } | |
11100 | } | |
d14a1e28 RD |
11101 | { |
11102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11103 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
11104 | ||
11105 | wxPyEndAllowThreads(__tstate); | |
11106 | if (PyErr_Occurred()) SWIG_fail; | |
11107 | } | |
4d5c3d91 | 11108 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11109 | return resultobj; |
11110 | fail: | |
11111 | return NULL; | |
11112 | } | |
11113 | ||
11114 | ||
11115 | static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) { | |
11116 | PyObject *obj; | |
11117 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11118 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
11119 | Py_INCREF(obj); | |
11120 | return Py_BuildValue((char *)""); | |
11121 | } | |
4d5c3d91 RD |
11122 | static PyObject *_wrap_new_Sound__SWIG_0(PyObject *self, PyObject *args) { |
11123 | PyObject *resultobj; | |
11124 | wxSound *result; | |
11125 | ||
11126 | if(!PyArg_ParseTuple(args,(char *)":new_Sound")) goto fail; | |
11127 | { | |
11128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11129 | result = (wxSound *)new wxSound(); | |
11130 | ||
11131 | wxPyEndAllowThreads(__tstate); | |
11132 | if (PyErr_Occurred()) SWIG_fail; | |
11133 | } | |
11134 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSound, 1); | |
11135 | return resultobj; | |
11136 | fail: | |
11137 | return NULL; | |
11138 | } | |
11139 | ||
11140 | ||
11141 | static PyObject *_wrap_new_Sound__SWIG_1(PyObject *self, PyObject *args) { | |
d14a1e28 RD |
11142 | PyObject *resultobj; |
11143 | wxString *arg1 = 0 ; | |
4d5c3d91 RD |
11144 | bool arg2 = (bool) false ; |
11145 | wxSound *result; | |
e811c8ce | 11146 | bool temp1 = False ; |
d14a1e28 RD |
11147 | PyObject * obj0 = 0 ; |
11148 | PyObject * obj1 = 0 ; | |
d14a1e28 | 11149 | |
4d5c3d91 | 11150 | if(!PyArg_ParseTuple(args,(char *)"O|O:new_Sound",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
11151 | { |
11152 | arg1 = wxString_in_helper(obj0); | |
11153 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 11154 | temp1 = True; |
d14a1e28 RD |
11155 | } |
11156 | if (obj1) { | |
a41e16b6 | 11157 | { |
994141e6 | 11158 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
11159 | if (PyErr_Occurred()) SWIG_fail; |
11160 | } | |
d14a1e28 RD |
11161 | } |
11162 | { | |
11163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 11164 | result = (wxSound *)new wxSound((wxString const &)*arg1,arg2); |
d14a1e28 RD |
11165 | |
11166 | wxPyEndAllowThreads(__tstate); | |
11167 | if (PyErr_Occurred()) SWIG_fail; | |
11168 | } | |
4d5c3d91 | 11169 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSound, 1); |
d14a1e28 RD |
11170 | { |
11171 | if (temp1) | |
11172 | delete arg1; | |
11173 | } | |
11174 | return resultobj; | |
11175 | fail: | |
11176 | { | |
11177 | if (temp1) | |
11178 | delete arg1; | |
11179 | } | |
11180 | return NULL; | |
11181 | } | |
11182 | ||
11183 | ||
4d5c3d91 | 11184 | static PyObject *_wrap_new_Sound__SWIG_2(PyObject *self, PyObject *args) { |
d14a1e28 | 11185 | PyObject *resultobj; |
4d5c3d91 RD |
11186 | int arg1 ; |
11187 | wxByte *arg2 = (wxByte *) 0 ; | |
11188 | wxSound *result; | |
d14a1e28 | 11189 | PyObject * obj0 = 0 ; |
4d5c3d91 | 11190 | PyObject * obj1 = 0 ; |
d14a1e28 | 11191 | |
4d5c3d91 | 11192 | if(!PyArg_ParseTuple(args,(char *)"OO:new_Sound",&obj0,&obj1)) goto fail; |
d14a1e28 | 11193 | { |
4d5c3d91 RD |
11194 | arg1 = (int) SWIG_PyObj_AsInt(obj0); |
11195 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 11196 | } |
4d5c3d91 | 11197 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxByte,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
11198 | { |
11199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 11200 | result = (wxSound *)new wxSound(arg1,(wxByte const *)arg2); |
d14a1e28 RD |
11201 | |
11202 | wxPyEndAllowThreads(__tstate); | |
11203 | if (PyErr_Occurred()) SWIG_fail; | |
11204 | } | |
4d5c3d91 | 11205 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSound, 1); |
d14a1e28 RD |
11206 | return resultobj; |
11207 | fail: | |
4d5c3d91 RD |
11208 | return NULL; |
11209 | } | |
11210 | ||
11211 | ||
11212 | static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args) { | |
11213 | int argc; | |
11214 | PyObject *argv[3]; | |
11215 | int ii; | |
11216 | ||
11217 | argc = PyObject_Length(args); | |
11218 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
11219 | argv[ii] = PyTuple_GetItem(args,ii); | |
d14a1e28 | 11220 | } |
4d5c3d91 RD |
11221 | if (argc == 0) { |
11222 | return _wrap_new_Sound__SWIG_0(self,args); | |
11223 | } | |
11224 | if ((argc >= 1) && (argc <= 2)) { | |
11225 | int _v; | |
11226 | { | |
11227 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
11228 | } | |
11229 | if (_v) { | |
11230 | if (argc <= 1) { | |
11231 | return _wrap_new_Sound__SWIG_1(self,args); | |
11232 | } | |
11233 | { | |
11234 | SWIG_PyObj_AsBool(argv[1]); | |
11235 | if (PyErr_Occurred()) { | |
11236 | _v = 0; | |
11237 | PyErr_Clear(); | |
11238 | } else { | |
11239 | _v = 1; | |
11240 | } | |
11241 | } | |
11242 | if (_v) { | |
11243 | return _wrap_new_Sound__SWIG_1(self,args); | |
11244 | } | |
11245 | } | |
11246 | } | |
11247 | if (argc == 2) { | |
11248 | int _v; | |
11249 | { | |
11250 | SWIG_PyObj_AsInt(argv[0]); | |
11251 | if (PyErr_Occurred()) { | |
11252 | _v = 0; | |
11253 | PyErr_Clear(); | |
11254 | } else { | |
11255 | _v = 1; | |
11256 | } | |
11257 | } | |
11258 | if (_v) { | |
11259 | { | |
11260 | void *ptr; | |
11261 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxByte, 0) == -1) { | |
11262 | _v = 0; | |
11263 | PyErr_Clear(); | |
11264 | } else { | |
11265 | _v = 1; | |
11266 | } | |
11267 | } | |
11268 | if (_v) { | |
11269 | return _wrap_new_Sound__SWIG_2(self,args); | |
11270 | } | |
11271 | } | |
11272 | } | |
11273 | ||
11274 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Sound'"); | |
d14a1e28 RD |
11275 | return NULL; |
11276 | } | |
11277 | ||
11278 | ||
4d5c3d91 | 11279 | static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11280 | PyObject *resultobj; |
4d5c3d91 | 11281 | wxSound *arg1 = (wxSound *) 0 ; |
d14a1e28 RD |
11282 | PyObject * obj0 = 0 ; |
11283 | char *kwnames[] = { | |
11284 | (char *) "self", NULL | |
11285 | }; | |
11286 | ||
4d5c3d91 RD |
11287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; |
11288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSound,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
11289 | { |
11290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11291 | delete arg1; | |
11292 | ||
11293 | wxPyEndAllowThreads(__tstate); | |
11294 | if (PyErr_Occurred()) SWIG_fail; | |
11295 | } | |
11296 | Py_INCREF(Py_None); resultobj = Py_None; | |
11297 | return resultobj; | |
11298 | fail: | |
11299 | return NULL; | |
11300 | } | |
11301 | ||
11302 | ||
4d5c3d91 | 11303 | static PyObject *_wrap_Sound_Create__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 | 11304 | PyObject *resultobj; |
4d5c3d91 RD |
11305 | wxSound *arg1 = (wxSound *) 0 ; |
11306 | wxString *arg2 = 0 ; | |
11307 | bool arg3 = (bool) false ; | |
d14a1e28 | 11308 | bool result; |
4d5c3d91 | 11309 | bool temp2 = False ; |
d14a1e28 | 11310 | PyObject * obj0 = 0 ; |
4d5c3d91 RD |
11311 | PyObject * obj1 = 0 ; |
11312 | PyObject * obj2 = 0 ; | |
d14a1e28 | 11313 | |
4d5c3d91 RD |
11314 | if(!PyArg_ParseTuple(args,(char *)"OO|O:Sound_Create",&obj0,&obj1,&obj2)) goto fail; |
11315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSound,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11316 | { | |
11317 | arg2 = wxString_in_helper(obj1); | |
11318 | if (arg2 == NULL) SWIG_fail; | |
11319 | temp2 = True; | |
11320 | } | |
11321 | if (obj2) { | |
11322 | { | |
11323 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
11324 | if (PyErr_Occurred()) SWIG_fail; | |
11325 | } | |
11326 | } | |
d14a1e28 RD |
11327 | { |
11328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 11329 | result = (bool)(arg1)->Create((wxString const &)*arg2,arg3); |
d14a1e28 RD |
11330 | |
11331 | wxPyEndAllowThreads(__tstate); | |
11332 | if (PyErr_Occurred()) SWIG_fail; | |
11333 | } | |
4d5c3d91 RD |
11334 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
11335 | { | |
11336 | if (temp2) | |
11337 | delete arg2; | |
11338 | } | |
d14a1e28 RD |
11339 | return resultobj; |
11340 | fail: | |
4d5c3d91 RD |
11341 | { |
11342 | if (temp2) | |
11343 | delete arg2; | |
11344 | } | |
d14a1e28 RD |
11345 | return NULL; |
11346 | } | |
11347 | ||
11348 | ||
4d5c3d91 | 11349 | static PyObject *_wrap_Sound_Create__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 | 11350 | PyObject *resultobj; |
4d5c3d91 RD |
11351 | wxSound *arg1 = (wxSound *) 0 ; |
11352 | int arg2 ; | |
11353 | wxByte *arg3 = (wxByte *) 0 ; | |
d14a1e28 RD |
11354 | bool result; |
11355 | PyObject * obj0 = 0 ; | |
11356 | PyObject * obj1 = 0 ; | |
11357 | PyObject * obj2 = 0 ; | |
4d5c3d91 RD |
11358 | |
11359 | if(!PyArg_ParseTuple(args,(char *)"OOO:Sound_Create",&obj0,&obj1,&obj2)) goto fail; | |
11360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSound,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11361 | { | |
11362 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11363 | if (PyErr_Occurred()) SWIG_fail; | |
11364 | } | |
11365 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxByte,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11366 | { | |
11367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11368 | result = (bool)(arg1)->Create(arg2,(wxByte const *)arg3); | |
11369 | ||
11370 | wxPyEndAllowThreads(__tstate); | |
11371 | if (PyErr_Occurred()) SWIG_fail; | |
11372 | } | |
11373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11374 | return resultobj; | |
11375 | fail: | |
11376 | return NULL; | |
11377 | } | |
11378 | ||
11379 | ||
11380 | static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args) { | |
11381 | int argc; | |
11382 | PyObject *argv[4]; | |
11383 | int ii; | |
11384 | ||
11385 | argc = PyObject_Length(args); | |
11386 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
11387 | argv[ii] = PyTuple_GetItem(args,ii); | |
11388 | } | |
11389 | if ((argc >= 2) && (argc <= 3)) { | |
11390 | int _v; | |
11391 | { | |
11392 | void *ptr; | |
11393 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxSound, 0) == -1) { | |
11394 | _v = 0; | |
11395 | PyErr_Clear(); | |
11396 | } else { | |
11397 | _v = 1; | |
11398 | } | |
11399 | } | |
11400 | if (_v) { | |
11401 | { | |
11402 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
11403 | } | |
11404 | if (_v) { | |
11405 | if (argc <= 2) { | |
11406 | return _wrap_Sound_Create__SWIG_0(self,args); | |
11407 | } | |
11408 | { | |
11409 | SWIG_PyObj_AsBool(argv[2]); | |
11410 | if (PyErr_Occurred()) { | |
11411 | _v = 0; | |
11412 | PyErr_Clear(); | |
11413 | } else { | |
11414 | _v = 1; | |
11415 | } | |
11416 | } | |
11417 | if (_v) { | |
11418 | return _wrap_Sound_Create__SWIG_0(self,args); | |
11419 | } | |
11420 | } | |
11421 | } | |
11422 | } | |
11423 | if (argc == 3) { | |
11424 | int _v; | |
11425 | { | |
11426 | void *ptr; | |
11427 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxSound, 0) == -1) { | |
11428 | _v = 0; | |
11429 | PyErr_Clear(); | |
11430 | } else { | |
11431 | _v = 1; | |
11432 | } | |
11433 | } | |
11434 | if (_v) { | |
11435 | { | |
11436 | SWIG_PyObj_AsInt(argv[1]); | |
11437 | if (PyErr_Occurred()) { | |
11438 | _v = 0; | |
11439 | PyErr_Clear(); | |
11440 | } else { | |
11441 | _v = 1; | |
11442 | } | |
11443 | } | |
11444 | if (_v) { | |
11445 | { | |
11446 | void *ptr; | |
11447 | if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxByte, 0) == -1) { | |
11448 | _v = 0; | |
11449 | PyErr_Clear(); | |
11450 | } else { | |
11451 | _v = 1; | |
11452 | } | |
11453 | } | |
11454 | if (_v) { | |
11455 | return _wrap_Sound_Create__SWIG_1(self,args); | |
11456 | } | |
11457 | } | |
11458 | } | |
11459 | } | |
11460 | ||
11461 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Sound_Create'"); | |
11462 | return NULL; | |
11463 | } | |
11464 | ||
11465 | ||
11466 | static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11467 | PyObject *resultobj; | |
11468 | wxSound *arg1 = (wxSound *) 0 ; | |
11469 | bool result; | |
11470 | PyObject * obj0 = 0 ; | |
d14a1e28 | 11471 | char *kwnames[] = { |
4d5c3d91 | 11472 | (char *) "self", NULL |
d14a1e28 RD |
11473 | }; |
11474 | ||
4d5c3d91 RD |
11475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; |
11476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSound,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11477 | { | |
11478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11479 | result = (bool)(arg1)->IsOk(); | |
11480 | ||
11481 | wxPyEndAllowThreads(__tstate); | |
11482 | if (PyErr_Occurred()) SWIG_fail; | |
11483 | } | |
11484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11485 | return resultobj; | |
11486 | fail: | |
11487 | return NULL; | |
11488 | } | |
11489 | ||
11490 | ||
11491 | static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args) { | |
11492 | PyObject *resultobj; | |
11493 | wxSound *arg1 = (wxSound *) 0 ; | |
11494 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11495 | bool result; | |
11496 | PyObject * obj0 = 0 ; | |
11497 | PyObject * obj1 = 0 ; | |
11498 | ||
11499 | if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_Play",&obj0,&obj1)) goto fail; | |
11500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSound,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 | 11501 | if (obj1) { |
a41e16b6 | 11502 | { |
4d5c3d91 | 11503 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); |
a41e16b6 RD |
11504 | if (PyErr_Occurred()) SWIG_fail; |
11505 | } | |
d14a1e28 | 11506 | } |
4d5c3d91 RD |
11507 | { |
11508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11509 | result = (bool)((wxSound const *)arg1)->Play(arg2); | |
11510 | ||
11511 | wxPyEndAllowThreads(__tstate); | |
11512 | if (PyErr_Occurred()) SWIG_fail; | |
11513 | } | |
11514 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11515 | return resultobj; | |
11516 | fail: | |
11517 | return NULL; | |
11518 | } | |
11519 | ||
11520 | ||
11521 | static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args) { | |
11522 | PyObject *resultobj; | |
11523 | wxString *arg1 = 0 ; | |
11524 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11525 | bool result; | |
11526 | bool temp1 = False ; | |
11527 | PyObject * obj0 = 0 ; | |
11528 | PyObject * obj1 = 0 ; | |
11529 | ||
11530 | if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_PlaySound",&obj0,&obj1)) goto fail; | |
11531 | { | |
11532 | arg1 = wxString_in_helper(obj0); | |
11533 | if (arg1 == NULL) SWIG_fail; | |
11534 | temp1 = True; | |
11535 | } | |
11536 | if (obj1) { | |
a41e16b6 | 11537 | { |
4d5c3d91 | 11538 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); |
a41e16b6 RD |
11539 | if (PyErr_Occurred()) SWIG_fail; |
11540 | } | |
d14a1e28 RD |
11541 | } |
11542 | { | |
11543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 11544 | result = (bool)wxSound::Play((wxString const &)*arg1,arg2); |
d14a1e28 RD |
11545 | |
11546 | wxPyEndAllowThreads(__tstate); | |
11547 | if (PyErr_Occurred()) SWIG_fail; | |
11548 | } | |
4d5c3d91 RD |
11549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
11550 | { | |
11551 | if (temp1) | |
11552 | delete arg1; | |
11553 | } | |
d14a1e28 RD |
11554 | return resultobj; |
11555 | fail: | |
4d5c3d91 RD |
11556 | { |
11557 | if (temp1) | |
11558 | delete arg1; | |
11559 | } | |
d14a1e28 RD |
11560 | return NULL; |
11561 | } | |
11562 | ||
11563 | ||
4d5c3d91 RD |
11564 | static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { |
11565 | PyObject *resultobj; | |
11566 | char *kwnames[] = { | |
11567 | NULL | |
11568 | }; | |
11569 | ||
11570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; | |
11571 | { | |
11572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11573 | wxSound::Stop(); | |
11574 | ||
11575 | wxPyEndAllowThreads(__tstate); | |
11576 | if (PyErr_Occurred()) SWIG_fail; | |
11577 | } | |
11578 | Py_INCREF(Py_None); resultobj = Py_None; | |
11579 | return resultobj; | |
11580 | fail: | |
11581 | return NULL; | |
11582 | } | |
11583 | ||
11584 | ||
11585 | static PyObject * Sound_swigregister(PyObject *self, PyObject *args) { | |
d14a1e28 RD |
11586 | PyObject *obj; |
11587 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4d5c3d91 | 11588 | SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); |
d14a1e28 RD |
11589 | Py_INCREF(obj); |
11590 | return Py_BuildValue((char *)""); | |
11591 | } | |
11592 | static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11593 | PyObject *resultobj; | |
11594 | wxString *arg1 = 0 ; | |
11595 | wxString *arg2 = 0 ; | |
11596 | wxString *arg3 = 0 ; | |
11597 | wxString *arg4 = 0 ; | |
11598 | wxFileTypeInfo *result; | |
e811c8ce RD |
11599 | bool temp1 = False ; |
11600 | bool temp2 = False ; | |
11601 | bool temp3 = False ; | |
11602 | bool temp4 = False ; | |
d14a1e28 RD |
11603 | PyObject * obj0 = 0 ; |
11604 | PyObject * obj1 = 0 ; | |
11605 | PyObject * obj2 = 0 ; | |
11606 | PyObject * obj3 = 0 ; | |
11607 | char *kwnames[] = { | |
11608 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
11609 | }; | |
11610 | ||
11611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11612 | { | |
11613 | arg1 = wxString_in_helper(obj0); | |
11614 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 11615 | temp1 = True; |
d14a1e28 RD |
11616 | } |
11617 | { | |
11618 | arg2 = wxString_in_helper(obj1); | |
11619 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11620 | temp2 = True; |
d14a1e28 RD |
11621 | } |
11622 | { | |
11623 | arg3 = wxString_in_helper(obj2); | |
11624 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11625 | temp3 = True; |
d14a1e28 RD |
11626 | } |
11627 | { | |
11628 | arg4 = wxString_in_helper(obj3); | |
11629 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 11630 | temp4 = True; |
d14a1e28 RD |
11631 | } |
11632 | { | |
11633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11634 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
11635 | ||
11636 | wxPyEndAllowThreads(__tstate); | |
11637 | if (PyErr_Occurred()) SWIG_fail; | |
11638 | } | |
11639 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
11640 | { | |
11641 | if (temp1) | |
11642 | delete arg1; | |
11643 | } | |
11644 | { | |
11645 | if (temp2) | |
11646 | delete arg2; | |
11647 | } | |
11648 | { | |
11649 | if (temp3) | |
11650 | delete arg3; | |
11651 | } | |
11652 | { | |
11653 | if (temp4) | |
11654 | delete arg4; | |
11655 | } | |
11656 | return resultobj; | |
11657 | fail: | |
11658 | { | |
11659 | if (temp1) | |
11660 | delete arg1; | |
11661 | } | |
11662 | { | |
11663 | if (temp2) | |
11664 | delete arg2; | |
11665 | } | |
11666 | { | |
11667 | if (temp3) | |
11668 | delete arg3; | |
11669 | } | |
11670 | { | |
11671 | if (temp4) | |
11672 | delete arg4; | |
11673 | } | |
11674 | return NULL; | |
11675 | } | |
11676 | ||
11677 | ||
11678 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11679 | PyObject *resultobj; | |
11680 | wxArrayString *arg1 = 0 ; | |
11681 | wxFileTypeInfo *result; | |
11682 | PyObject * obj0 = 0 ; | |
11683 | char *kwnames[] = { | |
11684 | (char *) "sArray", NULL | |
11685 | }; | |
11686 | ||
11687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
11688 | { | |
11689 | if (! PySequence_Check(obj0)) { | |
11690 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11691 | SWIG_fail; | |
11692 | } | |
11693 | arg1 = new wxArrayString; | |
11694 | int i, len=PySequence_Length(obj0); | |
11695 | for (i=0; i<len; i++) { | |
11696 | PyObject* item = PySequence_GetItem(obj0, i); | |
11697 | #if wxUSE_UNICODE | |
11698 | PyObject* str = PyObject_Unicode(item); | |
11699 | #else | |
11700 | PyObject* str = PyObject_Str(item); | |
11701 | #endif | |
11702 | arg1->Add(Py2wxString(str)); | |
11703 | Py_DECREF(item); | |
11704 | Py_DECREF(str); | |
11705 | } | |
11706 | } | |
11707 | { | |
11708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11709 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
11710 | ||
11711 | wxPyEndAllowThreads(__tstate); | |
11712 | if (PyErr_Occurred()) SWIG_fail; | |
11713 | } | |
11714 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
11715 | { | |
11716 | if (arg1) delete arg1; | |
11717 | } | |
11718 | return resultobj; | |
11719 | fail: | |
11720 | { | |
11721 | if (arg1) delete arg1; | |
11722 | } | |
11723 | return NULL; | |
11724 | } | |
11725 | ||
11726 | ||
11727 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11728 | PyObject *resultobj; | |
11729 | wxFileTypeInfo *result; | |
11730 | char *kwnames[] = { | |
11731 | NULL | |
11732 | }; | |
11733 | ||
11734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
11735 | { | |
11736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11737 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
11738 | ||
11739 | wxPyEndAllowThreads(__tstate); | |
11740 | if (PyErr_Occurred()) SWIG_fail; | |
11741 | } | |
11742 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
11743 | return resultobj; | |
11744 | fail: | |
11745 | return NULL; | |
11746 | } | |
11747 | ||
11748 | ||
11749 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11750 | PyObject *resultobj; | |
11751 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11752 | bool result; | |
11753 | PyObject * obj0 = 0 ; | |
11754 | char *kwnames[] = { | |
11755 | (char *) "self", NULL | |
11756 | }; | |
11757 | ||
11758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
11759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11760 | { | |
11761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11762 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
11763 | ||
11764 | wxPyEndAllowThreads(__tstate); | |
11765 | if (PyErr_Occurred()) SWIG_fail; | |
11766 | } | |
4d5c3d91 | 11767 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11768 | return resultobj; |
11769 | fail: | |
11770 | return NULL; | |
11771 | } | |
11772 | ||
11773 | ||
11774 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11775 | PyObject *resultobj; | |
11776 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11777 | wxString *arg2 = 0 ; | |
11778 | int arg3 = (int) 0 ; | |
e811c8ce | 11779 | bool temp2 = False ; |
d14a1e28 RD |
11780 | PyObject * obj0 = 0 ; |
11781 | PyObject * obj1 = 0 ; | |
994141e6 | 11782 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11783 | char *kwnames[] = { |
11784 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
11785 | }; | |
11786 | ||
994141e6 | 11787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
11788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11789 | { | |
11790 | arg2 = wxString_in_helper(obj1); | |
11791 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11792 | temp2 = True; |
d14a1e28 | 11793 | } |
994141e6 RD |
11794 | if (obj2) { |
11795 | { | |
11796 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11797 | if (PyErr_Occurred()) SWIG_fail; | |
11798 | } | |
11799 | } | |
d14a1e28 RD |
11800 | { |
11801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11802 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
11803 | ||
11804 | wxPyEndAllowThreads(__tstate); | |
11805 | if (PyErr_Occurred()) SWIG_fail; | |
11806 | } | |
11807 | Py_INCREF(Py_None); resultobj = Py_None; | |
11808 | { | |
11809 | if (temp2) | |
11810 | delete arg2; | |
11811 | } | |
11812 | return resultobj; | |
11813 | fail: | |
11814 | { | |
11815 | if (temp2) | |
11816 | delete arg2; | |
11817 | } | |
11818 | return NULL; | |
11819 | } | |
11820 | ||
11821 | ||
11822 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11823 | PyObject *resultobj; | |
11824 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11825 | wxString *arg2 = 0 ; | |
e811c8ce | 11826 | bool temp2 = False ; |
d14a1e28 RD |
11827 | PyObject * obj0 = 0 ; |
11828 | PyObject * obj1 = 0 ; | |
11829 | char *kwnames[] = { | |
11830 | (char *) "self",(char *) "shortDesc", NULL | |
11831 | }; | |
11832 | ||
11833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
11834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11835 | { | |
11836 | arg2 = wxString_in_helper(obj1); | |
11837 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11838 | temp2 = True; |
d14a1e28 RD |
11839 | } |
11840 | { | |
11841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11842 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
11843 | ||
11844 | wxPyEndAllowThreads(__tstate); | |
11845 | if (PyErr_Occurred()) SWIG_fail; | |
11846 | } | |
11847 | Py_INCREF(Py_None); resultobj = Py_None; | |
11848 | { | |
11849 | if (temp2) | |
11850 | delete arg2; | |
11851 | } | |
11852 | return resultobj; | |
11853 | fail: | |
11854 | { | |
11855 | if (temp2) | |
11856 | delete arg2; | |
11857 | } | |
11858 | return NULL; | |
11859 | } | |
11860 | ||
11861 | ||
11862 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11863 | PyObject *resultobj; | |
11864 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11865 | wxString *result; | |
11866 | PyObject * obj0 = 0 ; | |
11867 | char *kwnames[] = { | |
11868 | (char *) "self", NULL | |
11869 | }; | |
11870 | ||
11871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
11872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11873 | { | |
11874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11875 | { | |
11876 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
11877 | result = (wxString *) &_result_ref; | |
11878 | } | |
11879 | ||
11880 | wxPyEndAllowThreads(__tstate); | |
11881 | if (PyErr_Occurred()) SWIG_fail; | |
11882 | } | |
cc6dd355 RD |
11883 | { |
11884 | #if wxUSE_UNICODE | |
11885 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11886 | #else | |
11887 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11888 | #endif | |
11889 | } | |
d14a1e28 RD |
11890 | return resultobj; |
11891 | fail: | |
11892 | return NULL; | |
11893 | } | |
11894 | ||
11895 | ||
11896 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11897 | PyObject *resultobj; | |
11898 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11899 | wxString *result; | |
11900 | PyObject * obj0 = 0 ; | |
11901 | char *kwnames[] = { | |
11902 | (char *) "self", NULL | |
11903 | }; | |
11904 | ||
11905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
11906 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11907 | { | |
11908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11909 | { | |
11910 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
11911 | result = (wxString *) &_result_ref; | |
11912 | } | |
11913 | ||
11914 | wxPyEndAllowThreads(__tstate); | |
11915 | if (PyErr_Occurred()) SWIG_fail; | |
11916 | } | |
cc6dd355 RD |
11917 | { |
11918 | #if wxUSE_UNICODE | |
11919 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11920 | #else | |
11921 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11922 | #endif | |
11923 | } | |
d14a1e28 RD |
11924 | return resultobj; |
11925 | fail: | |
11926 | return NULL; | |
11927 | } | |
11928 | ||
11929 | ||
11930 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11931 | PyObject *resultobj; | |
11932 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11933 | wxString *result; | |
11934 | PyObject * obj0 = 0 ; | |
11935 | char *kwnames[] = { | |
11936 | (char *) "self", NULL | |
11937 | }; | |
11938 | ||
11939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
11940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11941 | { | |
11942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11943 | { | |
11944 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
11945 | result = (wxString *) &_result_ref; | |
11946 | } | |
11947 | ||
11948 | wxPyEndAllowThreads(__tstate); | |
11949 | if (PyErr_Occurred()) SWIG_fail; | |
11950 | } | |
cc6dd355 RD |
11951 | { |
11952 | #if wxUSE_UNICODE | |
11953 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11954 | #else | |
11955 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11956 | #endif | |
11957 | } | |
d14a1e28 RD |
11958 | return resultobj; |
11959 | fail: | |
11960 | return NULL; | |
11961 | } | |
11962 | ||
11963 | ||
11964 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11965 | PyObject *resultobj; | |
11966 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11967 | wxString *result; | |
11968 | PyObject * obj0 = 0 ; | |
11969 | char *kwnames[] = { | |
11970 | (char *) "self", NULL | |
11971 | }; | |
11972 | ||
11973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
11974 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11975 | { | |
11976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11977 | { | |
11978 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
11979 | result = (wxString *) &_result_ref; | |
11980 | } | |
11981 | ||
11982 | wxPyEndAllowThreads(__tstate); | |
11983 | if (PyErr_Occurred()) SWIG_fail; | |
11984 | } | |
cc6dd355 RD |
11985 | { |
11986 | #if wxUSE_UNICODE | |
11987 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11988 | #else | |
11989 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11990 | #endif | |
11991 | } | |
d14a1e28 RD |
11992 | return resultobj; |
11993 | fail: | |
11994 | return NULL; | |
11995 | } | |
11996 | ||
11997 | ||
11998 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11999 | PyObject *resultobj; | |
12000 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12001 | wxString *result; | |
12002 | PyObject * obj0 = 0 ; | |
12003 | char *kwnames[] = { | |
12004 | (char *) "self", NULL | |
12005 | }; | |
12006 | ||
12007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
12008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12009 | { | |
12010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12011 | { | |
12012 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
12013 | result = (wxString *) &_result_ref; | |
12014 | } | |
12015 | ||
12016 | wxPyEndAllowThreads(__tstate); | |
12017 | if (PyErr_Occurred()) SWIG_fail; | |
12018 | } | |
cc6dd355 RD |
12019 | { |
12020 | #if wxUSE_UNICODE | |
12021 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12022 | #else | |
12023 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12024 | #endif | |
12025 | } | |
d14a1e28 RD |
12026 | return resultobj; |
12027 | fail: | |
12028 | return NULL; | |
12029 | } | |
12030 | ||
12031 | ||
12032 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12033 | PyObject *resultobj; | |
12034 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12035 | wxArrayString *result; | |
12036 | PyObject * obj0 = 0 ; | |
12037 | char *kwnames[] = { | |
12038 | (char *) "self", NULL | |
12039 | }; | |
12040 | ||
12041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
12042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12043 | { | |
12044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12045 | { | |
12046 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
12047 | result = (wxArrayString *) &_result_ref; | |
12048 | } | |
12049 | ||
12050 | wxPyEndAllowThreads(__tstate); | |
12051 | if (PyErr_Occurred()) SWIG_fail; | |
12052 | } | |
12053 | { | |
12054 | resultobj = wxArrayString2PyList_helper(*result); | |
12055 | } | |
12056 | return resultobj; | |
12057 | fail: | |
12058 | return NULL; | |
12059 | } | |
12060 | ||
12061 | ||
12062 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12063 | PyObject *resultobj; | |
12064 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12065 | int result; | |
12066 | PyObject * obj0 = 0 ; | |
12067 | char *kwnames[] = { | |
12068 | (char *) "self", NULL | |
12069 | }; | |
12070 | ||
12071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
12072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12073 | { | |
12074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12075 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
12076 | ||
12077 | wxPyEndAllowThreads(__tstate); | |
12078 | if (PyErr_Occurred()) SWIG_fail; | |
12079 | } | |
994141e6 | 12080 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12081 | return resultobj; |
12082 | fail: | |
12083 | return NULL; | |
12084 | } | |
12085 | ||
12086 | ||
12087 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12088 | PyObject *resultobj; | |
12089 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12090 | wxString *result; | |
12091 | PyObject * obj0 = 0 ; | |
12092 | char *kwnames[] = { | |
12093 | (char *) "self", NULL | |
12094 | }; | |
12095 | ||
12096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
12097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12098 | { | |
12099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12100 | { | |
12101 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
12102 | result = (wxString *) &_result_ref; | |
12103 | } | |
12104 | ||
12105 | wxPyEndAllowThreads(__tstate); | |
12106 | if (PyErr_Occurred()) SWIG_fail; | |
12107 | } | |
cc6dd355 RD |
12108 | { |
12109 | #if wxUSE_UNICODE | |
12110 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12111 | #else | |
12112 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12113 | #endif | |
12114 | } | |
d14a1e28 RD |
12115 | return resultobj; |
12116 | fail: | |
12117 | return NULL; | |
12118 | } | |
12119 | ||
12120 | ||
12121 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12122 | PyObject *resultobj; | |
12123 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12124 | int result; | |
12125 | PyObject * obj0 = 0 ; | |
12126 | char *kwnames[] = { | |
12127 | (char *) "self", NULL | |
12128 | }; | |
12129 | ||
12130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
12131 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12132 | { | |
12133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12134 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
12135 | ||
12136 | wxPyEndAllowThreads(__tstate); | |
12137 | if (PyErr_Occurred()) SWIG_fail; | |
12138 | } | |
994141e6 | 12139 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12140 | return resultobj; |
12141 | fail: | |
12142 | return NULL; | |
12143 | } | |
12144 | ||
12145 | ||
12146 | static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) { | |
12147 | PyObject *obj; | |
12148 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12149 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
12150 | Py_INCREF(obj); | |
12151 | return Py_BuildValue((char *)""); | |
12152 | } | |
12153 | static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12154 | PyObject *resultobj; | |
12155 | wxFileTypeInfo *arg1 = 0 ; | |
12156 | wxFileType *result; | |
12157 | PyObject * obj0 = 0 ; | |
12158 | char *kwnames[] = { | |
12159 | (char *) "ftInfo", NULL | |
12160 | }; | |
12161 | ||
12162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
12163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12164 | if (arg1 == NULL) { | |
12165 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12166 | } | |
12167 | { | |
12168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12169 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
12170 | ||
12171 | wxPyEndAllowThreads(__tstate); | |
12172 | if (PyErr_Occurred()) SWIG_fail; | |
12173 | } | |
12174 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
12175 | return resultobj; | |
12176 | fail: | |
12177 | return NULL; | |
12178 | } | |
12179 | ||
12180 | ||
12181 | static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12182 | PyObject *resultobj; | |
12183 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12184 | PyObject * obj0 = 0 ; | |
12185 | char *kwnames[] = { | |
12186 | (char *) "self", NULL | |
12187 | }; | |
12188 | ||
12189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
12190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12191 | { | |
12192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12193 | delete arg1; | |
12194 | ||
12195 | wxPyEndAllowThreads(__tstate); | |
12196 | if (PyErr_Occurred()) SWIG_fail; | |
12197 | } | |
12198 | Py_INCREF(Py_None); resultobj = Py_None; | |
12199 | return resultobj; | |
12200 | fail: | |
12201 | return NULL; | |
12202 | } | |
12203 | ||
12204 | ||
12205 | static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12206 | PyObject *resultobj; | |
12207 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12208 | PyObject *result; | |
12209 | PyObject * obj0 = 0 ; | |
12210 | char *kwnames[] = { | |
12211 | (char *) "self", NULL | |
12212 | }; | |
12213 | ||
12214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
12215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12216 | { | |
12217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12218 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
12219 | ||
12220 | wxPyEndAllowThreads(__tstate); | |
12221 | if (PyErr_Occurred()) SWIG_fail; | |
12222 | } | |
12223 | resultobj = result; | |
12224 | return resultobj; | |
12225 | fail: | |
12226 | return NULL; | |
12227 | } | |
12228 | ||
12229 | ||
12230 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12231 | PyObject *resultobj; | |
12232 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12233 | PyObject *result; | |
12234 | PyObject * obj0 = 0 ; | |
12235 | char *kwnames[] = { | |
12236 | (char *) "self", NULL | |
12237 | }; | |
12238 | ||
12239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
12240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12241 | { | |
12242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12243 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
12244 | ||
12245 | wxPyEndAllowThreads(__tstate); | |
12246 | if (PyErr_Occurred()) SWIG_fail; | |
12247 | } | |
12248 | resultobj = result; | |
12249 | return resultobj; | |
12250 | fail: | |
12251 | return NULL; | |
12252 | } | |
12253 | ||
12254 | ||
12255 | static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12256 | PyObject *resultobj; | |
12257 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12258 | PyObject *result; | |
12259 | PyObject * obj0 = 0 ; | |
12260 | char *kwnames[] = { | |
12261 | (char *) "self", NULL | |
12262 | }; | |
12263 | ||
12264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
12265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12266 | { | |
12267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12268 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
12269 | ||
12270 | wxPyEndAllowThreads(__tstate); | |
12271 | if (PyErr_Occurred()) SWIG_fail; | |
12272 | } | |
12273 | resultobj = result; | |
12274 | return resultobj; | |
12275 | fail: | |
12276 | return NULL; | |
12277 | } | |
12278 | ||
12279 | ||
12280 | static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12281 | PyObject *resultobj; | |
12282 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12283 | wxIcon *result; | |
12284 | PyObject * obj0 = 0 ; | |
12285 | char *kwnames[] = { | |
12286 | (char *) "self", NULL | |
12287 | }; | |
12288 | ||
12289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
12290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12291 | { | |
12292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12293 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
12294 | ||
12295 | wxPyEndAllowThreads(__tstate); | |
12296 | if (PyErr_Occurred()) SWIG_fail; | |
12297 | } | |
12298 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
12299 | return resultobj; | |
12300 | fail: | |
12301 | return NULL; | |
12302 | } | |
12303 | ||
12304 | ||
12305 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12306 | PyObject *resultobj; | |
12307 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12308 | PyObject *result; | |
12309 | PyObject * obj0 = 0 ; | |
12310 | char *kwnames[] = { | |
12311 | (char *) "self", NULL | |
12312 | }; | |
12313 | ||
12314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
12315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12316 | { | |
12317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12318 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
12319 | ||
12320 | wxPyEndAllowThreads(__tstate); | |
12321 | if (PyErr_Occurred()) SWIG_fail; | |
12322 | } | |
12323 | resultobj = result; | |
12324 | return resultobj; | |
12325 | fail: | |
12326 | return NULL; | |
12327 | } | |
12328 | ||
12329 | ||
12330 | static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12331 | PyObject *resultobj; | |
12332 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12333 | PyObject *result; | |
12334 | PyObject * obj0 = 0 ; | |
12335 | char *kwnames[] = { | |
12336 | (char *) "self", NULL | |
12337 | }; | |
12338 | ||
12339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
12340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12341 | { | |
12342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12343 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
12344 | ||
12345 | wxPyEndAllowThreads(__tstate); | |
12346 | if (PyErr_Occurred()) SWIG_fail; | |
12347 | } | |
12348 | resultobj = result; | |
12349 | return resultobj; | |
12350 | fail: | |
12351 | return NULL; | |
12352 | } | |
12353 | ||
12354 | ||
12355 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12356 | PyObject *resultobj; | |
12357 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12358 | wxString *arg2 = 0 ; | |
12359 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12360 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12361 | PyObject *result; | |
e811c8ce RD |
12362 | bool temp2 = False ; |
12363 | bool temp3 = False ; | |
d14a1e28 RD |
12364 | PyObject * obj0 = 0 ; |
12365 | PyObject * obj1 = 0 ; | |
12366 | PyObject * obj2 = 0 ; | |
12367 | char *kwnames[] = { | |
12368 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12369 | }; | |
12370 | ||
12371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12372 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12373 | { | |
12374 | arg2 = wxString_in_helper(obj1); | |
12375 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12376 | temp2 = True; |
d14a1e28 RD |
12377 | } |
12378 | if (obj2) { | |
12379 | { | |
12380 | arg3 = wxString_in_helper(obj2); | |
12381 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12382 | temp3 = True; |
d14a1e28 RD |
12383 | } |
12384 | } | |
12385 | { | |
12386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12387 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12388 | ||
12389 | wxPyEndAllowThreads(__tstate); | |
12390 | if (PyErr_Occurred()) SWIG_fail; | |
12391 | } | |
12392 | resultobj = result; | |
12393 | { | |
12394 | if (temp2) | |
12395 | delete arg2; | |
12396 | } | |
12397 | { | |
12398 | if (temp3) | |
12399 | delete arg3; | |
12400 | } | |
12401 | return resultobj; | |
12402 | fail: | |
12403 | { | |
12404 | if (temp2) | |
12405 | delete arg2; | |
12406 | } | |
12407 | { | |
12408 | if (temp3) | |
12409 | delete arg3; | |
12410 | } | |
12411 | return NULL; | |
12412 | } | |
12413 | ||
12414 | ||
12415 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12416 | PyObject *resultobj; | |
12417 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12418 | wxString *arg2 = 0 ; | |
12419 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12420 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12421 | PyObject *result; | |
e811c8ce RD |
12422 | bool temp2 = False ; |
12423 | bool temp3 = False ; | |
d14a1e28 RD |
12424 | PyObject * obj0 = 0 ; |
12425 | PyObject * obj1 = 0 ; | |
12426 | PyObject * obj2 = 0 ; | |
12427 | char *kwnames[] = { | |
12428 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12429 | }; | |
12430 | ||
12431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12432 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12433 | { | |
12434 | arg2 = wxString_in_helper(obj1); | |
12435 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12436 | temp2 = True; |
d14a1e28 RD |
12437 | } |
12438 | if (obj2) { | |
12439 | { | |
12440 | arg3 = wxString_in_helper(obj2); | |
12441 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12442 | temp3 = True; |
d14a1e28 RD |
12443 | } |
12444 | } | |
12445 | { | |
12446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12447 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12448 | ||
12449 | wxPyEndAllowThreads(__tstate); | |
12450 | if (PyErr_Occurred()) SWIG_fail; | |
12451 | } | |
12452 | resultobj = result; | |
12453 | { | |
12454 | if (temp2) | |
12455 | delete arg2; | |
12456 | } | |
12457 | { | |
12458 | if (temp3) | |
12459 | delete arg3; | |
12460 | } | |
12461 | return resultobj; | |
12462 | fail: | |
12463 | { | |
12464 | if (temp2) | |
12465 | delete arg2; | |
12466 | } | |
12467 | { | |
12468 | if (temp3) | |
12469 | delete arg3; | |
12470 | } | |
12471 | return NULL; | |
12472 | } | |
12473 | ||
12474 | ||
12475 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12476 | PyObject *resultobj; | |
12477 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12478 | wxString *arg2 = 0 ; | |
12479 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12480 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12481 | PyObject *result; | |
e811c8ce RD |
12482 | bool temp2 = False ; |
12483 | bool temp3 = False ; | |
d14a1e28 RD |
12484 | PyObject * obj0 = 0 ; |
12485 | PyObject * obj1 = 0 ; | |
12486 | PyObject * obj2 = 0 ; | |
12487 | char *kwnames[] = { | |
12488 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12489 | }; | |
12490 | ||
12491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12493 | { | |
12494 | arg2 = wxString_in_helper(obj1); | |
12495 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12496 | temp2 = True; |
d14a1e28 RD |
12497 | } |
12498 | if (obj2) { | |
12499 | { | |
12500 | arg3 = wxString_in_helper(obj2); | |
12501 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12502 | temp3 = True; |
d14a1e28 RD |
12503 | } |
12504 | } | |
12505 | { | |
12506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12507 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12508 | ||
12509 | wxPyEndAllowThreads(__tstate); | |
12510 | if (PyErr_Occurred()) SWIG_fail; | |
12511 | } | |
12512 | resultobj = result; | |
12513 | { | |
12514 | if (temp2) | |
12515 | delete arg2; | |
12516 | } | |
12517 | { | |
12518 | if (temp3) | |
12519 | delete arg3; | |
12520 | } | |
12521 | return resultobj; | |
12522 | fail: | |
12523 | { | |
12524 | if (temp2) | |
12525 | delete arg2; | |
12526 | } | |
12527 | { | |
12528 | if (temp3) | |
12529 | delete arg3; | |
12530 | } | |
12531 | return NULL; | |
12532 | } | |
12533 | ||
12534 | ||
12535 | static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12536 | PyObject *resultobj; | |
12537 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12538 | wxString *arg2 = 0 ; | |
12539 | wxString *arg3 = 0 ; | |
e811c8ce | 12540 | bool arg4 = (bool) True ; |
d14a1e28 | 12541 | bool result; |
e811c8ce RD |
12542 | bool temp2 = False ; |
12543 | bool temp3 = False ; | |
d14a1e28 RD |
12544 | PyObject * obj0 = 0 ; |
12545 | PyObject * obj1 = 0 ; | |
12546 | PyObject * obj2 = 0 ; | |
12547 | PyObject * obj3 = 0 ; | |
12548 | char *kwnames[] = { | |
12549 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
12550 | }; | |
12551 | ||
12552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12554 | { | |
12555 | arg2 = wxString_in_helper(obj1); | |
12556 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12557 | temp2 = True; |
d14a1e28 RD |
12558 | } |
12559 | { | |
12560 | arg3 = wxString_in_helper(obj2); | |
12561 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12562 | temp3 = True; |
d14a1e28 RD |
12563 | } |
12564 | if (obj3) { | |
a41e16b6 | 12565 | { |
994141e6 | 12566 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
a41e16b6 RD |
12567 | if (PyErr_Occurred()) SWIG_fail; |
12568 | } | |
d14a1e28 RD |
12569 | } |
12570 | { | |
12571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12572 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
12573 | ||
12574 | wxPyEndAllowThreads(__tstate); | |
12575 | if (PyErr_Occurred()) SWIG_fail; | |
12576 | } | |
4d5c3d91 | 12577 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12578 | { |
12579 | if (temp2) | |
12580 | delete arg2; | |
12581 | } | |
12582 | { | |
12583 | if (temp3) | |
12584 | delete arg3; | |
12585 | } | |
12586 | return resultobj; | |
12587 | fail: | |
12588 | { | |
12589 | if (temp2) | |
12590 | delete arg2; | |
12591 | } | |
12592 | { | |
12593 | if (temp3) | |
12594 | delete arg3; | |
12595 | } | |
12596 | return NULL; | |
12597 | } | |
12598 | ||
12599 | ||
12600 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12601 | PyObject *resultobj; | |
12602 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12603 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
12604 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
12605 | int arg3 = (int) 0 ; | |
12606 | bool result; | |
e811c8ce | 12607 | bool temp2 = False ; |
d14a1e28 RD |
12608 | PyObject * obj0 = 0 ; |
12609 | PyObject * obj1 = 0 ; | |
994141e6 | 12610 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12611 | char *kwnames[] = { |
12612 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
12613 | }; | |
12614 | ||
994141e6 | 12615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
12616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12617 | if (obj1) { | |
12618 | { | |
12619 | arg2 = wxString_in_helper(obj1); | |
12620 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12621 | temp2 = True; |
d14a1e28 RD |
12622 | } |
12623 | } | |
994141e6 RD |
12624 | if (obj2) { |
12625 | { | |
12626 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12627 | if (PyErr_Occurred()) SWIG_fail; | |
12628 | } | |
12629 | } | |
d14a1e28 RD |
12630 | { |
12631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12632 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
12633 | ||
12634 | wxPyEndAllowThreads(__tstate); | |
12635 | if (PyErr_Occurred()) SWIG_fail; | |
12636 | } | |
4d5c3d91 | 12637 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12638 | { |
12639 | if (temp2) | |
12640 | delete arg2; | |
12641 | } | |
12642 | return resultobj; | |
12643 | fail: | |
12644 | { | |
12645 | if (temp2) | |
12646 | delete arg2; | |
12647 | } | |
12648 | return NULL; | |
12649 | } | |
12650 | ||
12651 | ||
12652 | static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12653 | PyObject *resultobj; | |
12654 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12655 | bool result; | |
12656 | PyObject * obj0 = 0 ; | |
12657 | char *kwnames[] = { | |
12658 | (char *) "self", NULL | |
12659 | }; | |
12660 | ||
12661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
12662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12663 | { | |
12664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12665 | result = (bool)(arg1)->Unassociate(); | |
12666 | ||
12667 | wxPyEndAllowThreads(__tstate); | |
12668 | if (PyErr_Occurred()) SWIG_fail; | |
12669 | } | |
4d5c3d91 | 12670 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12671 | return resultobj; |
12672 | fail: | |
12673 | return NULL; | |
12674 | } | |
12675 | ||
12676 | ||
12677 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12678 | PyObject *resultobj; | |
12679 | wxString *arg1 = 0 ; | |
12680 | wxString *arg2 = 0 ; | |
12681 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12682 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12683 | wxString result; | |
e811c8ce RD |
12684 | bool temp1 = False ; |
12685 | bool temp2 = False ; | |
12686 | bool temp3 = False ; | |
d14a1e28 RD |
12687 | PyObject * obj0 = 0 ; |
12688 | PyObject * obj1 = 0 ; | |
12689 | PyObject * obj2 = 0 ; | |
12690 | char *kwnames[] = { | |
12691 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
12692 | }; | |
12693 | ||
12694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12695 | { | |
12696 | arg1 = wxString_in_helper(obj0); | |
12697 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 12698 | temp1 = True; |
d14a1e28 RD |
12699 | } |
12700 | { | |
12701 | arg2 = wxString_in_helper(obj1); | |
12702 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12703 | temp2 = True; |
d14a1e28 RD |
12704 | } |
12705 | if (obj2) { | |
12706 | { | |
12707 | arg3 = wxString_in_helper(obj2); | |
12708 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12709 | temp3 = True; |
d14a1e28 RD |
12710 | } |
12711 | } | |
12712 | { | |
12713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12714 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12715 | ||
12716 | wxPyEndAllowThreads(__tstate); | |
12717 | if (PyErr_Occurred()) SWIG_fail; | |
12718 | } | |
12719 | { | |
12720 | #if wxUSE_UNICODE | |
12721 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12722 | #else | |
12723 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12724 | #endif | |
12725 | } | |
12726 | { | |
12727 | if (temp1) | |
12728 | delete arg1; | |
12729 | } | |
12730 | { | |
12731 | if (temp2) | |
12732 | delete arg2; | |
12733 | } | |
12734 | { | |
12735 | if (temp3) | |
12736 | delete arg3; | |
12737 | } | |
12738 | return resultobj; | |
12739 | fail: | |
12740 | { | |
12741 | if (temp1) | |
12742 | delete arg1; | |
12743 | } | |
12744 | { | |
12745 | if (temp2) | |
12746 | delete arg2; | |
12747 | } | |
12748 | { | |
12749 | if (temp3) | |
12750 | delete arg3; | |
12751 | } | |
12752 | return NULL; | |
12753 | } | |
12754 | ||
12755 | ||
12756 | static PyObject * FileType_swigregister(PyObject *self, PyObject *args) { | |
12757 | PyObject *obj; | |
12758 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12759 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
12760 | Py_INCREF(obj); | |
12761 | return Py_BuildValue((char *)""); | |
12762 | } | |
12763 | static int _wrap_TheMimeTypesManager_set(PyObject *_val) { | |
12764 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); | |
12765 | return 1; | |
12766 | } | |
12767 | ||
12768 | ||
12769 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
12770 | PyObject *pyobj; | |
12771 | ||
12772 | pyobj = SWIG_NewPointerObj((void *) wxTheMimeTypesManager, SWIGTYPE_p_wxMimeTypesManager, 0); | |
12773 | return pyobj; | |
12774 | } | |
12775 | ||
12776 | ||
12777 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12778 | PyObject *resultobj; | |
12779 | wxString *arg1 = 0 ; | |
12780 | wxString *arg2 = 0 ; | |
12781 | bool result; | |
e811c8ce RD |
12782 | bool temp1 = False ; |
12783 | bool temp2 = False ; | |
d14a1e28 RD |
12784 | PyObject * obj0 = 0 ; |
12785 | PyObject * obj1 = 0 ; | |
12786 | char *kwnames[] = { | |
12787 | (char *) "mimeType",(char *) "wildcard", NULL | |
12788 | }; | |
12789 | ||
12790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
12791 | { | |
12792 | arg1 = wxString_in_helper(obj0); | |
12793 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 12794 | temp1 = True; |
d14a1e28 RD |
12795 | } |
12796 | { | |
12797 | arg2 = wxString_in_helper(obj1); | |
12798 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12799 | temp2 = True; |
d14a1e28 RD |
12800 | } |
12801 | { | |
12802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12803 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
12804 | ||
12805 | wxPyEndAllowThreads(__tstate); | |
12806 | if (PyErr_Occurred()) SWIG_fail; | |
12807 | } | |
4d5c3d91 | 12808 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12809 | { |
12810 | if (temp1) | |
12811 | delete arg1; | |
12812 | } | |
12813 | { | |
12814 | if (temp2) | |
12815 | delete arg2; | |
12816 | } | |
12817 | return resultobj; | |
12818 | fail: | |
12819 | { | |
12820 | if (temp1) | |
12821 | delete arg1; | |
12822 | } | |
12823 | { | |
12824 | if (temp2) | |
12825 | delete arg2; | |
12826 | } | |
12827 | return NULL; | |
12828 | } | |
12829 | ||
12830 | ||
12831 | static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12832 | PyObject *resultobj; | |
12833 | wxMimeTypesManager *result; | |
12834 | char *kwnames[] = { | |
12835 | NULL | |
12836 | }; | |
12837 | ||
12838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
12839 | { | |
12840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12841 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
12842 | ||
12843 | wxPyEndAllowThreads(__tstate); | |
12844 | if (PyErr_Occurred()) SWIG_fail; | |
12845 | } | |
12846 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMimeTypesManager, 1); | |
12847 | return resultobj; | |
12848 | fail: | |
12849 | return NULL; | |
12850 | } | |
12851 | ||
12852 | ||
12853 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12854 | PyObject *resultobj; | |
12855 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12856 | int arg2 = (int) wxMAILCAP_ALL ; | |
12857 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12858 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
e811c8ce | 12859 | bool temp3 = False ; |
d14a1e28 | 12860 | PyObject * obj0 = 0 ; |
994141e6 | 12861 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12862 | PyObject * obj2 = 0 ; |
12863 | char *kwnames[] = { | |
12864 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
12865 | }; | |
12866 | ||
994141e6 | 12867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12869 | if (obj1) { |
12870 | { | |
12871 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12872 | if (PyErr_Occurred()) SWIG_fail; | |
12873 | } | |
12874 | } | |
d14a1e28 RD |
12875 | if (obj2) { |
12876 | { | |
12877 | arg3 = wxString_in_helper(obj2); | |
12878 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12879 | temp3 = True; |
d14a1e28 RD |
12880 | } |
12881 | } | |
12882 | { | |
12883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12884 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
12885 | ||
12886 | wxPyEndAllowThreads(__tstate); | |
12887 | if (PyErr_Occurred()) SWIG_fail; | |
12888 | } | |
12889 | Py_INCREF(Py_None); resultobj = Py_None; | |
12890 | { | |
12891 | if (temp3) | |
12892 | delete arg3; | |
12893 | } | |
12894 | return resultobj; | |
12895 | fail: | |
12896 | { | |
12897 | if (temp3) | |
12898 | delete arg3; | |
12899 | } | |
12900 | return NULL; | |
12901 | } | |
12902 | ||
12903 | ||
12904 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12905 | PyObject *resultobj; | |
12906 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12907 | PyObject * obj0 = 0 ; | |
12908 | char *kwnames[] = { | |
12909 | (char *) "self", NULL | |
12910 | }; | |
12911 | ||
12912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
12913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12914 | { | |
12915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12916 | (arg1)->ClearData(); | |
12917 | ||
12918 | wxPyEndAllowThreads(__tstate); | |
12919 | if (PyErr_Occurred()) SWIG_fail; | |
12920 | } | |
12921 | Py_INCREF(Py_None); resultobj = Py_None; | |
12922 | return resultobj; | |
12923 | fail: | |
12924 | return NULL; | |
12925 | } | |
12926 | ||
12927 | ||
12928 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12929 | PyObject *resultobj; | |
12930 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12931 | wxString *arg2 = 0 ; | |
12932 | wxFileType *result; | |
e811c8ce | 12933 | bool temp2 = False ; |
d14a1e28 RD |
12934 | PyObject * obj0 = 0 ; |
12935 | PyObject * obj1 = 0 ; | |
12936 | char *kwnames[] = { | |
12937 | (char *) "self",(char *) "ext", NULL | |
12938 | }; | |
12939 | ||
12940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
12941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12942 | { | |
12943 | arg2 = wxString_in_helper(obj1); | |
12944 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12945 | temp2 = True; |
d14a1e28 RD |
12946 | } |
12947 | { | |
12948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12949 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
12950 | ||
12951 | wxPyEndAllowThreads(__tstate); | |
12952 | if (PyErr_Occurred()) SWIG_fail; | |
12953 | } | |
12954 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
12955 | { | |
12956 | if (temp2) | |
12957 | delete arg2; | |
12958 | } | |
12959 | return resultobj; | |
12960 | fail: | |
12961 | { | |
12962 | if (temp2) | |
12963 | delete arg2; | |
12964 | } | |
12965 | return NULL; | |
12966 | } | |
12967 | ||
12968 | ||
12969 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12970 | PyObject *resultobj; | |
12971 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12972 | wxString *arg2 = 0 ; | |
12973 | wxFileType *result; | |
e811c8ce | 12974 | bool temp2 = False ; |
d14a1e28 RD |
12975 | PyObject * obj0 = 0 ; |
12976 | PyObject * obj1 = 0 ; | |
12977 | char *kwnames[] = { | |
12978 | (char *) "self",(char *) "mimeType", NULL | |
12979 | }; | |
12980 | ||
12981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
12982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12983 | { | |
12984 | arg2 = wxString_in_helper(obj1); | |
12985 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12986 | temp2 = True; |
d14a1e28 RD |
12987 | } |
12988 | { | |
12989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12990 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
12991 | ||
12992 | wxPyEndAllowThreads(__tstate); | |
12993 | if (PyErr_Occurred()) SWIG_fail; | |
12994 | } | |
12995 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
12996 | { | |
12997 | if (temp2) | |
12998 | delete arg2; | |
12999 | } | |
13000 | return resultobj; | |
13001 | fail: | |
13002 | { | |
13003 | if (temp2) | |
13004 | delete arg2; | |
13005 | } | |
13006 | return NULL; | |
13007 | } | |
13008 | ||
13009 | ||
13010 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13011 | PyObject *resultobj; | |
13012 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13013 | wxString *arg2 = 0 ; | |
e811c8ce | 13014 | bool arg3 = (bool) False ; |
d14a1e28 | 13015 | bool result; |
e811c8ce | 13016 | bool temp2 = False ; |
d14a1e28 RD |
13017 | PyObject * obj0 = 0 ; |
13018 | PyObject * obj1 = 0 ; | |
13019 | PyObject * obj2 = 0 ; | |
13020 | char *kwnames[] = { | |
13021 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
13022 | }; | |
13023 | ||
13024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13026 | { | |
13027 | arg2 = wxString_in_helper(obj1); | |
13028 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13029 | temp2 = True; |
d14a1e28 RD |
13030 | } |
13031 | if (obj2) { | |
a41e16b6 | 13032 | { |
994141e6 | 13033 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
13034 | if (PyErr_Occurred()) SWIG_fail; |
13035 | } | |
d14a1e28 RD |
13036 | } |
13037 | { | |
13038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13039 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
13040 | ||
13041 | wxPyEndAllowThreads(__tstate); | |
13042 | if (PyErr_Occurred()) SWIG_fail; | |
13043 | } | |
4d5c3d91 | 13044 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13045 | { |
13046 | if (temp2) | |
13047 | delete arg2; | |
13048 | } | |
13049 | return resultobj; | |
13050 | fail: | |
13051 | { | |
13052 | if (temp2) | |
13053 | delete arg2; | |
13054 | } | |
13055 | return NULL; | |
13056 | } | |
13057 | ||
13058 | ||
13059 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13060 | PyObject *resultobj; | |
13061 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13062 | wxString *arg2 = 0 ; | |
13063 | bool result; | |
e811c8ce | 13064 | bool temp2 = False ; |
d14a1e28 RD |
13065 | PyObject * obj0 = 0 ; |
13066 | PyObject * obj1 = 0 ; | |
13067 | char *kwnames[] = { | |
13068 | (char *) "self",(char *) "filename", NULL | |
13069 | }; | |
13070 | ||
13071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
13072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13073 | { | |
13074 | arg2 = wxString_in_helper(obj1); | |
13075 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13076 | temp2 = True; |
d14a1e28 RD |
13077 | } |
13078 | { | |
13079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13080 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
13081 | ||
13082 | wxPyEndAllowThreads(__tstate); | |
13083 | if (PyErr_Occurred()) SWIG_fail; | |
13084 | } | |
4d5c3d91 | 13085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13086 | { |
13087 | if (temp2) | |
13088 | delete arg2; | |
13089 | } | |
13090 | return resultobj; | |
13091 | fail: | |
13092 | { | |
13093 | if (temp2) | |
13094 | delete arg2; | |
13095 | } | |
13096 | return NULL; | |
13097 | } | |
13098 | ||
13099 | ||
13100 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13101 | PyObject *resultobj; | |
13102 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13103 | PyObject *result; | |
13104 | PyObject * obj0 = 0 ; | |
13105 | char *kwnames[] = { | |
13106 | (char *) "self", NULL | |
13107 | }; | |
13108 | ||
13109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
13110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13111 | { | |
13112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13113 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
13114 | ||
13115 | wxPyEndAllowThreads(__tstate); | |
13116 | if (PyErr_Occurred()) SWIG_fail; | |
13117 | } | |
13118 | resultobj = result; | |
13119 | return resultobj; | |
13120 | fail: | |
13121 | return NULL; | |
13122 | } | |
13123 | ||
13124 | ||
13125 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13126 | PyObject *resultobj; | |
13127 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13128 | wxFileTypeInfo *arg2 = 0 ; | |
13129 | PyObject * obj0 = 0 ; | |
13130 | PyObject * obj1 = 0 ; | |
13131 | char *kwnames[] = { | |
13132 | (char *) "self",(char *) "ft", NULL | |
13133 | }; | |
13134 | ||
13135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
13136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13137 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13138 | if (arg2 == NULL) { | |
13139 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13140 | } | |
13141 | { | |
13142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13143 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
13144 | ||
13145 | wxPyEndAllowThreads(__tstate); | |
13146 | if (PyErr_Occurred()) SWIG_fail; | |
13147 | } | |
13148 | Py_INCREF(Py_None); resultobj = Py_None; | |
13149 | return resultobj; | |
13150 | fail: | |
13151 | return NULL; | |
13152 | } | |
13153 | ||
13154 | ||
13155 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13156 | PyObject *resultobj; | |
13157 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13158 | wxFileTypeInfo *arg2 = 0 ; | |
13159 | wxFileType *result; | |
13160 | PyObject * obj0 = 0 ; | |
13161 | PyObject * obj1 = 0 ; | |
13162 | char *kwnames[] = { | |
13163 | (char *) "self",(char *) "ftInfo", NULL | |
13164 | }; | |
13165 | ||
13166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
13167 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13168 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13169 | if (arg2 == NULL) { | |
13170 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13171 | } | |
13172 | { | |
13173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13174 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
13175 | ||
13176 | wxPyEndAllowThreads(__tstate); | |
13177 | if (PyErr_Occurred()) SWIG_fail; | |
13178 | } | |
13179 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
13180 | return resultobj; | |
13181 | fail: | |
13182 | return NULL; | |
13183 | } | |
13184 | ||
13185 | ||
13186 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13187 | PyObject *resultobj; | |
13188 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13189 | wxFileType *arg2 = (wxFileType *) 0 ; | |
13190 | bool result; | |
13191 | PyObject * obj0 = 0 ; | |
13192 | PyObject * obj1 = 0 ; | |
13193 | char *kwnames[] = { | |
13194 | (char *) "self",(char *) "ft", NULL | |
13195 | }; | |
13196 | ||
13197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
13198 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13199 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13200 | { | |
13201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13202 | result = (bool)(arg1)->Unassociate(arg2); | |
13203 | ||
13204 | wxPyEndAllowThreads(__tstate); | |
13205 | if (PyErr_Occurred()) SWIG_fail; | |
13206 | } | |
4d5c3d91 | 13207 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13208 | return resultobj; |
13209 | fail: | |
13210 | return NULL; | |
13211 | } | |
13212 | ||
13213 | ||
13214 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13215 | PyObject *resultobj; | |
13216 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13217 | PyObject * obj0 = 0 ; | |
13218 | char *kwnames[] = { | |
13219 | (char *) "self", NULL | |
13220 | }; | |
13221 | ||
13222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
13223 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13224 | { | |
13225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13226 | delete arg1; | |
13227 | ||
13228 | wxPyEndAllowThreads(__tstate); | |
13229 | if (PyErr_Occurred()) SWIG_fail; | |
13230 | } | |
13231 | Py_INCREF(Py_None); resultobj = Py_None; | |
13232 | return resultobj; | |
13233 | fail: | |
13234 | return NULL; | |
13235 | } | |
13236 | ||
13237 | ||
13238 | static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) { | |
13239 | PyObject *obj; | |
13240 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13241 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
13242 | Py_INCREF(obj); | |
13243 | return Py_BuildValue((char *)""); | |
13244 | } | |
13245 | static int _wrap_ART_TOOLBAR_set(PyObject *_val) { | |
13246 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); | |
13247 | return 1; | |
13248 | } | |
13249 | ||
13250 | ||
13251 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
13252 | PyObject *pyobj; | |
13253 | ||
13254 | { | |
13255 | #if wxUSE_UNICODE | |
13256 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13257 | #else | |
13258 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13259 | #endif | |
13260 | } | |
13261 | return pyobj; | |
13262 | } | |
13263 | ||
13264 | ||
13265 | static int _wrap_ART_MENU_set(PyObject *_val) { | |
13266 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); | |
13267 | return 1; | |
13268 | } | |
13269 | ||
13270 | ||
13271 | static PyObject *_wrap_ART_MENU_get() { | |
13272 | PyObject *pyobj; | |
13273 | ||
13274 | { | |
13275 | #if wxUSE_UNICODE | |
13276 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13277 | #else | |
13278 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13279 | #endif | |
13280 | } | |
13281 | return pyobj; | |
13282 | } | |
13283 | ||
13284 | ||
13285 | static int _wrap_ART_FRAME_ICON_set(PyObject *_val) { | |
13286 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); | |
13287 | return 1; | |
13288 | } | |
13289 | ||
13290 | ||
13291 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
13292 | PyObject *pyobj; | |
13293 | ||
13294 | { | |
13295 | #if wxUSE_UNICODE | |
13296 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13297 | #else | |
13298 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13299 | #endif | |
13300 | } | |
13301 | return pyobj; | |
13302 | } | |
13303 | ||
13304 | ||
13305 | static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) { | |
13306 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); | |
13307 | return 1; | |
13308 | } | |
13309 | ||
13310 | ||
13311 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
13312 | PyObject *pyobj; | |
13313 | ||
13314 | { | |
13315 | #if wxUSE_UNICODE | |
13316 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13317 | #else | |
13318 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13319 | #endif | |
13320 | } | |
13321 | return pyobj; | |
13322 | } | |
13323 | ||
13324 | ||
13325 | static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) { | |
13326 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); | |
13327 | return 1; | |
13328 | } | |
13329 | ||
13330 | ||
13331 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
13332 | PyObject *pyobj; | |
13333 | ||
13334 | { | |
13335 | #if wxUSE_UNICODE | |
13336 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13337 | #else | |
13338 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13339 | #endif | |
13340 | } | |
13341 | return pyobj; | |
13342 | } | |
13343 | ||
13344 | ||
13345 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) { | |
13346 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); | |
13347 | return 1; | |
13348 | } | |
13349 | ||
13350 | ||
13351 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
13352 | PyObject *pyobj; | |
13353 | ||
13354 | { | |
13355 | #if wxUSE_UNICODE | |
13356 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13357 | #else | |
13358 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13359 | #endif | |
13360 | } | |
13361 | return pyobj; | |
13362 | } | |
13363 | ||
13364 | ||
13365 | static int _wrap_ART_OTHER_set(PyObject *_val) { | |
13366 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); | |
13367 | return 1; | |
13368 | } | |
13369 | ||
13370 | ||
13371 | static PyObject *_wrap_ART_OTHER_get() { | |
13372 | PyObject *pyobj; | |
13373 | ||
13374 | { | |
13375 | #if wxUSE_UNICODE | |
13376 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13377 | #else | |
13378 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13379 | #endif | |
13380 | } | |
13381 | return pyobj; | |
13382 | } | |
13383 | ||
13384 | ||
13385 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) { | |
13386 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); | |
13387 | return 1; | |
13388 | } | |
13389 | ||
13390 | ||
13391 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
13392 | PyObject *pyobj; | |
13393 | ||
13394 | { | |
13395 | #if wxUSE_UNICODE | |
13396 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13397 | #else | |
13398 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13399 | #endif | |
13400 | } | |
13401 | return pyobj; | |
13402 | } | |
13403 | ||
13404 | ||
13405 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) { | |
13406 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); | |
13407 | return 1; | |
13408 | } | |
13409 | ||
13410 | ||
13411 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
13412 | PyObject *pyobj; | |
13413 | ||
13414 | { | |
13415 | #if wxUSE_UNICODE | |
13416 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13417 | #else | |
13418 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13419 | #endif | |
13420 | } | |
13421 | return pyobj; | |
13422 | } | |
13423 | ||
13424 | ||
13425 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) { | |
13426 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); | |
13427 | return 1; | |
13428 | } | |
13429 | ||
13430 | ||
13431 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
13432 | PyObject *pyobj; | |
13433 | ||
13434 | { | |
13435 | #if wxUSE_UNICODE | |
13436 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13437 | #else | |
13438 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13439 | #endif | |
13440 | } | |
13441 | return pyobj; | |
13442 | } | |
13443 | ||
13444 | ||
13445 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) { | |
13446 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); | |
13447 | return 1; | |
13448 | } | |
13449 | ||
13450 | ||
13451 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
13452 | PyObject *pyobj; | |
13453 | ||
13454 | { | |
13455 | #if wxUSE_UNICODE | |
13456 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13457 | #else | |
13458 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13459 | #endif | |
13460 | } | |
13461 | return pyobj; | |
13462 | } | |
13463 | ||
13464 | ||
13465 | static int _wrap_ART_HELP_BOOK_set(PyObject *_val) { | |
13466 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); | |
13467 | return 1; | |
13468 | } | |
13469 | ||
13470 | ||
13471 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
13472 | PyObject *pyobj; | |
13473 | ||
13474 | { | |
13475 | #if wxUSE_UNICODE | |
13476 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13477 | #else | |
13478 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13479 | #endif | |
13480 | } | |
13481 | return pyobj; | |
13482 | } | |
13483 | ||
13484 | ||
13485 | static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) { | |
13486 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); | |
13487 | return 1; | |
13488 | } | |
13489 | ||
13490 | ||
13491 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
13492 | PyObject *pyobj; | |
13493 | ||
13494 | { | |
13495 | #if wxUSE_UNICODE | |
13496 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13497 | #else | |
13498 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13499 | #endif | |
13500 | } | |
13501 | return pyobj; | |
13502 | } | |
13503 | ||
13504 | ||
13505 | static int _wrap_ART_HELP_PAGE_set(PyObject *_val) { | |
13506 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); | |
13507 | return 1; | |
13508 | } | |
13509 | ||
13510 | ||
13511 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
13512 | PyObject *pyobj; | |
13513 | ||
13514 | { | |
13515 | #if wxUSE_UNICODE | |
13516 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13517 | #else | |
13518 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13519 | #endif | |
13520 | } | |
13521 | return pyobj; | |
13522 | } | |
13523 | ||
13524 | ||
13525 | static int _wrap_ART_GO_BACK_set(PyObject *_val) { | |
13526 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); | |
13527 | return 1; | |
13528 | } | |
13529 | ||
13530 | ||
13531 | static PyObject *_wrap_ART_GO_BACK_get() { | |
13532 | PyObject *pyobj; | |
13533 | ||
13534 | { | |
13535 | #if wxUSE_UNICODE | |
13536 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13537 | #else | |
13538 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13539 | #endif | |
13540 | } | |
13541 | return pyobj; | |
13542 | } | |
13543 | ||
13544 | ||
13545 | static int _wrap_ART_GO_FORWARD_set(PyObject *_val) { | |
13546 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); | |
13547 | return 1; | |
13548 | } | |
13549 | ||
13550 | ||
13551 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
13552 | PyObject *pyobj; | |
13553 | ||
13554 | { | |
13555 | #if wxUSE_UNICODE | |
13556 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13557 | #else | |
13558 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13559 | #endif | |
13560 | } | |
13561 | return pyobj; | |
13562 | } | |
13563 | ||
13564 | ||
13565 | static int _wrap_ART_GO_UP_set(PyObject *_val) { | |
13566 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); | |
13567 | return 1; | |
13568 | } | |
13569 | ||
13570 | ||
13571 | static PyObject *_wrap_ART_GO_UP_get() { | |
13572 | PyObject *pyobj; | |
13573 | ||
13574 | { | |
13575 | #if wxUSE_UNICODE | |
13576 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13577 | #else | |
13578 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13579 | #endif | |
13580 | } | |
13581 | return pyobj; | |
13582 | } | |
13583 | ||
13584 | ||
13585 | static int _wrap_ART_GO_DOWN_set(PyObject *_val) { | |
13586 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); | |
13587 | return 1; | |
13588 | } | |
13589 | ||
13590 | ||
13591 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
13592 | PyObject *pyobj; | |
13593 | ||
13594 | { | |
13595 | #if wxUSE_UNICODE | |
13596 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13597 | #else | |
13598 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13599 | #endif | |
13600 | } | |
13601 | return pyobj; | |
13602 | } | |
13603 | ||
13604 | ||
13605 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) { | |
13606 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); | |
13607 | return 1; | |
13608 | } | |
13609 | ||
13610 | ||
13611 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
13612 | PyObject *pyobj; | |
13613 | ||
13614 | { | |
13615 | #if wxUSE_UNICODE | |
13616 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13617 | #else | |
13618 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13619 | #endif | |
13620 | } | |
13621 | return pyobj; | |
13622 | } | |
13623 | ||
13624 | ||
13625 | static int _wrap_ART_GO_HOME_set(PyObject *_val) { | |
13626 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); | |
13627 | return 1; | |
13628 | } | |
13629 | ||
13630 | ||
13631 | static PyObject *_wrap_ART_GO_HOME_get() { | |
13632 | PyObject *pyobj; | |
13633 | ||
13634 | { | |
13635 | #if wxUSE_UNICODE | |
13636 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13637 | #else | |
13638 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13639 | #endif | |
13640 | } | |
13641 | return pyobj; | |
13642 | } | |
13643 | ||
13644 | ||
13645 | static int _wrap_ART_FILE_OPEN_set(PyObject *_val) { | |
13646 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); | |
13647 | return 1; | |
13648 | } | |
13649 | ||
13650 | ||
13651 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
13652 | PyObject *pyobj; | |
13653 | ||
13654 | { | |
13655 | #if wxUSE_UNICODE | |
13656 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
13657 | #else | |
13658 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
13659 | #endif | |
13660 | } | |
13661 | return pyobj; | |
13662 | } | |
13663 | ||
13664 | ||
13665 | static int _wrap_ART_PRINT_set(PyObject *_val) { | |
13666 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); | |
13667 | return 1; | |
13668 | } | |
13669 | ||
13670 | ||
13671 | static PyObject *_wrap_ART_PRINT_get() { | |
13672 | PyObject *pyobj; | |
13673 | ||
13674 | { | |
13675 | #if wxUSE_UNICODE | |
13676 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
13677 | #else | |
13678 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
13679 | #endif | |
13680 | } | |
13681 | return pyobj; | |
13682 | } | |
13683 | ||
13684 | ||
13685 | static int _wrap_ART_HELP_set(PyObject *_val) { | |
13686 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); | |
13687 | return 1; | |
13688 | } | |
13689 | ||
13690 | ||
13691 | static PyObject *_wrap_ART_HELP_get() { | |
13692 | PyObject *pyobj; | |
13693 | ||
13694 | { | |
13695 | #if wxUSE_UNICODE | |
13696 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
13697 | #else | |
13698 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
13699 | #endif | |
13700 | } | |
13701 | return pyobj; | |
13702 | } | |
13703 | ||
13704 | ||
13705 | static int _wrap_ART_TIP_set(PyObject *_val) { | |
13706 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); | |
13707 | return 1; | |
13708 | } | |
13709 | ||
13710 | ||
13711 | static PyObject *_wrap_ART_TIP_get() { | |
13712 | PyObject *pyobj; | |
13713 | ||
13714 | { | |
13715 | #if wxUSE_UNICODE | |
13716 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
13717 | #else | |
13718 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
13719 | #endif | |
13720 | } | |
13721 | return pyobj; | |
13722 | } | |
13723 | ||
13724 | ||
13725 | static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) { | |
13726 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); | |
13727 | return 1; | |
13728 | } | |
13729 | ||
13730 | ||
13731 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
13732 | PyObject *pyobj; | |
13733 | ||
13734 | { | |
13735 | #if wxUSE_UNICODE | |
13736 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
13737 | #else | |
13738 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
13739 | #endif | |
13740 | } | |
13741 | return pyobj; | |
13742 | } | |
13743 | ||
13744 | ||
13745 | static int _wrap_ART_LIST_VIEW_set(PyObject *_val) { | |
13746 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); | |
13747 | return 1; | |
13748 | } | |
13749 | ||
13750 | ||
13751 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
13752 | PyObject *pyobj; | |
13753 | ||
13754 | { | |
13755 | #if wxUSE_UNICODE | |
13756 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
13757 | #else | |
13758 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
13759 | #endif | |
13760 | } | |
13761 | return pyobj; | |
13762 | } | |
13763 | ||
13764 | ||
13765 | static int _wrap_ART_NEW_DIR_set(PyObject *_val) { | |
13766 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); | |
13767 | return 1; | |
13768 | } | |
13769 | ||
13770 | ||
13771 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
13772 | PyObject *pyobj; | |
13773 | ||
13774 | { | |
13775 | #if wxUSE_UNICODE | |
13776 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
13777 | #else | |
13778 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
13779 | #endif | |
13780 | } | |
13781 | return pyobj; | |
13782 | } | |
13783 | ||
13784 | ||
13785 | static int _wrap_ART_FOLDER_set(PyObject *_val) { | |
13786 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); | |
13787 | return 1; | |
13788 | } | |
13789 | ||
13790 | ||
13791 | static PyObject *_wrap_ART_FOLDER_get() { | |
13792 | PyObject *pyobj; | |
13793 | ||
13794 | { | |
13795 | #if wxUSE_UNICODE | |
13796 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
13797 | #else | |
13798 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
13799 | #endif | |
13800 | } | |
13801 | return pyobj; | |
13802 | } | |
13803 | ||
13804 | ||
13805 | static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) { | |
13806 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); | |
13807 | return 1; | |
13808 | } | |
13809 | ||
13810 | ||
13811 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
13812 | PyObject *pyobj; | |
13813 | ||
13814 | { | |
13815 | #if wxUSE_UNICODE | |
13816 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
13817 | #else | |
13818 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
13819 | #endif | |
13820 | } | |
13821 | return pyobj; | |
13822 | } | |
13823 | ||
13824 | ||
13825 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) { | |
13826 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); | |
13827 | return 1; | |
13828 | } | |
13829 | ||
13830 | ||
13831 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
13832 | PyObject *pyobj; | |
13833 | ||
13834 | { | |
13835 | #if wxUSE_UNICODE | |
13836 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
13837 | #else | |
13838 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
13839 | #endif | |
13840 | } | |
13841 | return pyobj; | |
13842 | } | |
13843 | ||
13844 | ||
13845 | static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) { | |
13846 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); | |
13847 | return 1; | |
13848 | } | |
13849 | ||
13850 | ||
13851 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
13852 | PyObject *pyobj; | |
13853 | ||
13854 | { | |
13855 | #if wxUSE_UNICODE | |
13856 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
13857 | #else | |
13858 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
13859 | #endif | |
13860 | } | |
13861 | return pyobj; | |
13862 | } | |
13863 | ||
13864 | ||
13865 | static int _wrap_ART_TICK_MARK_set(PyObject *_val) { | |
13866 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); | |
13867 | return 1; | |
13868 | } | |
13869 | ||
13870 | ||
13871 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
13872 | PyObject *pyobj; | |
13873 | ||
13874 | { | |
13875 | #if wxUSE_UNICODE | |
13876 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
13877 | #else | |
13878 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
13879 | #endif | |
13880 | } | |
13881 | return pyobj; | |
13882 | } | |
13883 | ||
13884 | ||
13885 | static int _wrap_ART_CROSS_MARK_set(PyObject *_val) { | |
13886 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); | |
13887 | return 1; | |
13888 | } | |
13889 | ||
13890 | ||
13891 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
13892 | PyObject *pyobj; | |
13893 | ||
13894 | { | |
13895 | #if wxUSE_UNICODE | |
13896 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
13897 | #else | |
13898 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
13899 | #endif | |
13900 | } | |
13901 | return pyobj; | |
13902 | } | |
13903 | ||
13904 | ||
13905 | static int _wrap_ART_ERROR_set(PyObject *_val) { | |
13906 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); | |
13907 | return 1; | |
13908 | } | |
13909 | ||
13910 | ||
13911 | static PyObject *_wrap_ART_ERROR_get() { | |
13912 | PyObject *pyobj; | |
13913 | ||
13914 | { | |
13915 | #if wxUSE_UNICODE | |
13916 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
13917 | #else | |
13918 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
13919 | #endif | |
13920 | } | |
13921 | return pyobj; | |
13922 | } | |
13923 | ||
13924 | ||
13925 | static int _wrap_ART_QUESTION_set(PyObject *_val) { | |
13926 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); | |
13927 | return 1; | |
13928 | } | |
13929 | ||
13930 | ||
13931 | static PyObject *_wrap_ART_QUESTION_get() { | |
13932 | PyObject *pyobj; | |
13933 | ||
13934 | { | |
13935 | #if wxUSE_UNICODE | |
13936 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
13937 | #else | |
13938 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
13939 | #endif | |
13940 | } | |
13941 | return pyobj; | |
13942 | } | |
13943 | ||
13944 | ||
13945 | static int _wrap_ART_WARNING_set(PyObject *_val) { | |
13946 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); | |
13947 | return 1; | |
13948 | } | |
13949 | ||
13950 | ||
13951 | static PyObject *_wrap_ART_WARNING_get() { | |
13952 | PyObject *pyobj; | |
13953 | ||
13954 | { | |
13955 | #if wxUSE_UNICODE | |
13956 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
13957 | #else | |
13958 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
13959 | #endif | |
13960 | } | |
13961 | return pyobj; | |
13962 | } | |
13963 | ||
13964 | ||
13965 | static int _wrap_ART_INFORMATION_set(PyObject *_val) { | |
13966 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); | |
13967 | return 1; | |
13968 | } | |
13969 | ||
13970 | ||
13971 | static PyObject *_wrap_ART_INFORMATION_get() { | |
13972 | PyObject *pyobj; | |
13973 | ||
13974 | { | |
13975 | #if wxUSE_UNICODE | |
13976 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
13977 | #else | |
13978 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
13979 | #endif | |
13980 | } | |
13981 | return pyobj; | |
13982 | } | |
13983 | ||
13984 | ||
13985 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) { | |
13986 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); | |
13987 | return 1; | |
13988 | } | |
13989 | ||
13990 | ||
13991 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
13992 | PyObject *pyobj; | |
13993 | ||
13994 | { | |
13995 | #if wxUSE_UNICODE | |
13996 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
13997 | #else | |
13998 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
13999 | #endif | |
14000 | } | |
14001 | return pyobj; | |
14002 | } | |
14003 | ||
14004 | ||
14005 | static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14006 | PyObject *resultobj; | |
14007 | wxPyArtProvider *result; | |
14008 | char *kwnames[] = { | |
14009 | NULL | |
14010 | }; | |
14011 | ||
14012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
14013 | { | |
14014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14015 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
14016 | ||
14017 | wxPyEndAllowThreads(__tstate); | |
14018 | if (PyErr_Occurred()) SWIG_fail; | |
14019 | } | |
14020 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyArtProvider, 1); | |
14021 | return resultobj; | |
14022 | fail: | |
14023 | return NULL; | |
14024 | } | |
14025 | ||
14026 | ||
d14a1e28 RD |
14027 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
14028 | PyObject *resultobj; | |
14029 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14030 | PyObject *arg2 = (PyObject *) 0 ; | |
14031 | PyObject *arg3 = (PyObject *) 0 ; | |
14032 | PyObject * obj0 = 0 ; | |
14033 | PyObject * obj1 = 0 ; | |
14034 | PyObject * obj2 = 0 ; | |
14035 | char *kwnames[] = { | |
14036 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14037 | }; | |
14038 | ||
14039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14041 | arg2 = obj1; | |
14042 | arg3 = obj2; | |
14043 | { | |
14044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14045 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14046 | ||
14047 | wxPyEndAllowThreads(__tstate); | |
14048 | if (PyErr_Occurred()) SWIG_fail; | |
14049 | } | |
14050 | Py_INCREF(Py_None); resultobj = Py_None; | |
14051 | return resultobj; | |
14052 | fail: | |
14053 | return NULL; | |
14054 | } | |
14055 | ||
14056 | ||
14057 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14058 | PyObject *resultobj; | |
14059 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14060 | PyObject * obj0 = 0 ; | |
14061 | char *kwnames[] = { | |
14062 | (char *) "provider", NULL | |
14063 | }; | |
14064 | ||
14065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
14066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14067 | { | |
14068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14069 | wxPyArtProvider::PushProvider(arg1); | |
14070 | ||
14071 | wxPyEndAllowThreads(__tstate); | |
14072 | if (PyErr_Occurred()) SWIG_fail; | |
14073 | } | |
14074 | Py_INCREF(Py_None); resultobj = Py_None; | |
14075 | return resultobj; | |
14076 | fail: | |
14077 | return NULL; | |
14078 | } | |
14079 | ||
14080 | ||
14081 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14082 | PyObject *resultobj; | |
14083 | bool result; | |
14084 | char *kwnames[] = { | |
14085 | NULL | |
14086 | }; | |
14087 | ||
14088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
14089 | { | |
14090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14091 | result = (bool)wxPyArtProvider::PopProvider(); | |
14092 | ||
14093 | wxPyEndAllowThreads(__tstate); | |
14094 | if (PyErr_Occurred()) SWIG_fail; | |
14095 | } | |
4d5c3d91 | 14096 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14097 | return resultobj; |
14098 | fail: | |
14099 | return NULL; | |
14100 | } | |
14101 | ||
14102 | ||
14103 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14104 | PyObject *resultobj; | |
14105 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14106 | bool result; | |
14107 | PyObject * obj0 = 0 ; | |
14108 | char *kwnames[] = { | |
14109 | (char *) "provider", NULL | |
14110 | }; | |
14111 | ||
14112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
14113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14114 | { | |
14115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14116 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
14117 | ||
14118 | wxPyEndAllowThreads(__tstate); | |
14119 | if (PyErr_Occurred()) SWIG_fail; | |
14120 | } | |
4d5c3d91 | 14121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14122 | return resultobj; |
14123 | fail: | |
14124 | return NULL; | |
14125 | } | |
14126 | ||
14127 | ||
14128 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14129 | PyObject *resultobj; | |
14130 | wxString *arg1 = 0 ; | |
14131 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14132 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14133 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14134 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14135 | wxBitmap result; | |
e811c8ce RD |
14136 | bool temp1 = False ; |
14137 | bool temp2 = False ; | |
d14a1e28 RD |
14138 | wxSize temp3 ; |
14139 | PyObject * obj0 = 0 ; | |
14140 | PyObject * obj1 = 0 ; | |
14141 | PyObject * obj2 = 0 ; | |
14142 | char *kwnames[] = { | |
14143 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14144 | }; | |
14145 | ||
14146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14147 | { | |
14148 | arg1 = wxString_in_helper(obj0); | |
14149 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 14150 | temp1 = True; |
d14a1e28 RD |
14151 | } |
14152 | if (obj1) { | |
14153 | { | |
14154 | arg2 = wxString_in_helper(obj1); | |
14155 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14156 | temp2 = True; |
d14a1e28 RD |
14157 | } |
14158 | } | |
14159 | if (obj2) { | |
14160 | { | |
14161 | arg3 = &temp3; | |
14162 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14163 | } | |
14164 | } | |
14165 | { | |
14166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14167 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14168 | ||
14169 | wxPyEndAllowThreads(__tstate); | |
14170 | if (PyErr_Occurred()) SWIG_fail; | |
14171 | } | |
14172 | { | |
14173 | wxBitmap * resultptr; | |
14174 | resultptr = new wxBitmap((wxBitmap &) result); | |
14175 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
14176 | } | |
14177 | { | |
14178 | if (temp1) | |
14179 | delete arg1; | |
14180 | } | |
14181 | { | |
14182 | if (temp2) | |
14183 | delete arg2; | |
14184 | } | |
14185 | return resultobj; | |
14186 | fail: | |
14187 | { | |
14188 | if (temp1) | |
14189 | delete arg1; | |
14190 | } | |
14191 | { | |
14192 | if (temp2) | |
14193 | delete arg2; | |
14194 | } | |
14195 | return NULL; | |
14196 | } | |
14197 | ||
14198 | ||
14199 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14200 | PyObject *resultobj; | |
14201 | wxString *arg1 = 0 ; | |
14202 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14203 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14204 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14205 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14206 | wxIcon result; | |
e811c8ce RD |
14207 | bool temp1 = False ; |
14208 | bool temp2 = False ; | |
d14a1e28 RD |
14209 | wxSize temp3 ; |
14210 | PyObject * obj0 = 0 ; | |
14211 | PyObject * obj1 = 0 ; | |
14212 | PyObject * obj2 = 0 ; | |
14213 | char *kwnames[] = { | |
14214 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14215 | }; | |
14216 | ||
14217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14218 | { | |
14219 | arg1 = wxString_in_helper(obj0); | |
14220 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 14221 | temp1 = True; |
d14a1e28 RD |
14222 | } |
14223 | if (obj1) { | |
14224 | { | |
14225 | arg2 = wxString_in_helper(obj1); | |
14226 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14227 | temp2 = True; |
d14a1e28 RD |
14228 | } |
14229 | } | |
14230 | if (obj2) { | |
14231 | { | |
14232 | arg3 = &temp3; | |
14233 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14234 | } | |
14235 | } | |
14236 | { | |
14237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14238 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14239 | ||
14240 | wxPyEndAllowThreads(__tstate); | |
14241 | if (PyErr_Occurred()) SWIG_fail; | |
14242 | } | |
14243 | { | |
14244 | wxIcon * resultptr; | |
14245 | resultptr = new wxIcon((wxIcon &) result); | |
14246 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxIcon, 1); | |
14247 | } | |
14248 | { | |
14249 | if (temp1) | |
14250 | delete arg1; | |
14251 | } | |
14252 | { | |
14253 | if (temp2) | |
14254 | delete arg2; | |
14255 | } | |
14256 | return resultobj; | |
14257 | fail: | |
14258 | { | |
14259 | if (temp1) | |
14260 | delete arg1; | |
14261 | } | |
14262 | { | |
14263 | if (temp2) | |
14264 | delete arg2; | |
14265 | } | |
14266 | return NULL; | |
14267 | } | |
14268 | ||
14269 | ||
1e0c8722 RD |
14270 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
14271 | PyObject *resultobj; | |
14272 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14273 | PyObject * obj0 = 0 ; | |
14274 | char *kwnames[] = { | |
14275 | (char *) "self", NULL | |
14276 | }; | |
14277 | ||
14278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
14279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14280 | { | |
14281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14282 | wxPyArtProvider_Destroy(arg1); | |
14283 | ||
14284 | wxPyEndAllowThreads(__tstate); | |
14285 | if (PyErr_Occurred()) SWIG_fail; | |
14286 | } | |
14287 | Py_INCREF(Py_None); resultobj = Py_None; | |
14288 | return resultobj; | |
14289 | fail: | |
14290 | return NULL; | |
14291 | } | |
14292 | ||
14293 | ||
d14a1e28 RD |
14294 | static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) { |
14295 | PyObject *obj; | |
14296 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14297 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
14298 | Py_INCREF(obj); | |
14299 | return Py_BuildValue((char *)""); | |
14300 | } | |
14301 | static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14302 | PyObject *resultobj; | |
14303 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14304 | PyObject * obj0 = 0 ; | |
14305 | char *kwnames[] = { | |
14306 | (char *) "self", NULL | |
14307 | }; | |
14308 | ||
14309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
14310 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14311 | { | |
14312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14313 | delete arg1; | |
14314 | ||
14315 | wxPyEndAllowThreads(__tstate); | |
14316 | if (PyErr_Occurred()) SWIG_fail; | |
14317 | } | |
14318 | Py_INCREF(Py_None); resultobj = Py_None; | |
14319 | return resultobj; | |
14320 | fail: | |
14321 | return NULL; | |
14322 | } | |
14323 | ||
14324 | ||
14325 | static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14326 | PyObject *resultobj; | |
14327 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14328 | wxConfigBase *result; | |
14329 | PyObject * obj0 = 0 ; | |
14330 | char *kwnames[] = { | |
14331 | (char *) "pConfig", NULL | |
14332 | }; | |
14333 | ||
14334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
14335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14336 | { | |
14337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14338 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
14339 | ||
14340 | wxPyEndAllowThreads(__tstate); | |
14341 | if (PyErr_Occurred()) SWIG_fail; | |
14342 | } | |
14343 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
14344 | return resultobj; | |
14345 | fail: | |
14346 | return NULL; | |
14347 | } | |
14348 | ||
14349 | ||
14350 | static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14351 | PyObject *resultobj; | |
e811c8ce | 14352 | bool arg1 = (bool) True ; |
d14a1e28 RD |
14353 | wxConfigBase *result; |
14354 | PyObject * obj0 = 0 ; | |
14355 | char *kwnames[] = { | |
14356 | (char *) "createOnDemand", NULL | |
14357 | }; | |
14358 | ||
14359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
14360 | if (obj0) { | |
a41e16b6 | 14361 | { |
994141e6 | 14362 | arg1 = (bool) SWIG_PyObj_AsBool(obj0); |
a41e16b6 RD |
14363 | if (PyErr_Occurred()) SWIG_fail; |
14364 | } | |
d14a1e28 RD |
14365 | } |
14366 | { | |
14367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14368 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
14369 | ||
14370 | wxPyEndAllowThreads(__tstate); | |
14371 | if (PyErr_Occurred()) SWIG_fail; | |
14372 | } | |
14373 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
14374 | return resultobj; | |
14375 | fail: | |
14376 | return NULL; | |
14377 | } | |
14378 | ||
14379 | ||
14380 | static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14381 | PyObject *resultobj; | |
14382 | wxConfigBase *result; | |
14383 | char *kwnames[] = { | |
14384 | NULL | |
14385 | }; | |
14386 | ||
14387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
14388 | { | |
14389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14390 | result = (wxConfigBase *)wxConfigBase::Create(); | |
14391 | ||
14392 | wxPyEndAllowThreads(__tstate); | |
14393 | if (PyErr_Occurred()) SWIG_fail; | |
14394 | } | |
14395 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
14396 | return resultobj; | |
14397 | fail: | |
14398 | return NULL; | |
14399 | } | |
14400 | ||
14401 | ||
14402 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14403 | PyObject *resultobj; | |
14404 | char *kwnames[] = { | |
14405 | NULL | |
14406 | }; | |
14407 | ||
14408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
14409 | { | |
14410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14411 | wxConfigBase::DontCreateOnDemand(); | |
14412 | ||
14413 | wxPyEndAllowThreads(__tstate); | |
14414 | if (PyErr_Occurred()) SWIG_fail; | |
14415 | } | |
14416 | Py_INCREF(Py_None); resultobj = Py_None; | |
14417 | return resultobj; | |
14418 | fail: | |
14419 | return NULL; | |
14420 | } | |
14421 | ||
14422 | ||
14423 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14424 | PyObject *resultobj; | |
14425 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14426 | wxString *arg2 = 0 ; | |
e811c8ce | 14427 | bool temp2 = False ; |
d14a1e28 RD |
14428 | PyObject * obj0 = 0 ; |
14429 | PyObject * obj1 = 0 ; | |
14430 | char *kwnames[] = { | |
14431 | (char *) "self",(char *) "strPath", NULL | |
14432 | }; | |
14433 | ||
14434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
14435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14436 | { | |
14437 | arg2 = wxString_in_helper(obj1); | |
14438 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14439 | temp2 = True; |
d14a1e28 RD |
14440 | } |
14441 | { | |
14442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14443 | (arg1)->SetPath((wxString const &)*arg2); | |
14444 | ||
14445 | wxPyEndAllowThreads(__tstate); | |
14446 | if (PyErr_Occurred()) SWIG_fail; | |
14447 | } | |
14448 | Py_INCREF(Py_None); resultobj = Py_None; | |
14449 | { | |
14450 | if (temp2) | |
14451 | delete arg2; | |
14452 | } | |
14453 | return resultobj; | |
14454 | fail: | |
14455 | { | |
14456 | if (temp2) | |
14457 | delete arg2; | |
14458 | } | |
14459 | return NULL; | |
14460 | } | |
14461 | ||
14462 | ||
14463 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14464 | PyObject *resultobj; | |
14465 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14466 | wxString *result; | |
14467 | PyObject * obj0 = 0 ; | |
14468 | char *kwnames[] = { | |
14469 | (char *) "self", NULL | |
14470 | }; | |
14471 | ||
14472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
14473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14474 | { | |
14475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14476 | { | |
14477 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
14478 | result = (wxString *) &_result_ref; | |
14479 | } | |
14480 | ||
14481 | wxPyEndAllowThreads(__tstate); | |
14482 | if (PyErr_Occurred()) SWIG_fail; | |
14483 | } | |
cc6dd355 RD |
14484 | { |
14485 | #if wxUSE_UNICODE | |
14486 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14487 | #else | |
14488 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14489 | #endif | |
14490 | } | |
d14a1e28 RD |
14491 | return resultobj; |
14492 | fail: | |
14493 | return NULL; | |
14494 | } | |
14495 | ||
14496 | ||
14497 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14498 | PyObject *resultobj; | |
14499 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14500 | PyObject *result; | |
14501 | PyObject * obj0 = 0 ; | |
14502 | char *kwnames[] = { | |
14503 | (char *) "self", NULL | |
14504 | }; | |
14505 | ||
14506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
14507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14508 | { | |
14509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14510 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
14511 | ||
14512 | wxPyEndAllowThreads(__tstate); | |
14513 | if (PyErr_Occurred()) SWIG_fail; | |
14514 | } | |
14515 | resultobj = result; | |
14516 | return resultobj; | |
14517 | fail: | |
14518 | return NULL; | |
14519 | } | |
14520 | ||
14521 | ||
14522 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14523 | PyObject *resultobj; | |
14524 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14525 | long arg2 ; | |
14526 | PyObject *result; | |
14527 | PyObject * obj0 = 0 ; | |
994141e6 | 14528 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14529 | char *kwnames[] = { |
14530 | (char *) "self",(char *) "index", NULL | |
14531 | }; | |
14532 | ||
994141e6 | 14533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
14535 | { |
14536 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
14537 | if (PyErr_Occurred()) SWIG_fail; | |
14538 | } | |
d14a1e28 RD |
14539 | { |
14540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14541 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
14542 | ||
14543 | wxPyEndAllowThreads(__tstate); | |
14544 | if (PyErr_Occurred()) SWIG_fail; | |
14545 | } | |
14546 | resultobj = result; | |
14547 | return resultobj; | |
14548 | fail: | |
14549 | return NULL; | |
14550 | } | |
14551 | ||
14552 | ||
14553 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14554 | PyObject *resultobj; | |
14555 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14556 | PyObject *result; | |
14557 | PyObject * obj0 = 0 ; | |
14558 | char *kwnames[] = { | |
14559 | (char *) "self", NULL | |
14560 | }; | |
14561 | ||
14562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
14563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14564 | { | |
14565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14566 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
14567 | ||
14568 | wxPyEndAllowThreads(__tstate); | |
14569 | if (PyErr_Occurred()) SWIG_fail; | |
14570 | } | |
14571 | resultobj = result; | |
14572 | return resultobj; | |
14573 | fail: | |
14574 | return NULL; | |
14575 | } | |
14576 | ||
14577 | ||
14578 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14579 | PyObject *resultobj; | |
14580 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14581 | long arg2 ; | |
14582 | PyObject *result; | |
14583 | PyObject * obj0 = 0 ; | |
994141e6 | 14584 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14585 | char *kwnames[] = { |
14586 | (char *) "self",(char *) "index", NULL | |
14587 | }; | |
14588 | ||
994141e6 | 14589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
14591 | { |
14592 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
14593 | if (PyErr_Occurred()) SWIG_fail; | |
14594 | } | |
d14a1e28 RD |
14595 | { |
14596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14597 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
14598 | ||
14599 | wxPyEndAllowThreads(__tstate); | |
14600 | if (PyErr_Occurred()) SWIG_fail; | |
14601 | } | |
14602 | resultobj = result; | |
14603 | return resultobj; | |
14604 | fail: | |
14605 | return NULL; | |
14606 | } | |
14607 | ||
14608 | ||
14609 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14610 | PyObject *resultobj; | |
14611 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 14612 | bool arg2 = (bool) False ; |
d14a1e28 RD |
14613 | size_t result; |
14614 | PyObject * obj0 = 0 ; | |
14615 | PyObject * obj1 = 0 ; | |
14616 | char *kwnames[] = { | |
14617 | (char *) "self",(char *) "bRecursive", NULL | |
14618 | }; | |
14619 | ||
14620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
14621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14622 | if (obj1) { | |
a41e16b6 | 14623 | { |
994141e6 | 14624 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
14625 | if (PyErr_Occurred()) SWIG_fail; |
14626 | } | |
d14a1e28 RD |
14627 | } |
14628 | { | |
14629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14630 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
14631 | ||
14632 | wxPyEndAllowThreads(__tstate); | |
14633 | if (PyErr_Occurred()) SWIG_fail; | |
14634 | } | |
994141e6 | 14635 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
14636 | return resultobj; |
14637 | fail: | |
14638 | return NULL; | |
14639 | } | |
14640 | ||
14641 | ||
14642 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14643 | PyObject *resultobj; | |
14644 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 14645 | bool arg2 = (bool) False ; |
d14a1e28 RD |
14646 | size_t result; |
14647 | PyObject * obj0 = 0 ; | |
14648 | PyObject * obj1 = 0 ; | |
14649 | char *kwnames[] = { | |
14650 | (char *) "self",(char *) "bRecursive", NULL | |
14651 | }; | |
14652 | ||
14653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
14654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14655 | if (obj1) { | |
a41e16b6 | 14656 | { |
994141e6 | 14657 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
14658 | if (PyErr_Occurred()) SWIG_fail; |
14659 | } | |
d14a1e28 RD |
14660 | } |
14661 | { | |
14662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14663 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
14664 | ||
14665 | wxPyEndAllowThreads(__tstate); | |
14666 | if (PyErr_Occurred()) SWIG_fail; | |
14667 | } | |
994141e6 | 14668 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
14669 | return resultobj; |
14670 | fail: | |
14671 | return NULL; | |
14672 | } | |
14673 | ||
14674 | ||
14675 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14676 | PyObject *resultobj; | |
14677 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14678 | wxString *arg2 = 0 ; | |
14679 | bool result; | |
e811c8ce | 14680 | bool temp2 = False ; |
d14a1e28 RD |
14681 | PyObject * obj0 = 0 ; |
14682 | PyObject * obj1 = 0 ; | |
14683 | char *kwnames[] = { | |
14684 | (char *) "self",(char *) "strName", NULL | |
14685 | }; | |
14686 | ||
14687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
14688 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14689 | { | |
14690 | arg2 = wxString_in_helper(obj1); | |
14691 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14692 | temp2 = True; |
d14a1e28 RD |
14693 | } |
14694 | { | |
14695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14696 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
14697 | ||
14698 | wxPyEndAllowThreads(__tstate); | |
14699 | if (PyErr_Occurred()) SWIG_fail; | |
14700 | } | |
4d5c3d91 | 14701 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14702 | { |
14703 | if (temp2) | |
14704 | delete arg2; | |
14705 | } | |
14706 | return resultobj; | |
14707 | fail: | |
14708 | { | |
14709 | if (temp2) | |
14710 | delete arg2; | |
14711 | } | |
14712 | return NULL; | |
14713 | } | |
14714 | ||
14715 | ||
14716 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14717 | PyObject *resultobj; | |
14718 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14719 | wxString *arg2 = 0 ; | |
14720 | bool result; | |
e811c8ce | 14721 | bool temp2 = False ; |
d14a1e28 RD |
14722 | PyObject * obj0 = 0 ; |
14723 | PyObject * obj1 = 0 ; | |
14724 | char *kwnames[] = { | |
14725 | (char *) "self",(char *) "strName", NULL | |
14726 | }; | |
14727 | ||
14728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
14729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14730 | { | |
14731 | arg2 = wxString_in_helper(obj1); | |
14732 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14733 | temp2 = True; |
d14a1e28 RD |
14734 | } |
14735 | { | |
14736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14737 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
14738 | ||
14739 | wxPyEndAllowThreads(__tstate); | |
14740 | if (PyErr_Occurred()) SWIG_fail; | |
14741 | } | |
4d5c3d91 | 14742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14743 | { |
14744 | if (temp2) | |
14745 | delete arg2; | |
14746 | } | |
14747 | return resultobj; | |
14748 | fail: | |
14749 | { | |
14750 | if (temp2) | |
14751 | delete arg2; | |
14752 | } | |
14753 | return NULL; | |
14754 | } | |
14755 | ||
14756 | ||
14757 | static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14758 | PyObject *resultobj; | |
14759 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14760 | wxString *arg2 = 0 ; | |
14761 | bool result; | |
e811c8ce | 14762 | bool temp2 = False ; |
d14a1e28 RD |
14763 | PyObject * obj0 = 0 ; |
14764 | PyObject * obj1 = 0 ; | |
14765 | char *kwnames[] = { | |
14766 | (char *) "self",(char *) "strName", NULL | |
14767 | }; | |
14768 | ||
14769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
14770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14771 | { | |
14772 | arg2 = wxString_in_helper(obj1); | |
14773 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14774 | temp2 = True; |
d14a1e28 RD |
14775 | } |
14776 | { | |
14777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14778 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
14779 | ||
14780 | wxPyEndAllowThreads(__tstate); | |
14781 | if (PyErr_Occurred()) SWIG_fail; | |
14782 | } | |
4d5c3d91 | 14783 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14784 | { |
14785 | if (temp2) | |
14786 | delete arg2; | |
14787 | } | |
14788 | return resultobj; | |
14789 | fail: | |
14790 | { | |
14791 | if (temp2) | |
14792 | delete arg2; | |
14793 | } | |
14794 | return NULL; | |
14795 | } | |
14796 | ||
14797 | ||
14798 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14799 | PyObject *resultobj; | |
14800 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14801 | wxString *arg2 = 0 ; | |
14802 | int result; | |
e811c8ce | 14803 | bool temp2 = False ; |
d14a1e28 RD |
14804 | PyObject * obj0 = 0 ; |
14805 | PyObject * obj1 = 0 ; | |
14806 | char *kwnames[] = { | |
14807 | (char *) "self",(char *) "name", NULL | |
14808 | }; | |
14809 | ||
14810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
14811 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14812 | { | |
14813 | arg2 = wxString_in_helper(obj1); | |
14814 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14815 | temp2 = True; |
d14a1e28 RD |
14816 | } |
14817 | { | |
14818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14819 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
14820 | ||
14821 | wxPyEndAllowThreads(__tstate); | |
14822 | if (PyErr_Occurred()) SWIG_fail; | |
14823 | } | |
994141e6 | 14824 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14825 | { |
14826 | if (temp2) | |
14827 | delete arg2; | |
14828 | } | |
14829 | return resultobj; | |
14830 | fail: | |
14831 | { | |
14832 | if (temp2) | |
14833 | delete arg2; | |
14834 | } | |
14835 | return NULL; | |
14836 | } | |
14837 | ||
14838 | ||
14839 | static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14840 | PyObject *resultobj; | |
14841 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14842 | wxString *arg2 = 0 ; | |
14843 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14844 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14845 | wxString result; | |
e811c8ce RD |
14846 | bool temp2 = False ; |
14847 | bool temp3 = False ; | |
d14a1e28 RD |
14848 | PyObject * obj0 = 0 ; |
14849 | PyObject * obj1 = 0 ; | |
14850 | PyObject * obj2 = 0 ; | |
14851 | char *kwnames[] = { | |
14852 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
14853 | }; | |
14854 | ||
14855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14856 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14857 | { | |
14858 | arg2 = wxString_in_helper(obj1); | |
14859 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14860 | temp2 = True; |
d14a1e28 RD |
14861 | } |
14862 | if (obj2) { | |
14863 | { | |
14864 | arg3 = wxString_in_helper(obj2); | |
14865 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14866 | temp3 = True; |
d14a1e28 RD |
14867 | } |
14868 | } | |
14869 | { | |
14870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14871 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
14872 | ||
14873 | wxPyEndAllowThreads(__tstate); | |
14874 | if (PyErr_Occurred()) SWIG_fail; | |
14875 | } | |
14876 | { | |
14877 | #if wxUSE_UNICODE | |
14878 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14879 | #else | |
14880 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14881 | #endif | |
14882 | } | |
14883 | { | |
14884 | if (temp2) | |
14885 | delete arg2; | |
14886 | } | |
14887 | { | |
14888 | if (temp3) | |
14889 | delete arg3; | |
14890 | } | |
14891 | return resultobj; | |
14892 | fail: | |
14893 | { | |
14894 | if (temp2) | |
14895 | delete arg2; | |
14896 | } | |
14897 | { | |
14898 | if (temp3) | |
14899 | delete arg3; | |
14900 | } | |
14901 | return NULL; | |
14902 | } | |
14903 | ||
14904 | ||
14905 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14906 | PyObject *resultobj; | |
14907 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14908 | wxString *arg2 = 0 ; | |
14909 | long arg3 = (long) 0 ; | |
14910 | long result; | |
e811c8ce | 14911 | bool temp2 = False ; |
d14a1e28 RD |
14912 | PyObject * obj0 = 0 ; |
14913 | PyObject * obj1 = 0 ; | |
994141e6 | 14914 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14915 | char *kwnames[] = { |
14916 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
14917 | }; | |
14918 | ||
994141e6 | 14919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
14920 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14921 | { | |
14922 | arg2 = wxString_in_helper(obj1); | |
14923 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14924 | temp2 = True; |
d14a1e28 | 14925 | } |
994141e6 RD |
14926 | if (obj2) { |
14927 | { | |
14928 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
14929 | if (PyErr_Occurred()) SWIG_fail; | |
14930 | } | |
14931 | } | |
d14a1e28 RD |
14932 | { |
14933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14934 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
14935 | ||
14936 | wxPyEndAllowThreads(__tstate); | |
14937 | if (PyErr_Occurred()) SWIG_fail; | |
14938 | } | |
994141e6 | 14939 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
14940 | { |
14941 | if (temp2) | |
14942 | delete arg2; | |
14943 | } | |
14944 | return resultobj; | |
14945 | fail: | |
14946 | { | |
14947 | if (temp2) | |
14948 | delete arg2; | |
14949 | } | |
14950 | return NULL; | |
14951 | } | |
14952 | ||
14953 | ||
14954 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14955 | PyObject *resultobj; | |
14956 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14957 | wxString *arg2 = 0 ; | |
14958 | double arg3 = (double) 0.0 ; | |
14959 | double result; | |
e811c8ce | 14960 | bool temp2 = False ; |
d14a1e28 RD |
14961 | PyObject * obj0 = 0 ; |
14962 | PyObject * obj1 = 0 ; | |
994141e6 | 14963 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14964 | char *kwnames[] = { |
14965 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
14966 | }; | |
14967 | ||
994141e6 | 14968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
14969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14970 | { | |
14971 | arg2 = wxString_in_helper(obj1); | |
14972 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14973 | temp2 = True; |
d14a1e28 | 14974 | } |
994141e6 RD |
14975 | if (obj2) { |
14976 | { | |
14977 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
14978 | if (PyErr_Occurred()) SWIG_fail; | |
14979 | } | |
14980 | } | |
d14a1e28 RD |
14981 | { |
14982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14983 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
14984 | ||
14985 | wxPyEndAllowThreads(__tstate); | |
14986 | if (PyErr_Occurred()) SWIG_fail; | |
14987 | } | |
994141e6 | 14988 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
14989 | { |
14990 | if (temp2) | |
14991 | delete arg2; | |
14992 | } | |
14993 | return resultobj; | |
14994 | fail: | |
14995 | { | |
14996 | if (temp2) | |
14997 | delete arg2; | |
14998 | } | |
14999 | return NULL; | |
15000 | } | |
15001 | ||
15002 | ||
15003 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15004 | PyObject *resultobj; | |
15005 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15006 | wxString *arg2 = 0 ; | |
e811c8ce | 15007 | bool arg3 = (bool) False ; |
d14a1e28 | 15008 | bool result; |
e811c8ce | 15009 | bool temp2 = False ; |
d14a1e28 RD |
15010 | PyObject * obj0 = 0 ; |
15011 | PyObject * obj1 = 0 ; | |
15012 | PyObject * obj2 = 0 ; | |
15013 | char *kwnames[] = { | |
15014 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15015 | }; | |
15016 | ||
15017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15019 | { | |
15020 | arg2 = wxString_in_helper(obj1); | |
15021 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15022 | temp2 = True; |
d14a1e28 RD |
15023 | } |
15024 | if (obj2) { | |
a41e16b6 | 15025 | { |
994141e6 | 15026 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
15027 | if (PyErr_Occurred()) SWIG_fail; |
15028 | } | |
d14a1e28 RD |
15029 | } |
15030 | { | |
15031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15032 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
15033 | ||
15034 | wxPyEndAllowThreads(__tstate); | |
15035 | if (PyErr_Occurred()) SWIG_fail; | |
15036 | } | |
4d5c3d91 | 15037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15038 | { |
15039 | if (temp2) | |
15040 | delete arg2; | |
15041 | } | |
15042 | return resultobj; | |
15043 | fail: | |
15044 | { | |
15045 | if (temp2) | |
15046 | delete arg2; | |
15047 | } | |
15048 | return NULL; | |
15049 | } | |
15050 | ||
15051 | ||
15052 | static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15053 | PyObject *resultobj; | |
15054 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15055 | wxString *arg2 = 0 ; | |
15056 | wxString *arg3 = 0 ; | |
15057 | bool result; | |
e811c8ce RD |
15058 | bool temp2 = False ; |
15059 | bool temp3 = False ; | |
d14a1e28 RD |
15060 | PyObject * obj0 = 0 ; |
15061 | PyObject * obj1 = 0 ; | |
15062 | PyObject * obj2 = 0 ; | |
15063 | char *kwnames[] = { | |
15064 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15065 | }; | |
15066 | ||
15067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15069 | { | |
15070 | arg2 = wxString_in_helper(obj1); | |
15071 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15072 | temp2 = True; |
d14a1e28 RD |
15073 | } |
15074 | { | |
15075 | arg3 = wxString_in_helper(obj2); | |
15076 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15077 | temp3 = True; |
d14a1e28 RD |
15078 | } |
15079 | { | |
15080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15081 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
15082 | ||
15083 | wxPyEndAllowThreads(__tstate); | |
15084 | if (PyErr_Occurred()) SWIG_fail; | |
15085 | } | |
4d5c3d91 | 15086 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15087 | { |
15088 | if (temp2) | |
15089 | delete arg2; | |
15090 | } | |
15091 | { | |
15092 | if (temp3) | |
15093 | delete arg3; | |
15094 | } | |
15095 | return resultobj; | |
15096 | fail: | |
15097 | { | |
15098 | if (temp2) | |
15099 | delete arg2; | |
15100 | } | |
15101 | { | |
15102 | if (temp3) | |
15103 | delete arg3; | |
15104 | } | |
15105 | return NULL; | |
15106 | } | |
15107 | ||
15108 | ||
15109 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15110 | PyObject *resultobj; | |
15111 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15112 | wxString *arg2 = 0 ; | |
15113 | long arg3 ; | |
15114 | bool result; | |
e811c8ce | 15115 | bool temp2 = False ; |
d14a1e28 RD |
15116 | PyObject * obj0 = 0 ; |
15117 | PyObject * obj1 = 0 ; | |
994141e6 | 15118 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15119 | char *kwnames[] = { |
15120 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15121 | }; | |
15122 | ||
994141e6 | 15123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
15124 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15125 | { | |
15126 | arg2 = wxString_in_helper(obj1); | |
15127 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15128 | temp2 = True; |
d14a1e28 | 15129 | } |
994141e6 RD |
15130 | { |
15131 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
15132 | if (PyErr_Occurred()) SWIG_fail; | |
15133 | } | |
d14a1e28 RD |
15134 | { |
15135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15136 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15137 | ||
15138 | wxPyEndAllowThreads(__tstate); | |
15139 | if (PyErr_Occurred()) SWIG_fail; | |
15140 | } | |
4d5c3d91 | 15141 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15142 | { |
15143 | if (temp2) | |
15144 | delete arg2; | |
15145 | } | |
15146 | return resultobj; | |
15147 | fail: | |
15148 | { | |
15149 | if (temp2) | |
15150 | delete arg2; | |
15151 | } | |
15152 | return NULL; | |
15153 | } | |
15154 | ||
15155 | ||
15156 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15157 | PyObject *resultobj; | |
15158 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15159 | wxString *arg2 = 0 ; | |
15160 | double arg3 ; | |
15161 | bool result; | |
e811c8ce | 15162 | bool temp2 = False ; |
d14a1e28 RD |
15163 | PyObject * obj0 = 0 ; |
15164 | PyObject * obj1 = 0 ; | |
994141e6 | 15165 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15166 | char *kwnames[] = { |
15167 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15168 | }; | |
15169 | ||
994141e6 | 15170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
15171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15172 | { | |
15173 | arg2 = wxString_in_helper(obj1); | |
15174 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15175 | temp2 = True; |
d14a1e28 | 15176 | } |
994141e6 RD |
15177 | { |
15178 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
15179 | if (PyErr_Occurred()) SWIG_fail; | |
15180 | } | |
d14a1e28 RD |
15181 | { |
15182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15183 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15184 | ||
15185 | wxPyEndAllowThreads(__tstate); | |
15186 | if (PyErr_Occurred()) SWIG_fail; | |
15187 | } | |
4d5c3d91 | 15188 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15189 | { |
15190 | if (temp2) | |
15191 | delete arg2; | |
15192 | } | |
15193 | return resultobj; | |
15194 | fail: | |
15195 | { | |
15196 | if (temp2) | |
15197 | delete arg2; | |
15198 | } | |
15199 | return NULL; | |
15200 | } | |
15201 | ||
15202 | ||
15203 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15204 | PyObject *resultobj; | |
15205 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15206 | wxString *arg2 = 0 ; | |
15207 | bool arg3 ; | |
15208 | bool result; | |
e811c8ce | 15209 | bool temp2 = False ; |
d14a1e28 RD |
15210 | PyObject * obj0 = 0 ; |
15211 | PyObject * obj1 = 0 ; | |
15212 | PyObject * obj2 = 0 ; | |
15213 | char *kwnames[] = { | |
15214 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15215 | }; | |
15216 | ||
15217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15218 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15219 | { | |
15220 | arg2 = wxString_in_helper(obj1); | |
15221 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15222 | temp2 = True; |
d14a1e28 | 15223 | } |
a41e16b6 | 15224 | { |
994141e6 | 15225 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
15226 | if (PyErr_Occurred()) SWIG_fail; |
15227 | } | |
d14a1e28 RD |
15228 | { |
15229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15230 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15231 | ||
15232 | wxPyEndAllowThreads(__tstate); | |
15233 | if (PyErr_Occurred()) SWIG_fail; | |
15234 | } | |
4d5c3d91 | 15235 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15236 | { |
15237 | if (temp2) | |
15238 | delete arg2; | |
15239 | } | |
15240 | return resultobj; | |
15241 | fail: | |
15242 | { | |
15243 | if (temp2) | |
15244 | delete arg2; | |
15245 | } | |
15246 | return NULL; | |
15247 | } | |
15248 | ||
15249 | ||
15250 | static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15251 | PyObject *resultobj; | |
15252 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 15253 | bool arg2 = (bool) False ; |
d14a1e28 RD |
15254 | bool result; |
15255 | PyObject * obj0 = 0 ; | |
15256 | PyObject * obj1 = 0 ; | |
15257 | char *kwnames[] = { | |
15258 | (char *) "self",(char *) "bCurrentOnly", NULL | |
15259 | }; | |
15260 | ||
15261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
15262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15263 | if (obj1) { | |
a41e16b6 | 15264 | { |
994141e6 | 15265 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
15266 | if (PyErr_Occurred()) SWIG_fail; |
15267 | } | |
d14a1e28 RD |
15268 | } |
15269 | { | |
15270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15271 | result = (bool)(arg1)->Flush(arg2); | |
15272 | ||
15273 | wxPyEndAllowThreads(__tstate); | |
15274 | if (PyErr_Occurred()) SWIG_fail; | |
15275 | } | |
4d5c3d91 | 15276 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15277 | return resultobj; |
15278 | fail: | |
15279 | return NULL; | |
15280 | } | |
15281 | ||
15282 | ||
15283 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15284 | PyObject *resultobj; | |
15285 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15286 | wxString *arg2 = 0 ; | |
15287 | wxString *arg3 = 0 ; | |
15288 | bool result; | |
e811c8ce RD |
15289 | bool temp2 = False ; |
15290 | bool temp3 = False ; | |
d14a1e28 RD |
15291 | PyObject * obj0 = 0 ; |
15292 | PyObject * obj1 = 0 ; | |
15293 | PyObject * obj2 = 0 ; | |
15294 | char *kwnames[] = { | |
15295 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15296 | }; | |
15297 | ||
15298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15299 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15300 | { | |
15301 | arg2 = wxString_in_helper(obj1); | |
15302 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15303 | temp2 = True; |
d14a1e28 RD |
15304 | } |
15305 | { | |
15306 | arg3 = wxString_in_helper(obj2); | |
15307 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15308 | temp3 = True; |
d14a1e28 RD |
15309 | } |
15310 | { | |
15311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15312 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
15313 | ||
15314 | wxPyEndAllowThreads(__tstate); | |
15315 | if (PyErr_Occurred()) SWIG_fail; | |
15316 | } | |
4d5c3d91 | 15317 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15318 | { |
15319 | if (temp2) | |
15320 | delete arg2; | |
15321 | } | |
15322 | { | |
15323 | if (temp3) | |
15324 | delete arg3; | |
15325 | } | |
15326 | return resultobj; | |
15327 | fail: | |
15328 | { | |
15329 | if (temp2) | |
15330 | delete arg2; | |
15331 | } | |
15332 | { | |
15333 | if (temp3) | |
15334 | delete arg3; | |
15335 | } | |
15336 | return NULL; | |
15337 | } | |
15338 | ||
15339 | ||
15340 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15341 | PyObject *resultobj; | |
15342 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15343 | wxString *arg2 = 0 ; | |
15344 | wxString *arg3 = 0 ; | |
15345 | bool result; | |
e811c8ce RD |
15346 | bool temp2 = False ; |
15347 | bool temp3 = False ; | |
d14a1e28 RD |
15348 | PyObject * obj0 = 0 ; |
15349 | PyObject * obj1 = 0 ; | |
15350 | PyObject * obj2 = 0 ; | |
15351 | char *kwnames[] = { | |
15352 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15353 | }; | |
15354 | ||
15355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15356 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15357 | { | |
15358 | arg2 = wxString_in_helper(obj1); | |
15359 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15360 | temp2 = True; |
d14a1e28 RD |
15361 | } |
15362 | { | |
15363 | arg3 = wxString_in_helper(obj2); | |
15364 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15365 | temp3 = True; |
d14a1e28 RD |
15366 | } |
15367 | { | |
15368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15369 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
15370 | ||
15371 | wxPyEndAllowThreads(__tstate); | |
15372 | if (PyErr_Occurred()) SWIG_fail; | |
15373 | } | |
4d5c3d91 | 15374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15375 | { |
15376 | if (temp2) | |
15377 | delete arg2; | |
15378 | } | |
15379 | { | |
15380 | if (temp3) | |
15381 | delete arg3; | |
15382 | } | |
15383 | return resultobj; | |
15384 | fail: | |
15385 | { | |
15386 | if (temp2) | |
15387 | delete arg2; | |
15388 | } | |
15389 | { | |
15390 | if (temp3) | |
15391 | delete arg3; | |
15392 | } | |
15393 | return NULL; | |
15394 | } | |
15395 | ||
15396 | ||
15397 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15398 | PyObject *resultobj; | |
15399 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15400 | wxString *arg2 = 0 ; | |
e811c8ce | 15401 | bool arg3 = (bool) True ; |
d14a1e28 | 15402 | bool result; |
e811c8ce | 15403 | bool temp2 = False ; |
d14a1e28 RD |
15404 | PyObject * obj0 = 0 ; |
15405 | PyObject * obj1 = 0 ; | |
15406 | PyObject * obj2 = 0 ; | |
15407 | char *kwnames[] = { | |
15408 | (char *) "self",(char *) "key",(char *) "bDeleteGroupIfEmpty", NULL | |
15409 | }; | |
15410 | ||
15411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15413 | { | |
15414 | arg2 = wxString_in_helper(obj1); | |
15415 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15416 | temp2 = True; |
d14a1e28 RD |
15417 | } |
15418 | if (obj2) { | |
a41e16b6 | 15419 | { |
994141e6 | 15420 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
15421 | if (PyErr_Occurred()) SWIG_fail; |
15422 | } | |
d14a1e28 RD |
15423 | } |
15424 | { | |
15425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15426 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
15427 | ||
15428 | wxPyEndAllowThreads(__tstate); | |
15429 | if (PyErr_Occurred()) SWIG_fail; | |
15430 | } | |
4d5c3d91 | 15431 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15432 | { |
15433 | if (temp2) | |
15434 | delete arg2; | |
15435 | } | |
15436 | return resultobj; | |
15437 | fail: | |
15438 | { | |
15439 | if (temp2) | |
15440 | delete arg2; | |
15441 | } | |
15442 | return NULL; | |
15443 | } | |
15444 | ||
15445 | ||
15446 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15447 | PyObject *resultobj; | |
15448 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15449 | wxString *arg2 = 0 ; | |
15450 | bool result; | |
e811c8ce | 15451 | bool temp2 = False ; |
d14a1e28 RD |
15452 | PyObject * obj0 = 0 ; |
15453 | PyObject * obj1 = 0 ; | |
15454 | char *kwnames[] = { | |
15455 | (char *) "self",(char *) "key", NULL | |
15456 | }; | |
15457 | ||
15458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
15459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15460 | { | |
15461 | arg2 = wxString_in_helper(obj1); | |
15462 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15463 | temp2 = True; |
d14a1e28 RD |
15464 | } |
15465 | { | |
15466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15467 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
15468 | ||
15469 | wxPyEndAllowThreads(__tstate); | |
15470 | if (PyErr_Occurred()) SWIG_fail; | |
15471 | } | |
4d5c3d91 | 15472 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15473 | { |
15474 | if (temp2) | |
15475 | delete arg2; | |
15476 | } | |
15477 | return resultobj; | |
15478 | fail: | |
15479 | { | |
15480 | if (temp2) | |
15481 | delete arg2; | |
15482 | } | |
15483 | return NULL; | |
15484 | } | |
15485 | ||
15486 | ||
15487 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15488 | PyObject *resultobj; | |
15489 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15490 | bool result; | |
15491 | PyObject * obj0 = 0 ; | |
15492 | char *kwnames[] = { | |
15493 | (char *) "self", NULL | |
15494 | }; | |
15495 | ||
15496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
15497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15498 | { | |
15499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15500 | result = (bool)(arg1)->DeleteAll(); | |
15501 | ||
15502 | wxPyEndAllowThreads(__tstate); | |
15503 | if (PyErr_Occurred()) SWIG_fail; | |
15504 | } | |
4d5c3d91 | 15505 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15506 | return resultobj; |
15507 | fail: | |
15508 | return NULL; | |
15509 | } | |
15510 | ||
15511 | ||
15512 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15513 | PyObject *resultobj; | |
15514 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15515 | bool result; | |
15516 | PyObject * obj0 = 0 ; | |
15517 | char *kwnames[] = { | |
15518 | (char *) "self", NULL | |
15519 | }; | |
15520 | ||
15521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; | |
15522 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15523 | { | |
15524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15525 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); | |
15526 | ||
15527 | wxPyEndAllowThreads(__tstate); | |
15528 | if (PyErr_Occurred()) SWIG_fail; | |
15529 | } | |
4d5c3d91 | 15530 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15531 | return resultobj; |
15532 | fail: | |
15533 | return NULL; | |
15534 | } | |
15535 | ||
15536 | ||
15537 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15538 | PyObject *resultobj; | |
15539 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 15540 | bool arg2 = (bool) True ; |
d14a1e28 RD |
15541 | PyObject * obj0 = 0 ; |
15542 | PyObject * obj1 = 0 ; | |
15543 | char *kwnames[] = { | |
15544 | (char *) "self",(char *) "bDoIt", NULL | |
15545 | }; | |
15546 | ||
15547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
15548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15549 | if (obj1) { | |
a41e16b6 | 15550 | { |
994141e6 | 15551 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
15552 | if (PyErr_Occurred()) SWIG_fail; |
15553 | } | |
d14a1e28 RD |
15554 | } |
15555 | { | |
15556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15557 | (arg1)->SetExpandEnvVars(arg2); | |
15558 | ||
15559 | wxPyEndAllowThreads(__tstate); | |
15560 | if (PyErr_Occurred()) SWIG_fail; | |
15561 | } | |
15562 | Py_INCREF(Py_None); resultobj = Py_None; | |
15563 | return resultobj; | |
15564 | fail: | |
15565 | return NULL; | |
15566 | } | |
15567 | ||
15568 | ||
15569 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15570 | PyObject *resultobj; | |
15571 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 15572 | bool arg2 = (bool) True ; |
d14a1e28 RD |
15573 | PyObject * obj0 = 0 ; |
15574 | PyObject * obj1 = 0 ; | |
15575 | char *kwnames[] = { | |
15576 | (char *) "self",(char *) "bDoIt", NULL | |
15577 | }; | |
15578 | ||
15579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
15580 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15581 | if (obj1) { | |
a41e16b6 | 15582 | { |
994141e6 | 15583 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
15584 | if (PyErr_Occurred()) SWIG_fail; |
15585 | } | |
d14a1e28 RD |
15586 | } |
15587 | { | |
15588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15589 | (arg1)->SetRecordDefaults(arg2); | |
15590 | ||
15591 | wxPyEndAllowThreads(__tstate); | |
15592 | if (PyErr_Occurred()) SWIG_fail; | |
15593 | } | |
15594 | Py_INCREF(Py_None); resultobj = Py_None; | |
15595 | return resultobj; | |
15596 | fail: | |
15597 | return NULL; | |
15598 | } | |
15599 | ||
15600 | ||
15601 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15602 | PyObject *resultobj; | |
15603 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15604 | bool result; | |
15605 | PyObject * obj0 = 0 ; | |
15606 | char *kwnames[] = { | |
15607 | (char *) "self", NULL | |
15608 | }; | |
15609 | ||
15610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
15611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15612 | { | |
15613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15614 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
15615 | ||
15616 | wxPyEndAllowThreads(__tstate); | |
15617 | if (PyErr_Occurred()) SWIG_fail; | |
15618 | } | |
4d5c3d91 | 15619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15620 | return resultobj; |
15621 | fail: | |
15622 | return NULL; | |
15623 | } | |
15624 | ||
15625 | ||
15626 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15627 | PyObject *resultobj; | |
15628 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15629 | wxString *arg2 = 0 ; | |
15630 | wxString result; | |
e811c8ce | 15631 | bool temp2 = False ; |
d14a1e28 RD |
15632 | PyObject * obj0 = 0 ; |
15633 | PyObject * obj1 = 0 ; | |
15634 | char *kwnames[] = { | |
15635 | (char *) "self",(char *) "str", NULL | |
15636 | }; | |
15637 | ||
15638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
15639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15640 | { | |
15641 | arg2 = wxString_in_helper(obj1); | |
15642 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15643 | temp2 = True; |
d14a1e28 RD |
15644 | } |
15645 | { | |
15646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15647 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
15648 | ||
15649 | wxPyEndAllowThreads(__tstate); | |
15650 | if (PyErr_Occurred()) SWIG_fail; | |
15651 | } | |
15652 | { | |
15653 | #if wxUSE_UNICODE | |
15654 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15655 | #else | |
15656 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15657 | #endif | |
15658 | } | |
15659 | { | |
15660 | if (temp2) | |
15661 | delete arg2; | |
15662 | } | |
15663 | return resultobj; | |
15664 | fail: | |
15665 | { | |
15666 | if (temp2) | |
15667 | delete arg2; | |
15668 | } | |
15669 | return NULL; | |
15670 | } | |
15671 | ||
15672 | ||
15673 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15674 | PyObject *resultobj; | |
15675 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15676 | wxString result; | |
15677 | PyObject * obj0 = 0 ; | |
15678 | char *kwnames[] = { | |
15679 | (char *) "self", NULL | |
15680 | }; | |
15681 | ||
15682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
15683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15684 | { | |
15685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15686 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
15687 | ||
15688 | wxPyEndAllowThreads(__tstate); | |
15689 | if (PyErr_Occurred()) SWIG_fail; | |
15690 | } | |
15691 | { | |
15692 | #if wxUSE_UNICODE | |
15693 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15694 | #else | |
15695 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15696 | #endif | |
15697 | } | |
15698 | return resultobj; | |
15699 | fail: | |
15700 | return NULL; | |
15701 | } | |
15702 | ||
15703 | ||
15704 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15705 | PyObject *resultobj; | |
15706 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15707 | wxString result; | |
15708 | PyObject * obj0 = 0 ; | |
15709 | char *kwnames[] = { | |
15710 | (char *) "self", NULL | |
15711 | }; | |
15712 | ||
15713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
15714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15715 | { | |
15716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15717 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
15718 | ||
15719 | wxPyEndAllowThreads(__tstate); | |
15720 | if (PyErr_Occurred()) SWIG_fail; | |
15721 | } | |
15722 | { | |
15723 | #if wxUSE_UNICODE | |
15724 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15725 | #else | |
15726 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15727 | #endif | |
15728 | } | |
15729 | return resultobj; | |
15730 | fail: | |
15731 | return NULL; | |
15732 | } | |
15733 | ||
15734 | ||
15735 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15736 | PyObject *resultobj; | |
15737 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15738 | wxString *arg2 = 0 ; | |
e811c8ce | 15739 | bool temp2 = False ; |
d14a1e28 RD |
15740 | PyObject * obj0 = 0 ; |
15741 | PyObject * obj1 = 0 ; | |
15742 | char *kwnames[] = { | |
15743 | (char *) "self",(char *) "appName", NULL | |
15744 | }; | |
15745 | ||
15746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
15747 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15748 | { | |
15749 | arg2 = wxString_in_helper(obj1); | |
15750 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15751 | temp2 = True; |
d14a1e28 RD |
15752 | } |
15753 | { | |
15754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15755 | (arg1)->SetAppName((wxString const &)*arg2); | |
15756 | ||
15757 | wxPyEndAllowThreads(__tstate); | |
15758 | if (PyErr_Occurred()) SWIG_fail; | |
15759 | } | |
15760 | Py_INCREF(Py_None); resultobj = Py_None; | |
15761 | { | |
15762 | if (temp2) | |
15763 | delete arg2; | |
15764 | } | |
15765 | return resultobj; | |
15766 | fail: | |
15767 | { | |
15768 | if (temp2) | |
15769 | delete arg2; | |
15770 | } | |
15771 | return NULL; | |
15772 | } | |
15773 | ||
15774 | ||
15775 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15776 | PyObject *resultobj; | |
15777 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15778 | wxString *arg2 = 0 ; | |
e811c8ce | 15779 | bool temp2 = False ; |
d14a1e28 RD |
15780 | PyObject * obj0 = 0 ; |
15781 | PyObject * obj1 = 0 ; | |
15782 | char *kwnames[] = { | |
15783 | (char *) "self",(char *) "vendorName", NULL | |
15784 | }; | |
15785 | ||
15786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
15787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15788 | { | |
15789 | arg2 = wxString_in_helper(obj1); | |
15790 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15791 | temp2 = True; |
d14a1e28 RD |
15792 | } |
15793 | { | |
15794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15795 | (arg1)->SetVendorName((wxString const &)*arg2); | |
15796 | ||
15797 | wxPyEndAllowThreads(__tstate); | |
15798 | if (PyErr_Occurred()) SWIG_fail; | |
15799 | } | |
15800 | Py_INCREF(Py_None); resultobj = Py_None; | |
15801 | { | |
15802 | if (temp2) | |
15803 | delete arg2; | |
15804 | } | |
15805 | return resultobj; | |
15806 | fail: | |
15807 | { | |
15808 | if (temp2) | |
15809 | delete arg2; | |
15810 | } | |
15811 | return NULL; | |
15812 | } | |
15813 | ||
15814 | ||
15815 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15816 | PyObject *resultobj; | |
15817 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15818 | long arg2 ; | |
15819 | PyObject * obj0 = 0 ; | |
994141e6 | 15820 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15821 | char *kwnames[] = { |
15822 | (char *) "self",(char *) "style", NULL | |
15823 | }; | |
15824 | ||
994141e6 | 15825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15827 | { |
15828 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
15829 | if (PyErr_Occurred()) SWIG_fail; | |
15830 | } | |
d14a1e28 RD |
15831 | { |
15832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15833 | (arg1)->SetStyle(arg2); | |
15834 | ||
15835 | wxPyEndAllowThreads(__tstate); | |
15836 | if (PyErr_Occurred()) SWIG_fail; | |
15837 | } | |
15838 | Py_INCREF(Py_None); resultobj = Py_None; | |
15839 | return resultobj; | |
15840 | fail: | |
15841 | return NULL; | |
15842 | } | |
15843 | ||
15844 | ||
15845 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15846 | PyObject *resultobj; | |
15847 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15848 | long result; | |
15849 | PyObject * obj0 = 0 ; | |
15850 | char *kwnames[] = { | |
15851 | (char *) "self", NULL | |
15852 | }; | |
15853 | ||
15854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
15855 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15856 | { | |
15857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15858 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
15859 | ||
15860 | wxPyEndAllowThreads(__tstate); | |
15861 | if (PyErr_Occurred()) SWIG_fail; | |
15862 | } | |
994141e6 | 15863 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
15864 | return resultobj; |
15865 | fail: | |
15866 | return NULL; | |
15867 | } | |
15868 | ||
15869 | ||
15870 | static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) { | |
15871 | PyObject *obj; | |
15872 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15873 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
15874 | Py_INCREF(obj); | |
15875 | return Py_BuildValue((char *)""); | |
15876 | } | |
15877 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15878 | PyObject *resultobj; | |
15879 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15880 | wxString *arg2 = 0 ; | |
15881 | wxConfigPathChanger *result; | |
e811c8ce | 15882 | bool temp2 = False ; |
d14a1e28 RD |
15883 | PyObject * obj0 = 0 ; |
15884 | PyObject * obj1 = 0 ; | |
15885 | char *kwnames[] = { | |
15886 | (char *) "pContainer",(char *) "strEntry", NULL | |
15887 | }; | |
15888 | ||
15889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
15890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15891 | { | |
15892 | arg2 = wxString_in_helper(obj1); | |
15893 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15894 | temp2 = True; |
d14a1e28 RD |
15895 | } |
15896 | { | |
15897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15898 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
15899 | ||
15900 | wxPyEndAllowThreads(__tstate); | |
15901 | if (PyErr_Occurred()) SWIG_fail; | |
15902 | } | |
15903 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigPathChanger, 1); | |
15904 | { | |
15905 | if (temp2) | |
15906 | delete arg2; | |
15907 | } | |
15908 | return resultobj; | |
15909 | fail: | |
15910 | { | |
15911 | if (temp2) | |
15912 | delete arg2; | |
15913 | } | |
15914 | return NULL; | |
15915 | } | |
15916 | ||
15917 | ||
15918 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15919 | PyObject *resultobj; | |
15920 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
15921 | PyObject * obj0 = 0 ; | |
15922 | char *kwnames[] = { | |
15923 | (char *) "self", NULL | |
15924 | }; | |
15925 | ||
15926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
15927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigPathChanger,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15928 | { | |
15929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15930 | delete arg1; | |
15931 | ||
15932 | wxPyEndAllowThreads(__tstate); | |
15933 | if (PyErr_Occurred()) SWIG_fail; | |
15934 | } | |
15935 | Py_INCREF(Py_None); resultobj = Py_None; | |
15936 | return resultobj; | |
15937 | fail: | |
15938 | return NULL; | |
15939 | } | |
15940 | ||
15941 | ||
15942 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15943 | PyObject *resultobj; | |
15944 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
15945 | wxString *result; | |
15946 | PyObject * obj0 = 0 ; | |
15947 | char *kwnames[] = { | |
15948 | (char *) "self", NULL | |
15949 | }; | |
15950 | ||
15951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
15952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigPathChanger,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15953 | { | |
15954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15955 | { | |
15956 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
15957 | result = (wxString *) &_result_ref; | |
15958 | } | |
15959 | ||
15960 | wxPyEndAllowThreads(__tstate); | |
15961 | if (PyErr_Occurred()) SWIG_fail; | |
15962 | } | |
cc6dd355 RD |
15963 | { |
15964 | #if wxUSE_UNICODE | |
15965 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
15966 | #else | |
15967 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
15968 | #endif | |
15969 | } | |
d14a1e28 RD |
15970 | return resultobj; |
15971 | fail: | |
15972 | return NULL; | |
15973 | } | |
15974 | ||
15975 | ||
15976 | static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) { | |
15977 | PyObject *obj; | |
15978 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15979 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
15980 | Py_INCREF(obj); | |
15981 | return Py_BuildValue((char *)""); | |
15982 | } | |
15983 | static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15984 | PyObject *resultobj; | |
15985 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15986 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15987 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
15988 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
15989 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15990 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15991 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15992 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15993 | long arg5 = (long) 0 ; | |
15994 | wxConfig *result; | |
e811c8ce RD |
15995 | bool temp1 = False ; |
15996 | bool temp2 = False ; | |
15997 | bool temp3 = False ; | |
15998 | bool temp4 = False ; | |
d14a1e28 RD |
15999 | PyObject * obj0 = 0 ; |
16000 | PyObject * obj1 = 0 ; | |
16001 | PyObject * obj2 = 0 ; | |
16002 | PyObject * obj3 = 0 ; | |
994141e6 | 16003 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
16004 | char *kwnames[] = { |
16005 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16006 | }; | |
16007 | ||
994141e6 | 16008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
16009 | if (obj0) { |
16010 | { | |
16011 | arg1 = wxString_in_helper(obj0); | |
16012 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 16013 | temp1 = True; |
d14a1e28 RD |
16014 | } |
16015 | } | |
16016 | if (obj1) { | |
16017 | { | |
16018 | arg2 = wxString_in_helper(obj1); | |
16019 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16020 | temp2 = True; |
d14a1e28 RD |
16021 | } |
16022 | } | |
16023 | if (obj2) { | |
16024 | { | |
16025 | arg3 = wxString_in_helper(obj2); | |
16026 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 16027 | temp3 = True; |
d14a1e28 RD |
16028 | } |
16029 | } | |
16030 | if (obj3) { | |
16031 | { | |
16032 | arg4 = wxString_in_helper(obj3); | |
16033 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 16034 | temp4 = True; |
d14a1e28 RD |
16035 | } |
16036 | } | |
994141e6 RD |
16037 | if (obj4) { |
16038 | { | |
16039 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
16040 | if (PyErr_Occurred()) SWIG_fail; | |
16041 | } | |
16042 | } | |
d14a1e28 RD |
16043 | { |
16044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16045 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16046 | ||
16047 | wxPyEndAllowThreads(__tstate); | |
16048 | if (PyErr_Occurred()) SWIG_fail; | |
16049 | } | |
16050 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfig, 1); | |
16051 | { | |
16052 | if (temp1) | |
16053 | delete arg1; | |
16054 | } | |
16055 | { | |
16056 | if (temp2) | |
16057 | delete arg2; | |
16058 | } | |
16059 | { | |
16060 | if (temp3) | |
16061 | delete arg3; | |
16062 | } | |
16063 | { | |
16064 | if (temp4) | |
16065 | delete arg4; | |
16066 | } | |
16067 | return resultobj; | |
16068 | fail: | |
16069 | { | |
16070 | if (temp1) | |
16071 | delete arg1; | |
16072 | } | |
16073 | { | |
16074 | if (temp2) | |
16075 | delete arg2; | |
16076 | } | |
16077 | { | |
16078 | if (temp3) | |
16079 | delete arg3; | |
16080 | } | |
16081 | { | |
16082 | if (temp4) | |
16083 | delete arg4; | |
16084 | } | |
16085 | return NULL; | |
16086 | } | |
16087 | ||
16088 | ||
16089 | static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16090 | PyObject *resultobj; | |
16091 | wxConfig *arg1 = (wxConfig *) 0 ; | |
16092 | PyObject * obj0 = 0 ; | |
16093 | char *kwnames[] = { | |
16094 | (char *) "self", NULL | |
16095 | }; | |
16096 | ||
16097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
16098 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16099 | { | |
16100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16101 | delete arg1; | |
16102 | ||
16103 | wxPyEndAllowThreads(__tstate); | |
16104 | if (PyErr_Occurred()) SWIG_fail; | |
16105 | } | |
16106 | Py_INCREF(Py_None); resultobj = Py_None; | |
16107 | return resultobj; | |
16108 | fail: | |
16109 | return NULL; | |
16110 | } | |
16111 | ||
16112 | ||
16113 | static PyObject * Config_swigregister(PyObject *self, PyObject *args) { | |
16114 | PyObject *obj; | |
16115 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16116 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
16117 | Py_INCREF(obj); | |
16118 | return Py_BuildValue((char *)""); | |
16119 | } | |
16120 | static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16121 | PyObject *resultobj; | |
16122 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16123 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16124 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16125 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16126 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16127 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16128 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16129 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16130 | long arg5 = (long) 0 ; | |
16131 | wxFileConfig *result; | |
e811c8ce RD |
16132 | bool temp1 = False ; |
16133 | bool temp2 = False ; | |
16134 | bool temp3 = False ; | |
16135 | bool temp4 = False ; | |
d14a1e28 RD |
16136 | PyObject * obj0 = 0 ; |
16137 | PyObject * obj1 = 0 ; | |
16138 | PyObject * obj2 = 0 ; | |
16139 | PyObject * obj3 = 0 ; | |
994141e6 | 16140 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
16141 | char *kwnames[] = { |
16142 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16143 | }; | |
16144 | ||
994141e6 | 16145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
16146 | if (obj0) { |
16147 | { | |
16148 | arg1 = wxString_in_helper(obj0); | |
16149 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 16150 | temp1 = True; |
d14a1e28 RD |
16151 | } |
16152 | } | |
16153 | if (obj1) { | |
16154 | { | |
16155 | arg2 = wxString_in_helper(obj1); | |
16156 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16157 | temp2 = True; |
d14a1e28 RD |
16158 | } |
16159 | } | |
16160 | if (obj2) { | |
16161 | { | |
16162 | arg3 = wxString_in_helper(obj2); | |
16163 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 16164 | temp3 = True; |
d14a1e28 RD |
16165 | } |
16166 | } | |
16167 | if (obj3) { | |
16168 | { | |
16169 | arg4 = wxString_in_helper(obj3); | |
16170 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 16171 | temp4 = True; |
d14a1e28 RD |
16172 | } |
16173 | } | |
994141e6 RD |
16174 | if (obj4) { |
16175 | { | |
16176 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
16177 | if (PyErr_Occurred()) SWIG_fail; | |
16178 | } | |
16179 | } | |
d14a1e28 RD |
16180 | { |
16181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16182 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16183 | ||
16184 | wxPyEndAllowThreads(__tstate); | |
16185 | if (PyErr_Occurred()) SWIG_fail; | |
16186 | } | |
16187 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileConfig, 1); | |
16188 | { | |
16189 | if (temp1) | |
16190 | delete arg1; | |
16191 | } | |
16192 | { | |
16193 | if (temp2) | |
16194 | delete arg2; | |
16195 | } | |
16196 | { | |
16197 | if (temp3) | |
16198 | delete arg3; | |
16199 | } | |
16200 | { | |
16201 | if (temp4) | |
16202 | delete arg4; | |
16203 | } | |
16204 | return resultobj; | |
16205 | fail: | |
16206 | { | |
16207 | if (temp1) | |
16208 | delete arg1; | |
16209 | } | |
16210 | { | |
16211 | if (temp2) | |
16212 | delete arg2; | |
16213 | } | |
16214 | { | |
16215 | if (temp3) | |
16216 | delete arg3; | |
16217 | } | |
16218 | { | |
16219 | if (temp4) | |
16220 | delete arg4; | |
16221 | } | |
16222 | return NULL; | |
16223 | } | |
16224 | ||
16225 | ||
16226 | static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16227 | PyObject *resultobj; | |
16228 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
16229 | PyObject * obj0 = 0 ; | |
16230 | char *kwnames[] = { | |
16231 | (char *) "self", NULL | |
16232 | }; | |
16233 | ||
16234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
16235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16236 | { | |
16237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16238 | delete arg1; | |
16239 | ||
16240 | wxPyEndAllowThreads(__tstate); | |
16241 | if (PyErr_Occurred()) SWIG_fail; | |
16242 | } | |
16243 | Py_INCREF(Py_None); resultobj = Py_None; | |
16244 | return resultobj; | |
16245 | fail: | |
16246 | return NULL; | |
16247 | } | |
16248 | ||
16249 | ||
16250 | static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) { | |
16251 | PyObject *obj; | |
16252 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16253 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
16254 | Py_INCREF(obj); | |
16255 | return Py_BuildValue((char *)""); | |
16256 | } | |
16257 | static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16258 | PyObject *resultobj; | |
16259 | wxString *arg1 = 0 ; | |
16260 | wxString result; | |
e811c8ce | 16261 | bool temp1 = False ; |
d14a1e28 RD |
16262 | PyObject * obj0 = 0 ; |
16263 | char *kwnames[] = { | |
16264 | (char *) "sz", NULL | |
16265 | }; | |
16266 | ||
16267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
16268 | { | |
16269 | arg1 = wxString_in_helper(obj0); | |
16270 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 16271 | temp1 = True; |
d14a1e28 RD |
16272 | } |
16273 | { | |
16274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16275 | result = wxExpandEnvVars((wxString const &)*arg1); | |
16276 | ||
16277 | wxPyEndAllowThreads(__tstate); | |
16278 | if (PyErr_Occurred()) SWIG_fail; | |
16279 | } | |
16280 | { | |
16281 | #if wxUSE_UNICODE | |
16282 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16283 | #else | |
16284 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16285 | #endif | |
16286 | } | |
16287 | { | |
16288 | if (temp1) | |
16289 | delete arg1; | |
16290 | } | |
16291 | return resultobj; | |
16292 | fail: | |
16293 | { | |
16294 | if (temp1) | |
16295 | delete arg1; | |
16296 | } | |
16297 | return NULL; | |
16298 | } | |
16299 | ||
16300 | ||
b2dc1044 RD |
16301 | static int _wrap_DateFormatStr_set(PyObject *_val) { |
16302 | PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); | |
16303 | return 1; | |
16304 | } | |
16305 | ||
16306 | ||
16307 | static PyObject *_wrap_DateFormatStr_get() { | |
16308 | PyObject *pyobj; | |
16309 | ||
16310 | { | |
16311 | #if wxUSE_UNICODE | |
16312 | pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16313 | #else | |
16314 | pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16315 | #endif | |
16316 | } | |
16317 | return pyobj; | |
16318 | } | |
16319 | ||
16320 | ||
16321 | static int _wrap_TimeSpanFormatStr_set(PyObject *_val) { | |
16322 | PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); | |
16323 | return 1; | |
16324 | } | |
16325 | ||
16326 | ||
16327 | static PyObject *_wrap_TimeSpanFormatStr_get() { | |
16328 | PyObject *pyobj; | |
16329 | ||
16330 | { | |
16331 | #if wxUSE_UNICODE | |
16332 | pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16333 | #else | |
16334 | pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16335 | #endif | |
16336 | } | |
16337 | return pyobj; | |
16338 | } | |
16339 | ||
16340 | ||
d14a1e28 RD |
16341 | static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { |
16342 | PyObject *resultobj; | |
16343 | int arg1 ; | |
994141e6 | 16344 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16345 | char *kwnames[] = { |
16346 | (char *) "country", NULL | |
16347 | }; | |
16348 | ||
994141e6 RD |
16349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; |
16350 | { | |
16351 | arg1 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj0); | |
16352 | if (PyErr_Occurred()) SWIG_fail; | |
16353 | } | |
d14a1e28 RD |
16354 | { |
16355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16356 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
16357 | ||
16358 | wxPyEndAllowThreads(__tstate); | |
16359 | if (PyErr_Occurred()) SWIG_fail; | |
16360 | } | |
16361 | Py_INCREF(Py_None); resultobj = Py_None; | |
16362 | return resultobj; | |
16363 | fail: | |
16364 | return NULL; | |
16365 | } | |
16366 | ||
16367 | ||
16368 | static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16369 | PyObject *resultobj; | |
16370 | int result; | |
16371 | char *kwnames[] = { | |
16372 | NULL | |
16373 | }; | |
16374 | ||
16375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
16376 | { | |
16377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16378 | result = (int)wxDateTime::GetCountry(); | |
16379 | ||
16380 | wxPyEndAllowThreads(__tstate); | |
16381 | if (PyErr_Occurred()) SWIG_fail; | |
16382 | } | |
994141e6 | 16383 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16384 | return resultobj; |
16385 | fail: | |
16386 | return NULL; | |
16387 | } | |
16388 | ||
16389 | ||
16390 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16391 | PyObject *resultobj; | |
16392 | int arg1 = (int) wxDateTime::Country_Default ; | |
16393 | bool result; | |
994141e6 | 16394 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16395 | char *kwnames[] = { |
16396 | (char *) "country", NULL | |
16397 | }; | |
16398 | ||
994141e6 RD |
16399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; |
16400 | if (obj0) { | |
16401 | { | |
16402 | arg1 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj0); | |
16403 | if (PyErr_Occurred()) SWIG_fail; | |
16404 | } | |
16405 | } | |
d14a1e28 RD |
16406 | { |
16407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16408 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
16409 | ||
16410 | wxPyEndAllowThreads(__tstate); | |
16411 | if (PyErr_Occurred()) SWIG_fail; | |
16412 | } | |
4d5c3d91 | 16413 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16414 | return resultobj; |
16415 | fail: | |
16416 | return NULL; | |
16417 | } | |
16418 | ||
16419 | ||
16420 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16421 | PyObject *resultobj; | |
16422 | int arg1 = (int) wxDateTime::Gregorian ; | |
16423 | int result; | |
994141e6 | 16424 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16425 | char *kwnames[] = { |
16426 | (char *) "cal", NULL | |
16427 | }; | |
16428 | ||
994141e6 RD |
16429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; |
16430 | if (obj0) { | |
16431 | { | |
16432 | arg1 = (wxDateTime::Calendar) SWIG_PyObj_AsInt(obj0); | |
16433 | if (PyErr_Occurred()) SWIG_fail; | |
16434 | } | |
16435 | } | |
d14a1e28 RD |
16436 | { |
16437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16438 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
16439 | ||
16440 | wxPyEndAllowThreads(__tstate); | |
16441 | if (PyErr_Occurred()) SWIG_fail; | |
16442 | } | |
994141e6 | 16443 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16444 | return resultobj; |
16445 | fail: | |
16446 | return NULL; | |
16447 | } | |
16448 | ||
16449 | ||
16450 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16451 | PyObject *resultobj; | |
16452 | int arg1 ; | |
16453 | int result; | |
994141e6 | 16454 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16455 | char *kwnames[] = { |
16456 | (char *) "year", NULL | |
16457 | }; | |
16458 | ||
994141e6 RD |
16459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; |
16460 | { | |
16461 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16462 | if (PyErr_Occurred()) SWIG_fail; | |
16463 | } | |
d14a1e28 RD |
16464 | { |
16465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16466 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
16467 | ||
16468 | wxPyEndAllowThreads(__tstate); | |
16469 | if (PyErr_Occurred()) SWIG_fail; | |
16470 | } | |
994141e6 | 16471 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16472 | return resultobj; |
16473 | fail: | |
16474 | return NULL; | |
16475 | } | |
16476 | ||
16477 | ||
16478 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16479 | PyObject *resultobj; | |
16480 | int arg1 = (int) wxDateTime::Gregorian ; | |
16481 | int result; | |
994141e6 | 16482 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16483 | char *kwnames[] = { |
16484 | (char *) "cal", NULL | |
16485 | }; | |
16486 | ||
994141e6 RD |
16487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; |
16488 | if (obj0) { | |
16489 | { | |
16490 | arg1 = (wxDateTime::Calendar) SWIG_PyObj_AsInt(obj0); | |
16491 | if (PyErr_Occurred()) SWIG_fail; | |
16492 | } | |
16493 | } | |
d14a1e28 RD |
16494 | { |
16495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16496 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
16497 | ||
16498 | wxPyEndAllowThreads(__tstate); | |
16499 | if (PyErr_Occurred()) SWIG_fail; | |
16500 | } | |
994141e6 | 16501 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16502 | return resultobj; |
16503 | fail: | |
16504 | return NULL; | |
16505 | } | |
16506 | ||
16507 | ||
16508 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16509 | PyObject *resultobj; | |
16510 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16511 | int arg2 = (int) wxDateTime::Gregorian ; | |
16512 | bool result; | |
994141e6 RD |
16513 | PyObject * obj0 = 0 ; |
16514 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16515 | char *kwnames[] = { |
16516 | (char *) "year",(char *) "cal", NULL | |
16517 | }; | |
16518 | ||
994141e6 RD |
16519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; |
16520 | if (obj0) { | |
16521 | { | |
16522 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16523 | if (PyErr_Occurred()) SWIG_fail; | |
16524 | } | |
16525 | } | |
16526 | if (obj1) { | |
16527 | { | |
16528 | arg2 = (wxDateTime::Calendar) SWIG_PyObj_AsInt(obj1); | |
16529 | if (PyErr_Occurred()) SWIG_fail; | |
16530 | } | |
16531 | } | |
d14a1e28 RD |
16532 | { |
16533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16534 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
16535 | ||
16536 | wxPyEndAllowThreads(__tstate); | |
16537 | if (PyErr_Occurred()) SWIG_fail; | |
16538 | } | |
4d5c3d91 | 16539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16540 | return resultobj; |
16541 | fail: | |
16542 | return NULL; | |
16543 | } | |
16544 | ||
16545 | ||
16546 | static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16547 | PyObject *resultobj; | |
16548 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16549 | int result; | |
994141e6 | 16550 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16551 | char *kwnames[] = { |
16552 | (char *) "year", NULL | |
16553 | }; | |
16554 | ||
994141e6 RD |
16555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; |
16556 | if (obj0) { | |
16557 | { | |
16558 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16559 | if (PyErr_Occurred()) SWIG_fail; | |
16560 | } | |
16561 | } | |
d14a1e28 RD |
16562 | { |
16563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16564 | result = (int)wxDateTime::GetCentury(arg1); | |
16565 | ||
16566 | wxPyEndAllowThreads(__tstate); | |
16567 | if (PyErr_Occurred()) SWIG_fail; | |
16568 | } | |
994141e6 | 16569 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16570 | return resultobj; |
16571 | fail: | |
16572 | return NULL; | |
16573 | } | |
16574 | ||
16575 | ||
16576 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16577 | PyObject *resultobj; | |
16578 | int arg1 ; | |
16579 | int arg2 = (int) wxDateTime::Gregorian ; | |
322913ce | 16580 | int result; |
994141e6 RD |
16581 | PyObject * obj0 = 0 ; |
16582 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16583 | char *kwnames[] = { |
16584 | (char *) "year",(char *) "cal", NULL | |
16585 | }; | |
16586 | ||
994141e6 RD |
16587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; |
16588 | { | |
16589 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16590 | if (PyErr_Occurred()) SWIG_fail; | |
16591 | } | |
16592 | if (obj1) { | |
16593 | { | |
16594 | arg2 = (wxDateTime::Calendar) SWIG_PyObj_AsInt(obj1); | |
16595 | if (PyErr_Occurred()) SWIG_fail; | |
16596 | } | |
16597 | } | |
d14a1e28 RD |
16598 | { |
16599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 16600 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); |
d14a1e28 RD |
16601 | |
16602 | wxPyEndAllowThreads(__tstate); | |
16603 | if (PyErr_Occurred()) SWIG_fail; | |
16604 | } | |
994141e6 | 16605 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16606 | return resultobj; |
16607 | fail: | |
16608 | return NULL; | |
16609 | } | |
16610 | ||
16611 | ||
16612 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16613 | PyObject *resultobj; | |
16614 | int arg1 ; | |
16615 | int arg2 = (int) wxDateTime::Inv_Year ; | |
16616 | int arg3 = (int) wxDateTime::Gregorian ; | |
322913ce | 16617 | int result; |
994141e6 RD |
16618 | PyObject * obj0 = 0 ; |
16619 | PyObject * obj1 = 0 ; | |
16620 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16621 | char *kwnames[] = { |
16622 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
16623 | }; | |
16624 | ||
994141e6 RD |
16625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16626 | { | |
16627 | arg1 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj0); | |
16628 | if (PyErr_Occurred()) SWIG_fail; | |
16629 | } | |
16630 | if (obj1) { | |
16631 | { | |
16632 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16633 | if (PyErr_Occurred()) SWIG_fail; | |
16634 | } | |
16635 | } | |
16636 | if (obj2) { | |
16637 | { | |
16638 | arg3 = (wxDateTime::Calendar) SWIG_PyObj_AsInt(obj2); | |
16639 | if (PyErr_Occurred()) SWIG_fail; | |
16640 | } | |
16641 | } | |
d14a1e28 RD |
16642 | { |
16643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 16644 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); |
d14a1e28 RD |
16645 | |
16646 | wxPyEndAllowThreads(__tstate); | |
16647 | if (PyErr_Occurred()) SWIG_fail; | |
16648 | } | |
994141e6 | 16649 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16650 | return resultobj; |
16651 | fail: | |
16652 | return NULL; | |
16653 | } | |
16654 | ||
16655 | ||
16656 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16657 | PyObject *resultobj; | |
16658 | int arg1 ; | |
16659 | int arg2 = (int) wxDateTime::Name_Full ; | |
16660 | wxString result; | |
994141e6 RD |
16661 | PyObject * obj0 = 0 ; |
16662 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16663 | char *kwnames[] = { |
16664 | (char *) "month",(char *) "flags", NULL | |
16665 | }; | |
16666 | ||
994141e6 RD |
16667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; |
16668 | { | |
16669 | arg1 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj0); | |
16670 | if (PyErr_Occurred()) SWIG_fail; | |
16671 | } | |
16672 | if (obj1) { | |
16673 | { | |
16674 | arg2 = (wxDateTime::NameFlags) SWIG_PyObj_AsInt(obj1); | |
16675 | if (PyErr_Occurred()) SWIG_fail; | |
16676 | } | |
16677 | } | |
d14a1e28 RD |
16678 | { |
16679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16680 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
16681 | ||
16682 | wxPyEndAllowThreads(__tstate); | |
16683 | if (PyErr_Occurred()) SWIG_fail; | |
16684 | } | |
16685 | { | |
16686 | #if wxUSE_UNICODE | |
16687 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16688 | #else | |
16689 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16690 | #endif | |
16691 | } | |
16692 | return resultobj; | |
16693 | fail: | |
16694 | return NULL; | |
16695 | } | |
16696 | ||
16697 | ||
16698 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16699 | PyObject *resultobj; | |
16700 | int arg1 ; | |
16701 | int arg2 = (int) wxDateTime::Name_Full ; | |
16702 | wxString result; | |
994141e6 RD |
16703 | PyObject * obj0 = 0 ; |
16704 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16705 | char *kwnames[] = { |
16706 | (char *) "weekday",(char *) "flags", NULL | |
16707 | }; | |
16708 | ||
994141e6 RD |
16709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; |
16710 | { | |
16711 | arg1 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj0); | |
16712 | if (PyErr_Occurred()) SWIG_fail; | |
16713 | } | |
16714 | if (obj1) { | |
16715 | { | |
16716 | arg2 = (wxDateTime::NameFlags) SWIG_PyObj_AsInt(obj1); | |
16717 | if (PyErr_Occurred()) SWIG_fail; | |
16718 | } | |
16719 | } | |
d14a1e28 RD |
16720 | { |
16721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16722 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
16723 | ||
16724 | wxPyEndAllowThreads(__tstate); | |
16725 | if (PyErr_Occurred()) SWIG_fail; | |
16726 | } | |
16727 | { | |
16728 | #if wxUSE_UNICODE | |
16729 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16730 | #else | |
16731 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16732 | #endif | |
16733 | } | |
16734 | return resultobj; | |
16735 | fail: | |
16736 | return NULL; | |
16737 | } | |
16738 | ||
16739 | ||
16740 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16741 | PyObject *resultobj; | |
16742 | wxString *arg1 = (wxString *) 0 ; | |
16743 | wxString *arg2 = (wxString *) 0 ; | |
7eae615b RD |
16744 | bool temp1 = False ; |
16745 | bool temp2 = False ; | |
d14a1e28 RD |
16746 | PyObject * obj0 = 0 ; |
16747 | PyObject * obj1 = 0 ; | |
16748 | char *kwnames[] = { | |
16749 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
16750 | }; | |
16751 | ||
16752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
7eae615b RD |
16753 | { |
16754 | arg1 = wxString_in_helper(obj0); | |
16755 | if (arg1 == NULL) SWIG_fail; | |
16756 | temp1 = True; | |
16757 | } | |
16758 | { | |
16759 | arg2 = wxString_in_helper(obj1); | |
16760 | if (arg2 == NULL) SWIG_fail; | |
16761 | temp2 = True; | |
16762 | } | |
d14a1e28 RD |
16763 | { |
16764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16765 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
16766 | ||
16767 | wxPyEndAllowThreads(__tstate); | |
16768 | if (PyErr_Occurred()) SWIG_fail; | |
16769 | } | |
16770 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
16771 | { |
16772 | if (temp1) | |
16773 | delete arg1; | |
16774 | } | |
16775 | { | |
16776 | if (temp2) | |
16777 | delete arg2; | |
16778 | } | |
d14a1e28 RD |
16779 | return resultobj; |
16780 | fail: | |
7eae615b RD |
16781 | { |
16782 | if (temp1) | |
16783 | delete arg1; | |
16784 | } | |
16785 | { | |
16786 | if (temp2) | |
16787 | delete arg2; | |
16788 | } | |
d14a1e28 RD |
16789 | return NULL; |
16790 | } | |
16791 | ||
16792 | ||
16793 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16794 | PyObject *resultobj; | |
16795 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16796 | int arg2 = (int) wxDateTime::Country_Default ; | |
16797 | bool result; | |
994141e6 RD |
16798 | PyObject * obj0 = 0 ; |
16799 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16800 | char *kwnames[] = { |
16801 | (char *) "year",(char *) "country", NULL | |
16802 | }; | |
16803 | ||
994141e6 RD |
16804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; |
16805 | if (obj0) { | |
16806 | { | |
16807 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16808 | if (PyErr_Occurred()) SWIG_fail; | |
16809 | } | |
16810 | } | |
16811 | if (obj1) { | |
16812 | { | |
16813 | arg2 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj1); | |
16814 | if (PyErr_Occurred()) SWIG_fail; | |
16815 | } | |
16816 | } | |
d14a1e28 RD |
16817 | { |
16818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16819 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
16820 | ||
16821 | wxPyEndAllowThreads(__tstate); | |
16822 | if (PyErr_Occurred()) SWIG_fail; | |
16823 | } | |
4d5c3d91 | 16824 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16825 | return resultobj; |
16826 | fail: | |
16827 | return NULL; | |
16828 | } | |
16829 | ||
16830 | ||
16831 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16832 | PyObject *resultobj; | |
16833 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16834 | int arg2 = (int) wxDateTime::Country_Default ; | |
16835 | wxDateTime result; | |
994141e6 RD |
16836 | PyObject * obj0 = 0 ; |
16837 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16838 | char *kwnames[] = { |
16839 | (char *) "year",(char *) "country", NULL | |
16840 | }; | |
16841 | ||
994141e6 RD |
16842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; |
16843 | if (obj0) { | |
16844 | { | |
16845 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16846 | if (PyErr_Occurred()) SWIG_fail; | |
16847 | } | |
16848 | } | |
16849 | if (obj1) { | |
16850 | { | |
16851 | arg2 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj1); | |
16852 | if (PyErr_Occurred()) SWIG_fail; | |
16853 | } | |
16854 | } | |
d14a1e28 RD |
16855 | { |
16856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16857 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
16858 | ||
16859 | wxPyEndAllowThreads(__tstate); | |
16860 | if (PyErr_Occurred()) SWIG_fail; | |
16861 | } | |
16862 | { | |
16863 | wxDateTime * resultptr; | |
16864 | resultptr = new wxDateTime((wxDateTime &) result); | |
16865 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16866 | } | |
16867 | return resultobj; | |
16868 | fail: | |
16869 | return NULL; | |
16870 | } | |
16871 | ||
16872 | ||
16873 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16874 | PyObject *resultobj; | |
16875 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16876 | int arg2 = (int) wxDateTime::Country_Default ; | |
16877 | wxDateTime result; | |
994141e6 RD |
16878 | PyObject * obj0 = 0 ; |
16879 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16880 | char *kwnames[] = { |
16881 | (char *) "year",(char *) "country", NULL | |
16882 | }; | |
16883 | ||
994141e6 RD |
16884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; |
16885 | if (obj0) { | |
16886 | { | |
16887 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16888 | if (PyErr_Occurred()) SWIG_fail; | |
16889 | } | |
16890 | } | |
16891 | if (obj1) { | |
16892 | { | |
16893 | arg2 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj1); | |
16894 | if (PyErr_Occurred()) SWIG_fail; | |
16895 | } | |
16896 | } | |
d14a1e28 RD |
16897 | { |
16898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16899 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
16900 | ||
16901 | wxPyEndAllowThreads(__tstate); | |
16902 | if (PyErr_Occurred()) SWIG_fail; | |
16903 | } | |
16904 | { | |
16905 | wxDateTime * resultptr; | |
16906 | resultptr = new wxDateTime((wxDateTime &) result); | |
16907 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16908 | } | |
16909 | return resultobj; | |
16910 | fail: | |
16911 | return NULL; | |
16912 | } | |
16913 | ||
16914 | ||
16915 | static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16916 | PyObject *resultobj; | |
16917 | wxDateTime result; | |
16918 | char *kwnames[] = { | |
16919 | NULL | |
16920 | }; | |
16921 | ||
16922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
16923 | { | |
16924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16925 | result = wxDateTime::Now(); | |
16926 | ||
16927 | wxPyEndAllowThreads(__tstate); | |
16928 | if (PyErr_Occurred()) SWIG_fail; | |
16929 | } | |
16930 | { | |
16931 | wxDateTime * resultptr; | |
16932 | resultptr = new wxDateTime((wxDateTime &) result); | |
16933 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16934 | } | |
16935 | return resultobj; | |
16936 | fail: | |
16937 | return NULL; | |
16938 | } | |
16939 | ||
16940 | ||
16941 | static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16942 | PyObject *resultobj; | |
16943 | wxDateTime result; | |
16944 | char *kwnames[] = { | |
16945 | NULL | |
16946 | }; | |
16947 | ||
16948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
16949 | { | |
16950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16951 | result = wxDateTime::UNow(); | |
16952 | ||
16953 | wxPyEndAllowThreads(__tstate); | |
16954 | if (PyErr_Occurred()) SWIG_fail; | |
16955 | } | |
16956 | { | |
16957 | wxDateTime * resultptr; | |
16958 | resultptr = new wxDateTime((wxDateTime &) result); | |
16959 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16960 | } | |
16961 | return resultobj; | |
16962 | fail: | |
16963 | return NULL; | |
16964 | } | |
16965 | ||
16966 | ||
16967 | static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16968 | PyObject *resultobj; | |
16969 | wxDateTime result; | |
16970 | char *kwnames[] = { | |
16971 | NULL | |
16972 | }; | |
16973 | ||
16974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
16975 | { | |
16976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16977 | result = wxDateTime::Today(); | |
16978 | ||
16979 | wxPyEndAllowThreads(__tstate); | |
16980 | if (PyErr_Occurred()) SWIG_fail; | |
16981 | } | |
16982 | { | |
16983 | wxDateTime * resultptr; | |
16984 | resultptr = new wxDateTime((wxDateTime &) result); | |
16985 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16986 | } | |
16987 | return resultobj; | |
16988 | fail: | |
16989 | return NULL; | |
16990 | } | |
16991 | ||
16992 | ||
16993 | static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16994 | PyObject *resultobj; | |
16995 | wxDateTime *result; | |
16996 | char *kwnames[] = { | |
16997 | NULL | |
16998 | }; | |
16999 | ||
17000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
17001 | { | |
17002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17003 | result = (wxDateTime *)new wxDateTime(); | |
17004 | ||
17005 | wxPyEndAllowThreads(__tstate); | |
17006 | if (PyErr_Occurred()) SWIG_fail; | |
17007 | } | |
17008 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
17009 | return resultobj; | |
17010 | fail: | |
17011 | return NULL; | |
17012 | } | |
17013 | ||
17014 | ||
17015 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17016 | PyObject *resultobj; | |
17017 | time_t arg1 ; | |
17018 | wxDateTime *result; | |
17019 | PyObject * obj0 = 0 ; | |
17020 | char *kwnames[] = { | |
17021 | (char *) "timet", NULL | |
17022 | }; | |
17023 | ||
17024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
a41e16b6 | 17025 | { |
994141e6 | 17026 | arg1 = (time_t) SWIG_PyObj_AsUnsignedInt(obj0); |
a41e16b6 RD |
17027 | if (PyErr_Occurred()) SWIG_fail; |
17028 | } | |
d14a1e28 RD |
17029 | { |
17030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17031 | result = (wxDateTime *)new wxDateTime(arg1); | |
17032 | ||
17033 | wxPyEndAllowThreads(__tstate); | |
17034 | if (PyErr_Occurred()) SWIG_fail; | |
17035 | } | |
17036 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
17037 | return resultobj; | |
17038 | fail: | |
17039 | return NULL; | |
17040 | } | |
17041 | ||
17042 | ||
17043 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17044 | PyObject *resultobj; | |
17045 | double arg1 ; | |
17046 | wxDateTime *result; | |
994141e6 | 17047 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17048 | char *kwnames[] = { |
17049 | (char *) "jdn", NULL | |
17050 | }; | |
17051 | ||
994141e6 RD |
17052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; |
17053 | { | |
17054 | arg1 = (double) SWIG_PyObj_AsDouble(obj0); | |
17055 | if (PyErr_Occurred()) SWIG_fail; | |
17056 | } | |
d14a1e28 RD |
17057 | { |
17058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17059 | result = (wxDateTime *)new wxDateTime(arg1); | |
17060 | ||
17061 | wxPyEndAllowThreads(__tstate); | |
17062 | if (PyErr_Occurred()) SWIG_fail; | |
17063 | } | |
17064 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
17065 | return resultobj; | |
17066 | fail: | |
17067 | return NULL; | |
17068 | } | |
17069 | ||
17070 | ||
17071 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17072 | PyObject *resultobj; | |
322913ce RD |
17073 | int arg1 ; |
17074 | int arg2 = (int) 0 ; | |
17075 | int arg3 = (int) 0 ; | |
17076 | int arg4 = (int) 0 ; | |
d14a1e28 | 17077 | wxDateTime *result; |
994141e6 RD |
17078 | PyObject * obj0 = 0 ; |
17079 | PyObject * obj1 = 0 ; | |
17080 | PyObject * obj2 = 0 ; | |
17081 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
17082 | char *kwnames[] = { |
17083 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17084 | }; | |
17085 | ||
994141e6 RD |
17086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
17087 | { | |
17088 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
17089 | if (PyErr_Occurred()) SWIG_fail; | |
17090 | } | |
17091 | if (obj1) { | |
17092 | { | |
17093 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17094 | if (PyErr_Occurred()) SWIG_fail; | |
17095 | } | |
17096 | } | |
17097 | if (obj2) { | |
17098 | { | |
17099 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17100 | if (PyErr_Occurred()) SWIG_fail; | |
17101 | } | |
17102 | } | |
17103 | if (obj3) { | |
17104 | { | |
17105 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17106 | if (PyErr_Occurred()) SWIG_fail; | |
17107 | } | |
17108 | } | |
d14a1e28 RD |
17109 | { |
17110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17111 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
17112 | ||
17113 | wxPyEndAllowThreads(__tstate); | |
17114 | if (PyErr_Occurred()) SWIG_fail; | |
17115 | } | |
17116 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
17117 | return resultobj; | |
17118 | fail: | |
17119 | return NULL; | |
17120 | } | |
17121 | ||
17122 | ||
17123 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17124 | PyObject *resultobj; | |
322913ce | 17125 | int arg1 ; |
d14a1e28 RD |
17126 | int arg2 = (int) wxDateTime::Inv_Month ; |
17127 | int arg3 = (int) wxDateTime::Inv_Year ; | |
322913ce RD |
17128 | int arg4 = (int) 0 ; |
17129 | int arg5 = (int) 0 ; | |
17130 | int arg6 = (int) 0 ; | |
17131 | int arg7 = (int) 0 ; | |
d14a1e28 | 17132 | wxDateTime *result; |
994141e6 RD |
17133 | PyObject * obj0 = 0 ; |
17134 | PyObject * obj1 = 0 ; | |
17135 | PyObject * obj2 = 0 ; | |
17136 | PyObject * obj3 = 0 ; | |
17137 | PyObject * obj4 = 0 ; | |
17138 | PyObject * obj5 = 0 ; | |
17139 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
17140 | char *kwnames[] = { |
17141 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17142 | }; | |
17143 | ||
994141e6 RD |
17144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
17145 | { | |
17146 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
17147 | if (PyErr_Occurred()) SWIG_fail; | |
17148 | } | |
17149 | if (obj1) { | |
17150 | { | |
17151 | arg2 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj1); | |
17152 | if (PyErr_Occurred()) SWIG_fail; | |
17153 | } | |
17154 | } | |
17155 | if (obj2) { | |
17156 | { | |
17157 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17158 | if (PyErr_Occurred()) SWIG_fail; | |
17159 | } | |
17160 | } | |
17161 | if (obj3) { | |
17162 | { | |
17163 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17164 | if (PyErr_Occurred()) SWIG_fail; | |
17165 | } | |
17166 | } | |
17167 | if (obj4) { | |
17168 | { | |
17169 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
17170 | if (PyErr_Occurred()) SWIG_fail; | |
17171 | } | |
17172 | } | |
17173 | if (obj5) { | |
17174 | { | |
17175 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
17176 | if (PyErr_Occurred()) SWIG_fail; | |
17177 | } | |
17178 | } | |
17179 | if (obj6) { | |
17180 | { | |
17181 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
17182 | if (PyErr_Occurred()) SWIG_fail; | |
17183 | } | |
17184 | } | |
d14a1e28 RD |
17185 | { |
17186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17187 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
17188 | ||
17189 | wxPyEndAllowThreads(__tstate); | |
17190 | if (PyErr_Occurred()) SWIG_fail; | |
17191 | } | |
17192 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
17193 | return resultobj; | |
17194 | fail: | |
17195 | return NULL; | |
17196 | } | |
17197 | ||
17198 | ||
17199 | static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17200 | PyObject *resultobj; | |
17201 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17202 | PyObject * obj0 = 0 ; | |
17203 | char *kwnames[] = { | |
17204 | (char *) "self", NULL | |
17205 | }; | |
17206 | ||
17207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
17208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17209 | { | |
17210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17211 | delete arg1; | |
17212 | ||
17213 | wxPyEndAllowThreads(__tstate); | |
17214 | if (PyErr_Occurred()) SWIG_fail; | |
17215 | } | |
17216 | Py_INCREF(Py_None); resultobj = Py_None; | |
17217 | return resultobj; | |
17218 | fail: | |
17219 | return NULL; | |
17220 | } | |
17221 | ||
17222 | ||
17223 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17224 | PyObject *resultobj; | |
17225 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17226 | wxDateTime *result; | |
17227 | PyObject * obj0 = 0 ; | |
17228 | char *kwnames[] = { | |
17229 | (char *) "self", NULL | |
17230 | }; | |
17231 | ||
17232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
17233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17234 | { | |
17235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17236 | { | |
17237 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
17238 | result = (wxDateTime *) &_result_ref; | |
17239 | } | |
17240 | ||
17241 | wxPyEndAllowThreads(__tstate); | |
17242 | if (PyErr_Occurred()) SWIG_fail; | |
17243 | } | |
17244 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17245 | return resultobj; | |
17246 | fail: | |
17247 | return NULL; | |
17248 | } | |
17249 | ||
17250 | ||
17251 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17252 | PyObject *resultobj; | |
17253 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17254 | time_t arg2 ; | |
17255 | wxDateTime *result; | |
17256 | PyObject * obj0 = 0 ; | |
17257 | PyObject * obj1 = 0 ; | |
17258 | char *kwnames[] = { | |
17259 | (char *) "self",(char *) "timet", NULL | |
17260 | }; | |
17261 | ||
17262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
17263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 17264 | { |
994141e6 | 17265 | arg2 = (time_t) SWIG_PyObj_AsUnsignedInt(obj1); |
a41e16b6 RD |
17266 | if (PyErr_Occurred()) SWIG_fail; |
17267 | } | |
d14a1e28 RD |
17268 | { |
17269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17270 | { | |
17271 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17272 | result = (wxDateTime *) &_result_ref; | |
17273 | } | |
17274 | ||
17275 | wxPyEndAllowThreads(__tstate); | |
17276 | if (PyErr_Occurred()) SWIG_fail; | |
17277 | } | |
17278 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17279 | return resultobj; | |
17280 | fail: | |
17281 | return NULL; | |
17282 | } | |
17283 | ||
17284 | ||
17285 | static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17286 | PyObject *resultobj; | |
17287 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17288 | double arg2 ; | |
17289 | wxDateTime *result; | |
17290 | PyObject * obj0 = 0 ; | |
994141e6 | 17291 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17292 | char *kwnames[] = { |
17293 | (char *) "self",(char *) "jdn", NULL | |
17294 | }; | |
17295 | ||
994141e6 | 17296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17297 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17298 | { |
17299 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
17300 | if (PyErr_Occurred()) SWIG_fail; | |
17301 | } | |
d14a1e28 RD |
17302 | { |
17303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17304 | { | |
17305 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17306 | result = (wxDateTime *) &_result_ref; | |
17307 | } | |
17308 | ||
17309 | wxPyEndAllowThreads(__tstate); | |
17310 | if (PyErr_Occurred()) SWIG_fail; | |
17311 | } | |
17312 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17313 | return resultobj; | |
17314 | fail: | |
17315 | return NULL; | |
17316 | } | |
17317 | ||
17318 | ||
17319 | static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17320 | PyObject *resultobj; | |
17321 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce RD |
17322 | int arg2 ; |
17323 | int arg3 = (int) 0 ; | |
17324 | int arg4 = (int) 0 ; | |
17325 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
17326 | wxDateTime *result; |
17327 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17328 | PyObject * obj1 = 0 ; |
17329 | PyObject * obj2 = 0 ; | |
17330 | PyObject * obj3 = 0 ; | |
17331 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
17332 | char *kwnames[] = { |
17333 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17334 | }; | |
17335 | ||
994141e6 | 17336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 17337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17338 | { |
17339 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17340 | if (PyErr_Occurred()) SWIG_fail; | |
17341 | } | |
17342 | if (obj2) { | |
17343 | { | |
17344 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17345 | if (PyErr_Occurred()) SWIG_fail; | |
17346 | } | |
17347 | } | |
17348 | if (obj3) { | |
17349 | { | |
17350 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17351 | if (PyErr_Occurred()) SWIG_fail; | |
17352 | } | |
17353 | } | |
17354 | if (obj4) { | |
17355 | { | |
17356 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
17357 | if (PyErr_Occurred()) SWIG_fail; | |
17358 | } | |
17359 | } | |
d14a1e28 RD |
17360 | { |
17361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17362 | { | |
17363 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
17364 | result = (wxDateTime *) &_result_ref; | |
17365 | } | |
17366 | ||
17367 | wxPyEndAllowThreads(__tstate); | |
17368 | if (PyErr_Occurred()) SWIG_fail; | |
17369 | } | |
17370 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17371 | return resultobj; | |
17372 | fail: | |
17373 | return NULL; | |
17374 | } | |
17375 | ||
17376 | ||
17377 | static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17378 | PyObject *resultobj; | |
17379 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17380 | int arg2 ; |
d14a1e28 RD |
17381 | int arg3 = (int) wxDateTime::Inv_Month ; |
17382 | int arg4 = (int) wxDateTime::Inv_Year ; | |
322913ce RD |
17383 | int arg5 = (int) 0 ; |
17384 | int arg6 = (int) 0 ; | |
17385 | int arg7 = (int) 0 ; | |
17386 | int arg8 = (int) 0 ; | |
d14a1e28 RD |
17387 | wxDateTime *result; |
17388 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17389 | PyObject * obj1 = 0 ; |
17390 | PyObject * obj2 = 0 ; | |
17391 | PyObject * obj3 = 0 ; | |
17392 | PyObject * obj4 = 0 ; | |
17393 | PyObject * obj5 = 0 ; | |
17394 | PyObject * obj6 = 0 ; | |
17395 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
17396 | char *kwnames[] = { |
17397 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17398 | }; | |
17399 | ||
994141e6 | 17400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 17401 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17402 | { |
17403 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17404 | if (PyErr_Occurred()) SWIG_fail; | |
17405 | } | |
17406 | if (obj2) { | |
17407 | { | |
17408 | arg3 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj2); | |
17409 | if (PyErr_Occurred()) SWIG_fail; | |
17410 | } | |
17411 | } | |
17412 | if (obj3) { | |
17413 | { | |
17414 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17415 | if (PyErr_Occurred()) SWIG_fail; | |
17416 | } | |
17417 | } | |
17418 | if (obj4) { | |
17419 | { | |
17420 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
17421 | if (PyErr_Occurred()) SWIG_fail; | |
17422 | } | |
17423 | } | |
17424 | if (obj5) { | |
17425 | { | |
17426 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
17427 | if (PyErr_Occurred()) SWIG_fail; | |
17428 | } | |
17429 | } | |
17430 | if (obj6) { | |
17431 | { | |
17432 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
17433 | if (PyErr_Occurred()) SWIG_fail; | |
17434 | } | |
17435 | } | |
17436 | if (obj7) { | |
17437 | { | |
17438 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
17439 | if (PyErr_Occurred()) SWIG_fail; | |
17440 | } | |
17441 | } | |
d14a1e28 RD |
17442 | { |
17443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17444 | { | |
17445 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
17446 | result = (wxDateTime *) &_result_ref; | |
17447 | } | |
17448 | ||
17449 | wxPyEndAllowThreads(__tstate); | |
17450 | if (PyErr_Occurred()) SWIG_fail; | |
17451 | } | |
17452 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17453 | return resultobj; | |
17454 | fail: | |
17455 | return NULL; | |
17456 | } | |
17457 | ||
17458 | ||
17459 | static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17460 | PyObject *resultobj; | |
17461 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17462 | wxDateTime *result; | |
17463 | PyObject * obj0 = 0 ; | |
17464 | char *kwnames[] = { | |
17465 | (char *) "self", NULL | |
17466 | }; | |
17467 | ||
17468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
17469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17470 | { | |
17471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17472 | { | |
17473 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
17474 | result = (wxDateTime *) &_result_ref; | |
17475 | } | |
17476 | ||
17477 | wxPyEndAllowThreads(__tstate); | |
17478 | if (PyErr_Occurred()) SWIG_fail; | |
17479 | } | |
17480 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17481 | return resultobj; | |
17482 | fail: | |
17483 | return NULL; | |
17484 | } | |
17485 | ||
17486 | ||
17487 | static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17488 | PyObject *resultobj; | |
17489 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17490 | int arg2 ; | |
17491 | wxDateTime *result; | |
17492 | PyObject * obj0 = 0 ; | |
994141e6 | 17493 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17494 | char *kwnames[] = { |
17495 | (char *) "self",(char *) "year", NULL | |
17496 | }; | |
17497 | ||
994141e6 | 17498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17500 | { |
17501 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17502 | if (PyErr_Occurred()) SWIG_fail; | |
17503 | } | |
d14a1e28 RD |
17504 | { |
17505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17506 | { | |
17507 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
17508 | result = (wxDateTime *) &_result_ref; | |
17509 | } | |
17510 | ||
17511 | wxPyEndAllowThreads(__tstate); | |
17512 | if (PyErr_Occurred()) SWIG_fail; | |
17513 | } | |
17514 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17515 | return resultobj; | |
17516 | fail: | |
17517 | return NULL; | |
17518 | } | |
17519 | ||
17520 | ||
17521 | static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17522 | PyObject *resultobj; | |
17523 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17524 | int arg2 ; | |
17525 | wxDateTime *result; | |
17526 | PyObject * obj0 = 0 ; | |
994141e6 | 17527 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17528 | char *kwnames[] = { |
17529 | (char *) "self",(char *) "month", NULL | |
17530 | }; | |
17531 | ||
994141e6 | 17532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17534 | { |
17535 | arg2 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj1); | |
17536 | if (PyErr_Occurred()) SWIG_fail; | |
17537 | } | |
d14a1e28 RD |
17538 | { |
17539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17540 | { | |
17541 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
17542 | result = (wxDateTime *) &_result_ref; | |
17543 | } | |
17544 | ||
17545 | wxPyEndAllowThreads(__tstate); | |
17546 | if (PyErr_Occurred()) SWIG_fail; | |
17547 | } | |
17548 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17549 | return resultobj; | |
17550 | fail: | |
17551 | return NULL; | |
17552 | } | |
17553 | ||
17554 | ||
17555 | static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17556 | PyObject *resultobj; | |
17557 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17558 | int arg2 ; |
d14a1e28 RD |
17559 | wxDateTime *result; |
17560 | PyObject * obj0 = 0 ; | |
994141e6 | 17561 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17562 | char *kwnames[] = { |
17563 | (char *) "self",(char *) "day", NULL | |
17564 | }; | |
17565 | ||
994141e6 | 17566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17567 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17568 | { |
17569 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17570 | if (PyErr_Occurred()) SWIG_fail; | |
17571 | } | |
d14a1e28 RD |
17572 | { |
17573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17574 | { | |
17575 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
17576 | result = (wxDateTime *) &_result_ref; | |
17577 | } | |
17578 | ||
17579 | wxPyEndAllowThreads(__tstate); | |
17580 | if (PyErr_Occurred()) SWIG_fail; | |
17581 | } | |
17582 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17583 | return resultobj; | |
17584 | fail: | |
17585 | return NULL; | |
17586 | } | |
17587 | ||
17588 | ||
17589 | static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17590 | PyObject *resultobj; | |
17591 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17592 | int arg2 ; |
d14a1e28 RD |
17593 | wxDateTime *result; |
17594 | PyObject * obj0 = 0 ; | |
994141e6 | 17595 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17596 | char *kwnames[] = { |
17597 | (char *) "self",(char *) "hour", NULL | |
17598 | }; | |
17599 | ||
994141e6 | 17600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17602 | { |
17603 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17604 | if (PyErr_Occurred()) SWIG_fail; | |
17605 | } | |
d14a1e28 RD |
17606 | { |
17607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17608 | { | |
17609 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
17610 | result = (wxDateTime *) &_result_ref; | |
17611 | } | |
17612 | ||
17613 | wxPyEndAllowThreads(__tstate); | |
17614 | if (PyErr_Occurred()) SWIG_fail; | |
17615 | } | |
17616 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17617 | return resultobj; | |
17618 | fail: | |
17619 | return NULL; | |
17620 | } | |
17621 | ||
17622 | ||
17623 | static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17624 | PyObject *resultobj; | |
17625 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17626 | int arg2 ; |
d14a1e28 RD |
17627 | wxDateTime *result; |
17628 | PyObject * obj0 = 0 ; | |
994141e6 | 17629 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17630 | char *kwnames[] = { |
17631 | (char *) "self",(char *) "minute", NULL | |
17632 | }; | |
17633 | ||
994141e6 | 17634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17636 | { |
17637 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17638 | if (PyErr_Occurred()) SWIG_fail; | |
17639 | } | |
d14a1e28 RD |
17640 | { |
17641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17642 | { | |
17643 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
17644 | result = (wxDateTime *) &_result_ref; | |
17645 | } | |
17646 | ||
17647 | wxPyEndAllowThreads(__tstate); | |
17648 | if (PyErr_Occurred()) SWIG_fail; | |
17649 | } | |
17650 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17651 | return resultobj; | |
17652 | fail: | |
17653 | return NULL; | |
17654 | } | |
17655 | ||
17656 | ||
17657 | static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17658 | PyObject *resultobj; | |
17659 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17660 | int arg2 ; |
d14a1e28 RD |
17661 | wxDateTime *result; |
17662 | PyObject * obj0 = 0 ; | |
994141e6 | 17663 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17664 | char *kwnames[] = { |
17665 | (char *) "self",(char *) "second", NULL | |
17666 | }; | |
17667 | ||
994141e6 | 17668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17670 | { |
17671 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17672 | if (PyErr_Occurred()) SWIG_fail; | |
17673 | } | |
d14a1e28 RD |
17674 | { |
17675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17676 | { | |
17677 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
17678 | result = (wxDateTime *) &_result_ref; | |
17679 | } | |
17680 | ||
17681 | wxPyEndAllowThreads(__tstate); | |
17682 | if (PyErr_Occurred()) SWIG_fail; | |
17683 | } | |
17684 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17685 | return resultobj; | |
17686 | fail: | |
17687 | return NULL; | |
17688 | } | |
17689 | ||
17690 | ||
17691 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17692 | PyObject *resultobj; | |
17693 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17694 | int arg2 ; |
d14a1e28 RD |
17695 | wxDateTime *result; |
17696 | PyObject * obj0 = 0 ; | |
994141e6 | 17697 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17698 | char *kwnames[] = { |
17699 | (char *) "self",(char *) "millisecond", NULL | |
17700 | }; | |
17701 | ||
994141e6 | 17702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17703 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17704 | { |
17705 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17706 | if (PyErr_Occurred()) SWIG_fail; | |
17707 | } | |
d14a1e28 RD |
17708 | { |
17709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17710 | { | |
17711 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
17712 | result = (wxDateTime *) &_result_ref; | |
17713 | } | |
17714 | ||
17715 | wxPyEndAllowThreads(__tstate); | |
17716 | if (PyErr_Occurred()) SWIG_fail; | |
17717 | } | |
17718 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17719 | return resultobj; | |
17720 | fail: | |
17721 | return NULL; | |
17722 | } | |
17723 | ||
17724 | ||
17725 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17726 | PyObject *resultobj; | |
17727 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17728 | int arg2 ; | |
17729 | int arg3 = (int) wxDateTime::Monday_First ; | |
17730 | wxDateTime *result; | |
17731 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17732 | PyObject * obj1 = 0 ; |
17733 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17734 | char *kwnames[] = { |
17735 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
17736 | }; | |
17737 | ||
994141e6 | 17738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 17739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17740 | { |
17741 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
17742 | if (PyErr_Occurred()) SWIG_fail; | |
17743 | } | |
17744 | if (obj2) { | |
17745 | { | |
17746 | arg3 = (wxDateTime::WeekFlags) SWIG_PyObj_AsInt(obj2); | |
17747 | if (PyErr_Occurred()) SWIG_fail; | |
17748 | } | |
17749 | } | |
d14a1e28 RD |
17750 | { |
17751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17752 | { | |
17753 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
17754 | result = (wxDateTime *) &_result_ref; | |
17755 | } | |
17756 | ||
17757 | wxPyEndAllowThreads(__tstate); | |
17758 | if (PyErr_Occurred()) SWIG_fail; | |
17759 | } | |
17760 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17761 | return resultobj; | |
17762 | fail: | |
17763 | return NULL; | |
17764 | } | |
17765 | ||
17766 | ||
17767 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17768 | PyObject *resultobj; | |
17769 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17770 | int arg2 ; | |
17771 | int arg3 = (int) wxDateTime::Monday_First ; | |
17772 | wxDateTime result; | |
17773 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17774 | PyObject * obj1 = 0 ; |
17775 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17776 | char *kwnames[] = { |
17777 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
17778 | }; | |
17779 | ||
994141e6 | 17780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 17781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17782 | { |
17783 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
17784 | if (PyErr_Occurred()) SWIG_fail; | |
17785 | } | |
17786 | if (obj2) { | |
17787 | { | |
17788 | arg3 = (wxDateTime::WeekFlags) SWIG_PyObj_AsInt(obj2); | |
17789 | if (PyErr_Occurred()) SWIG_fail; | |
17790 | } | |
17791 | } | |
d14a1e28 RD |
17792 | { |
17793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17794 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
17795 | ||
17796 | wxPyEndAllowThreads(__tstate); | |
17797 | if (PyErr_Occurred()) SWIG_fail; | |
17798 | } | |
17799 | { | |
17800 | wxDateTime * resultptr; | |
17801 | resultptr = new wxDateTime((wxDateTime &) result); | |
17802 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
17803 | } | |
17804 | return resultobj; | |
17805 | fail: | |
17806 | return NULL; | |
17807 | } | |
17808 | ||
17809 | ||
17810 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17811 | PyObject *resultobj; | |
17812 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17813 | int arg2 ; | |
17814 | wxDateTime *result; | |
17815 | PyObject * obj0 = 0 ; | |
994141e6 | 17816 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17817 | char *kwnames[] = { |
17818 | (char *) "self",(char *) "weekday", NULL | |
17819 | }; | |
17820 | ||
994141e6 | 17821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17823 | { |
17824 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
17825 | if (PyErr_Occurred()) SWIG_fail; | |
17826 | } | |
d14a1e28 RD |
17827 | { |
17828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17829 | { | |
17830 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
17831 | result = (wxDateTime *) &_result_ref; | |
17832 | } | |
17833 | ||
17834 | wxPyEndAllowThreads(__tstate); | |
17835 | if (PyErr_Occurred()) SWIG_fail; | |
17836 | } | |
17837 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17838 | return resultobj; | |
17839 | fail: | |
17840 | return NULL; | |
17841 | } | |
17842 | ||
17843 | ||
17844 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17845 | PyObject *resultobj; | |
17846 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17847 | int arg2 ; | |
17848 | wxDateTime result; | |
17849 | PyObject * obj0 = 0 ; | |
994141e6 | 17850 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17851 | char *kwnames[] = { |
17852 | (char *) "self",(char *) "weekday", NULL | |
17853 | }; | |
17854 | ||
994141e6 | 17855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17856 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17857 | { |
17858 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
17859 | if (PyErr_Occurred()) SWIG_fail; | |
17860 | } | |
d14a1e28 RD |
17861 | { |
17862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17863 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
17864 | ||
17865 | wxPyEndAllowThreads(__tstate); | |
17866 | if (PyErr_Occurred()) SWIG_fail; | |
17867 | } | |
17868 | { | |
17869 | wxDateTime * resultptr; | |
17870 | resultptr = new wxDateTime((wxDateTime &) result); | |
17871 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
17872 | } | |
17873 | return resultobj; | |
17874 | fail: | |
17875 | return NULL; | |
17876 | } | |
17877 | ||
17878 | ||
17879 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17880 | PyObject *resultobj; | |
17881 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17882 | int arg2 ; | |
17883 | wxDateTime *result; | |
17884 | PyObject * obj0 = 0 ; | |
994141e6 | 17885 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17886 | char *kwnames[] = { |
17887 | (char *) "self",(char *) "weekday", NULL | |
17888 | }; | |
17889 | ||
994141e6 | 17890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17892 | { |
17893 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
17894 | if (PyErr_Occurred()) SWIG_fail; | |
17895 | } | |
d14a1e28 RD |
17896 | { |
17897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17898 | { | |
17899 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
17900 | result = (wxDateTime *) &_result_ref; | |
17901 | } | |
17902 | ||
17903 | wxPyEndAllowThreads(__tstate); | |
17904 | if (PyErr_Occurred()) SWIG_fail; | |
17905 | } | |
17906 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17907 | return resultobj; | |
17908 | fail: | |
17909 | return NULL; | |
17910 | } | |
17911 | ||
17912 | ||
17913 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17914 | PyObject *resultobj; | |
17915 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17916 | int arg2 ; | |
17917 | wxDateTime result; | |
17918 | PyObject * obj0 = 0 ; | |
994141e6 | 17919 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17920 | char *kwnames[] = { |
17921 | (char *) "self",(char *) "weekday", NULL | |
17922 | }; | |
17923 | ||
994141e6 | 17924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17926 | { |
17927 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
17928 | if (PyErr_Occurred()) SWIG_fail; | |
17929 | } | |
d14a1e28 RD |
17930 | { |
17931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17932 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
17933 | ||
17934 | wxPyEndAllowThreads(__tstate); | |
17935 | if (PyErr_Occurred()) SWIG_fail; | |
17936 | } | |
17937 | { | |
17938 | wxDateTime * resultptr; | |
17939 | resultptr = new wxDateTime((wxDateTime &) result); | |
17940 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
17941 | } | |
17942 | return resultobj; | |
17943 | fail: | |
17944 | return NULL; | |
17945 | } | |
17946 | ||
17947 | ||
17948 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17949 | PyObject *resultobj; | |
17950 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17951 | int arg2 ; | |
17952 | int arg3 = (int) 1 ; | |
17953 | int arg4 = (int) wxDateTime::Inv_Month ; | |
17954 | int arg5 = (int) wxDateTime::Inv_Year ; | |
17955 | bool result; | |
17956 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17957 | PyObject * obj1 = 0 ; |
17958 | PyObject * obj2 = 0 ; | |
17959 | PyObject * obj3 = 0 ; | |
17960 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
17961 | char *kwnames[] = { |
17962 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
17963 | }; | |
17964 | ||
994141e6 | 17965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 17966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17967 | { |
17968 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
17969 | if (PyErr_Occurred()) SWIG_fail; | |
17970 | } | |
17971 | if (obj2) { | |
17972 | { | |
17973 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17974 | if (PyErr_Occurred()) SWIG_fail; | |
17975 | } | |
17976 | } | |
17977 | if (obj3) { | |
17978 | { | |
17979 | arg4 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj3); | |
17980 | if (PyErr_Occurred()) SWIG_fail; | |
17981 | } | |
17982 | } | |
17983 | if (obj4) { | |
17984 | { | |
17985 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
17986 | if (PyErr_Occurred()) SWIG_fail; | |
17987 | } | |
17988 | } | |
d14a1e28 RD |
17989 | { |
17990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17991 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
17992 | ||
17993 | wxPyEndAllowThreads(__tstate); | |
17994 | if (PyErr_Occurred()) SWIG_fail; | |
17995 | } | |
4d5c3d91 | 17996 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17997 | return resultobj; |
17998 | fail: | |
17999 | return NULL; | |
18000 | } | |
18001 | ||
18002 | ||
18003 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18004 | PyObject *resultobj; | |
18005 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18006 | int arg2 ; | |
18007 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18008 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18009 | bool result; | |
18010 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18011 | PyObject * obj1 = 0 ; |
18012 | PyObject * obj2 = 0 ; | |
18013 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18014 | char *kwnames[] = { |
18015 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18016 | }; | |
18017 | ||
994141e6 | 18018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 18019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18020 | { |
18021 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
18022 | if (PyErr_Occurred()) SWIG_fail; | |
18023 | } | |
18024 | if (obj2) { | |
18025 | { | |
18026 | arg3 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj2); | |
18027 | if (PyErr_Occurred()) SWIG_fail; | |
18028 | } | |
18029 | } | |
18030 | if (obj3) { | |
18031 | { | |
18032 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
18033 | if (PyErr_Occurred()) SWIG_fail; | |
18034 | } | |
18035 | } | |
d14a1e28 RD |
18036 | { |
18037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18038 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18039 | ||
18040 | wxPyEndAllowThreads(__tstate); | |
18041 | if (PyErr_Occurred()) SWIG_fail; | |
18042 | } | |
4d5c3d91 | 18043 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18044 | return resultobj; |
18045 | fail: | |
18046 | return NULL; | |
18047 | } | |
18048 | ||
18049 | ||
18050 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18051 | PyObject *resultobj; | |
18052 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18053 | int arg2 ; | |
18054 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18055 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18056 | wxDateTime result; | |
18057 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18058 | PyObject * obj1 = 0 ; |
18059 | PyObject * obj2 = 0 ; | |
18060 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18061 | char *kwnames[] = { |
18062 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18063 | }; | |
18064 | ||
994141e6 | 18065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 18066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18067 | { |
18068 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
18069 | if (PyErr_Occurred()) SWIG_fail; | |
18070 | } | |
18071 | if (obj2) { | |
18072 | { | |
18073 | arg3 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj2); | |
18074 | if (PyErr_Occurred()) SWIG_fail; | |
18075 | } | |
18076 | } | |
18077 | if (obj3) { | |
18078 | { | |
18079 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
18080 | if (PyErr_Occurred()) SWIG_fail; | |
18081 | } | |
18082 | } | |
d14a1e28 RD |
18083 | { |
18084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18085 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18086 | ||
18087 | wxPyEndAllowThreads(__tstate); | |
18088 | if (PyErr_Occurred()) SWIG_fail; | |
18089 | } | |
18090 | { | |
18091 | wxDateTime * resultptr; | |
18092 | resultptr = new wxDateTime((wxDateTime &) result); | |
18093 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18094 | } | |
18095 | return resultobj; | |
18096 | fail: | |
18097 | return NULL; | |
18098 | } | |
18099 | ||
18100 | ||
18101 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18102 | PyObject *resultobj; | |
18103 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18104 | int arg2 ; |
d14a1e28 RD |
18105 | int arg3 = (int) wxDateTime::Mon ; |
18106 | int arg4 = (int) wxDateTime::Monday_First ; | |
18107 | bool result; | |
18108 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18109 | PyObject * obj1 = 0 ; |
18110 | PyObject * obj2 = 0 ; | |
18111 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18112 | char *kwnames[] = { |
18113 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18114 | }; | |
18115 | ||
994141e6 | 18116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 18117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18118 | { |
18119 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18120 | if (PyErr_Occurred()) SWIG_fail; | |
18121 | } | |
18122 | if (obj2) { | |
18123 | { | |
18124 | arg3 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj2); | |
18125 | if (PyErr_Occurred()) SWIG_fail; | |
18126 | } | |
18127 | } | |
18128 | if (obj3) { | |
18129 | { | |
18130 | arg4 = (wxDateTime::WeekFlags) SWIG_PyObj_AsInt(obj3); | |
18131 | if (PyErr_Occurred()) SWIG_fail; | |
18132 | } | |
18133 | } | |
d14a1e28 RD |
18134 | { |
18135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18136 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18137 | ||
18138 | wxPyEndAllowThreads(__tstate); | |
18139 | if (PyErr_Occurred()) SWIG_fail; | |
18140 | } | |
4d5c3d91 | 18141 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18142 | return resultobj; |
18143 | fail: | |
18144 | return NULL; | |
18145 | } | |
18146 | ||
18147 | ||
18148 | static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18149 | PyObject *resultobj; | |
18150 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18151 | int arg2 ; |
d14a1e28 RD |
18152 | int arg3 = (int) wxDateTime::Mon ; |
18153 | int arg4 = (int) wxDateTime::Monday_First ; | |
18154 | wxDateTime result; | |
18155 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18156 | PyObject * obj1 = 0 ; |
18157 | PyObject * obj2 = 0 ; | |
18158 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18159 | char *kwnames[] = { |
18160 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18161 | }; | |
18162 | ||
994141e6 | 18163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 18164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18165 | { |
18166 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18167 | if (PyErr_Occurred()) SWIG_fail; | |
18168 | } | |
18169 | if (obj2) { | |
18170 | { | |
18171 | arg3 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj2); | |
18172 | if (PyErr_Occurred()) SWIG_fail; | |
18173 | } | |
18174 | } | |
18175 | if (obj3) { | |
18176 | { | |
18177 | arg4 = (wxDateTime::WeekFlags) SWIG_PyObj_AsInt(obj3); | |
18178 | if (PyErr_Occurred()) SWIG_fail; | |
18179 | } | |
18180 | } | |
d14a1e28 RD |
18181 | { |
18182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18183 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18184 | ||
18185 | wxPyEndAllowThreads(__tstate); | |
18186 | if (PyErr_Occurred()) SWIG_fail; | |
18187 | } | |
18188 | { | |
18189 | wxDateTime * resultptr; | |
18190 | resultptr = new wxDateTime((wxDateTime &) result); | |
18191 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18192 | } | |
18193 | return resultobj; | |
18194 | fail: | |
18195 | return NULL; | |
18196 | } | |
18197 | ||
18198 | ||
18199 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18200 | PyObject *resultobj; | |
18201 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18202 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18203 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18204 | wxDateTime *result; | |
18205 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18206 | PyObject * obj1 = 0 ; |
18207 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18208 | char *kwnames[] = { |
18209 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18210 | }; | |
18211 | ||
994141e6 | 18212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 18213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18214 | if (obj1) { |
18215 | { | |
18216 | arg2 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj1); | |
18217 | if (PyErr_Occurred()) SWIG_fail; | |
18218 | } | |
18219 | } | |
18220 | if (obj2) { | |
18221 | { | |
18222 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
18223 | if (PyErr_Occurred()) SWIG_fail; | |
18224 | } | |
18225 | } | |
d14a1e28 RD |
18226 | { |
18227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18228 | { | |
18229 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18230 | result = (wxDateTime *) &_result_ref; | |
18231 | } | |
18232 | ||
18233 | wxPyEndAllowThreads(__tstate); | |
18234 | if (PyErr_Occurred()) SWIG_fail; | |
18235 | } | |
18236 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18237 | return resultobj; | |
18238 | fail: | |
18239 | return NULL; | |
18240 | } | |
18241 | ||
18242 | ||
18243 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18244 | PyObject *resultobj; | |
18245 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18246 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18247 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18248 | wxDateTime result; | |
18249 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18250 | PyObject * obj1 = 0 ; |
18251 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18252 | char *kwnames[] = { |
18253 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18254 | }; | |
18255 | ||
994141e6 | 18256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 18257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18258 | if (obj1) { |
18259 | { | |
18260 | arg2 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj1); | |
18261 | if (PyErr_Occurred()) SWIG_fail; | |
18262 | } | |
18263 | } | |
18264 | if (obj2) { | |
18265 | { | |
18266 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
18267 | if (PyErr_Occurred()) SWIG_fail; | |
18268 | } | |
18269 | } | |
d14a1e28 RD |
18270 | { |
18271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18272 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18273 | ||
18274 | wxPyEndAllowThreads(__tstate); | |
18275 | if (PyErr_Occurred()) SWIG_fail; | |
18276 | } | |
18277 | { | |
18278 | wxDateTime * resultptr; | |
18279 | resultptr = new wxDateTime((wxDateTime &) result); | |
18280 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18281 | } | |
18282 | return resultobj; | |
18283 | fail: | |
18284 | return NULL; | |
18285 | } | |
18286 | ||
18287 | ||
18288 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18289 | PyObject *resultobj; | |
18290 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18291 | int arg2 ; |
d14a1e28 RD |
18292 | wxDateTime *result; |
18293 | PyObject * obj0 = 0 ; | |
994141e6 | 18294 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18295 | char *kwnames[] = { |
18296 | (char *) "self",(char *) "yday", NULL | |
18297 | }; | |
18298 | ||
994141e6 | 18299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18301 | { |
18302 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18303 | if (PyErr_Occurred()) SWIG_fail; | |
18304 | } | |
d14a1e28 RD |
18305 | { |
18306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18307 | { | |
18308 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
18309 | result = (wxDateTime *) &_result_ref; | |
18310 | } | |
18311 | ||
18312 | wxPyEndAllowThreads(__tstate); | |
18313 | if (PyErr_Occurred()) SWIG_fail; | |
18314 | } | |
18315 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18316 | return resultobj; | |
18317 | fail: | |
18318 | return NULL; | |
18319 | } | |
18320 | ||
18321 | ||
18322 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18323 | PyObject *resultobj; | |
18324 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18325 | int arg2 ; |
d14a1e28 RD |
18326 | wxDateTime result; |
18327 | PyObject * obj0 = 0 ; | |
994141e6 | 18328 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18329 | char *kwnames[] = { |
18330 | (char *) "self",(char *) "yday", NULL | |
18331 | }; | |
18332 | ||
994141e6 | 18333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18334 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18335 | { |
18336 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18337 | if (PyErr_Occurred()) SWIG_fail; | |
18338 | } | |
d14a1e28 RD |
18339 | { |
18340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18341 | result = (arg1)->GetYearDay(arg2); | |
18342 | ||
18343 | wxPyEndAllowThreads(__tstate); | |
18344 | if (PyErr_Occurred()) SWIG_fail; | |
18345 | } | |
18346 | { | |
18347 | wxDateTime * resultptr; | |
18348 | resultptr = new wxDateTime((wxDateTime &) result); | |
18349 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18350 | } | |
18351 | return resultobj; | |
18352 | fail: | |
18353 | return NULL; | |
18354 | } | |
18355 | ||
18356 | ||
18357 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18358 | PyObject *resultobj; | |
18359 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18360 | double result; | |
18361 | PyObject * obj0 = 0 ; | |
18362 | char *kwnames[] = { | |
18363 | (char *) "self", NULL | |
18364 | }; | |
18365 | ||
18366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
18367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18368 | { | |
18369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18370 | result = (double)(arg1)->GetJulianDayNumber(); | |
18371 | ||
18372 | wxPyEndAllowThreads(__tstate); | |
18373 | if (PyErr_Occurred()) SWIG_fail; | |
18374 | } | |
994141e6 | 18375 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
18376 | return resultobj; |
18377 | fail: | |
18378 | return NULL; | |
18379 | } | |
18380 | ||
18381 | ||
18382 | static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18383 | PyObject *resultobj; | |
18384 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18385 | double result; | |
18386 | PyObject * obj0 = 0 ; | |
18387 | char *kwnames[] = { | |
18388 | (char *) "self", NULL | |
18389 | }; | |
18390 | ||
18391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
18392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18393 | { | |
18394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18395 | result = (double)(arg1)->GetJDN(); | |
18396 | ||
18397 | wxPyEndAllowThreads(__tstate); | |
18398 | if (PyErr_Occurred()) SWIG_fail; | |
18399 | } | |
994141e6 | 18400 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
18401 | return resultobj; |
18402 | fail: | |
18403 | return NULL; | |
18404 | } | |
18405 | ||
18406 | ||
18407 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18408 | PyObject *resultobj; | |
18409 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18410 | double result; | |
18411 | PyObject * obj0 = 0 ; | |
18412 | char *kwnames[] = { | |
18413 | (char *) "self", NULL | |
18414 | }; | |
18415 | ||
18416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
18417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18418 | { | |
18419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18420 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
18421 | ||
18422 | wxPyEndAllowThreads(__tstate); | |
18423 | if (PyErr_Occurred()) SWIG_fail; | |
18424 | } | |
994141e6 | 18425 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
18426 | return resultobj; |
18427 | fail: | |
18428 | return NULL; | |
18429 | } | |
18430 | ||
18431 | ||
18432 | static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18433 | PyObject *resultobj; | |
18434 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18435 | double result; | |
18436 | PyObject * obj0 = 0 ; | |
18437 | char *kwnames[] = { | |
18438 | (char *) "self", NULL | |
18439 | }; | |
18440 | ||
18441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
18442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18443 | { | |
18444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18445 | result = (double)(arg1)->GetMJD(); | |
18446 | ||
18447 | wxPyEndAllowThreads(__tstate); | |
18448 | if (PyErr_Occurred()) SWIG_fail; | |
18449 | } | |
994141e6 | 18450 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
18451 | return resultobj; |
18452 | fail: | |
18453 | return NULL; | |
18454 | } | |
18455 | ||
18456 | ||
18457 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18458 | PyObject *resultobj; | |
18459 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18460 | double result; | |
18461 | PyObject * obj0 = 0 ; | |
18462 | char *kwnames[] = { | |
18463 | (char *) "self", NULL | |
18464 | }; | |
18465 | ||
18466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
18467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18468 | { | |
18469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18470 | result = (double)(arg1)->GetRataDie(); | |
18471 | ||
18472 | wxPyEndAllowThreads(__tstate); | |
18473 | if (PyErr_Occurred()) SWIG_fail; | |
18474 | } | |
994141e6 | 18475 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
18476 | return resultobj; |
18477 | fail: | |
18478 | return NULL; | |
18479 | } | |
18480 | ||
18481 | ||
18482 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18483 | PyObject *resultobj; | |
18484 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18485 | wxDateTime::TimeZone *arg2 = 0 ; | |
e811c8ce | 18486 | bool arg3 = (bool) False ; |
d14a1e28 | 18487 | wxDateTime result; |
7722248d | 18488 | bool temp2 = False ; |
d14a1e28 RD |
18489 | PyObject * obj0 = 0 ; |
18490 | PyObject * obj1 = 0 ; | |
18491 | PyObject * obj2 = 0 ; | |
18492 | char *kwnames[] = { | |
18493 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18494 | }; | |
18495 | ||
18496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18498 | { | |
18499 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18500 | temp2 = True; |
d14a1e28 RD |
18501 | } |
18502 | if (obj2) { | |
a41e16b6 | 18503 | { |
994141e6 | 18504 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
18505 | if (PyErr_Occurred()) SWIG_fail; |
18506 | } | |
d14a1e28 RD |
18507 | } |
18508 | { | |
18509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18510 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18511 | ||
18512 | wxPyEndAllowThreads(__tstate); | |
18513 | if (PyErr_Occurred()) SWIG_fail; | |
18514 | } | |
18515 | { | |
18516 | wxDateTime * resultptr; | |
18517 | resultptr = new wxDateTime((wxDateTime &) result); | |
18518 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18519 | } | |
18520 | { | |
7722248d | 18521 | if (temp2) delete arg2; |
d14a1e28 RD |
18522 | } |
18523 | return resultobj; | |
18524 | fail: | |
18525 | { | |
7722248d | 18526 | if (temp2) delete arg2; |
d14a1e28 RD |
18527 | } |
18528 | return NULL; | |
18529 | } | |
18530 | ||
18531 | ||
18532 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18533 | PyObject *resultobj; | |
18534 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18535 | wxDateTime::TimeZone *arg2 = 0 ; | |
e811c8ce | 18536 | bool arg3 = (bool) False ; |
d14a1e28 | 18537 | wxDateTime *result; |
7722248d | 18538 | bool temp2 = False ; |
d14a1e28 RD |
18539 | PyObject * obj0 = 0 ; |
18540 | PyObject * obj1 = 0 ; | |
18541 | PyObject * obj2 = 0 ; | |
18542 | char *kwnames[] = { | |
18543 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18544 | }; | |
18545 | ||
18546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18548 | { | |
18549 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18550 | temp2 = True; |
d14a1e28 RD |
18551 | } |
18552 | if (obj2) { | |
a41e16b6 | 18553 | { |
994141e6 | 18554 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
18555 | if (PyErr_Occurred()) SWIG_fail; |
18556 | } | |
d14a1e28 RD |
18557 | } |
18558 | { | |
18559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18560 | { | |
18561 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18562 | result = (wxDateTime *) &_result_ref; | |
18563 | } | |
18564 | ||
18565 | wxPyEndAllowThreads(__tstate); | |
18566 | if (PyErr_Occurred()) SWIG_fail; | |
18567 | } | |
18568 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18569 | { | |
7722248d | 18570 | if (temp2) delete arg2; |
d14a1e28 RD |
18571 | } |
18572 | return resultobj; | |
18573 | fail: | |
18574 | { | |
7722248d | 18575 | if (temp2) delete arg2; |
d14a1e28 RD |
18576 | } |
18577 | return NULL; | |
18578 | } | |
18579 | ||
18580 | ||
18581 | static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18582 | PyObject *resultobj; | |
18583 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
e811c8ce | 18584 | bool arg2 = (bool) False ; |
d14a1e28 RD |
18585 | wxDateTime result; |
18586 | PyObject * obj0 = 0 ; | |
18587 | PyObject * obj1 = 0 ; | |
18588 | char *kwnames[] = { | |
18589 | (char *) "self",(char *) "noDST", NULL | |
18590 | }; | |
18591 | ||
18592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
18593 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18594 | if (obj1) { | |
a41e16b6 | 18595 | { |
994141e6 | 18596 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
18597 | if (PyErr_Occurred()) SWIG_fail; |
18598 | } | |
d14a1e28 RD |
18599 | } |
18600 | { | |
18601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18602 | result = (arg1)->ToGMT(arg2); | |
18603 | ||
18604 | wxPyEndAllowThreads(__tstate); | |
18605 | if (PyErr_Occurred()) SWIG_fail; | |
18606 | } | |
18607 | { | |
18608 | wxDateTime * resultptr; | |
18609 | resultptr = new wxDateTime((wxDateTime &) result); | |
18610 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18611 | } | |
18612 | return resultobj; | |
18613 | fail: | |
18614 | return NULL; | |
18615 | } | |
18616 | ||
18617 | ||
18618 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18619 | PyObject *resultobj; | |
18620 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
e811c8ce | 18621 | bool arg2 = (bool) False ; |
d14a1e28 RD |
18622 | wxDateTime *result; |
18623 | PyObject * obj0 = 0 ; | |
18624 | PyObject * obj1 = 0 ; | |
18625 | char *kwnames[] = { | |
18626 | (char *) "self",(char *) "noDST", NULL | |
18627 | }; | |
18628 | ||
18629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
18630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18631 | if (obj1) { | |
a41e16b6 | 18632 | { |
994141e6 | 18633 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
18634 | if (PyErr_Occurred()) SWIG_fail; |
18635 | } | |
d14a1e28 RD |
18636 | } |
18637 | { | |
18638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18639 | { | |
18640 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
18641 | result = (wxDateTime *) &_result_ref; | |
18642 | } | |
18643 | ||
18644 | wxPyEndAllowThreads(__tstate); | |
18645 | if (PyErr_Occurred()) SWIG_fail; | |
18646 | } | |
18647 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18648 | return resultobj; | |
18649 | fail: | |
18650 | return NULL; | |
18651 | } | |
18652 | ||
18653 | ||
18654 | static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18655 | PyObject *resultobj; | |
18656 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18657 | int arg2 = (int) wxDateTime::Country_Default ; | |
18658 | int result; | |
18659 | PyObject * obj0 = 0 ; | |
994141e6 | 18660 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18661 | char *kwnames[] = { |
18662 | (char *) "self",(char *) "country", NULL | |
18663 | }; | |
18664 | ||
994141e6 | 18665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18667 | if (obj1) { |
18668 | { | |
18669 | arg2 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj1); | |
18670 | if (PyErr_Occurred()) SWIG_fail; | |
18671 | } | |
18672 | } | |
d14a1e28 RD |
18673 | { |
18674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18675 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
18676 | ||
18677 | wxPyEndAllowThreads(__tstate); | |
18678 | if (PyErr_Occurred()) SWIG_fail; | |
18679 | } | |
994141e6 | 18680 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18681 | return resultobj; |
18682 | fail: | |
18683 | return NULL; | |
18684 | } | |
18685 | ||
18686 | ||
18687 | static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18688 | PyObject *resultobj; | |
18689 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18690 | bool result; | |
18691 | PyObject * obj0 = 0 ; | |
18692 | char *kwnames[] = { | |
18693 | (char *) "self", NULL | |
18694 | }; | |
18695 | ||
18696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
18697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18698 | { | |
18699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18700 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
18701 | ||
18702 | wxPyEndAllowThreads(__tstate); | |
18703 | if (PyErr_Occurred()) SWIG_fail; | |
18704 | } | |
4d5c3d91 | 18705 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18706 | return resultobj; |
18707 | fail: | |
18708 | return NULL; | |
18709 | } | |
18710 | ||
18711 | ||
18712 | static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18713 | PyObject *resultobj; | |
18714 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18715 | time_t result; | |
18716 | PyObject * obj0 = 0 ; | |
18717 | char *kwnames[] = { | |
18718 | (char *) "self", NULL | |
18719 | }; | |
18720 | ||
18721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
18722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18723 | { | |
18724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18725 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
18726 | ||
18727 | wxPyEndAllowThreads(__tstate); | |
18728 | if (PyErr_Occurred()) SWIG_fail; | |
18729 | } | |
994141e6 | 18730 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
18731 | return resultobj; |
18732 | fail: | |
18733 | return NULL; | |
18734 | } | |
18735 | ||
18736 | ||
18737 | static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18738 | PyObject *resultobj; | |
18739 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18740 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18741 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18742 | int result; | |
7722248d | 18743 | bool temp2 = False ; |
d14a1e28 RD |
18744 | PyObject * obj0 = 0 ; |
18745 | PyObject * obj1 = 0 ; | |
18746 | char *kwnames[] = { | |
18747 | (char *) "self",(char *) "tz", NULL | |
18748 | }; | |
18749 | ||
18750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
18751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18752 | if (obj1) { | |
18753 | { | |
18754 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18755 | temp2 = True; |
d14a1e28 RD |
18756 | } |
18757 | } | |
18758 | { | |
18759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18760 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
18761 | ||
18762 | wxPyEndAllowThreads(__tstate); | |
18763 | if (PyErr_Occurred()) SWIG_fail; | |
18764 | } | |
994141e6 | 18765 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 | 18766 | { |
7722248d | 18767 | if (temp2) delete arg2; |
d14a1e28 RD |
18768 | } |
18769 | return resultobj; | |
18770 | fail: | |
18771 | { | |
7722248d | 18772 | if (temp2) delete arg2; |
d14a1e28 RD |
18773 | } |
18774 | return NULL; | |
18775 | } | |
18776 | ||
18777 | ||
18778 | static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18779 | PyObject *resultobj; | |
18780 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18781 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18782 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18783 | int result; | |
7722248d | 18784 | bool temp2 = False ; |
d14a1e28 RD |
18785 | PyObject * obj0 = 0 ; |
18786 | PyObject * obj1 = 0 ; | |
18787 | char *kwnames[] = { | |
18788 | (char *) "self",(char *) "tz", NULL | |
18789 | }; | |
18790 | ||
18791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
18792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18793 | if (obj1) { | |
18794 | { | |
18795 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18796 | temp2 = True; |
d14a1e28 RD |
18797 | } |
18798 | } | |
18799 | { | |
18800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18801 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
18802 | ||
18803 | wxPyEndAllowThreads(__tstate); | |
18804 | if (PyErr_Occurred()) SWIG_fail; | |
18805 | } | |
994141e6 | 18806 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 | 18807 | { |
7722248d | 18808 | if (temp2) delete arg2; |
d14a1e28 RD |
18809 | } |
18810 | return resultobj; | |
18811 | fail: | |
18812 | { | |
7722248d | 18813 | if (temp2) delete arg2; |
d14a1e28 RD |
18814 | } |
18815 | return NULL; | |
18816 | } | |
18817 | ||
18818 | ||
18819 | static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18820 | PyObject *resultobj; | |
18821 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18822 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18823 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 18824 | int result; |
7722248d | 18825 | bool temp2 = False ; |
d14a1e28 RD |
18826 | PyObject * obj0 = 0 ; |
18827 | PyObject * obj1 = 0 ; | |
18828 | char *kwnames[] = { | |
18829 | (char *) "self",(char *) "tz", NULL | |
18830 | }; | |
18831 | ||
18832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
18833 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18834 | if (obj1) { | |
18835 | { | |
18836 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18837 | temp2 = True; |
d14a1e28 RD |
18838 | } |
18839 | } | |
18840 | { | |
18841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 18842 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
18843 | |
18844 | wxPyEndAllowThreads(__tstate); | |
18845 | if (PyErr_Occurred()) SWIG_fail; | |
18846 | } | |
994141e6 | 18847 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 | 18848 | { |
7722248d | 18849 | if (temp2) delete arg2; |
d14a1e28 RD |
18850 | } |
18851 | return resultobj; | |
18852 | fail: | |
18853 | { | |
7722248d | 18854 | if (temp2) delete arg2; |
d14a1e28 RD |
18855 | } |
18856 | return NULL; | |
18857 | } | |
18858 | ||
18859 | ||
18860 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18861 | PyObject *resultobj; | |
18862 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18863 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18864 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18865 | int result; | |
7722248d | 18866 | bool temp2 = False ; |
d14a1e28 RD |
18867 | PyObject * obj0 = 0 ; |
18868 | PyObject * obj1 = 0 ; | |
18869 | char *kwnames[] = { | |
18870 | (char *) "self",(char *) "tz", NULL | |
18871 | }; | |
18872 | ||
18873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18875 | if (obj1) { | |
18876 | { | |
18877 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18878 | temp2 = True; |
d14a1e28 RD |
18879 | } |
18880 | } | |
18881 | { | |
18882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18883 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
18884 | ||
18885 | wxPyEndAllowThreads(__tstate); | |
18886 | if (PyErr_Occurred()) SWIG_fail; | |
18887 | } | |
994141e6 | 18888 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 | 18889 | { |
7722248d | 18890 | if (temp2) delete arg2; |
d14a1e28 RD |
18891 | } |
18892 | return resultobj; | |
18893 | fail: | |
18894 | { | |
7722248d | 18895 | if (temp2) delete arg2; |
d14a1e28 RD |
18896 | } |
18897 | return NULL; | |
18898 | } | |
18899 | ||
18900 | ||
18901 | static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18902 | PyObject *resultobj; | |
18903 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18904 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18905 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 18906 | int result; |
7722248d | 18907 | bool temp2 = False ; |
d14a1e28 RD |
18908 | PyObject * obj0 = 0 ; |
18909 | PyObject * obj1 = 0 ; | |
18910 | char *kwnames[] = { | |
18911 | (char *) "self",(char *) "tz", NULL | |
18912 | }; | |
18913 | ||
18914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
18915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18916 | if (obj1) { | |
18917 | { | |
18918 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18919 | temp2 = True; |
d14a1e28 RD |
18920 | } |
18921 | } | |
18922 | { | |
18923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 18924 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
18925 | |
18926 | wxPyEndAllowThreads(__tstate); | |
18927 | if (PyErr_Occurred()) SWIG_fail; | |
18928 | } | |
994141e6 | 18929 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 | 18930 | { |
7722248d | 18931 | if (temp2) delete arg2; |
d14a1e28 RD |
18932 | } |
18933 | return resultobj; | |
18934 | fail: | |
18935 | { | |
7722248d | 18936 | if (temp2) delete arg2; |
d14a1e28 RD |
18937 | } |
18938 | return NULL; | |
18939 | } | |
18940 | ||
18941 | ||
18942 | static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18943 | PyObject *resultobj; | |
18944 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18945 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18946 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 18947 | int result; |
7722248d | 18948 | bool temp2 = False ; |
d14a1e28 RD |
18949 | PyObject * obj0 = 0 ; |
18950 | PyObject * obj1 = 0 ; | |
18951 | char *kwnames[] = { | |
18952 | (char *) "self",(char *) "tz", NULL | |
18953 | }; | |
18954 | ||
18955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
18956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18957 | if (obj1) { | |
18958 | { | |
18959 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18960 | temp2 = True; |
d14a1e28 RD |
18961 | } |
18962 | } | |
18963 | { | |
18964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 18965 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
18966 | |
18967 | wxPyEndAllowThreads(__tstate); | |
18968 | if (PyErr_Occurred()) SWIG_fail; | |
18969 | } | |
994141e6 | 18970 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 | 18971 | { |
7722248d | 18972 | if (temp2) delete arg2; |
d14a1e28 RD |
18973 | } |
18974 | return resultobj; | |
18975 | fail: | |
18976 | { | |
7722248d | 18977 | if (temp2) delete arg2; |
d14a1e28 RD |
18978 | } |
18979 | return NULL; | |
18980 | } | |
18981 | ||
18982 | ||
18983 | static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18984 | PyObject *resultobj; | |
18985 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18986 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18987 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 18988 | int result; |
7722248d | 18989 | bool temp2 = False ; |
d14a1e28 RD |
18990 | PyObject * obj0 = 0 ; |
18991 | PyObject * obj1 = 0 ; | |
18992 | char *kwnames[] = { | |
18993 | (char *) "self",(char *) "tz", NULL | |
18994 | }; | |
18995 | ||
18996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
18997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18998 | if (obj1) { | |
18999 | { | |
19000 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19001 | temp2 = True; |
d14a1e28 RD |
19002 | } |
19003 | } | |
19004 | { | |
19005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19006 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19007 | |
19008 | wxPyEndAllowThreads(__tstate); | |
19009 | if (PyErr_Occurred()) SWIG_fail; | |
19010 | } | |
994141e6 | 19011 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 | 19012 | { |
7722248d | 19013 | if (temp2) delete arg2; |
d14a1e28 RD |
19014 | } |
19015 | return resultobj; | |
19016 | fail: | |
19017 | { | |
7722248d | 19018 | if (temp2) delete arg2; |
d14a1e28 RD |
19019 | } |
19020 | return NULL; | |
19021 | } | |
19022 | ||
19023 | ||
19024 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19025 | PyObject *resultobj; | |
19026 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19027 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19028 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19029 | int result; |
7722248d | 19030 | bool temp2 = False ; |
d14a1e28 RD |
19031 | PyObject * obj0 = 0 ; |
19032 | PyObject * obj1 = 0 ; | |
19033 | char *kwnames[] = { | |
19034 | (char *) "self",(char *) "tz", NULL | |
19035 | }; | |
19036 | ||
19037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
19038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19039 | if (obj1) { | |
19040 | { | |
19041 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19042 | temp2 = True; |
d14a1e28 RD |
19043 | } |
19044 | } | |
19045 | { | |
19046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19047 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19048 | |
19049 | wxPyEndAllowThreads(__tstate); | |
19050 | if (PyErr_Occurred()) SWIG_fail; | |
19051 | } | |
994141e6 | 19052 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 | 19053 | { |
7722248d | 19054 | if (temp2) delete arg2; |
d14a1e28 RD |
19055 | } |
19056 | return resultobj; | |
19057 | fail: | |
19058 | { | |
7722248d | 19059 | if (temp2) delete arg2; |
d14a1e28 RD |
19060 | } |
19061 | return NULL; | |
19062 | } | |
19063 | ||
19064 | ||
19065 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19066 | PyObject *resultobj; | |
19067 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19068 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19069 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19070 | int result; |
7722248d | 19071 | bool temp2 = False ; |
d14a1e28 RD |
19072 | PyObject * obj0 = 0 ; |
19073 | PyObject * obj1 = 0 ; | |
19074 | char *kwnames[] = { | |
19075 | (char *) "self",(char *) "tz", NULL | |
19076 | }; | |
19077 | ||
19078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
19079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19080 | if (obj1) { | |
19081 | { | |
19082 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19083 | temp2 = True; |
d14a1e28 RD |
19084 | } |
19085 | } | |
19086 | { | |
19087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19088 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19089 | |
19090 | wxPyEndAllowThreads(__tstate); | |
19091 | if (PyErr_Occurred()) SWIG_fail; | |
19092 | } | |
994141e6 | 19093 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 | 19094 | { |
7722248d | 19095 | if (temp2) delete arg2; |
d14a1e28 RD |
19096 | } |
19097 | return resultobj; | |
19098 | fail: | |
19099 | { | |
7722248d | 19100 | if (temp2) delete arg2; |
d14a1e28 RD |
19101 | } |
19102 | return NULL; | |
19103 | } | |
19104 | ||
19105 | ||
19106 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19107 | PyObject *resultobj; | |
19108 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19109 | int arg2 = (int) wxDateTime::Monday_First ; | |
19110 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19111 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
322913ce | 19112 | int result; |
7722248d | 19113 | bool temp3 = False ; |
d14a1e28 | 19114 | PyObject * obj0 = 0 ; |
994141e6 | 19115 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19116 | PyObject * obj2 = 0 ; |
19117 | char *kwnames[] = { | |
19118 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19119 | }; | |
19120 | ||
994141e6 | 19121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 19122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
19123 | if (obj1) { |
19124 | { | |
19125 | arg2 = (wxDateTime::WeekFlags) SWIG_PyObj_AsInt(obj1); | |
19126 | if (PyErr_Occurred()) SWIG_fail; | |
19127 | } | |
19128 | } | |
d14a1e28 RD |
19129 | if (obj2) { |
19130 | { | |
19131 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 19132 | temp3 = True; |
d14a1e28 RD |
19133 | } |
19134 | } | |
19135 | { | |
19136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19137 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
19138 | |
19139 | wxPyEndAllowThreads(__tstate); | |
19140 | if (PyErr_Occurred()) SWIG_fail; | |
19141 | } | |
994141e6 | 19142 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 | 19143 | { |
7722248d | 19144 | if (temp3) delete arg3; |
d14a1e28 RD |
19145 | } |
19146 | return resultobj; | |
19147 | fail: | |
19148 | { | |
7722248d | 19149 | if (temp3) delete arg3; |
d14a1e28 RD |
19150 | } |
19151 | return NULL; | |
19152 | } | |
19153 | ||
19154 | ||
19155 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19156 | PyObject *resultobj; | |
19157 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19158 | int arg2 = (int) wxDateTime::Monday_First ; | |
19159 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19160 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
322913ce | 19161 | int result; |
7722248d | 19162 | bool temp3 = False ; |
d14a1e28 | 19163 | PyObject * obj0 = 0 ; |
994141e6 | 19164 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19165 | PyObject * obj2 = 0 ; |
19166 | char *kwnames[] = { | |
19167 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19168 | }; | |
19169 | ||
994141e6 | 19170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 19171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
19172 | if (obj1) { |
19173 | { | |
19174 | arg2 = (wxDateTime::WeekFlags) SWIG_PyObj_AsInt(obj1); | |
19175 | if (PyErr_Occurred()) SWIG_fail; | |
19176 | } | |
19177 | } | |
d14a1e28 RD |
19178 | if (obj2) { |
19179 | { | |
19180 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 19181 | temp3 = True; |
d14a1e28 RD |
19182 | } |
19183 | } | |
19184 | { | |
19185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19186 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
19187 | |
19188 | wxPyEndAllowThreads(__tstate); | |
19189 | if (PyErr_Occurred()) SWIG_fail; | |
19190 | } | |
994141e6 | 19191 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 | 19192 | { |
7722248d | 19193 | if (temp3) delete arg3; |
d14a1e28 RD |
19194 | } |
19195 | return resultobj; | |
19196 | fail: | |
19197 | { | |
7722248d | 19198 | if (temp3) delete arg3; |
d14a1e28 RD |
19199 | } |
19200 | return NULL; | |
19201 | } | |
19202 | ||
19203 | ||
19204 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19205 | PyObject *resultobj; | |
19206 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19207 | int arg2 = (int) wxDateTime::Country_Default ; | |
19208 | bool result; | |
19209 | PyObject * obj0 = 0 ; | |
994141e6 | 19210 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19211 | char *kwnames[] = { |
19212 | (char *) "self",(char *) "country", NULL | |
19213 | }; | |
19214 | ||
994141e6 | 19215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
19217 | if (obj1) { |
19218 | { | |
19219 | arg2 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj1); | |
19220 | if (PyErr_Occurred()) SWIG_fail; | |
19221 | } | |
19222 | } | |
d14a1e28 RD |
19223 | { |
19224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19225 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
19226 | ||
19227 | wxPyEndAllowThreads(__tstate); | |
19228 | if (PyErr_Occurred()) SWIG_fail; | |
19229 | } | |
4d5c3d91 | 19230 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19231 | return resultobj; |
19232 | fail: | |
19233 | return NULL; | |
19234 | } | |
19235 | ||
19236 | ||
19237 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19238 | PyObject *resultobj; | |
19239 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19240 | wxDateTime *arg2 = 0 ; | |
19241 | bool result; | |
19242 | PyObject * obj0 = 0 ; | |
19243 | PyObject * obj1 = 0 ; | |
19244 | char *kwnames[] = { | |
19245 | (char *) "self",(char *) "datetime", NULL | |
19246 | }; | |
19247 | ||
19248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
19249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19250 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19251 | if (arg2 == NULL) { | |
19252 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19253 | } | |
19254 | { | |
19255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19256 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
19257 | ||
19258 | wxPyEndAllowThreads(__tstate); | |
19259 | if (PyErr_Occurred()) SWIG_fail; | |
19260 | } | |
4d5c3d91 | 19261 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19262 | return resultobj; |
19263 | fail: | |
19264 | return NULL; | |
19265 | } | |
19266 | ||
19267 | ||
19268 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19269 | PyObject *resultobj; | |
19270 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19271 | wxDateTime *arg2 = 0 ; | |
19272 | bool result; | |
19273 | PyObject * obj0 = 0 ; | |
19274 | PyObject * obj1 = 0 ; | |
19275 | char *kwnames[] = { | |
19276 | (char *) "self",(char *) "datetime", NULL | |
19277 | }; | |
19278 | ||
19279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
19280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19281 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19282 | if (arg2 == NULL) { | |
19283 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19284 | } | |
19285 | { | |
19286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19287 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
19288 | ||
19289 | wxPyEndAllowThreads(__tstate); | |
19290 | if (PyErr_Occurred()) SWIG_fail; | |
19291 | } | |
4d5c3d91 | 19292 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19293 | return resultobj; |
19294 | fail: | |
19295 | return NULL; | |
19296 | } | |
19297 | ||
19298 | ||
19299 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19300 | PyObject *resultobj; | |
19301 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19302 | wxDateTime *arg2 = 0 ; | |
19303 | bool result; | |
19304 | PyObject * obj0 = 0 ; | |
19305 | PyObject * obj1 = 0 ; | |
19306 | char *kwnames[] = { | |
19307 | (char *) "self",(char *) "datetime", NULL | |
19308 | }; | |
19309 | ||
19310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
19311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19312 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19313 | if (arg2 == NULL) { | |
19314 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19315 | } | |
19316 | { | |
19317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19318 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
19319 | ||
19320 | wxPyEndAllowThreads(__tstate); | |
19321 | if (PyErr_Occurred()) SWIG_fail; | |
19322 | } | |
4d5c3d91 | 19323 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19324 | return resultobj; |
19325 | fail: | |
19326 | return NULL; | |
19327 | } | |
19328 | ||
19329 | ||
19330 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19331 | PyObject *resultobj; | |
19332 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19333 | wxDateTime *arg2 = 0 ; | |
19334 | wxDateTime *arg3 = 0 ; | |
19335 | bool result; | |
19336 | PyObject * obj0 = 0 ; | |
19337 | PyObject * obj1 = 0 ; | |
19338 | PyObject * obj2 = 0 ; | |
19339 | char *kwnames[] = { | |
19340 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19341 | }; | |
19342 | ||
19343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19344 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19345 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19346 | if (arg2 == NULL) { | |
19347 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19348 | } | |
19349 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19350 | if (arg3 == NULL) { | |
19351 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19352 | } | |
19353 | { | |
19354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19355 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19356 | ||
19357 | wxPyEndAllowThreads(__tstate); | |
19358 | if (PyErr_Occurred()) SWIG_fail; | |
19359 | } | |
4d5c3d91 | 19360 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19361 | return resultobj; |
19362 | fail: | |
19363 | return NULL; | |
19364 | } | |
19365 | ||
19366 | ||
19367 | static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19368 | PyObject *resultobj; | |
19369 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19370 | wxDateTime *arg2 = 0 ; | |
19371 | wxDateTime *arg3 = 0 ; | |
19372 | bool result; | |
19373 | PyObject * obj0 = 0 ; | |
19374 | PyObject * obj1 = 0 ; | |
19375 | PyObject * obj2 = 0 ; | |
19376 | char *kwnames[] = { | |
19377 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19378 | }; | |
19379 | ||
19380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19382 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19383 | if (arg2 == NULL) { | |
19384 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19385 | } | |
19386 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19387 | if (arg3 == NULL) { | |
19388 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19389 | } | |
19390 | { | |
19391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19392 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19393 | ||
19394 | wxPyEndAllowThreads(__tstate); | |
19395 | if (PyErr_Occurred()) SWIG_fail; | |
19396 | } | |
4d5c3d91 | 19397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19398 | return resultobj; |
19399 | fail: | |
19400 | return NULL; | |
19401 | } | |
19402 | ||
19403 | ||
19404 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19405 | PyObject *resultobj; | |
19406 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19407 | wxDateTime *arg2 = 0 ; | |
19408 | bool result; | |
19409 | PyObject * obj0 = 0 ; | |
19410 | PyObject * obj1 = 0 ; | |
19411 | char *kwnames[] = { | |
19412 | (char *) "self",(char *) "dt", NULL | |
19413 | }; | |
19414 | ||
19415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
19416 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19417 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19418 | if (arg2 == NULL) { | |
19419 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19420 | } | |
19421 | { | |
19422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19423 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
19424 | ||
19425 | wxPyEndAllowThreads(__tstate); | |
19426 | if (PyErr_Occurred()) SWIG_fail; | |
19427 | } | |
4d5c3d91 | 19428 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19429 | return resultobj; |
19430 | fail: | |
19431 | return NULL; | |
19432 | } | |
19433 | ||
19434 | ||
19435 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19436 | PyObject *resultobj; | |
19437 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19438 | wxDateTime *arg2 = 0 ; | |
19439 | bool result; | |
19440 | PyObject * obj0 = 0 ; | |
19441 | PyObject * obj1 = 0 ; | |
19442 | char *kwnames[] = { | |
19443 | (char *) "self",(char *) "dt", NULL | |
19444 | }; | |
19445 | ||
19446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
19447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19448 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19449 | if (arg2 == NULL) { | |
19450 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19451 | } | |
19452 | { | |
19453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19454 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
19455 | ||
19456 | wxPyEndAllowThreads(__tstate); | |
19457 | if (PyErr_Occurred()) SWIG_fail; | |
19458 | } | |
4d5c3d91 | 19459 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19460 | return resultobj; |
19461 | fail: | |
19462 | return NULL; | |
19463 | } | |
19464 | ||
19465 | ||
19466 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19467 | PyObject *resultobj; | |
19468 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19469 | wxDateTime *arg2 = 0 ; | |
19470 | wxTimeSpan *arg3 = 0 ; | |
19471 | bool result; | |
19472 | PyObject * obj0 = 0 ; | |
19473 | PyObject * obj1 = 0 ; | |
19474 | PyObject * obj2 = 0 ; | |
19475 | char *kwnames[] = { | |
19476 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
19477 | }; | |
19478 | ||
19479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19481 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19482 | if (arg2 == NULL) { | |
19483 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19484 | } | |
19485 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19486 | if (arg3 == NULL) { | |
19487 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19488 | } | |
19489 | { | |
19490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19491 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
19492 | ||
19493 | wxPyEndAllowThreads(__tstate); | |
19494 | if (PyErr_Occurred()) SWIG_fail; | |
19495 | } | |
4d5c3d91 | 19496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19497 | return resultobj; |
19498 | fail: | |
19499 | return NULL; | |
19500 | } | |
19501 | ||
19502 | ||
19503 | static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19504 | PyObject *resultobj; | |
19505 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19506 | wxTimeSpan *arg2 = 0 ; | |
19507 | wxDateTime *result; | |
19508 | PyObject * obj0 = 0 ; | |
19509 | PyObject * obj1 = 0 ; | |
19510 | char *kwnames[] = { | |
19511 | (char *) "self",(char *) "diff", NULL | |
19512 | }; | |
19513 | ||
19514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
19515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19516 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19517 | if (arg2 == NULL) { | |
19518 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19519 | } | |
19520 | { | |
19521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19522 | { | |
19523 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
19524 | result = (wxDateTime *) &_result_ref; | |
19525 | } | |
19526 | ||
19527 | wxPyEndAllowThreads(__tstate); | |
19528 | if (PyErr_Occurred()) SWIG_fail; | |
19529 | } | |
19530 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
19531 | return resultobj; | |
19532 | fail: | |
19533 | return NULL; | |
19534 | } | |
19535 | ||
19536 | ||
19537 | static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19538 | PyObject *resultobj; | |
19539 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19540 | wxDateSpan *arg2 = 0 ; | |
19541 | wxDateTime *result; | |
19542 | PyObject * obj0 = 0 ; | |
19543 | PyObject * obj1 = 0 ; | |
19544 | char *kwnames[] = { | |
19545 | (char *) "self",(char *) "diff", NULL | |
19546 | }; | |
19547 | ||
19548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
19549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19550 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19551 | if (arg2 == NULL) { | |
19552 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19553 | } | |
19554 | { | |
19555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19556 | { | |
19557 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
19558 | result = (wxDateTime *) &_result_ref; | |
19559 | } | |
19560 | ||
19561 | wxPyEndAllowThreads(__tstate); | |
19562 | if (PyErr_Occurred()) SWIG_fail; | |
19563 | } | |
19564 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
19565 | return resultobj; | |
19566 | fail: | |
19567 | return NULL; | |
19568 | } | |
19569 | ||
19570 | ||
19571 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19572 | PyObject *resultobj; | |
19573 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19574 | wxTimeSpan *arg2 = 0 ; | |
19575 | wxDateTime *result; | |
19576 | PyObject * obj0 = 0 ; | |
19577 | PyObject * obj1 = 0 ; | |
19578 | char *kwnames[] = { | |
19579 | (char *) "self",(char *) "diff", NULL | |
19580 | }; | |
19581 | ||
19582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
19583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19584 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19585 | if (arg2 == NULL) { | |
19586 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19587 | } | |
19588 | { | |
19589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19590 | { | |
19591 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
19592 | result = (wxDateTime *) &_result_ref; | |
19593 | } | |
19594 | ||
19595 | wxPyEndAllowThreads(__tstate); | |
19596 | if (PyErr_Occurred()) SWIG_fail; | |
19597 | } | |
19598 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
19599 | return resultobj; | |
19600 | fail: | |
19601 | return NULL; | |
19602 | } | |
19603 | ||
19604 | ||
19605 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19606 | PyObject *resultobj; | |
19607 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19608 | wxDateSpan *arg2 = 0 ; | |
19609 | wxDateTime *result; | |
19610 | PyObject * obj0 = 0 ; | |
19611 | PyObject * obj1 = 0 ; | |
19612 | char *kwnames[] = { | |
19613 | (char *) "self",(char *) "diff", NULL | |
19614 | }; | |
19615 | ||
19616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
19617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19618 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19619 | if (arg2 == NULL) { | |
19620 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19621 | } | |
19622 | { | |
19623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19624 | { | |
19625 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
19626 | result = (wxDateTime *) &_result_ref; | |
19627 | } | |
19628 | ||
19629 | wxPyEndAllowThreads(__tstate); | |
19630 | if (PyErr_Occurred()) SWIG_fail; | |
19631 | } | |
19632 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
19633 | return resultobj; | |
19634 | fail: | |
19635 | return NULL; | |
19636 | } | |
19637 | ||
19638 | ||
19639 | static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19640 | PyObject *resultobj; | |
19641 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19642 | wxDateTime *arg2 = 0 ; | |
19643 | wxTimeSpan result; | |
19644 | PyObject * obj0 = 0 ; | |
19645 | PyObject * obj1 = 0 ; | |
19646 | char *kwnames[] = { | |
19647 | (char *) "self",(char *) "dt", NULL | |
19648 | }; | |
19649 | ||
19650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
19651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19652 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19653 | if (arg2 == NULL) { | |
19654 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19655 | } | |
19656 | { | |
19657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19658 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
19659 | ||
19660 | wxPyEndAllowThreads(__tstate); | |
19661 | if (PyErr_Occurred()) SWIG_fail; | |
19662 | } | |
19663 | { | |
19664 | wxTimeSpan * resultptr; | |
19665 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19666 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19667 | } | |
19668 | return resultobj; | |
19669 | fail: | |
19670 | return NULL; | |
19671 | } | |
19672 | ||
19673 | ||
19674 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) { | |
19675 | PyObject *resultobj; | |
19676 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19677 | wxTimeSpan *arg2 = 0 ; | |
19678 | wxDateTime *result; | |
19679 | PyObject * obj0 = 0 ; | |
19680 | PyObject * obj1 = 0 ; | |
19681 | ||
19682 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
19683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19684 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19685 | if (arg2 == NULL) { | |
19686 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19687 | } | |
19688 | { | |
19689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19690 | { | |
19691 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
19692 | result = (wxDateTime *) &_result_ref; | |
19693 | } | |
19694 | ||
19695 | wxPyEndAllowThreads(__tstate); | |
19696 | if (PyErr_Occurred()) SWIG_fail; | |
19697 | } | |
19698 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
19699 | return resultobj; | |
19700 | fail: | |
19701 | return NULL; | |
19702 | } | |
19703 | ||
19704 | ||
19705 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) { | |
19706 | PyObject *resultobj; | |
19707 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19708 | wxDateSpan *arg2 = 0 ; | |
19709 | wxDateTime *result; | |
19710 | PyObject * obj0 = 0 ; | |
19711 | PyObject * obj1 = 0 ; | |
19712 | ||
19713 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
19714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19715 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19716 | if (arg2 == NULL) { | |
19717 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19718 | } | |
19719 | { | |
19720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19721 | { | |
19722 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
19723 | result = (wxDateTime *) &_result_ref; | |
19724 | } | |
19725 | ||
19726 | wxPyEndAllowThreads(__tstate); | |
19727 | if (PyErr_Occurred()) SWIG_fail; | |
19728 | } | |
19729 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
19730 | return resultobj; | |
19731 | fail: | |
19732 | return NULL; | |
19733 | } | |
19734 | ||
19735 | ||
19736 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
19737 | int argc; | |
19738 | PyObject *argv[3]; | |
19739 | int ii; | |
19740 | ||
19741 | argc = PyObject_Length(args); | |
19742 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
19743 | argv[ii] = PyTuple_GetItem(args,ii); | |
19744 | } | |
19745 | if (argc == 2) { | |
19746 | int _v; | |
19747 | { | |
19748 | void *ptr; | |
19749 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
19750 | _v = 0; | |
19751 | PyErr_Clear(); | |
19752 | } else { | |
19753 | _v = 1; | |
19754 | } | |
19755 | } | |
19756 | if (_v) { | |
19757 | { | |
19758 | void *ptr; | |
19759 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
19760 | _v = 0; | |
19761 | PyErr_Clear(); | |
19762 | } else { | |
19763 | _v = 1; | |
19764 | } | |
19765 | } | |
19766 | if (_v) { | |
19767 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
19768 | } | |
19769 | } | |
19770 | } | |
19771 | if (argc == 2) { | |
19772 | int _v; | |
19773 | { | |
19774 | void *ptr; | |
19775 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
19776 | _v = 0; | |
19777 | PyErr_Clear(); | |
19778 | } else { | |
19779 | _v = 1; | |
19780 | } | |
19781 | } | |
19782 | if (_v) { | |
19783 | { | |
19784 | void *ptr; | |
19785 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
19786 | _v = 0; | |
19787 | PyErr_Clear(); | |
19788 | } else { | |
19789 | _v = 1; | |
19790 | } | |
19791 | } | |
19792 | if (_v) { | |
19793 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
19794 | } | |
19795 | } | |
19796 | } | |
19797 | ||
19798 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
19799 | return NULL; | |
19800 | } | |
19801 | ||
19802 | ||
19803 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) { | |
19804 | PyObject *resultobj; | |
19805 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19806 | wxTimeSpan *arg2 = 0 ; | |
19807 | wxDateTime *result; | |
19808 | PyObject * obj0 = 0 ; | |
19809 | PyObject * obj1 = 0 ; | |
19810 | ||
19811 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
19812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19813 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19814 | if (arg2 == NULL) { | |
19815 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19816 | } | |
19817 | { | |
19818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19819 | { | |
19820 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
19821 | result = (wxDateTime *) &_result_ref; | |
19822 | } | |
19823 | ||
19824 | wxPyEndAllowThreads(__tstate); | |
19825 | if (PyErr_Occurred()) SWIG_fail; | |
19826 | } | |
19827 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
19828 | return resultobj; | |
19829 | fail: | |
19830 | return NULL; | |
19831 | } | |
19832 | ||
19833 | ||
19834 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) { | |
19835 | PyObject *resultobj; | |
19836 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19837 | wxDateSpan *arg2 = 0 ; | |
19838 | wxDateTime *result; | |
19839 | PyObject * obj0 = 0 ; | |
19840 | PyObject * obj1 = 0 ; | |
19841 | ||
19842 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
19843 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19844 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19845 | if (arg2 == NULL) { | |
19846 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19847 | } | |
19848 | { | |
19849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19850 | { | |
19851 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
19852 | result = (wxDateTime *) &_result_ref; | |
19853 | } | |
19854 | ||
19855 | wxPyEndAllowThreads(__tstate); | |
19856 | if (PyErr_Occurred()) SWIG_fail; | |
19857 | } | |
19858 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
19859 | return resultobj; | |
19860 | fail: | |
19861 | return NULL; | |
19862 | } | |
19863 | ||
19864 | ||
19865 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
19866 | int argc; | |
19867 | PyObject *argv[3]; | |
19868 | int ii; | |
19869 | ||
19870 | argc = PyObject_Length(args); | |
19871 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
19872 | argv[ii] = PyTuple_GetItem(args,ii); | |
19873 | } | |
19874 | if (argc == 2) { | |
19875 | int _v; | |
19876 | { | |
19877 | void *ptr; | |
19878 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
19879 | _v = 0; | |
19880 | PyErr_Clear(); | |
19881 | } else { | |
19882 | _v = 1; | |
19883 | } | |
19884 | } | |
19885 | if (_v) { | |
19886 | { | |
19887 | void *ptr; | |
19888 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
19889 | _v = 0; | |
19890 | PyErr_Clear(); | |
19891 | } else { | |
19892 | _v = 1; | |
19893 | } | |
19894 | } | |
19895 | if (_v) { | |
19896 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
19897 | } | |
19898 | } | |
19899 | } | |
19900 | if (argc == 2) { | |
19901 | int _v; | |
19902 | { | |
19903 | void *ptr; | |
19904 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
19905 | _v = 0; | |
19906 | PyErr_Clear(); | |
19907 | } else { | |
19908 | _v = 1; | |
19909 | } | |
19910 | } | |
19911 | if (_v) { | |
19912 | { | |
19913 | void *ptr; | |
19914 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
19915 | _v = 0; | |
19916 | PyErr_Clear(); | |
19917 | } else { | |
19918 | _v = 1; | |
19919 | } | |
19920 | } | |
19921 | if (_v) { | |
19922 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
19923 | } | |
19924 | } | |
19925 | } | |
19926 | ||
19927 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
19928 | return NULL; | |
19929 | } | |
19930 | ||
19931 | ||
19932 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) { | |
19933 | PyObject *resultobj; | |
19934 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19935 | wxTimeSpan *arg2 = 0 ; | |
19936 | wxDateTime result; | |
19937 | PyObject * obj0 = 0 ; | |
19938 | PyObject * obj1 = 0 ; | |
19939 | ||
19940 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
19941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19942 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19943 | if (arg2 == NULL) { | |
19944 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19945 | } | |
19946 | { | |
19947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19948 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
19949 | ||
19950 | wxPyEndAllowThreads(__tstate); | |
19951 | if (PyErr_Occurred()) SWIG_fail; | |
19952 | } | |
19953 | { | |
19954 | wxDateTime * resultptr; | |
19955 | resultptr = new wxDateTime((wxDateTime &) result); | |
19956 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
19957 | } | |
19958 | return resultobj; | |
19959 | fail: | |
19960 | return NULL; | |
19961 | } | |
19962 | ||
19963 | ||
19964 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) { | |
19965 | PyObject *resultobj; | |
19966 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19967 | wxDateSpan *arg2 = 0 ; | |
19968 | wxDateTime result; | |
19969 | PyObject * obj0 = 0 ; | |
19970 | PyObject * obj1 = 0 ; | |
19971 | ||
19972 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
19973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19974 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19975 | if (arg2 == NULL) { | |
19976 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19977 | } | |
19978 | { | |
19979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19980 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
19981 | ||
19982 | wxPyEndAllowThreads(__tstate); | |
19983 | if (PyErr_Occurred()) SWIG_fail; | |
19984 | } | |
19985 | { | |
19986 | wxDateTime * resultptr; | |
19987 | resultptr = new wxDateTime((wxDateTime &) result); | |
19988 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
19989 | } | |
19990 | return resultobj; | |
19991 | fail: | |
19992 | return NULL; | |
19993 | } | |
19994 | ||
19995 | ||
19996 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
19997 | int argc; | |
19998 | PyObject *argv[3]; | |
19999 | int ii; | |
20000 | ||
20001 | argc = PyObject_Length(args); | |
20002 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20003 | argv[ii] = PyTuple_GetItem(args,ii); | |
20004 | } | |
20005 | if (argc == 2) { | |
20006 | int _v; | |
20007 | { | |
20008 | void *ptr; | |
20009 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20010 | _v = 0; | |
20011 | PyErr_Clear(); | |
20012 | } else { | |
20013 | _v = 1; | |
20014 | } | |
20015 | } | |
20016 | if (_v) { | |
20017 | { | |
20018 | void *ptr; | |
20019 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20020 | _v = 0; | |
20021 | PyErr_Clear(); | |
20022 | } else { | |
20023 | _v = 1; | |
20024 | } | |
20025 | } | |
20026 | if (_v) { | |
20027 | return _wrap_DateTime___add____SWIG_0(self,args); | |
20028 | } | |
20029 | } | |
20030 | } | |
20031 | if (argc == 2) { | |
20032 | int _v; | |
20033 | { | |
20034 | void *ptr; | |
20035 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20036 | _v = 0; | |
20037 | PyErr_Clear(); | |
20038 | } else { | |
20039 | _v = 1; | |
20040 | } | |
20041 | } | |
20042 | if (_v) { | |
20043 | { | |
20044 | void *ptr; | |
20045 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20046 | _v = 0; | |
20047 | PyErr_Clear(); | |
20048 | } else { | |
20049 | _v = 1; | |
20050 | } | |
20051 | } | |
20052 | if (_v) { | |
20053 | return _wrap_DateTime___add____SWIG_1(self,args); | |
20054 | } | |
20055 | } | |
20056 | } | |
20057 | ||
20058 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
20059 | return NULL; | |
20060 | } | |
20061 | ||
20062 | ||
20063 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) { | |
20064 | PyObject *resultobj; | |
20065 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20066 | wxDateTime *arg2 = 0 ; | |
20067 | wxTimeSpan result; | |
20068 | PyObject * obj0 = 0 ; | |
20069 | PyObject * obj1 = 0 ; | |
20070 | ||
20071 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20073 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20074 | if (arg2 == NULL) { | |
20075 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20076 | } | |
20077 | { | |
20078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20079 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
20080 | ||
20081 | wxPyEndAllowThreads(__tstate); | |
20082 | if (PyErr_Occurred()) SWIG_fail; | |
20083 | } | |
20084 | { | |
20085 | wxTimeSpan * resultptr; | |
20086 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20087 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20088 | } | |
20089 | return resultobj; | |
20090 | fail: | |
20091 | return NULL; | |
20092 | } | |
20093 | ||
20094 | ||
20095 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) { | |
20096 | PyObject *resultobj; | |
20097 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20098 | wxTimeSpan *arg2 = 0 ; | |
20099 | wxDateTime result; | |
20100 | PyObject * obj0 = 0 ; | |
20101 | PyObject * obj1 = 0 ; | |
20102 | ||
20103 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20105 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20106 | if (arg2 == NULL) { | |
20107 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20108 | } | |
20109 | { | |
20110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20111 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
20112 | ||
20113 | wxPyEndAllowThreads(__tstate); | |
20114 | if (PyErr_Occurred()) SWIG_fail; | |
20115 | } | |
20116 | { | |
20117 | wxDateTime * resultptr; | |
20118 | resultptr = new wxDateTime((wxDateTime &) result); | |
20119 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
20120 | } | |
20121 | return resultobj; | |
20122 | fail: | |
20123 | return NULL; | |
20124 | } | |
20125 | ||
20126 | ||
20127 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) { | |
20128 | PyObject *resultobj; | |
20129 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20130 | wxDateSpan *arg2 = 0 ; | |
20131 | wxDateTime result; | |
20132 | PyObject * obj0 = 0 ; | |
20133 | PyObject * obj1 = 0 ; | |
20134 | ||
20135 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20137 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20138 | if (arg2 == NULL) { | |
20139 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20140 | } | |
20141 | { | |
20142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20143 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
20144 | ||
20145 | wxPyEndAllowThreads(__tstate); | |
20146 | if (PyErr_Occurred()) SWIG_fail; | |
20147 | } | |
20148 | { | |
20149 | wxDateTime * resultptr; | |
20150 | resultptr = new wxDateTime((wxDateTime &) result); | |
20151 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
20152 | } | |
20153 | return resultobj; | |
20154 | fail: | |
20155 | return NULL; | |
20156 | } | |
20157 | ||
20158 | ||
20159 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
20160 | int argc; | |
20161 | PyObject *argv[3]; | |
20162 | int ii; | |
20163 | ||
20164 | argc = PyObject_Length(args); | |
20165 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20166 | argv[ii] = PyTuple_GetItem(args,ii); | |
20167 | } | |
20168 | if (argc == 2) { | |
20169 | int _v; | |
20170 | { | |
20171 | void *ptr; | |
20172 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20173 | _v = 0; | |
20174 | PyErr_Clear(); | |
20175 | } else { | |
20176 | _v = 1; | |
20177 | } | |
20178 | } | |
20179 | if (_v) { | |
20180 | { | |
20181 | void *ptr; | |
20182 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20183 | _v = 0; | |
20184 | PyErr_Clear(); | |
20185 | } else { | |
20186 | _v = 1; | |
20187 | } | |
20188 | } | |
20189 | if (_v) { | |
20190 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
20191 | } | |
20192 | } | |
20193 | } | |
20194 | if (argc == 2) { | |
20195 | int _v; | |
20196 | { | |
20197 | void *ptr; | |
20198 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20199 | _v = 0; | |
20200 | PyErr_Clear(); | |
20201 | } else { | |
20202 | _v = 1; | |
20203 | } | |
20204 | } | |
20205 | if (_v) { | |
20206 | { | |
20207 | void *ptr; | |
20208 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20209 | _v = 0; | |
20210 | PyErr_Clear(); | |
20211 | } else { | |
20212 | _v = 1; | |
20213 | } | |
20214 | } | |
20215 | if (_v) { | |
20216 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
20217 | } | |
20218 | } | |
20219 | } | |
20220 | if (argc == 2) { | |
20221 | int _v; | |
20222 | { | |
20223 | void *ptr; | |
20224 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20225 | _v = 0; | |
20226 | PyErr_Clear(); | |
20227 | } else { | |
20228 | _v = 1; | |
20229 | } | |
20230 | } | |
20231 | if (_v) { | |
20232 | { | |
20233 | void *ptr; | |
20234 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20235 | _v = 0; | |
20236 | PyErr_Clear(); | |
20237 | } else { | |
20238 | _v = 1; | |
20239 | } | |
20240 | } | |
20241 | if (_v) { | |
20242 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
20243 | } | |
20244 | } | |
20245 | } | |
20246 | ||
20247 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
20248 | return NULL; | |
20249 | } | |
20250 | ||
20251 | ||
20252 | static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) { | |
20253 | PyObject *resultobj; | |
20254 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20255 | wxDateTime *arg2 = 0 ; | |
20256 | bool result; | |
20257 | PyObject * obj0 = 0 ; | |
20258 | PyObject * obj1 = 0 ; | |
20259 | ||
20260 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
20261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20262 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20263 | if (arg2 == NULL) { | |
20264 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20265 | } | |
20266 | { | |
20267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20268 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const &)*arg2); | |
20269 | ||
20270 | wxPyEndAllowThreads(__tstate); | |
20271 | if (PyErr_Occurred()) SWIG_fail; | |
20272 | } | |
4d5c3d91 | 20273 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20274 | return resultobj; |
20275 | fail: | |
20276 | return NULL; | |
20277 | } | |
20278 | ||
20279 | ||
20280 | static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) { | |
20281 | PyObject *resultobj; | |
20282 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20283 | wxDateTime *arg2 = 0 ; | |
20284 | bool result; | |
20285 | PyObject * obj0 = 0 ; | |
20286 | PyObject * obj1 = 0 ; | |
20287 | ||
20288 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
20289 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20290 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20291 | if (arg2 == NULL) { | |
20292 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20293 | } | |
20294 | { | |
20295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20296 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const &)*arg2); | |
20297 | ||
20298 | wxPyEndAllowThreads(__tstate); | |
20299 | if (PyErr_Occurred()) SWIG_fail; | |
20300 | } | |
4d5c3d91 | 20301 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20302 | return resultobj; |
20303 | fail: | |
20304 | return NULL; | |
20305 | } | |
20306 | ||
20307 | ||
20308 | static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) { | |
20309 | PyObject *resultobj; | |
20310 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20311 | wxDateTime *arg2 = 0 ; | |
20312 | bool result; | |
20313 | PyObject * obj0 = 0 ; | |
20314 | PyObject * obj1 = 0 ; | |
20315 | ||
20316 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
20317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20318 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20319 | if (arg2 == NULL) { | |
20320 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20321 | } | |
20322 | { | |
20323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20324 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const &)*arg2); | |
20325 | ||
20326 | wxPyEndAllowThreads(__tstate); | |
20327 | if (PyErr_Occurred()) SWIG_fail; | |
20328 | } | |
4d5c3d91 | 20329 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20330 | return resultobj; |
20331 | fail: | |
20332 | return NULL; | |
20333 | } | |
20334 | ||
20335 | ||
20336 | static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) { | |
20337 | PyObject *resultobj; | |
20338 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20339 | wxDateTime *arg2 = 0 ; | |
20340 | bool result; | |
20341 | PyObject * obj0 = 0 ; | |
20342 | PyObject * obj1 = 0 ; | |
20343 | ||
20344 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
20345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20346 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20347 | if (arg2 == NULL) { | |
20348 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20349 | } | |
20350 | { | |
20351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20352 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const &)*arg2); | |
20353 | ||
20354 | wxPyEndAllowThreads(__tstate); | |
20355 | if (PyErr_Occurred()) SWIG_fail; | |
20356 | } | |
4d5c3d91 | 20357 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20358 | return resultobj; |
20359 | fail: | |
20360 | return NULL; | |
20361 | } | |
20362 | ||
20363 | ||
20364 | static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) { | |
20365 | PyObject *resultobj; | |
20366 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20367 | wxDateTime *arg2 = 0 ; | |
20368 | bool result; | |
20369 | PyObject * obj0 = 0 ; | |
20370 | PyObject * obj1 = 0 ; | |
20371 | ||
20372 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
20373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20374 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20375 | if (arg2 == NULL) { | |
20376 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20377 | } | |
20378 | { | |
20379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20380 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const &)*arg2); | |
20381 | ||
20382 | wxPyEndAllowThreads(__tstate); | |
20383 | if (PyErr_Occurred()) SWIG_fail; | |
20384 | } | |
4d5c3d91 | 20385 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20386 | return resultobj; |
20387 | fail: | |
20388 | return NULL; | |
20389 | } | |
20390 | ||
20391 | ||
20392 | static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) { | |
20393 | PyObject *resultobj; | |
20394 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20395 | wxDateTime *arg2 = 0 ; | |
20396 | bool result; | |
20397 | PyObject * obj0 = 0 ; | |
20398 | PyObject * obj1 = 0 ; | |
20399 | ||
20400 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
20401 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20402 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20403 | if (arg2 == NULL) { | |
20404 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20405 | } | |
20406 | { | |
20407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20408 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const &)*arg2); | |
20409 | ||
20410 | wxPyEndAllowThreads(__tstate); | |
20411 | if (PyErr_Occurred()) SWIG_fail; | |
20412 | } | |
4d5c3d91 | 20413 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20414 | return resultobj; |
20415 | fail: | |
20416 | return NULL; | |
20417 | } | |
20418 | ||
20419 | ||
20420 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20421 | PyObject *resultobj; | |
20422 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20423 | wxString *arg2 = 0 ; | |
20424 | int result; | |
e811c8ce | 20425 | bool temp2 = False ; |
d14a1e28 RD |
20426 | PyObject * obj0 = 0 ; |
20427 | PyObject * obj1 = 0 ; | |
20428 | char *kwnames[] = { | |
20429 | (char *) "self",(char *) "date", NULL | |
20430 | }; | |
20431 | ||
20432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
20433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20434 | { | |
20435 | arg2 = wxString_in_helper(obj1); | |
20436 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20437 | temp2 = True; |
d14a1e28 RD |
20438 | } |
20439 | { | |
20440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20441 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
20442 | ||
20443 | wxPyEndAllowThreads(__tstate); | |
20444 | if (PyErr_Occurred()) SWIG_fail; | |
20445 | } | |
994141e6 | 20446 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20447 | { |
20448 | if (temp2) | |
20449 | delete arg2; | |
20450 | } | |
20451 | return resultobj; | |
20452 | fail: | |
20453 | { | |
20454 | if (temp2) | |
20455 | delete arg2; | |
20456 | } | |
20457 | return NULL; | |
20458 | } | |
20459 | ||
20460 | ||
20461 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20462 | PyObject *resultobj; | |
20463 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20464 | wxString *arg2 = 0 ; | |
20465 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
20466 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
20467 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
20468 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
20469 | int result; | |
e811c8ce RD |
20470 | bool temp2 = False ; |
20471 | bool temp3 = False ; | |
d14a1e28 RD |
20472 | PyObject * obj0 = 0 ; |
20473 | PyObject * obj1 = 0 ; | |
20474 | PyObject * obj2 = 0 ; | |
20475 | PyObject * obj3 = 0 ; | |
20476 | char *kwnames[] = { | |
20477 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
20478 | }; | |
20479 | ||
20480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
20481 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20482 | { | |
20483 | arg2 = wxString_in_helper(obj1); | |
20484 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20485 | temp2 = True; |
d14a1e28 RD |
20486 | } |
20487 | if (obj2) { | |
20488 | { | |
20489 | arg3 = wxString_in_helper(obj2); | |
20490 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 20491 | temp3 = True; |
d14a1e28 RD |
20492 | } |
20493 | } | |
20494 | if (obj3) { | |
20495 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20496 | if (arg4 == NULL) { | |
20497 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20498 | } | |
20499 | } | |
20500 | { | |
20501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20502 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
20503 | ||
20504 | wxPyEndAllowThreads(__tstate); | |
20505 | if (PyErr_Occurred()) SWIG_fail; | |
20506 | } | |
994141e6 | 20507 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20508 | { |
20509 | if (temp2) | |
20510 | delete arg2; | |
20511 | } | |
20512 | { | |
20513 | if (temp3) | |
20514 | delete arg3; | |
20515 | } | |
20516 | return resultobj; | |
20517 | fail: | |
20518 | { | |
20519 | if (temp2) | |
20520 | delete arg2; | |
20521 | } | |
20522 | { | |
20523 | if (temp3) | |
20524 | delete arg3; | |
20525 | } | |
20526 | return NULL; | |
20527 | } | |
20528 | ||
20529 | ||
20530 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20531 | PyObject *resultobj; | |
20532 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20533 | wxString *arg2 = 0 ; | |
20534 | int result; | |
e811c8ce | 20535 | bool temp2 = False ; |
d14a1e28 RD |
20536 | PyObject * obj0 = 0 ; |
20537 | PyObject * obj1 = 0 ; | |
20538 | char *kwnames[] = { | |
20539 | (char *) "self",(char *) "datetime", NULL | |
20540 | }; | |
20541 | ||
20542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
20543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20544 | { | |
20545 | arg2 = wxString_in_helper(obj1); | |
20546 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20547 | temp2 = True; |
d14a1e28 RD |
20548 | } |
20549 | { | |
20550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20551 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
20552 | ||
20553 | wxPyEndAllowThreads(__tstate); | |
20554 | if (PyErr_Occurred()) SWIG_fail; | |
20555 | } | |
994141e6 | 20556 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20557 | { |
20558 | if (temp2) | |
20559 | delete arg2; | |
20560 | } | |
20561 | return resultobj; | |
20562 | fail: | |
20563 | { | |
20564 | if (temp2) | |
20565 | delete arg2; | |
20566 | } | |
20567 | return NULL; | |
20568 | } | |
20569 | ||
20570 | ||
20571 | static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20572 | PyObject *resultobj; | |
20573 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20574 | wxString *arg2 = 0 ; | |
20575 | int result; | |
e811c8ce | 20576 | bool temp2 = False ; |
d14a1e28 RD |
20577 | PyObject * obj0 = 0 ; |
20578 | PyObject * obj1 = 0 ; | |
20579 | char *kwnames[] = { | |
20580 | (char *) "self",(char *) "date", NULL | |
20581 | }; | |
20582 | ||
20583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
20584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20585 | { | |
20586 | arg2 = wxString_in_helper(obj1); | |
20587 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20588 | temp2 = True; |
d14a1e28 RD |
20589 | } |
20590 | { | |
20591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20592 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
20593 | ||
20594 | wxPyEndAllowThreads(__tstate); | |
20595 | if (PyErr_Occurred()) SWIG_fail; | |
20596 | } | |
994141e6 | 20597 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20598 | { |
20599 | if (temp2) | |
20600 | delete arg2; | |
20601 | } | |
20602 | return resultobj; | |
20603 | fail: | |
20604 | { | |
20605 | if (temp2) | |
20606 | delete arg2; | |
20607 | } | |
20608 | return NULL; | |
20609 | } | |
20610 | ||
20611 | ||
20612 | static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20613 | PyObject *resultobj; | |
20614 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20615 | wxString *arg2 = 0 ; | |
20616 | int result; | |
e811c8ce | 20617 | bool temp2 = False ; |
d14a1e28 RD |
20618 | PyObject * obj0 = 0 ; |
20619 | PyObject * obj1 = 0 ; | |
20620 | char *kwnames[] = { | |
20621 | (char *) "self",(char *) "time", NULL | |
20622 | }; | |
20623 | ||
20624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
20625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20626 | { | |
20627 | arg2 = wxString_in_helper(obj1); | |
20628 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20629 | temp2 = True; |
d14a1e28 RD |
20630 | } |
20631 | { | |
20632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20633 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
20634 | ||
20635 | wxPyEndAllowThreads(__tstate); | |
20636 | if (PyErr_Occurred()) SWIG_fail; | |
20637 | } | |
994141e6 | 20638 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20639 | { |
20640 | if (temp2) | |
20641 | delete arg2; | |
20642 | } | |
20643 | return resultobj; | |
20644 | fail: | |
20645 | { | |
20646 | if (temp2) | |
20647 | delete arg2; | |
20648 | } | |
20649 | return NULL; | |
20650 | } | |
20651 | ||
20652 | ||
20653 | static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20654 | PyObject *resultobj; | |
20655 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20656 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
20657 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
20658 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
20659 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
20660 | wxString result; | |
e811c8ce | 20661 | bool temp2 = False ; |
7722248d | 20662 | bool temp3 = False ; |
d14a1e28 RD |
20663 | PyObject * obj0 = 0 ; |
20664 | PyObject * obj1 = 0 ; | |
20665 | PyObject * obj2 = 0 ; | |
20666 | char *kwnames[] = { | |
20667 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
20668 | }; | |
20669 | ||
20670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20672 | if (obj1) { | |
20673 | { | |
20674 | arg2 = wxString_in_helper(obj1); | |
20675 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20676 | temp2 = True; |
d14a1e28 RD |
20677 | } |
20678 | } | |
20679 | if (obj2) { | |
20680 | { | |
20681 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 20682 | temp3 = True; |
d14a1e28 RD |
20683 | } |
20684 | } | |
20685 | { | |
20686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20687 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
20688 | ||
20689 | wxPyEndAllowThreads(__tstate); | |
20690 | if (PyErr_Occurred()) SWIG_fail; | |
20691 | } | |
20692 | { | |
20693 | #if wxUSE_UNICODE | |
20694 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20695 | #else | |
20696 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20697 | #endif | |
20698 | } | |
20699 | { | |
20700 | if (temp2) | |
20701 | delete arg2; | |
20702 | } | |
20703 | { | |
7722248d | 20704 | if (temp3) delete arg3; |
d14a1e28 RD |
20705 | } |
20706 | return resultobj; | |
20707 | fail: | |
20708 | { | |
20709 | if (temp2) | |
20710 | delete arg2; | |
20711 | } | |
20712 | { | |
7722248d | 20713 | if (temp3) delete arg3; |
d14a1e28 RD |
20714 | } |
20715 | return NULL; | |
20716 | } | |
20717 | ||
20718 | ||
20719 | static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20720 | PyObject *resultobj; | |
20721 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20722 | wxString result; | |
20723 | PyObject * obj0 = 0 ; | |
20724 | char *kwnames[] = { | |
20725 | (char *) "self", NULL | |
20726 | }; | |
20727 | ||
20728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
20729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20730 | { | |
20731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20732 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
20733 | ||
20734 | wxPyEndAllowThreads(__tstate); | |
20735 | if (PyErr_Occurred()) SWIG_fail; | |
20736 | } | |
20737 | { | |
20738 | #if wxUSE_UNICODE | |
20739 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20740 | #else | |
20741 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20742 | #endif | |
20743 | } | |
20744 | return resultobj; | |
20745 | fail: | |
20746 | return NULL; | |
20747 | } | |
20748 | ||
20749 | ||
20750 | static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20751 | PyObject *resultobj; | |
20752 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20753 | wxString result; | |
20754 | PyObject * obj0 = 0 ; | |
20755 | char *kwnames[] = { | |
20756 | (char *) "self", NULL | |
20757 | }; | |
20758 | ||
20759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
20760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20761 | { | |
20762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20763 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
20764 | ||
20765 | wxPyEndAllowThreads(__tstate); | |
20766 | if (PyErr_Occurred()) SWIG_fail; | |
20767 | } | |
20768 | { | |
20769 | #if wxUSE_UNICODE | |
20770 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20771 | #else | |
20772 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20773 | #endif | |
20774 | } | |
20775 | return resultobj; | |
20776 | fail: | |
20777 | return NULL; | |
20778 | } | |
20779 | ||
20780 | ||
20781 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20782 | PyObject *resultobj; | |
20783 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20784 | wxString result; | |
20785 | PyObject * obj0 = 0 ; | |
20786 | char *kwnames[] = { | |
20787 | (char *) "self", NULL | |
20788 | }; | |
20789 | ||
20790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
20791 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20792 | { | |
20793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20794 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
20795 | ||
20796 | wxPyEndAllowThreads(__tstate); | |
20797 | if (PyErr_Occurred()) SWIG_fail; | |
20798 | } | |
20799 | { | |
20800 | #if wxUSE_UNICODE | |
20801 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20802 | #else | |
20803 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20804 | #endif | |
20805 | } | |
20806 | return resultobj; | |
20807 | fail: | |
20808 | return NULL; | |
20809 | } | |
20810 | ||
20811 | ||
20812 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20813 | PyObject *resultobj; | |
20814 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20815 | wxString result; | |
20816 | PyObject * obj0 = 0 ; | |
20817 | char *kwnames[] = { | |
20818 | (char *) "self", NULL | |
20819 | }; | |
20820 | ||
20821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
20822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20823 | { | |
20824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20825 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
20826 | ||
20827 | wxPyEndAllowThreads(__tstate); | |
20828 | if (PyErr_Occurred()) SWIG_fail; | |
20829 | } | |
20830 | { | |
20831 | #if wxUSE_UNICODE | |
20832 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20833 | #else | |
20834 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20835 | #endif | |
20836 | } | |
20837 | return resultobj; | |
20838 | fail: | |
20839 | return NULL; | |
20840 | } | |
20841 | ||
20842 | ||
20843 | static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) { | |
20844 | PyObject *obj; | |
20845 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20846 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
20847 | Py_INCREF(obj); | |
20848 | return Py_BuildValue((char *)""); | |
20849 | } | |
20850 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20851 | PyObject *resultobj; | |
20852 | long arg1 ; | |
20853 | wxTimeSpan result; | |
994141e6 | 20854 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20855 | char *kwnames[] = { |
20856 | (char *) "sec", NULL | |
20857 | }; | |
20858 | ||
994141e6 RD |
20859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; |
20860 | { | |
20861 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
20862 | if (PyErr_Occurred()) SWIG_fail; | |
20863 | } | |
d14a1e28 RD |
20864 | { |
20865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20866 | result = wxTimeSpan::Seconds(arg1); | |
20867 | ||
20868 | wxPyEndAllowThreads(__tstate); | |
20869 | if (PyErr_Occurred()) SWIG_fail; | |
20870 | } | |
20871 | { | |
20872 | wxTimeSpan * resultptr; | |
20873 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20874 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20875 | } | |
20876 | return resultobj; | |
20877 | fail: | |
20878 | return NULL; | |
20879 | } | |
20880 | ||
20881 | ||
20882 | static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20883 | PyObject *resultobj; | |
20884 | wxTimeSpan result; | |
20885 | char *kwnames[] = { | |
20886 | NULL | |
20887 | }; | |
20888 | ||
20889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
20890 | { | |
20891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20892 | result = wxTimeSpan::Second(); | |
20893 | ||
20894 | wxPyEndAllowThreads(__tstate); | |
20895 | if (PyErr_Occurred()) SWIG_fail; | |
20896 | } | |
20897 | { | |
20898 | wxTimeSpan * resultptr; | |
20899 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20900 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20901 | } | |
20902 | return resultobj; | |
20903 | fail: | |
20904 | return NULL; | |
20905 | } | |
20906 | ||
20907 | ||
20908 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20909 | PyObject *resultobj; | |
20910 | long arg1 ; | |
20911 | wxTimeSpan result; | |
994141e6 | 20912 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20913 | char *kwnames[] = { |
20914 | (char *) "min", NULL | |
20915 | }; | |
20916 | ||
994141e6 RD |
20917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; |
20918 | { | |
20919 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
20920 | if (PyErr_Occurred()) SWIG_fail; | |
20921 | } | |
d14a1e28 RD |
20922 | { |
20923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20924 | result = wxTimeSpan::Minutes(arg1); | |
20925 | ||
20926 | wxPyEndAllowThreads(__tstate); | |
20927 | if (PyErr_Occurred()) SWIG_fail; | |
20928 | } | |
20929 | { | |
20930 | wxTimeSpan * resultptr; | |
20931 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20932 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20933 | } | |
20934 | return resultobj; | |
20935 | fail: | |
20936 | return NULL; | |
20937 | } | |
20938 | ||
20939 | ||
20940 | static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20941 | PyObject *resultobj; | |
20942 | wxTimeSpan result; | |
20943 | char *kwnames[] = { | |
20944 | NULL | |
20945 | }; | |
20946 | ||
20947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
20948 | { | |
20949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20950 | result = wxTimeSpan::Minute(); | |
20951 | ||
20952 | wxPyEndAllowThreads(__tstate); | |
20953 | if (PyErr_Occurred()) SWIG_fail; | |
20954 | } | |
20955 | { | |
20956 | wxTimeSpan * resultptr; | |
20957 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20958 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20959 | } | |
20960 | return resultobj; | |
20961 | fail: | |
20962 | return NULL; | |
20963 | } | |
20964 | ||
20965 | ||
20966 | static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20967 | PyObject *resultobj; | |
20968 | long arg1 ; | |
20969 | wxTimeSpan result; | |
994141e6 | 20970 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20971 | char *kwnames[] = { |
20972 | (char *) "hours", NULL | |
20973 | }; | |
20974 | ||
994141e6 RD |
20975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; |
20976 | { | |
20977 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
20978 | if (PyErr_Occurred()) SWIG_fail; | |
20979 | } | |
d14a1e28 RD |
20980 | { |
20981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20982 | result = wxTimeSpan::Hours(arg1); | |
20983 | ||
20984 | wxPyEndAllowThreads(__tstate); | |
20985 | if (PyErr_Occurred()) SWIG_fail; | |
20986 | } | |
20987 | { | |
20988 | wxTimeSpan * resultptr; | |
20989 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20990 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20991 | } | |
20992 | return resultobj; | |
20993 | fail: | |
20994 | return NULL; | |
20995 | } | |
20996 | ||
20997 | ||
20998 | static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20999 | PyObject *resultobj; | |
21000 | wxTimeSpan result; | |
21001 | char *kwnames[] = { | |
21002 | NULL | |
21003 | }; | |
21004 | ||
21005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
21006 | { | |
21007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21008 | result = wxTimeSpan::Hour(); | |
21009 | ||
21010 | wxPyEndAllowThreads(__tstate); | |
21011 | if (PyErr_Occurred()) SWIG_fail; | |
21012 | } | |
21013 | { | |
21014 | wxTimeSpan * resultptr; | |
21015 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21016 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21017 | } | |
21018 | return resultobj; | |
21019 | fail: | |
21020 | return NULL; | |
21021 | } | |
21022 | ||
21023 | ||
21024 | static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21025 | PyObject *resultobj; | |
21026 | long arg1 ; | |
21027 | wxTimeSpan result; | |
994141e6 | 21028 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21029 | char *kwnames[] = { |
21030 | (char *) "days", NULL | |
21031 | }; | |
21032 | ||
994141e6 RD |
21033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; |
21034 | { | |
21035 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
21036 | if (PyErr_Occurred()) SWIG_fail; | |
21037 | } | |
d14a1e28 RD |
21038 | { |
21039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21040 | result = wxTimeSpan::Days(arg1); | |
21041 | ||
21042 | wxPyEndAllowThreads(__tstate); | |
21043 | if (PyErr_Occurred()) SWIG_fail; | |
21044 | } | |
21045 | { | |
21046 | wxTimeSpan * resultptr; | |
21047 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21048 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21049 | } | |
21050 | return resultobj; | |
21051 | fail: | |
21052 | return NULL; | |
21053 | } | |
21054 | ||
21055 | ||
21056 | static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21057 | PyObject *resultobj; | |
21058 | wxTimeSpan result; | |
21059 | char *kwnames[] = { | |
21060 | NULL | |
21061 | }; | |
21062 | ||
21063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
21064 | { | |
21065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21066 | result = wxTimeSpan::Day(); | |
21067 | ||
21068 | wxPyEndAllowThreads(__tstate); | |
21069 | if (PyErr_Occurred()) SWIG_fail; | |
21070 | } | |
21071 | { | |
21072 | wxTimeSpan * resultptr; | |
21073 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21074 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21075 | } | |
21076 | return resultobj; | |
21077 | fail: | |
21078 | return NULL; | |
21079 | } | |
21080 | ||
21081 | ||
21082 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21083 | PyObject *resultobj; | |
21084 | long arg1 ; | |
21085 | wxTimeSpan result; | |
994141e6 | 21086 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21087 | char *kwnames[] = { |
21088 | (char *) "days", NULL | |
21089 | }; | |
21090 | ||
994141e6 RD |
21091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; |
21092 | { | |
21093 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
21094 | if (PyErr_Occurred()) SWIG_fail; | |
21095 | } | |
d14a1e28 RD |
21096 | { |
21097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21098 | result = wxTimeSpan::Weeks(arg1); | |
21099 | ||
21100 | wxPyEndAllowThreads(__tstate); | |
21101 | if (PyErr_Occurred()) SWIG_fail; | |
21102 | } | |
21103 | { | |
21104 | wxTimeSpan * resultptr; | |
21105 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21106 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21107 | } | |
21108 | return resultobj; | |
21109 | fail: | |
21110 | return NULL; | |
21111 | } | |
21112 | ||
21113 | ||
21114 | static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21115 | PyObject *resultobj; | |
21116 | wxTimeSpan result; | |
21117 | char *kwnames[] = { | |
21118 | NULL | |
21119 | }; | |
21120 | ||
21121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
21122 | { | |
21123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21124 | result = wxTimeSpan::Week(); | |
21125 | ||
21126 | wxPyEndAllowThreads(__tstate); | |
21127 | if (PyErr_Occurred()) SWIG_fail; | |
21128 | } | |
21129 | { | |
21130 | wxTimeSpan * resultptr; | |
21131 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21132 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21133 | } | |
21134 | return resultobj; | |
21135 | fail: | |
21136 | return NULL; | |
21137 | } | |
21138 | ||
21139 | ||
21140 | static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21141 | PyObject *resultobj; | |
21142 | long arg1 = (long) 0 ; | |
21143 | long arg2 = (long) 0 ; | |
21144 | long arg3 = (long) 0 ; | |
21145 | long arg4 = (long) 0 ; | |
21146 | wxTimeSpan *result; | |
994141e6 RD |
21147 | PyObject * obj0 = 0 ; |
21148 | PyObject * obj1 = 0 ; | |
21149 | PyObject * obj2 = 0 ; | |
21150 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21151 | char *kwnames[] = { |
21152 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
21153 | }; | |
21154 | ||
994141e6 RD |
21155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
21156 | if (obj0) { | |
21157 | { | |
21158 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
21159 | if (PyErr_Occurred()) SWIG_fail; | |
21160 | } | |
21161 | } | |
21162 | if (obj1) { | |
21163 | { | |
21164 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21165 | if (PyErr_Occurred()) SWIG_fail; | |
21166 | } | |
21167 | } | |
21168 | if (obj2) { | |
21169 | { | |
21170 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
21171 | if (PyErr_Occurred()) SWIG_fail; | |
21172 | } | |
21173 | } | |
21174 | if (obj3) { | |
21175 | { | |
21176 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
21177 | if (PyErr_Occurred()) SWIG_fail; | |
21178 | } | |
21179 | } | |
d14a1e28 RD |
21180 | { |
21181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21182 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
21183 | ||
21184 | wxPyEndAllowThreads(__tstate); | |
21185 | if (PyErr_Occurred()) SWIG_fail; | |
21186 | } | |
21187 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 1); | |
21188 | return resultobj; | |
21189 | fail: | |
21190 | return NULL; | |
21191 | } | |
21192 | ||
21193 | ||
21194 | static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21195 | PyObject *resultobj; | |
21196 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21197 | PyObject * obj0 = 0 ; | |
21198 | char *kwnames[] = { | |
21199 | (char *) "self", NULL | |
21200 | }; | |
21201 | ||
21202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
21203 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21204 | { | |
21205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21206 | delete arg1; | |
21207 | ||
21208 | wxPyEndAllowThreads(__tstate); | |
21209 | if (PyErr_Occurred()) SWIG_fail; | |
21210 | } | |
21211 | Py_INCREF(Py_None); resultobj = Py_None; | |
21212 | return resultobj; | |
21213 | fail: | |
21214 | return NULL; | |
21215 | } | |
21216 | ||
21217 | ||
21218 | static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21219 | PyObject *resultobj; | |
21220 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21221 | wxTimeSpan *arg2 = 0 ; | |
21222 | wxTimeSpan *result; | |
21223 | PyObject * obj0 = 0 ; | |
21224 | PyObject * obj1 = 0 ; | |
21225 | char *kwnames[] = { | |
21226 | (char *) "self",(char *) "diff", NULL | |
21227 | }; | |
21228 | ||
21229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
21230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21231 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21232 | if (arg2 == NULL) { | |
21233 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21234 | } | |
21235 | { | |
21236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21237 | { | |
21238 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
21239 | result = (wxTimeSpan *) &_result_ref; | |
21240 | } | |
21241 | ||
21242 | wxPyEndAllowThreads(__tstate); | |
21243 | if (PyErr_Occurred()) SWIG_fail; | |
21244 | } | |
21245 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
21246 | return resultobj; | |
21247 | fail: | |
21248 | return NULL; | |
21249 | } | |
21250 | ||
21251 | ||
21252 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21253 | PyObject *resultobj; | |
21254 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21255 | wxTimeSpan *arg2 = 0 ; | |
21256 | wxTimeSpan *result; | |
21257 | PyObject * obj0 = 0 ; | |
21258 | PyObject * obj1 = 0 ; | |
21259 | char *kwnames[] = { | |
21260 | (char *) "self",(char *) "diff", NULL | |
21261 | }; | |
21262 | ||
21263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
21264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21265 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21266 | if (arg2 == NULL) { | |
21267 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21268 | } | |
21269 | { | |
21270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21271 | { | |
21272 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
21273 | result = (wxTimeSpan *) &_result_ref; | |
21274 | } | |
21275 | ||
21276 | wxPyEndAllowThreads(__tstate); | |
21277 | if (PyErr_Occurred()) SWIG_fail; | |
21278 | } | |
21279 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
21280 | return resultobj; | |
21281 | fail: | |
21282 | return NULL; | |
21283 | } | |
21284 | ||
21285 | ||
21286 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21287 | PyObject *resultobj; | |
21288 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21289 | int arg2 ; | |
21290 | wxTimeSpan *result; | |
21291 | PyObject * obj0 = 0 ; | |
994141e6 | 21292 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21293 | char *kwnames[] = { |
21294 | (char *) "self",(char *) "n", NULL | |
21295 | }; | |
21296 | ||
994141e6 | 21297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21299 | { |
21300 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21301 | if (PyErr_Occurred()) SWIG_fail; | |
21302 | } | |
d14a1e28 RD |
21303 | { |
21304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21305 | { | |
21306 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
21307 | result = (wxTimeSpan *) &_result_ref; | |
21308 | } | |
21309 | ||
21310 | wxPyEndAllowThreads(__tstate); | |
21311 | if (PyErr_Occurred()) SWIG_fail; | |
21312 | } | |
21313 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
21314 | return resultobj; | |
21315 | fail: | |
21316 | return NULL; | |
21317 | } | |
21318 | ||
21319 | ||
21320 | static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21321 | PyObject *resultobj; | |
21322 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21323 | wxTimeSpan *result; | |
21324 | PyObject * obj0 = 0 ; | |
21325 | char *kwnames[] = { | |
21326 | (char *) "self", NULL | |
21327 | }; | |
21328 | ||
21329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
21330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21331 | { | |
21332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21333 | { | |
21334 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
21335 | result = (wxTimeSpan *) &_result_ref; | |
21336 | } | |
21337 | ||
21338 | wxPyEndAllowThreads(__tstate); | |
21339 | if (PyErr_Occurred()) SWIG_fail; | |
21340 | } | |
21341 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
21342 | return resultobj; | |
21343 | fail: | |
21344 | return NULL; | |
21345 | } | |
21346 | ||
21347 | ||
21348 | static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21349 | PyObject *resultobj; | |
21350 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21351 | wxTimeSpan result; | |
21352 | PyObject * obj0 = 0 ; | |
21353 | char *kwnames[] = { | |
21354 | (char *) "self", NULL | |
21355 | }; | |
21356 | ||
21357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
21358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21359 | { | |
21360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21361 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
21362 | ||
21363 | wxPyEndAllowThreads(__tstate); | |
21364 | if (PyErr_Occurred()) SWIG_fail; | |
21365 | } | |
21366 | { | |
21367 | wxTimeSpan * resultptr; | |
21368 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21369 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21370 | } | |
21371 | return resultobj; | |
21372 | fail: | |
21373 | return NULL; | |
21374 | } | |
21375 | ||
21376 | ||
21377 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21378 | PyObject *resultobj; | |
21379 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21380 | wxTimeSpan *arg2 = 0 ; | |
21381 | wxTimeSpan *result; | |
21382 | PyObject * obj0 = 0 ; | |
21383 | PyObject * obj1 = 0 ; | |
21384 | char *kwnames[] = { | |
21385 | (char *) "self",(char *) "diff", NULL | |
21386 | }; | |
21387 | ||
21388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
21389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21390 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21391 | if (arg2 == NULL) { | |
21392 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21393 | } | |
21394 | { | |
21395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21396 | { | |
21397 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
21398 | result = (wxTimeSpan *) &_result_ref; | |
21399 | } | |
21400 | ||
21401 | wxPyEndAllowThreads(__tstate); | |
21402 | if (PyErr_Occurred()) SWIG_fail; | |
21403 | } | |
21404 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
21405 | return resultobj; | |
21406 | fail: | |
21407 | return NULL; | |
21408 | } | |
21409 | ||
21410 | ||
21411 | static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21412 | PyObject *resultobj; | |
21413 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21414 | wxTimeSpan *arg2 = 0 ; | |
21415 | wxTimeSpan *result; | |
21416 | PyObject * obj0 = 0 ; | |
21417 | PyObject * obj1 = 0 ; | |
21418 | char *kwnames[] = { | |
21419 | (char *) "self",(char *) "diff", NULL | |
21420 | }; | |
21421 | ||
21422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
21423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21424 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21425 | if (arg2 == NULL) { | |
21426 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21427 | } | |
21428 | { | |
21429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21430 | { | |
21431 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
21432 | result = (wxTimeSpan *) &_result_ref; | |
21433 | } | |
21434 | ||
21435 | wxPyEndAllowThreads(__tstate); | |
21436 | if (PyErr_Occurred()) SWIG_fail; | |
21437 | } | |
21438 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
21439 | return resultobj; | |
21440 | fail: | |
21441 | return NULL; | |
21442 | } | |
21443 | ||
21444 | ||
21445 | static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21446 | PyObject *resultobj; | |
21447 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21448 | int arg2 ; | |
21449 | wxTimeSpan *result; | |
21450 | PyObject * obj0 = 0 ; | |
994141e6 | 21451 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21452 | char *kwnames[] = { |
21453 | (char *) "self",(char *) "n", NULL | |
21454 | }; | |
21455 | ||
994141e6 | 21456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21458 | { |
21459 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21460 | if (PyErr_Occurred()) SWIG_fail; | |
21461 | } | |
d14a1e28 RD |
21462 | { |
21463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21464 | { | |
21465 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
21466 | result = (wxTimeSpan *) &_result_ref; | |
21467 | } | |
21468 | ||
21469 | wxPyEndAllowThreads(__tstate); | |
21470 | if (PyErr_Occurred()) SWIG_fail; | |
21471 | } | |
21472 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
21473 | return resultobj; | |
21474 | fail: | |
21475 | return NULL; | |
21476 | } | |
21477 | ||
21478 | ||
21479 | static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21480 | PyObject *resultobj; | |
21481 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21482 | wxTimeSpan *result; | |
21483 | PyObject * obj0 = 0 ; | |
21484 | char *kwnames[] = { | |
21485 | (char *) "self", NULL | |
21486 | }; | |
21487 | ||
21488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
21489 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21490 | { | |
21491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21492 | { | |
21493 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
21494 | result = (wxTimeSpan *) &_result_ref; | |
21495 | } | |
21496 | ||
21497 | wxPyEndAllowThreads(__tstate); | |
21498 | if (PyErr_Occurred()) SWIG_fail; | |
21499 | } | |
21500 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
21501 | return resultobj; | |
21502 | fail: | |
21503 | return NULL; | |
21504 | } | |
21505 | ||
21506 | ||
21507 | static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21508 | PyObject *resultobj; | |
21509 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21510 | wxTimeSpan *arg2 = 0 ; | |
21511 | wxTimeSpan result; | |
21512 | PyObject * obj0 = 0 ; | |
21513 | PyObject * obj1 = 0 ; | |
21514 | char *kwnames[] = { | |
21515 | (char *) "self",(char *) "other", NULL | |
21516 | }; | |
21517 | ||
21518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
21519 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21520 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21521 | if (arg2 == NULL) { | |
21522 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21523 | } | |
21524 | { | |
21525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21526 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
21527 | ||
21528 | wxPyEndAllowThreads(__tstate); | |
21529 | if (PyErr_Occurred()) SWIG_fail; | |
21530 | } | |
21531 | { | |
21532 | wxTimeSpan * resultptr; | |
21533 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21534 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21535 | } | |
21536 | return resultobj; | |
21537 | fail: | |
21538 | return NULL; | |
21539 | } | |
21540 | ||
21541 | ||
21542 | static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21543 | PyObject *resultobj; | |
21544 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21545 | wxTimeSpan *arg2 = 0 ; | |
21546 | wxTimeSpan result; | |
21547 | PyObject * obj0 = 0 ; | |
21548 | PyObject * obj1 = 0 ; | |
21549 | char *kwnames[] = { | |
21550 | (char *) "self",(char *) "other", NULL | |
21551 | }; | |
21552 | ||
21553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
21554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21555 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21556 | if (arg2 == NULL) { | |
21557 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21558 | } | |
21559 | { | |
21560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21561 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
21562 | ||
21563 | wxPyEndAllowThreads(__tstate); | |
21564 | if (PyErr_Occurred()) SWIG_fail; | |
21565 | } | |
21566 | { | |
21567 | wxTimeSpan * resultptr; | |
21568 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21569 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21570 | } | |
21571 | return resultobj; | |
21572 | fail: | |
21573 | return NULL; | |
21574 | } | |
21575 | ||
21576 | ||
21577 | static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21578 | PyObject *resultobj; | |
21579 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21580 | int arg2 ; | |
21581 | wxTimeSpan result; | |
21582 | PyObject * obj0 = 0 ; | |
994141e6 | 21583 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21584 | char *kwnames[] = { |
21585 | (char *) "self",(char *) "n", NULL | |
21586 | }; | |
21587 | ||
994141e6 | 21588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21590 | { |
21591 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21592 | if (PyErr_Occurred()) SWIG_fail; | |
21593 | } | |
d14a1e28 RD |
21594 | { |
21595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21596 | result = wxTimeSpan___mul__(arg1,arg2); | |
21597 | ||
21598 | wxPyEndAllowThreads(__tstate); | |
21599 | if (PyErr_Occurred()) SWIG_fail; | |
21600 | } | |
21601 | { | |
21602 | wxTimeSpan * resultptr; | |
21603 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21604 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21605 | } | |
21606 | return resultobj; | |
21607 | fail: | |
21608 | return NULL; | |
21609 | } | |
21610 | ||
21611 | ||
21612 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21613 | PyObject *resultobj; | |
21614 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21615 | int arg2 ; | |
21616 | wxTimeSpan result; | |
21617 | PyObject * obj0 = 0 ; | |
994141e6 | 21618 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21619 | char *kwnames[] = { |
21620 | (char *) "self",(char *) "n", NULL | |
21621 | }; | |
21622 | ||
994141e6 | 21623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21625 | { |
21626 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21627 | if (PyErr_Occurred()) SWIG_fail; | |
21628 | } | |
d14a1e28 RD |
21629 | { |
21630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21631 | result = wxTimeSpan___rmul__(arg1,arg2); | |
21632 | ||
21633 | wxPyEndAllowThreads(__tstate); | |
21634 | if (PyErr_Occurred()) SWIG_fail; | |
21635 | } | |
21636 | { | |
21637 | wxTimeSpan * resultptr; | |
21638 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21639 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21640 | } | |
21641 | return resultobj; | |
21642 | fail: | |
21643 | return NULL; | |
21644 | } | |
21645 | ||
21646 | ||
21647 | static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21648 | PyObject *resultobj; | |
21649 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21650 | wxTimeSpan *arg2 = 0 ; | |
21651 | bool result; | |
21652 | PyObject * obj0 = 0 ; | |
21653 | PyObject * obj1 = 0 ; | |
21654 | char *kwnames[] = { | |
21655 | (char *) "self",(char *) "other", NULL | |
21656 | }; | |
21657 | ||
21658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
21659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21660 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21661 | if (arg2 == NULL) { | |
21662 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21663 | } | |
21664 | { | |
21665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21666 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const &)*arg2); | |
21667 | ||
21668 | wxPyEndAllowThreads(__tstate); | |
21669 | if (PyErr_Occurred()) SWIG_fail; | |
21670 | } | |
4d5c3d91 | 21671 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21672 | return resultobj; |
21673 | fail: | |
21674 | return NULL; | |
21675 | } | |
21676 | ||
21677 | ||
21678 | static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21679 | PyObject *resultobj; | |
21680 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21681 | wxTimeSpan *arg2 = 0 ; | |
21682 | bool result; | |
21683 | PyObject * obj0 = 0 ; | |
21684 | PyObject * obj1 = 0 ; | |
21685 | char *kwnames[] = { | |
21686 | (char *) "self",(char *) "other", NULL | |
21687 | }; | |
21688 | ||
21689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
21690 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21691 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21692 | if (arg2 == NULL) { | |
21693 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21694 | } | |
21695 | { | |
21696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21697 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const &)*arg2); | |
21698 | ||
21699 | wxPyEndAllowThreads(__tstate); | |
21700 | if (PyErr_Occurred()) SWIG_fail; | |
21701 | } | |
4d5c3d91 | 21702 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21703 | return resultobj; |
21704 | fail: | |
21705 | return NULL; | |
21706 | } | |
21707 | ||
21708 | ||
21709 | static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21710 | PyObject *resultobj; | |
21711 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21712 | wxTimeSpan *arg2 = 0 ; | |
21713 | bool result; | |
21714 | PyObject * obj0 = 0 ; | |
21715 | PyObject * obj1 = 0 ; | |
21716 | char *kwnames[] = { | |
21717 | (char *) "self",(char *) "other", NULL | |
21718 | }; | |
21719 | ||
21720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
21721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21722 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21723 | if (arg2 == NULL) { | |
21724 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21725 | } | |
21726 | { | |
21727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21728 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const &)*arg2); | |
21729 | ||
21730 | wxPyEndAllowThreads(__tstate); | |
21731 | if (PyErr_Occurred()) SWIG_fail; | |
21732 | } | |
4d5c3d91 | 21733 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21734 | return resultobj; |
21735 | fail: | |
21736 | return NULL; | |
21737 | } | |
21738 | ||
21739 | ||
21740 | static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21741 | PyObject *resultobj; | |
21742 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21743 | wxTimeSpan *arg2 = 0 ; | |
21744 | bool result; | |
21745 | PyObject * obj0 = 0 ; | |
21746 | PyObject * obj1 = 0 ; | |
21747 | char *kwnames[] = { | |
21748 | (char *) "self",(char *) "other", NULL | |
21749 | }; | |
21750 | ||
21751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
21752 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21753 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21754 | if (arg2 == NULL) { | |
21755 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21756 | } | |
21757 | { | |
21758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21759 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const &)*arg2); | |
21760 | ||
21761 | wxPyEndAllowThreads(__tstate); | |
21762 | if (PyErr_Occurred()) SWIG_fail; | |
21763 | } | |
4d5c3d91 | 21764 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21765 | return resultobj; |
21766 | fail: | |
21767 | return NULL; | |
21768 | } | |
21769 | ||
21770 | ||
21771 | static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21772 | PyObject *resultobj; | |
21773 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21774 | wxTimeSpan *arg2 = 0 ; | |
21775 | bool result; | |
21776 | PyObject * obj0 = 0 ; | |
21777 | PyObject * obj1 = 0 ; | |
21778 | char *kwnames[] = { | |
21779 | (char *) "self",(char *) "other", NULL | |
21780 | }; | |
21781 | ||
21782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
21783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21784 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21785 | if (arg2 == NULL) { | |
21786 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21787 | } | |
21788 | { | |
21789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21790 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const &)*arg2); | |
21791 | ||
21792 | wxPyEndAllowThreads(__tstate); | |
21793 | if (PyErr_Occurred()) SWIG_fail; | |
21794 | } | |
4d5c3d91 | 21795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21796 | return resultobj; |
21797 | fail: | |
21798 | return NULL; | |
21799 | } | |
21800 | ||
21801 | ||
21802 | static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21803 | PyObject *resultobj; | |
21804 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21805 | wxTimeSpan *arg2 = 0 ; | |
21806 | bool result; | |
21807 | PyObject * obj0 = 0 ; | |
21808 | PyObject * obj1 = 0 ; | |
21809 | char *kwnames[] = { | |
21810 | (char *) "self",(char *) "other", NULL | |
21811 | }; | |
21812 | ||
21813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
21814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21815 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21816 | if (arg2 == NULL) { | |
21817 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21818 | } | |
21819 | { | |
21820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21821 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const &)*arg2); | |
21822 | ||
21823 | wxPyEndAllowThreads(__tstate); | |
21824 | if (PyErr_Occurred()) SWIG_fail; | |
21825 | } | |
4d5c3d91 | 21826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21827 | return resultobj; |
21828 | fail: | |
21829 | return NULL; | |
21830 | } | |
21831 | ||
21832 | ||
21833 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21834 | PyObject *resultobj; | |
21835 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21836 | bool result; | |
21837 | PyObject * obj0 = 0 ; | |
21838 | char *kwnames[] = { | |
21839 | (char *) "self", NULL | |
21840 | }; | |
21841 | ||
21842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
21843 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21844 | { | |
21845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21846 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
21847 | ||
21848 | wxPyEndAllowThreads(__tstate); | |
21849 | if (PyErr_Occurred()) SWIG_fail; | |
21850 | } | |
4d5c3d91 | 21851 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21852 | return resultobj; |
21853 | fail: | |
21854 | return NULL; | |
21855 | } | |
21856 | ||
21857 | ||
21858 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21859 | PyObject *resultobj; | |
21860 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21861 | bool result; | |
21862 | PyObject * obj0 = 0 ; | |
21863 | char *kwnames[] = { | |
21864 | (char *) "self", NULL | |
21865 | }; | |
21866 | ||
21867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
21868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21869 | { | |
21870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21871 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
21872 | ||
21873 | wxPyEndAllowThreads(__tstate); | |
21874 | if (PyErr_Occurred()) SWIG_fail; | |
21875 | } | |
4d5c3d91 | 21876 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21877 | return resultobj; |
21878 | fail: | |
21879 | return NULL; | |
21880 | } | |
21881 | ||
21882 | ||
21883 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21884 | PyObject *resultobj; | |
21885 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21886 | bool result; | |
21887 | PyObject * obj0 = 0 ; | |
21888 | char *kwnames[] = { | |
21889 | (char *) "self", NULL | |
21890 | }; | |
21891 | ||
21892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
21893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21894 | { | |
21895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21896 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
21897 | ||
21898 | wxPyEndAllowThreads(__tstate); | |
21899 | if (PyErr_Occurred()) SWIG_fail; | |
21900 | } | |
4d5c3d91 | 21901 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21902 | return resultobj; |
21903 | fail: | |
21904 | return NULL; | |
21905 | } | |
21906 | ||
21907 | ||
21908 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21909 | PyObject *resultobj; | |
21910 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21911 | wxTimeSpan *arg2 = 0 ; | |
21912 | bool result; | |
21913 | PyObject * obj0 = 0 ; | |
21914 | PyObject * obj1 = 0 ; | |
21915 | char *kwnames[] = { | |
21916 | (char *) "self",(char *) "ts", NULL | |
21917 | }; | |
21918 | ||
21919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
21920 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21921 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21922 | if (arg2 == NULL) { | |
21923 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21924 | } | |
21925 | { | |
21926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21927 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
21928 | ||
21929 | wxPyEndAllowThreads(__tstate); | |
21930 | if (PyErr_Occurred()) SWIG_fail; | |
21931 | } | |
4d5c3d91 | 21932 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21933 | return resultobj; |
21934 | fail: | |
21935 | return NULL; | |
21936 | } | |
21937 | ||
21938 | ||
21939 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21940 | PyObject *resultobj; | |
21941 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21942 | wxTimeSpan *arg2 = 0 ; | |
21943 | bool result; | |
21944 | PyObject * obj0 = 0 ; | |
21945 | PyObject * obj1 = 0 ; | |
21946 | char *kwnames[] = { | |
21947 | (char *) "self",(char *) "ts", NULL | |
21948 | }; | |
21949 | ||
21950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
21951 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21952 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21953 | if (arg2 == NULL) { | |
21954 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21955 | } | |
21956 | { | |
21957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21958 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
21959 | ||
21960 | wxPyEndAllowThreads(__tstate); | |
21961 | if (PyErr_Occurred()) SWIG_fail; | |
21962 | } | |
4d5c3d91 | 21963 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21964 | return resultobj; |
21965 | fail: | |
21966 | return NULL; | |
21967 | } | |
21968 | ||
21969 | ||
21970 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21971 | PyObject *resultobj; | |
21972 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21973 | wxTimeSpan *arg2 = 0 ; | |
21974 | bool result; | |
21975 | PyObject * obj0 = 0 ; | |
21976 | PyObject * obj1 = 0 ; | |
21977 | char *kwnames[] = { | |
21978 | (char *) "self",(char *) "t", NULL | |
21979 | }; | |
21980 | ||
21981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
21982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21983 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21984 | if (arg2 == NULL) { | |
21985 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21986 | } | |
21987 | { | |
21988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21989 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
21990 | ||
21991 | wxPyEndAllowThreads(__tstate); | |
21992 | if (PyErr_Occurred()) SWIG_fail; | |
21993 | } | |
4d5c3d91 | 21994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21995 | return resultobj; |
21996 | fail: | |
21997 | return NULL; | |
21998 | } | |
21999 | ||
22000 | ||
22001 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22002 | PyObject *resultobj; | |
22003 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22004 | int result; | |
22005 | PyObject * obj0 = 0 ; | |
22006 | char *kwnames[] = { | |
22007 | (char *) "self", NULL | |
22008 | }; | |
22009 | ||
22010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
22011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22012 | { | |
22013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22014 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
22015 | ||
22016 | wxPyEndAllowThreads(__tstate); | |
22017 | if (PyErr_Occurred()) SWIG_fail; | |
22018 | } | |
994141e6 | 22019 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22020 | return resultobj; |
22021 | fail: | |
22022 | return NULL; | |
22023 | } | |
22024 | ||
22025 | ||
22026 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22027 | PyObject *resultobj; | |
22028 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22029 | int result; | |
22030 | PyObject * obj0 = 0 ; | |
22031 | char *kwnames[] = { | |
22032 | (char *) "self", NULL | |
22033 | }; | |
22034 | ||
22035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
22036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22037 | { | |
22038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22039 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
22040 | ||
22041 | wxPyEndAllowThreads(__tstate); | |
22042 | if (PyErr_Occurred()) SWIG_fail; | |
22043 | } | |
994141e6 | 22044 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22045 | return resultobj; |
22046 | fail: | |
22047 | return NULL; | |
22048 | } | |
22049 | ||
22050 | ||
22051 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22052 | PyObject *resultobj; | |
22053 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22054 | int result; | |
22055 | PyObject * obj0 = 0 ; | |
22056 | char *kwnames[] = { | |
22057 | (char *) "self", NULL | |
22058 | }; | |
22059 | ||
22060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
22061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22062 | { | |
22063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22064 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
22065 | ||
22066 | wxPyEndAllowThreads(__tstate); | |
22067 | if (PyErr_Occurred()) SWIG_fail; | |
22068 | } | |
994141e6 | 22069 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22070 | return resultobj; |
22071 | fail: | |
22072 | return NULL; | |
22073 | } | |
22074 | ||
22075 | ||
22076 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22077 | PyObject *resultobj; | |
22078 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22079 | int result; | |
22080 | PyObject * obj0 = 0 ; | |
22081 | char *kwnames[] = { | |
22082 | (char *) "self", NULL | |
22083 | }; | |
22084 | ||
22085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
22086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22087 | { | |
22088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22089 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
22090 | ||
22091 | wxPyEndAllowThreads(__tstate); | |
22092 | if (PyErr_Occurred()) SWIG_fail; | |
22093 | } | |
994141e6 | 22094 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22095 | return resultobj; |
22096 | fail: | |
22097 | return NULL; | |
22098 | } | |
22099 | ||
22100 | ||
22101 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22102 | PyObject *resultobj; | |
22103 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22104 | wxLongLong result; | |
22105 | PyObject * obj0 = 0 ; | |
22106 | char *kwnames[] = { | |
22107 | (char *) "self", NULL | |
22108 | }; | |
22109 | ||
22110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
22111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22112 | { | |
22113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22114 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
22115 | ||
22116 | wxPyEndAllowThreads(__tstate); | |
22117 | if (PyErr_Occurred()) SWIG_fail; | |
22118 | } | |
22119 | { | |
22120 | PyObject *hi, *lo, *shifter, *shifted; | |
22121 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22122 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22123 | shifter = PyLong_FromLong(32); | |
22124 | shifted = PyNumber_Lshift(hi, shifter); | |
22125 | resultobj = PyNumber_Or(shifted, lo); | |
22126 | Py_DECREF(hi); | |
22127 | Py_DECREF(lo); | |
22128 | Py_DECREF(shifter); | |
22129 | Py_DECREF(shifted); | |
22130 | } | |
22131 | return resultobj; | |
22132 | fail: | |
22133 | return NULL; | |
22134 | } | |
22135 | ||
22136 | ||
22137 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22138 | PyObject *resultobj; | |
22139 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22140 | wxLongLong result; | |
22141 | PyObject * obj0 = 0 ; | |
22142 | char *kwnames[] = { | |
22143 | (char *) "self", NULL | |
22144 | }; | |
22145 | ||
22146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
22147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22148 | { | |
22149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22150 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
22151 | ||
22152 | wxPyEndAllowThreads(__tstate); | |
22153 | if (PyErr_Occurred()) SWIG_fail; | |
22154 | } | |
22155 | { | |
22156 | PyObject *hi, *lo, *shifter, *shifted; | |
22157 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22158 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22159 | shifter = PyLong_FromLong(32); | |
22160 | shifted = PyNumber_Lshift(hi, shifter); | |
22161 | resultobj = PyNumber_Or(shifted, lo); | |
22162 | Py_DECREF(hi); | |
22163 | Py_DECREF(lo); | |
22164 | Py_DECREF(shifter); | |
22165 | Py_DECREF(shifted); | |
22166 | } | |
22167 | return resultobj; | |
22168 | fail: | |
22169 | return NULL; | |
22170 | } | |
22171 | ||
22172 | ||
22173 | static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22174 | PyObject *resultobj; | |
22175 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22176 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
22177 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
22178 | wxString result; | |
e811c8ce | 22179 | bool temp2 = False ; |
d14a1e28 RD |
22180 | PyObject * obj0 = 0 ; |
22181 | PyObject * obj1 = 0 ; | |
22182 | char *kwnames[] = { | |
22183 | (char *) "self",(char *) "format", NULL | |
22184 | }; | |
22185 | ||
22186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
22187 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22188 | if (obj1) { | |
22189 | { | |
22190 | arg2 = wxString_in_helper(obj1); | |
22191 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 22192 | temp2 = True; |
d14a1e28 RD |
22193 | } |
22194 | } | |
22195 | { | |
22196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22197 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
22198 | ||
22199 | wxPyEndAllowThreads(__tstate); | |
22200 | if (PyErr_Occurred()) SWIG_fail; | |
22201 | } | |
22202 | { | |
22203 | #if wxUSE_UNICODE | |
22204 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22205 | #else | |
22206 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22207 | #endif | |
22208 | } | |
22209 | { | |
22210 | if (temp2) | |
22211 | delete arg2; | |
22212 | } | |
22213 | return resultobj; | |
22214 | fail: | |
22215 | { | |
22216 | if (temp2) | |
22217 | delete arg2; | |
22218 | } | |
22219 | return NULL; | |
22220 | } | |
22221 | ||
22222 | ||
22223 | static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) { | |
22224 | PyObject *obj; | |
22225 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22226 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
22227 | Py_INCREF(obj); | |
22228 | return Py_BuildValue((char *)""); | |
22229 | } | |
22230 | static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22231 | PyObject *resultobj; | |
22232 | int arg1 = (int) 0 ; | |
22233 | int arg2 = (int) 0 ; | |
22234 | int arg3 = (int) 0 ; | |
22235 | int arg4 = (int) 0 ; | |
22236 | wxDateSpan *result; | |
994141e6 RD |
22237 | PyObject * obj0 = 0 ; |
22238 | PyObject * obj1 = 0 ; | |
22239 | PyObject * obj2 = 0 ; | |
22240 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
22241 | char *kwnames[] = { |
22242 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
22243 | }; | |
22244 | ||
994141e6 RD |
22245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
22246 | if (obj0) { | |
22247 | { | |
22248 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
22249 | if (PyErr_Occurred()) SWIG_fail; | |
22250 | } | |
22251 | } | |
22252 | if (obj1) { | |
22253 | { | |
22254 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22255 | if (PyErr_Occurred()) SWIG_fail; | |
22256 | } | |
22257 | } | |
22258 | if (obj2) { | |
22259 | { | |
22260 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22261 | if (PyErr_Occurred()) SWIG_fail; | |
22262 | } | |
22263 | } | |
22264 | if (obj3) { | |
22265 | { | |
22266 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
22267 | if (PyErr_Occurred()) SWIG_fail; | |
22268 | } | |
22269 | } | |
d14a1e28 RD |
22270 | { |
22271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22272 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
22273 | ||
22274 | wxPyEndAllowThreads(__tstate); | |
22275 | if (PyErr_Occurred()) SWIG_fail; | |
22276 | } | |
22277 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 1); | |
22278 | return resultobj; | |
22279 | fail: | |
22280 | return NULL; | |
22281 | } | |
22282 | ||
22283 | ||
22284 | static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22285 | PyObject *resultobj; | |
22286 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22287 | PyObject * obj0 = 0 ; | |
22288 | char *kwnames[] = { | |
22289 | (char *) "self", NULL | |
22290 | }; | |
22291 | ||
22292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
22293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22294 | { | |
22295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22296 | delete arg1; | |
22297 | ||
22298 | wxPyEndAllowThreads(__tstate); | |
22299 | if (PyErr_Occurred()) SWIG_fail; | |
22300 | } | |
22301 | Py_INCREF(Py_None); resultobj = Py_None; | |
22302 | return resultobj; | |
22303 | fail: | |
22304 | return NULL; | |
22305 | } | |
22306 | ||
22307 | ||
22308 | static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22309 | PyObject *resultobj; | |
22310 | int arg1 ; | |
22311 | wxDateSpan result; | |
994141e6 | 22312 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22313 | char *kwnames[] = { |
22314 | (char *) "days", NULL | |
22315 | }; | |
22316 | ||
994141e6 RD |
22317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; |
22318 | { | |
22319 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
22320 | if (PyErr_Occurred()) SWIG_fail; | |
22321 | } | |
d14a1e28 RD |
22322 | { |
22323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22324 | result = wxDateSpan::Days(arg1); | |
22325 | ||
22326 | wxPyEndAllowThreads(__tstate); | |
22327 | if (PyErr_Occurred()) SWIG_fail; | |
22328 | } | |
22329 | { | |
22330 | wxDateSpan * resultptr; | |
22331 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22332 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22333 | } | |
22334 | return resultobj; | |
22335 | fail: | |
22336 | return NULL; | |
22337 | } | |
22338 | ||
22339 | ||
22340 | static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22341 | PyObject *resultobj; | |
22342 | wxDateSpan result; | |
22343 | char *kwnames[] = { | |
22344 | NULL | |
22345 | }; | |
22346 | ||
22347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
22348 | { | |
22349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22350 | result = wxDateSpan::Day(); | |
22351 | ||
22352 | wxPyEndAllowThreads(__tstate); | |
22353 | if (PyErr_Occurred()) SWIG_fail; | |
22354 | } | |
22355 | { | |
22356 | wxDateSpan * resultptr; | |
22357 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22358 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22359 | } | |
22360 | return resultobj; | |
22361 | fail: | |
22362 | return NULL; | |
22363 | } | |
22364 | ||
22365 | ||
22366 | static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22367 | PyObject *resultobj; | |
22368 | int arg1 ; | |
22369 | wxDateSpan result; | |
994141e6 | 22370 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22371 | char *kwnames[] = { |
22372 | (char *) "weeks", NULL | |
22373 | }; | |
22374 | ||
994141e6 RD |
22375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; |
22376 | { | |
22377 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
22378 | if (PyErr_Occurred()) SWIG_fail; | |
22379 | } | |
d14a1e28 RD |
22380 | { |
22381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22382 | result = wxDateSpan::Weeks(arg1); | |
22383 | ||
22384 | wxPyEndAllowThreads(__tstate); | |
22385 | if (PyErr_Occurred()) SWIG_fail; | |
22386 | } | |
22387 | { | |
22388 | wxDateSpan * resultptr; | |
22389 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22390 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22391 | } | |
22392 | return resultobj; | |
22393 | fail: | |
22394 | return NULL; | |
22395 | } | |
22396 | ||
22397 | ||
22398 | static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22399 | PyObject *resultobj; | |
22400 | wxDateSpan result; | |
22401 | char *kwnames[] = { | |
22402 | NULL | |
22403 | }; | |
22404 | ||
22405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
22406 | { | |
22407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22408 | result = wxDateSpan::Week(); | |
22409 | ||
22410 | wxPyEndAllowThreads(__tstate); | |
22411 | if (PyErr_Occurred()) SWIG_fail; | |
22412 | } | |
22413 | { | |
22414 | wxDateSpan * resultptr; | |
22415 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22416 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22417 | } | |
22418 | return resultobj; | |
22419 | fail: | |
22420 | return NULL; | |
22421 | } | |
22422 | ||
22423 | ||
22424 | static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22425 | PyObject *resultobj; | |
22426 | int arg1 ; | |
22427 | wxDateSpan result; | |
994141e6 | 22428 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22429 | char *kwnames[] = { |
22430 | (char *) "mon", NULL | |
22431 | }; | |
22432 | ||
994141e6 RD |
22433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; |
22434 | { | |
22435 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
22436 | if (PyErr_Occurred()) SWIG_fail; | |
22437 | } | |
d14a1e28 RD |
22438 | { |
22439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22440 | result = wxDateSpan::Months(arg1); | |
22441 | ||
22442 | wxPyEndAllowThreads(__tstate); | |
22443 | if (PyErr_Occurred()) SWIG_fail; | |
22444 | } | |
22445 | { | |
22446 | wxDateSpan * resultptr; | |
22447 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22448 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22449 | } | |
22450 | return resultobj; | |
22451 | fail: | |
22452 | return NULL; | |
22453 | } | |
22454 | ||
22455 | ||
22456 | static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22457 | PyObject *resultobj; | |
22458 | wxDateSpan result; | |
22459 | char *kwnames[] = { | |
22460 | NULL | |
22461 | }; | |
22462 | ||
22463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
22464 | { | |
22465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22466 | result = wxDateSpan::Month(); | |
22467 | ||
22468 | wxPyEndAllowThreads(__tstate); | |
22469 | if (PyErr_Occurred()) SWIG_fail; | |
22470 | } | |
22471 | { | |
22472 | wxDateSpan * resultptr; | |
22473 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22474 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22475 | } | |
22476 | return resultobj; | |
22477 | fail: | |
22478 | return NULL; | |
22479 | } | |
22480 | ||
22481 | ||
22482 | static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22483 | PyObject *resultobj; | |
22484 | int arg1 ; | |
22485 | wxDateSpan result; | |
994141e6 | 22486 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22487 | char *kwnames[] = { |
22488 | (char *) "years", NULL | |
22489 | }; | |
22490 | ||
994141e6 RD |
22491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; |
22492 | { | |
22493 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
22494 | if (PyErr_Occurred()) SWIG_fail; | |
22495 | } | |
d14a1e28 RD |
22496 | { |
22497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22498 | result = wxDateSpan::Years(arg1); | |
22499 | ||
22500 | wxPyEndAllowThreads(__tstate); | |
22501 | if (PyErr_Occurred()) SWIG_fail; | |
22502 | } | |
22503 | { | |
22504 | wxDateSpan * resultptr; | |
22505 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22506 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22507 | } | |
22508 | return resultobj; | |
22509 | fail: | |
22510 | return NULL; | |
22511 | } | |
22512 | ||
22513 | ||
22514 | static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22515 | PyObject *resultobj; | |
22516 | wxDateSpan result; | |
22517 | char *kwnames[] = { | |
22518 | NULL | |
22519 | }; | |
22520 | ||
22521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
22522 | { | |
22523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22524 | result = wxDateSpan::Year(); | |
22525 | ||
22526 | wxPyEndAllowThreads(__tstate); | |
22527 | if (PyErr_Occurred()) SWIG_fail; | |
22528 | } | |
22529 | { | |
22530 | wxDateSpan * resultptr; | |
22531 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22532 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22533 | } | |
22534 | return resultobj; | |
22535 | fail: | |
22536 | return NULL; | |
22537 | } | |
22538 | ||
22539 | ||
22540 | static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22541 | PyObject *resultobj; | |
22542 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22543 | int arg2 ; | |
22544 | wxDateSpan *result; | |
22545 | PyObject * obj0 = 0 ; | |
994141e6 | 22546 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22547 | char *kwnames[] = { |
22548 | (char *) "self",(char *) "n", NULL | |
22549 | }; | |
22550 | ||
994141e6 | 22551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22552 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22553 | { |
22554 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22555 | if (PyErr_Occurred()) SWIG_fail; | |
22556 | } | |
d14a1e28 RD |
22557 | { |
22558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22559 | { | |
22560 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
22561 | result = (wxDateSpan *) &_result_ref; | |
22562 | } | |
22563 | ||
22564 | wxPyEndAllowThreads(__tstate); | |
22565 | if (PyErr_Occurred()) SWIG_fail; | |
22566 | } | |
22567 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22568 | return resultobj; | |
22569 | fail: | |
22570 | return NULL; | |
22571 | } | |
22572 | ||
22573 | ||
22574 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22575 | PyObject *resultobj; | |
22576 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22577 | int arg2 ; | |
22578 | wxDateSpan *result; | |
22579 | PyObject * obj0 = 0 ; | |
994141e6 | 22580 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22581 | char *kwnames[] = { |
22582 | (char *) "self",(char *) "n", NULL | |
22583 | }; | |
22584 | ||
994141e6 | 22585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22587 | { |
22588 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22589 | if (PyErr_Occurred()) SWIG_fail; | |
22590 | } | |
d14a1e28 RD |
22591 | { |
22592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22593 | { | |
22594 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
22595 | result = (wxDateSpan *) &_result_ref; | |
22596 | } | |
22597 | ||
22598 | wxPyEndAllowThreads(__tstate); | |
22599 | if (PyErr_Occurred()) SWIG_fail; | |
22600 | } | |
22601 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22602 | return resultobj; | |
22603 | fail: | |
22604 | return NULL; | |
22605 | } | |
22606 | ||
22607 | ||
22608 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22609 | PyObject *resultobj; | |
22610 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22611 | int arg2 ; | |
22612 | wxDateSpan *result; | |
22613 | PyObject * obj0 = 0 ; | |
994141e6 | 22614 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22615 | char *kwnames[] = { |
22616 | (char *) "self",(char *) "n", NULL | |
22617 | }; | |
22618 | ||
994141e6 | 22619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22621 | { |
22622 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22623 | if (PyErr_Occurred()) SWIG_fail; | |
22624 | } | |
d14a1e28 RD |
22625 | { |
22626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22627 | { | |
22628 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
22629 | result = (wxDateSpan *) &_result_ref; | |
22630 | } | |
22631 | ||
22632 | wxPyEndAllowThreads(__tstate); | |
22633 | if (PyErr_Occurred()) SWIG_fail; | |
22634 | } | |
22635 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22636 | return resultobj; | |
22637 | fail: | |
22638 | return NULL; | |
22639 | } | |
22640 | ||
22641 | ||
22642 | static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22643 | PyObject *resultobj; | |
22644 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22645 | int arg2 ; | |
22646 | wxDateSpan *result; | |
22647 | PyObject * obj0 = 0 ; | |
994141e6 | 22648 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22649 | char *kwnames[] = { |
22650 | (char *) "self",(char *) "n", NULL | |
22651 | }; | |
22652 | ||
994141e6 | 22653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22655 | { |
22656 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22657 | if (PyErr_Occurred()) SWIG_fail; | |
22658 | } | |
d14a1e28 RD |
22659 | { |
22660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22661 | { | |
22662 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
22663 | result = (wxDateSpan *) &_result_ref; | |
22664 | } | |
22665 | ||
22666 | wxPyEndAllowThreads(__tstate); | |
22667 | if (PyErr_Occurred()) SWIG_fail; | |
22668 | } | |
22669 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22670 | return resultobj; | |
22671 | fail: | |
22672 | return NULL; | |
22673 | } | |
22674 | ||
22675 | ||
22676 | static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22677 | PyObject *resultobj; | |
22678 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22679 | int result; | |
22680 | PyObject * obj0 = 0 ; | |
22681 | char *kwnames[] = { | |
22682 | (char *) "self", NULL | |
22683 | }; | |
22684 | ||
22685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
22686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22687 | { | |
22688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22689 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
22690 | ||
22691 | wxPyEndAllowThreads(__tstate); | |
22692 | if (PyErr_Occurred()) SWIG_fail; | |
22693 | } | |
994141e6 | 22694 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22695 | return resultobj; |
22696 | fail: | |
22697 | return NULL; | |
22698 | } | |
22699 | ||
22700 | ||
22701 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22702 | PyObject *resultobj; | |
22703 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22704 | int result; | |
22705 | PyObject * obj0 = 0 ; | |
22706 | char *kwnames[] = { | |
22707 | (char *) "self", NULL | |
22708 | }; | |
22709 | ||
22710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
22711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22712 | { | |
22713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22714 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
22715 | ||
22716 | wxPyEndAllowThreads(__tstate); | |
22717 | if (PyErr_Occurred()) SWIG_fail; | |
22718 | } | |
994141e6 | 22719 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22720 | return resultobj; |
22721 | fail: | |
22722 | return NULL; | |
22723 | } | |
22724 | ||
22725 | ||
22726 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22727 | PyObject *resultobj; | |
22728 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22729 | int result; | |
22730 | PyObject * obj0 = 0 ; | |
22731 | char *kwnames[] = { | |
22732 | (char *) "self", NULL | |
22733 | }; | |
22734 | ||
22735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
22736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22737 | { | |
22738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22739 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
22740 | ||
22741 | wxPyEndAllowThreads(__tstate); | |
22742 | if (PyErr_Occurred()) SWIG_fail; | |
22743 | } | |
994141e6 | 22744 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22745 | return resultobj; |
22746 | fail: | |
22747 | return NULL; | |
22748 | } | |
22749 | ||
22750 | ||
22751 | static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22752 | PyObject *resultobj; | |
22753 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22754 | int result; | |
22755 | PyObject * obj0 = 0 ; | |
22756 | char *kwnames[] = { | |
22757 | (char *) "self", NULL | |
22758 | }; | |
22759 | ||
22760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
22761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22762 | { | |
22763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22764 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
22765 | ||
22766 | wxPyEndAllowThreads(__tstate); | |
22767 | if (PyErr_Occurred()) SWIG_fail; | |
22768 | } | |
994141e6 | 22769 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22770 | return resultobj; |
22771 | fail: | |
22772 | return NULL; | |
22773 | } | |
22774 | ||
22775 | ||
22776 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22777 | PyObject *resultobj; | |
22778 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22779 | int result; | |
22780 | PyObject * obj0 = 0 ; | |
22781 | char *kwnames[] = { | |
22782 | (char *) "self", NULL | |
22783 | }; | |
22784 | ||
22785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
22786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22787 | { | |
22788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22789 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
22790 | ||
22791 | wxPyEndAllowThreads(__tstate); | |
22792 | if (PyErr_Occurred()) SWIG_fail; | |
22793 | } | |
994141e6 | 22794 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22795 | return resultobj; |
22796 | fail: | |
22797 | return NULL; | |
22798 | } | |
22799 | ||
22800 | ||
22801 | static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22802 | PyObject *resultobj; | |
22803 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22804 | wxDateSpan *arg2 = 0 ; | |
22805 | wxDateSpan *result; | |
22806 | PyObject * obj0 = 0 ; | |
22807 | PyObject * obj1 = 0 ; | |
22808 | char *kwnames[] = { | |
22809 | (char *) "self",(char *) "other", NULL | |
22810 | }; | |
22811 | ||
22812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
22813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22814 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22815 | if (arg2 == NULL) { | |
22816 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22817 | } | |
22818 | { | |
22819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22820 | { | |
22821 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
22822 | result = (wxDateSpan *) &_result_ref; | |
22823 | } | |
22824 | ||
22825 | wxPyEndAllowThreads(__tstate); | |
22826 | if (PyErr_Occurred()) SWIG_fail; | |
22827 | } | |
22828 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22829 | return resultobj; | |
22830 | fail: | |
22831 | return NULL; | |
22832 | } | |
22833 | ||
22834 | ||
22835 | static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22836 | PyObject *resultobj; | |
22837 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22838 | wxDateSpan *arg2 = 0 ; | |
22839 | wxDateSpan *result; | |
22840 | PyObject * obj0 = 0 ; | |
22841 | PyObject * obj1 = 0 ; | |
22842 | char *kwnames[] = { | |
22843 | (char *) "self",(char *) "other", NULL | |
22844 | }; | |
22845 | ||
22846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
22847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22848 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22849 | if (arg2 == NULL) { | |
22850 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22851 | } | |
22852 | { | |
22853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22854 | { | |
22855 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
22856 | result = (wxDateSpan *) &_result_ref; | |
22857 | } | |
22858 | ||
22859 | wxPyEndAllowThreads(__tstate); | |
22860 | if (PyErr_Occurred()) SWIG_fail; | |
22861 | } | |
22862 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22863 | return resultobj; | |
22864 | fail: | |
22865 | return NULL; | |
22866 | } | |
22867 | ||
22868 | ||
22869 | static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22870 | PyObject *resultobj; | |
22871 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22872 | wxDateSpan *result; | |
22873 | PyObject * obj0 = 0 ; | |
22874 | char *kwnames[] = { | |
22875 | (char *) "self", NULL | |
22876 | }; | |
22877 | ||
22878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
22879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22880 | { | |
22881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22882 | { | |
22883 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
22884 | result = (wxDateSpan *) &_result_ref; | |
22885 | } | |
22886 | ||
22887 | wxPyEndAllowThreads(__tstate); | |
22888 | if (PyErr_Occurred()) SWIG_fail; | |
22889 | } | |
22890 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22891 | return resultobj; | |
22892 | fail: | |
22893 | return NULL; | |
22894 | } | |
22895 | ||
22896 | ||
22897 | static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22898 | PyObject *resultobj; | |
22899 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22900 | int arg2 ; | |
22901 | wxDateSpan *result; | |
22902 | PyObject * obj0 = 0 ; | |
994141e6 | 22903 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22904 | char *kwnames[] = { |
22905 | (char *) "self",(char *) "factor", NULL | |
22906 | }; | |
22907 | ||
994141e6 | 22908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22909 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22910 | { |
22911 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22912 | if (PyErr_Occurred()) SWIG_fail; | |
22913 | } | |
d14a1e28 RD |
22914 | { |
22915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22916 | { | |
22917 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
22918 | result = (wxDateSpan *) &_result_ref; | |
22919 | } | |
22920 | ||
22921 | wxPyEndAllowThreads(__tstate); | |
22922 | if (PyErr_Occurred()) SWIG_fail; | |
22923 | } | |
22924 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22925 | return resultobj; | |
22926 | fail: | |
22927 | return NULL; | |
22928 | } | |
22929 | ||
22930 | ||
22931 | static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22932 | PyObject *resultobj; | |
22933 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22934 | wxDateSpan *arg2 = 0 ; | |
22935 | wxDateSpan *result; | |
22936 | PyObject * obj0 = 0 ; | |
22937 | PyObject * obj1 = 0 ; | |
22938 | char *kwnames[] = { | |
22939 | (char *) "self",(char *) "other", NULL | |
22940 | }; | |
22941 | ||
22942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
22943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22944 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22945 | if (arg2 == NULL) { | |
22946 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22947 | } | |
22948 | { | |
22949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22950 | { | |
22951 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
22952 | result = (wxDateSpan *) &_result_ref; | |
22953 | } | |
22954 | ||
22955 | wxPyEndAllowThreads(__tstate); | |
22956 | if (PyErr_Occurred()) SWIG_fail; | |
22957 | } | |
22958 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22959 | return resultobj; | |
22960 | fail: | |
22961 | return NULL; | |
22962 | } | |
22963 | ||
22964 | ||
22965 | static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22966 | PyObject *resultobj; | |
22967 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22968 | wxDateSpan *arg2 = 0 ; | |
22969 | wxDateSpan *result; | |
22970 | PyObject * obj0 = 0 ; | |
22971 | PyObject * obj1 = 0 ; | |
22972 | char *kwnames[] = { | |
22973 | (char *) "self",(char *) "other", NULL | |
22974 | }; | |
22975 | ||
22976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
22977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22978 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22979 | if (arg2 == NULL) { | |
22980 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22981 | } | |
22982 | { | |
22983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22984 | { | |
22985 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
22986 | result = (wxDateSpan *) &_result_ref; | |
22987 | } | |
22988 | ||
22989 | wxPyEndAllowThreads(__tstate); | |
22990 | if (PyErr_Occurred()) SWIG_fail; | |
22991 | } | |
22992 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22993 | return resultobj; | |
22994 | fail: | |
22995 | return NULL; | |
22996 | } | |
22997 | ||
22998 | ||
22999 | static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23000 | PyObject *resultobj; | |
23001 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23002 | wxDateSpan *result; | |
23003 | PyObject * obj0 = 0 ; | |
23004 | char *kwnames[] = { | |
23005 | (char *) "self", NULL | |
23006 | }; | |
23007 | ||
23008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
23009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23010 | { | |
23011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23012 | { | |
23013 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
23014 | result = (wxDateSpan *) &_result_ref; | |
23015 | } | |
23016 | ||
23017 | wxPyEndAllowThreads(__tstate); | |
23018 | if (PyErr_Occurred()) SWIG_fail; | |
23019 | } | |
23020 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
23021 | return resultobj; | |
23022 | fail: | |
23023 | return NULL; | |
23024 | } | |
23025 | ||
23026 | ||
23027 | static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23028 | PyObject *resultobj; | |
23029 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23030 | int arg2 ; | |
23031 | wxDateSpan *result; | |
23032 | PyObject * obj0 = 0 ; | |
994141e6 | 23033 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23034 | char *kwnames[] = { |
23035 | (char *) "self",(char *) "factor", NULL | |
23036 | }; | |
23037 | ||
994141e6 | 23038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 23039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
23040 | { |
23041 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23042 | if (PyErr_Occurred()) SWIG_fail; | |
23043 | } | |
d14a1e28 RD |
23044 | { |
23045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23046 | { | |
23047 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
23048 | result = (wxDateSpan *) &_result_ref; | |
23049 | } | |
23050 | ||
23051 | wxPyEndAllowThreads(__tstate); | |
23052 | if (PyErr_Occurred()) SWIG_fail; | |
23053 | } | |
23054 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
23055 | return resultobj; | |
23056 | fail: | |
23057 | return NULL; | |
23058 | } | |
23059 | ||
23060 | ||
23061 | static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23062 | PyObject *resultobj; | |
23063 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23064 | wxDateSpan *arg2 = 0 ; | |
23065 | wxDateSpan result; | |
23066 | PyObject * obj0 = 0 ; | |
23067 | PyObject * obj1 = 0 ; | |
23068 | char *kwnames[] = { | |
23069 | (char *) "self",(char *) "other", NULL | |
23070 | }; | |
23071 | ||
23072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
23073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23074 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23075 | if (arg2 == NULL) { | |
23076 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23077 | } | |
23078 | { | |
23079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23080 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
23081 | ||
23082 | wxPyEndAllowThreads(__tstate); | |
23083 | if (PyErr_Occurred()) SWIG_fail; | |
23084 | } | |
23085 | { | |
23086 | wxDateSpan * resultptr; | |
23087 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23088 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
23089 | } | |
23090 | return resultobj; | |
23091 | fail: | |
23092 | return NULL; | |
23093 | } | |
23094 | ||
23095 | ||
23096 | static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23097 | PyObject *resultobj; | |
23098 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23099 | wxDateSpan *arg2 = 0 ; | |
23100 | wxDateSpan result; | |
23101 | PyObject * obj0 = 0 ; | |
23102 | PyObject * obj1 = 0 ; | |
23103 | char *kwnames[] = { | |
23104 | (char *) "self",(char *) "other", NULL | |
23105 | }; | |
23106 | ||
23107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
23108 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23109 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23110 | if (arg2 == NULL) { | |
23111 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23112 | } | |
23113 | { | |
23114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23115 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
23116 | ||
23117 | wxPyEndAllowThreads(__tstate); | |
23118 | if (PyErr_Occurred()) SWIG_fail; | |
23119 | } | |
23120 | { | |
23121 | wxDateSpan * resultptr; | |
23122 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23123 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
23124 | } | |
23125 | return resultobj; | |
23126 | fail: | |
23127 | return NULL; | |
23128 | } | |
23129 | ||
23130 | ||
23131 | static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23132 | PyObject *resultobj; | |
23133 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23134 | int arg2 ; | |
23135 | wxDateSpan result; | |
23136 | PyObject * obj0 = 0 ; | |
994141e6 | 23137 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23138 | char *kwnames[] = { |
23139 | (char *) "self",(char *) "n", NULL | |
23140 | }; | |
23141 | ||
994141e6 | 23142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 23143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
23144 | { |
23145 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23146 | if (PyErr_Occurred()) SWIG_fail; | |
23147 | } | |
d14a1e28 RD |
23148 | { |
23149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23150 | result = wxDateSpan___mul__(arg1,arg2); | |
23151 | ||
23152 | wxPyEndAllowThreads(__tstate); | |
23153 | if (PyErr_Occurred()) SWIG_fail; | |
23154 | } | |
23155 | { | |
23156 | wxDateSpan * resultptr; | |
23157 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23158 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
23159 | } | |
23160 | return resultobj; | |
23161 | fail: | |
23162 | return NULL; | |
23163 | } | |
23164 | ||
23165 | ||
23166 | static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23167 | PyObject *resultobj; | |
23168 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23169 | int arg2 ; | |
23170 | wxDateSpan result; | |
23171 | PyObject * obj0 = 0 ; | |
994141e6 | 23172 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23173 | char *kwnames[] = { |
23174 | (char *) "self",(char *) "n", NULL | |
23175 | }; | |
23176 | ||
994141e6 | 23177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 23178 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
23179 | { |
23180 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23181 | if (PyErr_Occurred()) SWIG_fail; | |
23182 | } | |
d14a1e28 RD |
23183 | { |
23184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23185 | result = wxDateSpan___rmul__(arg1,arg2); | |
23186 | ||
23187 | wxPyEndAllowThreads(__tstate); | |
23188 | if (PyErr_Occurred()) SWIG_fail; | |
23189 | } | |
23190 | { | |
23191 | wxDateSpan * resultptr; | |
23192 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23193 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
23194 | } | |
23195 | return resultobj; | |
23196 | fail: | |
23197 | return NULL; | |
23198 | } | |
23199 | ||
23200 | ||
23201 | static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23202 | PyObject *resultobj; | |
23203 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23204 | wxDateSpan *arg2 = 0 ; | |
23205 | bool result; | |
23206 | PyObject * obj0 = 0 ; | |
23207 | PyObject * obj1 = 0 ; | |
23208 | char *kwnames[] = { | |
23209 | (char *) "self",(char *) "other", NULL | |
23210 | }; | |
23211 | ||
23212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
23213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23214 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23215 | if (arg2 == NULL) { | |
23216 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23217 | } | |
23218 | { | |
23219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23220 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const &)*arg2); | |
23221 | ||
23222 | wxPyEndAllowThreads(__tstate); | |
23223 | if (PyErr_Occurred()) SWIG_fail; | |
23224 | } | |
4d5c3d91 | 23225 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23226 | return resultobj; |
23227 | fail: | |
23228 | return NULL; | |
23229 | } | |
23230 | ||
23231 | ||
23232 | static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23233 | PyObject *resultobj; | |
23234 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23235 | wxDateSpan *arg2 = 0 ; | |
23236 | bool result; | |
23237 | PyObject * obj0 = 0 ; | |
23238 | PyObject * obj1 = 0 ; | |
23239 | char *kwnames[] = { | |
23240 | (char *) "self",(char *) "other", NULL | |
23241 | }; | |
23242 | ||
23243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
23244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23245 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23246 | if (arg2 == NULL) { | |
23247 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23248 | } | |
23249 | { | |
23250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23251 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const &)*arg2); | |
23252 | ||
23253 | wxPyEndAllowThreads(__tstate); | |
23254 | if (PyErr_Occurred()) SWIG_fail; | |
23255 | } | |
4d5c3d91 | 23256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23257 | return resultobj; |
23258 | fail: | |
23259 | return NULL; | |
23260 | } | |
23261 | ||
23262 | ||
23263 | static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) { | |
23264 | PyObject *obj; | |
23265 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23266 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
23267 | Py_INCREF(obj); | |
23268 | return Py_BuildValue((char *)""); | |
23269 | } | |
23270 | static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23271 | PyObject *resultobj; | |
23272 | long result; | |
23273 | char *kwnames[] = { | |
23274 | NULL | |
23275 | }; | |
23276 | ||
23277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
23278 | { | |
23279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23280 | result = (long)wxGetLocalTime(); | |
23281 | ||
23282 | wxPyEndAllowThreads(__tstate); | |
23283 | if (PyErr_Occurred()) SWIG_fail; | |
23284 | } | |
994141e6 | 23285 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
23286 | return resultobj; |
23287 | fail: | |
23288 | return NULL; | |
23289 | } | |
23290 | ||
23291 | ||
23292 | static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23293 | PyObject *resultobj; | |
23294 | long result; | |
23295 | char *kwnames[] = { | |
23296 | NULL | |
23297 | }; | |
23298 | ||
23299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
23300 | { | |
23301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23302 | result = (long)wxGetUTCTime(); | |
23303 | ||
23304 | wxPyEndAllowThreads(__tstate); | |
23305 | if (PyErr_Occurred()) SWIG_fail; | |
23306 | } | |
994141e6 | 23307 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
23308 | return resultobj; |
23309 | fail: | |
23310 | return NULL; | |
23311 | } | |
23312 | ||
23313 | ||
23314 | static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23315 | PyObject *resultobj; | |
23316 | long result; | |
23317 | char *kwnames[] = { | |
23318 | NULL | |
23319 | }; | |
23320 | ||
23321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
23322 | { | |
23323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23324 | result = (long)wxGetCurrentTime(); | |
23325 | ||
23326 | wxPyEndAllowThreads(__tstate); | |
23327 | if (PyErr_Occurred()) SWIG_fail; | |
23328 | } | |
994141e6 | 23329 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
23330 | return resultobj; |
23331 | fail: | |
23332 | return NULL; | |
23333 | } | |
23334 | ||
23335 | ||
23336 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23337 | PyObject *resultobj; | |
23338 | wxLongLong result; | |
23339 | char *kwnames[] = { | |
23340 | NULL | |
23341 | }; | |
23342 | ||
23343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
23344 | { | |
23345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23346 | result = wxGetLocalTimeMillis(); | |
23347 | ||
23348 | wxPyEndAllowThreads(__tstate); | |
23349 | if (PyErr_Occurred()) SWIG_fail; | |
23350 | } | |
23351 | { | |
23352 | PyObject *hi, *lo, *shifter, *shifted; | |
23353 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
23354 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
23355 | shifter = PyLong_FromLong(32); | |
23356 | shifted = PyNumber_Lshift(hi, shifter); | |
23357 | resultobj = PyNumber_Or(shifted, lo); | |
23358 | Py_DECREF(hi); | |
23359 | Py_DECREF(lo); | |
23360 | Py_DECREF(shifter); | |
23361 | Py_DECREF(shifted); | |
23362 | } | |
23363 | return resultobj; | |
23364 | fail: | |
23365 | return NULL; | |
23366 | } | |
23367 | ||
23368 | ||
23369 | static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23370 | PyObject *resultobj; | |
23371 | int arg1 ; | |
23372 | wxDataFormat *result; | |
994141e6 | 23373 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
23374 | char *kwnames[] = { |
23375 | (char *) "type", NULL | |
23376 | }; | |
23377 | ||
994141e6 RD |
23378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; |
23379 | { | |
23380 | arg1 = (wxDataFormatId) SWIG_PyObj_AsInt(obj0); | |
23381 | if (PyErr_Occurred()) SWIG_fail; | |
23382 | } | |
d14a1e28 RD |
23383 | { |
23384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23385 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
23386 | ||
23387 | wxPyEndAllowThreads(__tstate); | |
23388 | if (PyErr_Occurred()) SWIG_fail; | |
23389 | } | |
23390 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 1); | |
23391 | return resultobj; | |
23392 | fail: | |
23393 | return NULL; | |
23394 | } | |
23395 | ||
23396 | ||
23397 | static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23398 | PyObject *resultobj; | |
23399 | wxString *arg1 = 0 ; | |
23400 | wxDataFormat *result; | |
e811c8ce | 23401 | bool temp1 = False ; |
d14a1e28 RD |
23402 | PyObject * obj0 = 0 ; |
23403 | char *kwnames[] = { | |
23404 | (char *) "format", NULL | |
23405 | }; | |
23406 | ||
23407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
23408 | { | |
23409 | arg1 = wxString_in_helper(obj0); | |
23410 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 23411 | temp1 = True; |
d14a1e28 RD |
23412 | } |
23413 | { | |
23414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23415 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
23416 | ||
23417 | wxPyEndAllowThreads(__tstate); | |
23418 | if (PyErr_Occurred()) SWIG_fail; | |
23419 | } | |
23420 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 1); | |
23421 | { | |
23422 | if (temp1) | |
23423 | delete arg1; | |
23424 | } | |
23425 | return resultobj; | |
23426 | fail: | |
23427 | { | |
23428 | if (temp1) | |
23429 | delete arg1; | |
23430 | } | |
23431 | return NULL; | |
23432 | } | |
23433 | ||
23434 | ||
23435 | static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23436 | PyObject *resultobj; | |
23437 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23438 | PyObject * obj0 = 0 ; | |
23439 | char *kwnames[] = { | |
23440 | (char *) "self", NULL | |
23441 | }; | |
23442 | ||
23443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
23444 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23445 | { | |
23446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23447 | delete arg1; | |
23448 | ||
23449 | wxPyEndAllowThreads(__tstate); | |
23450 | if (PyErr_Occurred()) SWIG_fail; | |
23451 | } | |
23452 | Py_INCREF(Py_None); resultobj = Py_None; | |
23453 | return resultobj; | |
23454 | fail: | |
23455 | return NULL; | |
23456 | } | |
23457 | ||
23458 | ||
23459 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) { | |
23460 | PyObject *resultobj; | |
23461 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23462 | int arg2 ; | |
23463 | bool result; | |
23464 | PyObject * obj0 = 0 ; | |
994141e6 | 23465 | PyObject * obj1 = 0 ; |
d14a1e28 | 23466 | |
994141e6 | 23467 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; |
d14a1e28 | 23468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
23469 | { |
23470 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23471 | if (PyErr_Occurred()) SWIG_fail; | |
23472 | } | |
d14a1e28 RD |
23473 | { |
23474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 23475 | result = (bool)((wxDataFormat const *)arg1)->operator ==(arg2); |
d14a1e28 RD |
23476 | |
23477 | wxPyEndAllowThreads(__tstate); | |
23478 | if (PyErr_Occurred()) SWIG_fail; | |
23479 | } | |
4d5c3d91 | 23480 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23481 | return resultobj; |
23482 | fail: | |
23483 | return NULL; | |
23484 | } | |
23485 | ||
23486 | ||
23487 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) { | |
23488 | PyObject *resultobj; | |
23489 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23490 | int arg2 ; | |
23491 | bool result; | |
23492 | PyObject * obj0 = 0 ; | |
994141e6 | 23493 | PyObject * obj1 = 0 ; |
d14a1e28 | 23494 | |
994141e6 | 23495 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; |
d14a1e28 | 23496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
23497 | { |
23498 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23499 | if (PyErr_Occurred()) SWIG_fail; | |
23500 | } | |
d14a1e28 RD |
23501 | { |
23502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 23503 | result = (bool)((wxDataFormat const *)arg1)->operator !=(arg2); |
d14a1e28 RD |
23504 | |
23505 | wxPyEndAllowThreads(__tstate); | |
23506 | if (PyErr_Occurred()) SWIG_fail; | |
23507 | } | |
4d5c3d91 | 23508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23509 | return resultobj; |
23510 | fail: | |
23511 | return NULL; | |
23512 | } | |
23513 | ||
23514 | ||
23515 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) { | |
23516 | PyObject *resultobj; | |
23517 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23518 | wxDataFormat *arg2 = 0 ; | |
23519 | bool result; | |
23520 | PyObject * obj0 = 0 ; | |
23521 | PyObject * obj1 = 0 ; | |
23522 | ||
23523 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
23524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23525 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23526 | if (arg2 == NULL) { | |
23527 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23528 | } | |
23529 | { | |
23530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23531 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
23532 | ||
23533 | wxPyEndAllowThreads(__tstate); | |
23534 | if (PyErr_Occurred()) SWIG_fail; | |
23535 | } | |
4d5c3d91 | 23536 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23537 | return resultobj; |
23538 | fail: | |
23539 | return NULL; | |
23540 | } | |
23541 | ||
23542 | ||
23543 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
23544 | int argc; | |
23545 | PyObject *argv[3]; | |
23546 | int ii; | |
23547 | ||
23548 | argc = PyObject_Length(args); | |
23549 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
23550 | argv[ii] = PyTuple_GetItem(args,ii); | |
23551 | } | |
23552 | if (argc == 2) { | |
23553 | int _v; | |
23554 | { | |
23555 | void *ptr; | |
23556 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23557 | _v = 0; | |
23558 | PyErr_Clear(); | |
23559 | } else { | |
23560 | _v = 1; | |
23561 | } | |
23562 | } | |
23563 | if (_v) { | |
23564 | { | |
23565 | void *ptr; | |
23566 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23567 | _v = 0; | |
23568 | PyErr_Clear(); | |
23569 | } else { | |
23570 | _v = 1; | |
23571 | } | |
23572 | } | |
23573 | if (_v) { | |
23574 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
23575 | } | |
23576 | } | |
23577 | } | |
23578 | if (argc == 2) { | |
23579 | int _v; | |
23580 | { | |
23581 | void *ptr; | |
23582 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23583 | _v = 0; | |
23584 | PyErr_Clear(); | |
23585 | } else { | |
23586 | _v = 1; | |
23587 | } | |
23588 | } | |
23589 | if (_v) { | |
23590 | { | |
994141e6 | 23591 | SWIG_PyObj_AsInt(argv[1]); |
a41e16b6 RD |
23592 | if (PyErr_Occurred()) { |
23593 | _v = 0; | |
23594 | PyErr_Clear(); | |
23595 | } else { | |
23596 | _v = 1; | |
23597 | } | |
d14a1e28 RD |
23598 | } |
23599 | if (_v) { | |
23600 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
23601 | } | |
23602 | } | |
23603 | } | |
23604 | ||
23605 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
23606 | return NULL; | |
23607 | } | |
23608 | ||
23609 | ||
23610 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) { | |
23611 | PyObject *resultobj; | |
23612 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23613 | wxDataFormat *arg2 = 0 ; | |
23614 | bool result; | |
23615 | PyObject * obj0 = 0 ; | |
23616 | PyObject * obj1 = 0 ; | |
23617 | ||
23618 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
23619 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23620 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23621 | if (arg2 == NULL) { | |
23622 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23623 | } | |
23624 | { | |
23625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23626 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
23627 | ||
23628 | wxPyEndAllowThreads(__tstate); | |
23629 | if (PyErr_Occurred()) SWIG_fail; | |
23630 | } | |
4d5c3d91 | 23631 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23632 | return resultobj; |
23633 | fail: | |
23634 | return NULL; | |
23635 | } | |
23636 | ||
23637 | ||
23638 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
23639 | int argc; | |
23640 | PyObject *argv[3]; | |
23641 | int ii; | |
23642 | ||
23643 | argc = PyObject_Length(args); | |
23644 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
23645 | argv[ii] = PyTuple_GetItem(args,ii); | |
23646 | } | |
23647 | if (argc == 2) { | |
23648 | int _v; | |
23649 | { | |
23650 | void *ptr; | |
23651 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23652 | _v = 0; | |
23653 | PyErr_Clear(); | |
23654 | } else { | |
23655 | _v = 1; | |
23656 | } | |
23657 | } | |
23658 | if (_v) { | |
23659 | { | |
23660 | void *ptr; | |
23661 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23662 | _v = 0; | |
23663 | PyErr_Clear(); | |
23664 | } else { | |
23665 | _v = 1; | |
23666 | } | |
23667 | } | |
23668 | if (_v) { | |
23669 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
23670 | } | |
23671 | } | |
23672 | } | |
23673 | if (argc == 2) { | |
23674 | int _v; | |
23675 | { | |
23676 | void *ptr; | |
23677 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23678 | _v = 0; | |
23679 | PyErr_Clear(); | |
23680 | } else { | |
23681 | _v = 1; | |
23682 | } | |
23683 | } | |
23684 | if (_v) { | |
23685 | { | |
994141e6 | 23686 | SWIG_PyObj_AsInt(argv[1]); |
a41e16b6 RD |
23687 | if (PyErr_Occurred()) { |
23688 | _v = 0; | |
23689 | PyErr_Clear(); | |
23690 | } else { | |
23691 | _v = 1; | |
23692 | } | |
d14a1e28 RD |
23693 | } |
23694 | if (_v) { | |
23695 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
23696 | } | |
23697 | } | |
23698 | } | |
23699 | ||
23700 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
23701 | return NULL; | |
23702 | } | |
23703 | ||
23704 | ||
23705 | static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23706 | PyObject *resultobj; | |
23707 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23708 | int arg2 ; | |
23709 | PyObject * obj0 = 0 ; | |
994141e6 | 23710 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23711 | char *kwnames[] = { |
23712 | (char *) "self",(char *) "format", NULL | |
23713 | }; | |
23714 | ||
994141e6 | 23715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 23716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
23717 | { |
23718 | arg2 = (wxDataFormatId) SWIG_PyObj_AsInt(obj1); | |
23719 | if (PyErr_Occurred()) SWIG_fail; | |
23720 | } | |
d14a1e28 RD |
23721 | { |
23722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23723 | (arg1)->SetType((wxDataFormatId )arg2); | |
23724 | ||
23725 | wxPyEndAllowThreads(__tstate); | |
23726 | if (PyErr_Occurred()) SWIG_fail; | |
23727 | } | |
23728 | Py_INCREF(Py_None); resultobj = Py_None; | |
23729 | return resultobj; | |
23730 | fail: | |
23731 | return NULL; | |
23732 | } | |
23733 | ||
23734 | ||
23735 | static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23736 | PyObject *resultobj; | |
23737 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23738 | int result; | |
23739 | PyObject * obj0 = 0 ; | |
23740 | char *kwnames[] = { | |
23741 | (char *) "self", NULL | |
23742 | }; | |
23743 | ||
23744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
23745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23746 | { | |
23747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23748 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
23749 | ||
23750 | wxPyEndAllowThreads(__tstate); | |
23751 | if (PyErr_Occurred()) SWIG_fail; | |
23752 | } | |
994141e6 | 23753 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
23754 | return resultobj; |
23755 | fail: | |
23756 | return NULL; | |
23757 | } | |
23758 | ||
23759 | ||
23760 | static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23761 | PyObject *resultobj; | |
23762 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23763 | wxString result; | |
23764 | PyObject * obj0 = 0 ; | |
23765 | char *kwnames[] = { | |
23766 | (char *) "self", NULL | |
23767 | }; | |
23768 | ||
23769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
23770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23771 | { | |
23772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23773 | result = ((wxDataFormat const *)arg1)->GetId(); | |
23774 | ||
23775 | wxPyEndAllowThreads(__tstate); | |
23776 | if (PyErr_Occurred()) SWIG_fail; | |
23777 | } | |
23778 | { | |
23779 | #if wxUSE_UNICODE | |
23780 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23781 | #else | |
23782 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23783 | #endif | |
23784 | } | |
23785 | return resultobj; | |
23786 | fail: | |
23787 | return NULL; | |
23788 | } | |
23789 | ||
23790 | ||
23791 | static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23792 | PyObject *resultobj; | |
23793 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23794 | wxString *arg2 = 0 ; | |
e811c8ce | 23795 | bool temp2 = False ; |
d14a1e28 RD |
23796 | PyObject * obj0 = 0 ; |
23797 | PyObject * obj1 = 0 ; | |
23798 | char *kwnames[] = { | |
23799 | (char *) "self",(char *) "format", NULL | |
23800 | }; | |
23801 | ||
23802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
23803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23804 | { | |
23805 | arg2 = wxString_in_helper(obj1); | |
23806 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 23807 | temp2 = True; |
d14a1e28 RD |
23808 | } |
23809 | { | |
23810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23811 | (arg1)->SetId((wxString const &)*arg2); | |
23812 | ||
23813 | wxPyEndAllowThreads(__tstate); | |
23814 | if (PyErr_Occurred()) SWIG_fail; | |
23815 | } | |
23816 | Py_INCREF(Py_None); resultobj = Py_None; | |
23817 | { | |
23818 | if (temp2) | |
23819 | delete arg2; | |
23820 | } | |
23821 | return resultobj; | |
23822 | fail: | |
23823 | { | |
23824 | if (temp2) | |
23825 | delete arg2; | |
23826 | } | |
23827 | return NULL; | |
23828 | } | |
23829 | ||
23830 | ||
23831 | static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) { | |
23832 | PyObject *obj; | |
23833 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23834 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
23835 | Py_INCREF(obj); | |
23836 | return Py_BuildValue((char *)""); | |
23837 | } | |
23838 | static int _wrap_FormatInvalid_set(PyObject *_val) { | |
23839 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); | |
23840 | return 1; | |
23841 | } | |
23842 | ||
23843 | ||
23844 | static PyObject *_wrap_FormatInvalid_get() { | |
23845 | PyObject *pyobj; | |
23846 | ||
23847 | pyobj = SWIG_NewPointerObj((void *) &wxFormatInvalid, SWIGTYPE_p_wxDataFormat, 0); | |
23848 | return pyobj; | |
23849 | } | |
23850 | ||
23851 | ||
23852 | static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23853 | PyObject *resultobj; | |
23854 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
23855 | PyObject * obj0 = 0 ; | |
23856 | char *kwnames[] = { | |
23857 | (char *) "self", NULL | |
23858 | }; | |
23859 | ||
23860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
23861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23862 | { | |
23863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23864 | delete arg1; | |
23865 | ||
23866 | wxPyEndAllowThreads(__tstate); | |
23867 | if (PyErr_Occurred()) SWIG_fail; | |
23868 | } | |
23869 | Py_INCREF(Py_None); resultobj = Py_None; | |
23870 | return resultobj; | |
23871 | fail: | |
23872 | return NULL; | |
23873 | } | |
23874 | ||
23875 | ||
23876 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23877 | PyObject *resultobj; | |
23878 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
23879 | int arg2 = (int) wxDataObject::Get ; | |
23880 | SwigValueWrapper< wxDataFormat > result; | |
23881 | PyObject * obj0 = 0 ; | |
994141e6 | 23882 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23883 | char *kwnames[] = { |
23884 | (char *) "self",(char *) "dir", NULL | |
23885 | }; | |
23886 | ||
994141e6 | 23887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 23888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
23889 | if (obj1) { |
23890 | { | |
23891 | arg2 = (wxDataObject::Direction) SWIG_PyObj_AsInt(obj1); | |
23892 | if (PyErr_Occurred()) SWIG_fail; | |
23893 | } | |
23894 | } | |
d14a1e28 RD |
23895 | { |
23896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23897 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
23898 | ||
23899 | wxPyEndAllowThreads(__tstate); | |
23900 | if (PyErr_Occurred()) SWIG_fail; | |
23901 | } | |
23902 | { | |
23903 | wxDataFormat * resultptr; | |
23904 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
23905 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDataFormat, 1); | |
23906 | } | |
23907 | return resultobj; | |
23908 | fail: | |
23909 | return NULL; | |
23910 | } | |
23911 | ||
23912 | ||
23913 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23914 | PyObject *resultobj; | |
23915 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
23916 | int arg2 = (int) wxDataObject::Get ; | |
23917 | size_t result; | |
23918 | PyObject * obj0 = 0 ; | |
994141e6 | 23919 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23920 | char *kwnames[] = { |
23921 | (char *) "self",(char *) "dir", NULL | |
23922 | }; | |
23923 | ||
994141e6 | 23924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 23925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
23926 | if (obj1) { |
23927 | { | |
23928 | arg2 = (wxDataObject::Direction) SWIG_PyObj_AsInt(obj1); | |
23929 | if (PyErr_Occurred()) SWIG_fail; | |
23930 | } | |
23931 | } | |
d14a1e28 RD |
23932 | { |
23933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23934 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
23935 | ||
23936 | wxPyEndAllowThreads(__tstate); | |
23937 | if (PyErr_Occurred()) SWIG_fail; | |
23938 | } | |
994141e6 | 23939 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
23940 | return resultobj; |
23941 | fail: | |
23942 | return NULL; | |
23943 | } | |
23944 | ||
23945 | ||
23946 | static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23947 | PyObject *resultobj; | |
23948 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
23949 | wxDataFormat *arg2 = 0 ; | |
23950 | int arg3 = (int) wxDataObject::Get ; | |
23951 | bool result; | |
23952 | PyObject * obj0 = 0 ; | |
23953 | PyObject * obj1 = 0 ; | |
994141e6 | 23954 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
23955 | char *kwnames[] = { |
23956 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
23957 | }; | |
23958 | ||
994141e6 | 23959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
23960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
23961 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23962 | if (arg2 == NULL) { | |
23963 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23964 | } | |
994141e6 RD |
23965 | if (obj2) { |
23966 | { | |
23967 | arg3 = (wxDataObject::Direction) SWIG_PyObj_AsInt(obj2); | |
23968 | if (PyErr_Occurred()) SWIG_fail; | |
23969 | } | |
23970 | } | |
d14a1e28 RD |
23971 | { |
23972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23973 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
23974 | ||
23975 | wxPyEndAllowThreads(__tstate); | |
23976 | if (PyErr_Occurred()) SWIG_fail; | |
23977 | } | |
4d5c3d91 | 23978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23979 | return resultobj; |
23980 | fail: | |
23981 | return NULL; | |
23982 | } | |
23983 | ||
23984 | ||
23985 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23986 | PyObject *resultobj; | |
23987 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
23988 | wxDataFormat *arg2 = 0 ; | |
23989 | size_t result; | |
23990 | PyObject * obj0 = 0 ; | |
23991 | PyObject * obj1 = 0 ; | |
23992 | char *kwnames[] = { | |
23993 | (char *) "self",(char *) "format", NULL | |
23994 | }; | |
23995 | ||
23996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
23997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23998 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23999 | if (arg2 == NULL) { | |
24000 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24001 | } | |
24002 | { | |
24003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24004 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
24005 | ||
24006 | wxPyEndAllowThreads(__tstate); | |
24007 | if (PyErr_Occurred()) SWIG_fail; | |
24008 | } | |
994141e6 | 24009 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24010 | return resultobj; |
24011 | fail: | |
24012 | return NULL; | |
24013 | } | |
24014 | ||
24015 | ||
24016 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24017 | PyObject *resultobj; | |
24018 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24019 | wxDataFormat *arg2 = (wxDataFormat *) 0 ; | |
24020 | int arg3 = (int) wxDataObject::Get ; | |
24021 | PyObject * obj0 = 0 ; | |
24022 | PyObject * obj1 = 0 ; | |
994141e6 | 24023 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24024 | char *kwnames[] = { |
24025 | (char *) "self",(char *) "formats",(char *) "dir", NULL | |
24026 | }; | |
24027 | ||
994141e6 | 24028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
24029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
24030 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
24031 | if (obj2) { |
24032 | { | |
24033 | arg3 = (wxDataObject::Direction) SWIG_PyObj_AsInt(obj2); | |
24034 | if (PyErr_Occurred()) SWIG_fail; | |
24035 | } | |
24036 | } | |
d14a1e28 RD |
24037 | { |
24038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24039 | ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3); | |
24040 | ||
24041 | wxPyEndAllowThreads(__tstate); | |
24042 | if (PyErr_Occurred()) SWIG_fail; | |
24043 | } | |
24044 | Py_INCREF(Py_None); resultobj = Py_None; | |
24045 | return resultobj; | |
24046 | fail: | |
24047 | return NULL; | |
24048 | } | |
24049 | ||
24050 | ||
24051 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24052 | PyObject *resultobj; | |
24053 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24054 | wxDataFormat *arg2 = 0 ; | |
24055 | void *arg3 = (void *) 0 ; | |
24056 | bool result; | |
24057 | PyObject * obj0 = 0 ; | |
24058 | PyObject * obj1 = 0 ; | |
24059 | PyObject * obj2 = 0 ; | |
24060 | char *kwnames[] = { | |
24061 | (char *) "self",(char *) "format",(char *) "buf", NULL | |
24062 | }; | |
24063 | ||
24064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24066 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24067 | if (arg2 == NULL) { | |
24068 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24069 | } | |
24070 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24071 | { | |
24072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24073 | result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3); | |
24074 | ||
24075 | wxPyEndAllowThreads(__tstate); | |
24076 | if (PyErr_Occurred()) SWIG_fail; | |
24077 | } | |
4d5c3d91 | 24078 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24079 | return resultobj; |
24080 | fail: | |
24081 | return NULL; | |
24082 | } | |
24083 | ||
24084 | ||
24085 | static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24086 | PyObject *resultobj; | |
24087 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24088 | wxDataFormat *arg2 = 0 ; | |
24089 | size_t arg3 ; | |
24090 | void *arg4 = (void *) 0 ; | |
24091 | bool result; | |
24092 | PyObject * obj0 = 0 ; | |
24093 | PyObject * obj1 = 0 ; | |
24094 | PyObject * obj2 = 0 ; | |
24095 | PyObject * obj3 = 0 ; | |
24096 | char *kwnames[] = { | |
24097 | (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL | |
24098 | }; | |
24099 | ||
24100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
24101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24102 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24103 | if (arg2 == NULL) { | |
24104 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24105 | } | |
a41e16b6 | 24106 | { |
994141e6 | 24107 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
a41e16b6 RD |
24108 | if (PyErr_Occurred()) SWIG_fail; |
24109 | } | |
d14a1e28 RD |
24110 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
24111 | { | |
24112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24113 | result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4); | |
24114 | ||
24115 | wxPyEndAllowThreads(__tstate); | |
24116 | if (PyErr_Occurred()) SWIG_fail; | |
24117 | } | |
4d5c3d91 | 24118 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24119 | return resultobj; |
24120 | fail: | |
24121 | return NULL; | |
24122 | } | |
24123 | ||
24124 | ||
24125 | static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) { | |
24126 | PyObject *obj; | |
24127 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24128 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
24129 | Py_INCREF(obj); | |
24130 | return Py_BuildValue((char *)""); | |
24131 | } | |
24132 | static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24133 | PyObject *resultobj; | |
24134 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24135 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24136 | wxDataObjectSimple *result; | |
24137 | PyObject * obj0 = 0 ; | |
24138 | char *kwnames[] = { | |
24139 | (char *) "format", NULL | |
24140 | }; | |
24141 | ||
24142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
24143 | if (obj0) { | |
24144 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24145 | if (arg1 == NULL) { | |
24146 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24147 | } | |
24148 | } | |
24149 | { | |
24150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24151 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
24152 | ||
24153 | wxPyEndAllowThreads(__tstate); | |
24154 | if (PyErr_Occurred()) SWIG_fail; | |
24155 | } | |
24156 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObjectSimple, 1); | |
24157 | return resultobj; | |
24158 | fail: | |
24159 | return NULL; | |
24160 | } | |
24161 | ||
24162 | ||
24163 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24164 | PyObject *resultobj; | |
24165 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24166 | wxDataFormat *result; | |
24167 | PyObject * obj0 = 0 ; | |
24168 | char *kwnames[] = { | |
24169 | (char *) "self", NULL | |
24170 | }; | |
24171 | ||
24172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
24173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24174 | { | |
24175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24176 | { | |
24177 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
24178 | result = (wxDataFormat *) &_result_ref; | |
24179 | } | |
24180 | ||
24181 | wxPyEndAllowThreads(__tstate); | |
24182 | if (PyErr_Occurred()) SWIG_fail; | |
24183 | } | |
24184 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 0); | |
24185 | return resultobj; | |
24186 | fail: | |
24187 | return NULL; | |
24188 | } | |
24189 | ||
24190 | ||
24191 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24192 | PyObject *resultobj; | |
24193 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24194 | wxDataFormat *arg2 = 0 ; | |
24195 | PyObject * obj0 = 0 ; | |
24196 | PyObject * obj1 = 0 ; | |
24197 | char *kwnames[] = { | |
24198 | (char *) "self",(char *) "format", NULL | |
24199 | }; | |
24200 | ||
24201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
24202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24203 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24204 | if (arg2 == NULL) { | |
24205 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24206 | } | |
24207 | { | |
24208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24209 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
24210 | ||
24211 | wxPyEndAllowThreads(__tstate); | |
24212 | if (PyErr_Occurred()) SWIG_fail; | |
24213 | } | |
24214 | Py_INCREF(Py_None); resultobj = Py_None; | |
24215 | return resultobj; | |
24216 | fail: | |
24217 | return NULL; | |
24218 | } | |
24219 | ||
24220 | ||
24221 | static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
24222 | PyObject *obj; | |
24223 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24224 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
24225 | Py_INCREF(obj); | |
24226 | return Py_BuildValue((char *)""); | |
24227 | } | |
24228 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24229 | PyObject *resultobj; | |
24230 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24231 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24232 | wxPyDataObjectSimple *result; | |
24233 | PyObject * obj0 = 0 ; | |
24234 | char *kwnames[] = { | |
24235 | (char *) "format", NULL | |
24236 | }; | |
24237 | ||
24238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
24239 | if (obj0) { | |
24240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24241 | if (arg1 == NULL) { | |
24242 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24243 | } | |
24244 | } | |
24245 | { | |
24246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24247 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
24248 | ||
24249 | wxPyEndAllowThreads(__tstate); | |
24250 | if (PyErr_Occurred()) SWIG_fail; | |
24251 | } | |
24252 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDataObjectSimple, 1); | |
24253 | return resultobj; | |
24254 | fail: | |
24255 | return NULL; | |
24256 | } | |
24257 | ||
24258 | ||
24259 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24260 | PyObject *resultobj; | |
24261 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
24262 | PyObject *arg2 = (PyObject *) 0 ; | |
24263 | PyObject *arg3 = (PyObject *) 0 ; | |
24264 | PyObject * obj0 = 0 ; | |
24265 | PyObject * obj1 = 0 ; | |
24266 | PyObject * obj2 = 0 ; | |
24267 | char *kwnames[] = { | |
24268 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24269 | }; | |
24270 | ||
24271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24272 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24273 | arg2 = obj1; | |
24274 | arg3 = obj2; | |
24275 | { | |
24276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24277 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24278 | ||
24279 | wxPyEndAllowThreads(__tstate); | |
24280 | if (PyErr_Occurred()) SWIG_fail; | |
24281 | } | |
24282 | Py_INCREF(Py_None); resultobj = Py_None; | |
24283 | return resultobj; | |
24284 | fail: | |
24285 | return NULL; | |
24286 | } | |
24287 | ||
24288 | ||
24289 | static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
24290 | PyObject *obj; | |
24291 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24292 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
24293 | Py_INCREF(obj); | |
24294 | return Py_BuildValue((char *)""); | |
24295 | } | |
24296 | static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24297 | PyObject *resultobj; | |
24298 | wxDataObjectComposite *result; | |
24299 | char *kwnames[] = { | |
24300 | NULL | |
24301 | }; | |
24302 | ||
24303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
24304 | { | |
24305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24306 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
24307 | ||
24308 | wxPyEndAllowThreads(__tstate); | |
24309 | if (PyErr_Occurred()) SWIG_fail; | |
24310 | } | |
24311 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObjectComposite, 1); | |
24312 | return resultobj; | |
24313 | fail: | |
24314 | return NULL; | |
24315 | } | |
24316 | ||
24317 | ||
24318 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24319 | PyObject *resultobj; | |
24320 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
24321 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
e811c8ce | 24322 | int arg3 = (int) False ; |
d14a1e28 RD |
24323 | PyObject * obj0 = 0 ; |
24324 | PyObject * obj1 = 0 ; | |
994141e6 | 24325 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24326 | char *kwnames[] = { |
24327 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
24328 | }; | |
24329 | ||
994141e6 | 24330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 24331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectComposite,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
58203fa6 | 24332 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
994141e6 RD |
24333 | if (obj2) { |
24334 | { | |
24335 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
24336 | if (PyErr_Occurred()) SWIG_fail; | |
24337 | } | |
24338 | } | |
d14a1e28 RD |
24339 | { |
24340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24341 | (arg1)->Add(arg2,arg3); | |
24342 | ||
24343 | wxPyEndAllowThreads(__tstate); | |
24344 | if (PyErr_Occurred()) SWIG_fail; | |
24345 | } | |
24346 | Py_INCREF(Py_None); resultobj = Py_None; | |
24347 | return resultobj; | |
24348 | fail: | |
24349 | return NULL; | |
24350 | } | |
24351 | ||
24352 | ||
24353 | static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) { | |
24354 | PyObject *obj; | |
24355 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24356 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
24357 | Py_INCREF(obj); | |
24358 | return Py_BuildValue((char *)""); | |
24359 | } | |
24360 | static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24361 | PyObject *resultobj; | |
24362 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24363 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24364 | wxTextDataObject *result; | |
e811c8ce | 24365 | bool temp1 = False ; |
d14a1e28 RD |
24366 | PyObject * obj0 = 0 ; |
24367 | char *kwnames[] = { | |
24368 | (char *) "text", NULL | |
24369 | }; | |
24370 | ||
24371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
24372 | if (obj0) { | |
24373 | { | |
24374 | arg1 = wxString_in_helper(obj0); | |
24375 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 24376 | temp1 = True; |
d14a1e28 RD |
24377 | } |
24378 | } | |
24379 | { | |
24380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24381 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
24382 | ||
24383 | wxPyEndAllowThreads(__tstate); | |
24384 | if (PyErr_Occurred()) SWIG_fail; | |
24385 | } | |
24386 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextDataObject, 1); | |
24387 | { | |
24388 | if (temp1) | |
24389 | delete arg1; | |
24390 | } | |
24391 | return resultobj; | |
24392 | fail: | |
24393 | { | |
24394 | if (temp1) | |
24395 | delete arg1; | |
24396 | } | |
24397 | return NULL; | |
24398 | } | |
24399 | ||
24400 | ||
24401 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24402 | PyObject *resultobj; | |
24403 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24404 | size_t result; | |
24405 | PyObject * obj0 = 0 ; | |
24406 | char *kwnames[] = { | |
24407 | (char *) "self", NULL | |
24408 | }; | |
24409 | ||
24410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
24411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24412 | { | |
24413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24414 | result = (size_t)(arg1)->GetTextLength(); | |
24415 | ||
24416 | wxPyEndAllowThreads(__tstate); | |
24417 | if (PyErr_Occurred()) SWIG_fail; | |
24418 | } | |
994141e6 | 24419 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24420 | return resultobj; |
24421 | fail: | |
24422 | return NULL; | |
24423 | } | |
24424 | ||
24425 | ||
24426 | static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24427 | PyObject *resultobj; | |
24428 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24429 | wxString result; | |
24430 | PyObject * obj0 = 0 ; | |
24431 | char *kwnames[] = { | |
24432 | (char *) "self", NULL | |
24433 | }; | |
24434 | ||
24435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
24436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24437 | { | |
24438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24439 | result = (arg1)->GetText(); | |
24440 | ||
24441 | wxPyEndAllowThreads(__tstate); | |
24442 | if (PyErr_Occurred()) SWIG_fail; | |
24443 | } | |
24444 | { | |
24445 | #if wxUSE_UNICODE | |
24446 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24447 | #else | |
24448 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24449 | #endif | |
24450 | } | |
24451 | return resultobj; | |
24452 | fail: | |
24453 | return NULL; | |
24454 | } | |
24455 | ||
24456 | ||
24457 | static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24458 | PyObject *resultobj; | |
24459 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24460 | wxString *arg2 = 0 ; | |
e811c8ce | 24461 | bool temp2 = False ; |
d14a1e28 RD |
24462 | PyObject * obj0 = 0 ; |
24463 | PyObject * obj1 = 0 ; | |
24464 | char *kwnames[] = { | |
24465 | (char *) "self",(char *) "text", NULL | |
24466 | }; | |
24467 | ||
24468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
24469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24470 | { | |
24471 | arg2 = wxString_in_helper(obj1); | |
24472 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24473 | temp2 = True; |
d14a1e28 RD |
24474 | } |
24475 | { | |
24476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24477 | (arg1)->SetText((wxString const &)*arg2); | |
24478 | ||
24479 | wxPyEndAllowThreads(__tstate); | |
24480 | if (PyErr_Occurred()) SWIG_fail; | |
24481 | } | |
24482 | Py_INCREF(Py_None); resultobj = Py_None; | |
24483 | { | |
24484 | if (temp2) | |
24485 | delete arg2; | |
24486 | } | |
24487 | return resultobj; | |
24488 | fail: | |
24489 | { | |
24490 | if (temp2) | |
24491 | delete arg2; | |
24492 | } | |
24493 | return NULL; | |
24494 | } | |
24495 | ||
24496 | ||
24497 | static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) { | |
24498 | PyObject *obj; | |
24499 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24500 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
24501 | Py_INCREF(obj); | |
24502 | return Py_BuildValue((char *)""); | |
24503 | } | |
24504 | static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24505 | PyObject *resultobj; | |
24506 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24507 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24508 | wxPyTextDataObject *result; | |
e811c8ce | 24509 | bool temp1 = False ; |
d14a1e28 RD |
24510 | PyObject * obj0 = 0 ; |
24511 | char *kwnames[] = { | |
24512 | (char *) "text", NULL | |
24513 | }; | |
24514 | ||
24515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
24516 | if (obj0) { | |
24517 | { | |
24518 | arg1 = wxString_in_helper(obj0); | |
24519 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 24520 | temp1 = True; |
d14a1e28 RD |
24521 | } |
24522 | } | |
24523 | { | |
24524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24525 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
24526 | ||
24527 | wxPyEndAllowThreads(__tstate); | |
24528 | if (PyErr_Occurred()) SWIG_fail; | |
24529 | } | |
24530 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextDataObject, 1); | |
24531 | { | |
24532 | if (temp1) | |
24533 | delete arg1; | |
24534 | } | |
24535 | return resultobj; | |
24536 | fail: | |
24537 | { | |
24538 | if (temp1) | |
24539 | delete arg1; | |
24540 | } | |
24541 | return NULL; | |
24542 | } | |
24543 | ||
24544 | ||
24545 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24546 | PyObject *resultobj; | |
24547 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
24548 | PyObject *arg2 = (PyObject *) 0 ; | |
24549 | PyObject *arg3 = (PyObject *) 0 ; | |
24550 | PyObject * obj0 = 0 ; | |
24551 | PyObject * obj1 = 0 ; | |
24552 | PyObject * obj2 = 0 ; | |
24553 | char *kwnames[] = { | |
24554 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24555 | }; | |
24556 | ||
24557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24558 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24559 | arg2 = obj1; | |
24560 | arg3 = obj2; | |
24561 | { | |
24562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24563 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24564 | ||
24565 | wxPyEndAllowThreads(__tstate); | |
24566 | if (PyErr_Occurred()) SWIG_fail; | |
24567 | } | |
24568 | Py_INCREF(Py_None); resultobj = Py_None; | |
24569 | return resultobj; | |
24570 | fail: | |
24571 | return NULL; | |
24572 | } | |
24573 | ||
24574 | ||
24575 | static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) { | |
24576 | PyObject *obj; | |
24577 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24578 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
24579 | Py_INCREF(obj); | |
24580 | return Py_BuildValue((char *)""); | |
24581 | } | |
24582 | static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24583 | PyObject *resultobj; | |
24584 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
24585 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
24586 | wxBitmapDataObject *result; | |
24587 | PyObject * obj0 = 0 ; | |
24588 | char *kwnames[] = { | |
24589 | (char *) "bitmap", NULL | |
24590 | }; | |
24591 | ||
24592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
24593 | if (obj0) { | |
24594 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24595 | if (arg1 == NULL) { | |
24596 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24597 | } | |
24598 | } | |
24599 | { | |
24600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24601 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
24602 | ||
24603 | wxPyEndAllowThreads(__tstate); | |
24604 | if (PyErr_Occurred()) SWIG_fail; | |
24605 | } | |
24606 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmapDataObject, 1); | |
24607 | return resultobj; | |
24608 | fail: | |
24609 | return NULL; | |
24610 | } | |
24611 | ||
24612 | ||
24613 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24614 | PyObject *resultobj; | |
24615 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
24616 | wxBitmap result; | |
24617 | PyObject * obj0 = 0 ; | |
24618 | char *kwnames[] = { | |
24619 | (char *) "self", NULL | |
24620 | }; | |
24621 | ||
24622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
24623 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24624 | { | |
24625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24626 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
24627 | ||
24628 | wxPyEndAllowThreads(__tstate); | |
24629 | if (PyErr_Occurred()) SWIG_fail; | |
24630 | } | |
24631 | { | |
24632 | wxBitmap * resultptr; | |
24633 | resultptr = new wxBitmap((wxBitmap &) result); | |
24634 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
24635 | } | |
24636 | return resultobj; | |
24637 | fail: | |
24638 | return NULL; | |
24639 | } | |
24640 | ||
24641 | ||
24642 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24643 | PyObject *resultobj; | |
24644 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
24645 | wxBitmap *arg2 = 0 ; | |
24646 | PyObject * obj0 = 0 ; | |
24647 | PyObject * obj1 = 0 ; | |
24648 | char *kwnames[] = { | |
24649 | (char *) "self",(char *) "bitmap", NULL | |
24650 | }; | |
24651 | ||
24652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
24653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24654 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24655 | if (arg2 == NULL) { | |
24656 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24657 | } | |
24658 | { | |
24659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24660 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
24661 | ||
24662 | wxPyEndAllowThreads(__tstate); | |
24663 | if (PyErr_Occurred()) SWIG_fail; | |
24664 | } | |
24665 | Py_INCREF(Py_None); resultobj = Py_None; | |
24666 | return resultobj; | |
24667 | fail: | |
24668 | return NULL; | |
24669 | } | |
24670 | ||
24671 | ||
24672 | static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
24673 | PyObject *obj; | |
24674 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24675 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
24676 | Py_INCREF(obj); | |
24677 | return Py_BuildValue((char *)""); | |
24678 | } | |
24679 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24680 | PyObject *resultobj; | |
24681 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
24682 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
24683 | wxPyBitmapDataObject *result; | |
24684 | PyObject * obj0 = 0 ; | |
24685 | char *kwnames[] = { | |
24686 | (char *) "bitmap", NULL | |
24687 | }; | |
24688 | ||
24689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
24690 | if (obj0) { | |
24691 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24692 | if (arg1 == NULL) { | |
24693 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24694 | } | |
24695 | } | |
24696 | { | |
24697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24698 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
24699 | ||
24700 | wxPyEndAllowThreads(__tstate); | |
24701 | if (PyErr_Occurred()) SWIG_fail; | |
24702 | } | |
24703 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyBitmapDataObject, 1); | |
24704 | return resultobj; | |
24705 | fail: | |
24706 | return NULL; | |
24707 | } | |
24708 | ||
24709 | ||
24710 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24711 | PyObject *resultobj; | |
24712 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
24713 | PyObject *arg2 = (PyObject *) 0 ; | |
24714 | PyObject *arg3 = (PyObject *) 0 ; | |
24715 | PyObject * obj0 = 0 ; | |
24716 | PyObject * obj1 = 0 ; | |
24717 | PyObject * obj2 = 0 ; | |
24718 | char *kwnames[] = { | |
24719 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24720 | }; | |
24721 | ||
24722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24724 | arg2 = obj1; | |
24725 | arg3 = obj2; | |
24726 | { | |
24727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24728 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24729 | ||
24730 | wxPyEndAllowThreads(__tstate); | |
24731 | if (PyErr_Occurred()) SWIG_fail; | |
24732 | } | |
24733 | Py_INCREF(Py_None); resultobj = Py_None; | |
24734 | return resultobj; | |
24735 | fail: | |
24736 | return NULL; | |
24737 | } | |
24738 | ||
24739 | ||
24740 | static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
24741 | PyObject *obj; | |
24742 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24743 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
24744 | Py_INCREF(obj); | |
24745 | return Py_BuildValue((char *)""); | |
24746 | } | |
24747 | static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24748 | PyObject *resultobj; | |
24749 | wxFileDataObject *result; | |
24750 | char *kwnames[] = { | |
24751 | NULL | |
24752 | }; | |
24753 | ||
24754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
24755 | { | |
24756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24757 | result = (wxFileDataObject *)new wxFileDataObject(); | |
24758 | ||
24759 | wxPyEndAllowThreads(__tstate); | |
24760 | if (PyErr_Occurred()) SWIG_fail; | |
24761 | } | |
24762 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileDataObject, 1); | |
24763 | return resultobj; | |
24764 | fail: | |
24765 | return NULL; | |
24766 | } | |
24767 | ||
24768 | ||
24769 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24770 | PyObject *resultobj; | |
24771 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
24772 | wxArrayString *result; | |
24773 | PyObject * obj0 = 0 ; | |
24774 | char *kwnames[] = { | |
24775 | (char *) "self", NULL | |
24776 | }; | |
24777 | ||
24778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
24779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24780 | { | |
24781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24782 | { | |
24783 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
24784 | result = (wxArrayString *) &_result_ref; | |
24785 | } | |
24786 | ||
24787 | wxPyEndAllowThreads(__tstate); | |
24788 | if (PyErr_Occurred()) SWIG_fail; | |
24789 | } | |
24790 | { | |
24791 | resultobj = wxArrayString2PyList_helper(*result); | |
24792 | } | |
24793 | return resultobj; | |
24794 | fail: | |
24795 | return NULL; | |
24796 | } | |
24797 | ||
24798 | ||
24799 | static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) { | |
24800 | PyObject *obj; | |
24801 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24802 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
24803 | Py_INCREF(obj); | |
24804 | return Py_BuildValue((char *)""); | |
24805 | } | |
24806 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24807 | PyObject *resultobj; | |
24808 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24809 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24810 | wxCustomDataObject *result; | |
24811 | PyObject * obj0 = 0 ; | |
24812 | char *kwnames[] = { | |
24813 | (char *) "format", NULL | |
24814 | }; | |
24815 | ||
24816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
24817 | if (obj0) { | |
24818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24819 | if (arg1 == NULL) { | |
24820 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24821 | } | |
24822 | } | |
24823 | { | |
24824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24825 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
24826 | ||
24827 | wxPyEndAllowThreads(__tstate); | |
24828 | if (PyErr_Occurred()) SWIG_fail; | |
24829 | } | |
24830 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCustomDataObject, 1); | |
24831 | return resultobj; | |
24832 | fail: | |
24833 | return NULL; | |
24834 | } | |
24835 | ||
24836 | ||
24837 | static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24838 | PyObject *resultobj; | |
24839 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
24840 | PyObject *arg2 = (PyObject *) 0 ; | |
24841 | PyObject * obj0 = 0 ; | |
24842 | PyObject * obj1 = 0 ; | |
24843 | char *kwnames[] = { | |
24844 | (char *) "self",(char *) "data", NULL | |
24845 | }; | |
24846 | ||
24847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail; | |
24848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24849 | arg2 = obj1; | |
24850 | { | |
24851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24852 | wxCustomDataObject_TakeData(arg1,arg2); | |
24853 | ||
24854 | wxPyEndAllowThreads(__tstate); | |
24855 | if (PyErr_Occurred()) SWIG_fail; | |
24856 | } | |
24857 | Py_INCREF(Py_None); resultobj = Py_None; | |
24858 | return resultobj; | |
24859 | fail: | |
24860 | return NULL; | |
24861 | } | |
24862 | ||
24863 | ||
24864 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24865 | PyObject *resultobj; | |
24866 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
24867 | PyObject *arg2 = (PyObject *) 0 ; | |
24868 | bool result; | |
24869 | PyObject * obj0 = 0 ; | |
24870 | PyObject * obj1 = 0 ; | |
24871 | char *kwnames[] = { | |
24872 | (char *) "self",(char *) "data", NULL | |
24873 | }; | |
24874 | ||
24875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
24876 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24877 | arg2 = obj1; | |
24878 | { | |
24879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24880 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
24881 | ||
24882 | wxPyEndAllowThreads(__tstate); | |
24883 | if (PyErr_Occurred()) SWIG_fail; | |
24884 | } | |
4d5c3d91 | 24885 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24886 | return resultobj; |
24887 | fail: | |
24888 | return NULL; | |
24889 | } | |
24890 | ||
24891 | ||
24892 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24893 | PyObject *resultobj; | |
24894 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
24895 | size_t result; | |
24896 | PyObject * obj0 = 0 ; | |
24897 | char *kwnames[] = { | |
24898 | (char *) "self", NULL | |
24899 | }; | |
24900 | ||
24901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
24902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24903 | { | |
24904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24905 | result = (size_t)(arg1)->GetSize(); | |
24906 | ||
24907 | wxPyEndAllowThreads(__tstate); | |
24908 | if (PyErr_Occurred()) SWIG_fail; | |
24909 | } | |
994141e6 | 24910 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24911 | return resultobj; |
24912 | fail: | |
24913 | return NULL; | |
24914 | } | |
24915 | ||
24916 | ||
24917 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24918 | PyObject *resultobj; | |
24919 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
24920 | PyObject *result; | |
24921 | PyObject * obj0 = 0 ; | |
24922 | char *kwnames[] = { | |
24923 | (char *) "self", NULL | |
24924 | }; | |
24925 | ||
24926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
24927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24928 | { | |
24929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24930 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
24931 | ||
24932 | wxPyEndAllowThreads(__tstate); | |
24933 | if (PyErr_Occurred()) SWIG_fail; | |
24934 | } | |
24935 | resultobj = result; | |
24936 | return resultobj; | |
24937 | fail: | |
24938 | return NULL; | |
24939 | } | |
24940 | ||
24941 | ||
24942 | static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) { | |
24943 | PyObject *obj; | |
24944 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24945 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
24946 | Py_INCREF(obj); | |
24947 | return Py_BuildValue((char *)""); | |
24948 | } | |
24949 | static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24950 | PyObject *resultobj; | |
24951 | wxURLDataObject *result; | |
24952 | char *kwnames[] = { | |
24953 | NULL | |
24954 | }; | |
24955 | ||
24956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
24957 | { | |
24958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24959 | result = (wxURLDataObject *)new wxURLDataObject(); | |
24960 | ||
24961 | wxPyEndAllowThreads(__tstate); | |
24962 | if (PyErr_Occurred()) SWIG_fail; | |
24963 | } | |
24964 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxURLDataObject, 1); | |
24965 | return resultobj; | |
24966 | fail: | |
24967 | return NULL; | |
24968 | } | |
24969 | ||
24970 | ||
24971 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24972 | PyObject *resultobj; | |
24973 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
24974 | wxString result; | |
24975 | PyObject * obj0 = 0 ; | |
24976 | char *kwnames[] = { | |
24977 | (char *) "self", NULL | |
24978 | }; | |
24979 | ||
24980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
24981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxURLDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24982 | { | |
24983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24984 | result = (arg1)->GetURL(); | |
24985 | ||
24986 | wxPyEndAllowThreads(__tstate); | |
24987 | if (PyErr_Occurred()) SWIG_fail; | |
24988 | } | |
24989 | { | |
24990 | #if wxUSE_UNICODE | |
24991 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24992 | #else | |
24993 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24994 | #endif | |
24995 | } | |
24996 | return resultobj; | |
24997 | fail: | |
24998 | return NULL; | |
24999 | } | |
25000 | ||
25001 | ||
25002 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25003 | PyObject *resultobj; | |
25004 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25005 | wxString *arg2 = 0 ; | |
e811c8ce | 25006 | bool temp2 = False ; |
d14a1e28 RD |
25007 | PyObject * obj0 = 0 ; |
25008 | PyObject * obj1 = 0 ; | |
25009 | char *kwnames[] = { | |
25010 | (char *) "self",(char *) "url", NULL | |
25011 | }; | |
25012 | ||
25013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
25014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxURLDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25015 | { | |
25016 | arg2 = wxString_in_helper(obj1); | |
25017 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 25018 | temp2 = True; |
d14a1e28 RD |
25019 | } |
25020 | { | |
25021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25022 | (arg1)->SetURL((wxString const &)*arg2); | |
25023 | ||
25024 | wxPyEndAllowThreads(__tstate); | |
25025 | if (PyErr_Occurred()) SWIG_fail; | |
25026 | } | |
25027 | Py_INCREF(Py_None); resultobj = Py_None; | |
25028 | { | |
25029 | if (temp2) | |
25030 | delete arg2; | |
25031 | } | |
25032 | return resultobj; | |
25033 | fail: | |
25034 | { | |
25035 | if (temp2) | |
25036 | delete arg2; | |
25037 | } | |
25038 | return NULL; | |
25039 | } | |
25040 | ||
25041 | ||
25042 | static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) { | |
25043 | PyObject *obj; | |
25044 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25045 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
25046 | Py_INCREF(obj); | |
25047 | return Py_BuildValue((char *)""); | |
25048 | } | |
25049 | static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25050 | PyObject *resultobj; | |
25051 | wxMetafileDataObject *result; | |
25052 | char *kwnames[] = { | |
25053 | NULL | |
25054 | }; | |
25055 | ||
25056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
25057 | { | |
25058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25059 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
25060 | ||
25061 | wxPyEndAllowThreads(__tstate); | |
25062 | if (PyErr_Occurred()) SWIG_fail; | |
25063 | } | |
25064 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetafileDataObject, 1); | |
25065 | return resultobj; | |
25066 | fail: | |
25067 | return NULL; | |
25068 | } | |
25069 | ||
25070 | ||
25071 | static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) { | |
25072 | PyObject *obj; | |
25073 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25074 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
25075 | Py_INCREF(obj); | |
25076 | return Py_BuildValue((char *)""); | |
25077 | } | |
25078 | static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25079 | PyObject *resultobj; | |
25080 | int arg1 ; | |
25081 | bool result; | |
994141e6 | 25082 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
25083 | char *kwnames[] = { |
25084 | (char *) "res", NULL | |
25085 | }; | |
25086 | ||
994141e6 RD |
25087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; |
25088 | { | |
25089 | arg1 = (wxDragResult) SWIG_PyObj_AsInt(obj0); | |
25090 | if (PyErr_Occurred()) SWIG_fail; | |
25091 | } | |
d14a1e28 RD |
25092 | { |
25093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25094 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
25095 | ||
25096 | wxPyEndAllowThreads(__tstate); | |
25097 | if (PyErr_Occurred()) SWIG_fail; | |
25098 | } | |
4d5c3d91 | 25099 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25100 | return resultobj; |
25101 | fail: | |
25102 | return NULL; | |
25103 | } | |
25104 | ||
25105 | ||
25106 | static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25107 | PyObject *resultobj; | |
d1e20054 | 25108 | wxWindow *arg1 = (wxWindow *) 0 ; |
d14a1e28 RD |
25109 | wxIcon const &arg2_defvalue = wxNullIcon ; |
25110 | wxIcon *arg2 = (wxIcon *) &arg2_defvalue ; | |
25111 | wxIcon const &arg3_defvalue = wxNullIcon ; | |
25112 | wxIcon *arg3 = (wxIcon *) &arg3_defvalue ; | |
25113 | wxIcon const &arg4_defvalue = wxNullIcon ; | |
25114 | wxIcon *arg4 = (wxIcon *) &arg4_defvalue ; | |
25115 | wxPyDropSource *result; | |
25116 | PyObject * obj0 = 0 ; | |
25117 | PyObject * obj1 = 0 ; | |
25118 | PyObject * obj2 = 0 ; | |
25119 | PyObject * obj3 = 0 ; | |
25120 | char *kwnames[] = { | |
25121 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
25122 | }; | |
25123 | ||
d1e20054 RD |
25124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
25125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
25126 | if (obj1) { |
25127 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25128 | if (arg2 == NULL) { | |
25129 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25130 | } | |
25131 | } | |
25132 | if (obj2) { | |
25133 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25134 | if (arg3 == NULL) { | |
25135 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25136 | } | |
25137 | } | |
25138 | if (obj3) { | |
25139 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25140 | if (arg4 == NULL) { | |
25141 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25142 | } | |
25143 | } | |
25144 | { | |
25145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25146 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxIcon const &)*arg2,(wxIcon const &)*arg3,(wxIcon const &)*arg4); | |
25147 | ||
25148 | wxPyEndAllowThreads(__tstate); | |
25149 | if (PyErr_Occurred()) SWIG_fail; | |
25150 | } | |
25151 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropSource, 1); | |
25152 | return resultobj; | |
25153 | fail: | |
25154 | return NULL; | |
25155 | } | |
25156 | ||
25157 | ||
25158 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25159 | PyObject *resultobj; | |
25160 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25161 | PyObject *arg2 = (PyObject *) 0 ; | |
25162 | PyObject *arg3 = (PyObject *) 0 ; | |
25163 | int arg4 ; | |
25164 | PyObject * obj0 = 0 ; | |
25165 | PyObject * obj1 = 0 ; | |
25166 | PyObject * obj2 = 0 ; | |
994141e6 | 25167 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
25168 | char *kwnames[] = { |
25169 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
25170 | }; | |
25171 | ||
994141e6 | 25172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
25173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25174 | arg2 = obj1; | |
25175 | arg3 = obj2; | |
994141e6 RD |
25176 | { |
25177 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25178 | if (PyErr_Occurred()) SWIG_fail; | |
25179 | } | |
d14a1e28 RD |
25180 | { |
25181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25182 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
25183 | ||
25184 | wxPyEndAllowThreads(__tstate); | |
25185 | if (PyErr_Occurred()) SWIG_fail; | |
25186 | } | |
25187 | Py_INCREF(Py_None); resultobj = Py_None; | |
25188 | return resultobj; | |
25189 | fail: | |
25190 | return NULL; | |
25191 | } | |
25192 | ||
25193 | ||
25194 | static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25195 | PyObject *resultobj; | |
25196 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25197 | PyObject * obj0 = 0 ; | |
25198 | char *kwnames[] = { | |
25199 | (char *) "self", NULL | |
25200 | }; | |
25201 | ||
25202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
25203 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25204 | { | |
25205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25206 | delete arg1; | |
25207 | ||
25208 | wxPyEndAllowThreads(__tstate); | |
25209 | if (PyErr_Occurred()) SWIG_fail; | |
25210 | } | |
25211 | Py_INCREF(Py_None); resultobj = Py_None; | |
25212 | return resultobj; | |
25213 | fail: | |
25214 | return NULL; | |
25215 | } | |
25216 | ||
25217 | ||
25218 | static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25219 | PyObject *resultobj; | |
25220 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25221 | wxDataObject *arg2 = 0 ; | |
25222 | PyObject * obj0 = 0 ; | |
25223 | PyObject * obj1 = 0 ; | |
25224 | char *kwnames[] = { | |
25225 | (char *) "self",(char *) "data", NULL | |
25226 | }; | |
25227 | ||
25228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
25229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25230 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25231 | if (arg2 == NULL) { | |
25232 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25233 | } | |
25234 | { | |
25235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25236 | (arg1)->SetData(*arg2); | |
25237 | ||
25238 | wxPyEndAllowThreads(__tstate); | |
25239 | if (PyErr_Occurred()) SWIG_fail; | |
25240 | } | |
25241 | Py_INCREF(Py_None); resultobj = Py_None; | |
25242 | return resultobj; | |
25243 | fail: | |
25244 | return NULL; | |
25245 | } | |
25246 | ||
25247 | ||
25248 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25249 | PyObject *resultobj; | |
25250 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25251 | wxDataObject *result; | |
25252 | PyObject * obj0 = 0 ; | |
25253 | char *kwnames[] = { | |
25254 | (char *) "self", NULL | |
25255 | }; | |
25256 | ||
25257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
25258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25259 | { | |
25260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25261 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
25262 | ||
25263 | wxPyEndAllowThreads(__tstate); | |
25264 | if (PyErr_Occurred()) SWIG_fail; | |
25265 | } | |
25266 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObject, 0); | |
25267 | return resultobj; | |
25268 | fail: | |
25269 | return NULL; | |
25270 | } | |
25271 | ||
25272 | ||
25273 | static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25274 | PyObject *resultobj; | |
25275 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25276 | int arg2 ; | |
25277 | wxCursor *arg3 = 0 ; | |
25278 | PyObject * obj0 = 0 ; | |
994141e6 | 25279 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25280 | PyObject * obj2 = 0 ; |
25281 | char *kwnames[] = { | |
25282 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
25283 | }; | |
25284 | ||
994141e6 | 25285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 25286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
25287 | { |
25288 | arg2 = (wxDragResult) SWIG_PyObj_AsInt(obj1); | |
25289 | if (PyErr_Occurred()) SWIG_fail; | |
25290 | } | |
d14a1e28 RD |
25291 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25292 | if (arg3 == NULL) { | |
25293 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25294 | } | |
25295 | { | |
25296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25297 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
25298 | ||
25299 | wxPyEndAllowThreads(__tstate); | |
25300 | if (PyErr_Occurred()) SWIG_fail; | |
25301 | } | |
25302 | Py_INCREF(Py_None); resultobj = Py_None; | |
25303 | return resultobj; | |
25304 | fail: | |
25305 | return NULL; | |
25306 | } | |
25307 | ||
25308 | ||
25309 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25310 | PyObject *resultobj; | |
25311 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25312 | int arg2 = (int) wxDrag_CopyOnly ; | |
25313 | int result; | |
25314 | PyObject * obj0 = 0 ; | |
994141e6 | 25315 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25316 | char *kwnames[] = { |
25317 | (char *) "self",(char *) "flags", NULL | |
25318 | }; | |
25319 | ||
994141e6 | 25320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
25322 | if (obj1) { |
25323 | { | |
25324 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25325 | if (PyErr_Occurred()) SWIG_fail; | |
25326 | } | |
25327 | } | |
d14a1e28 RD |
25328 | { |
25329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25330 | result = (int)(arg1)->DoDragDrop(arg2); | |
25331 | ||
25332 | wxPyEndAllowThreads(__tstate); | |
25333 | if (PyErr_Occurred()) SWIG_fail; | |
25334 | } | |
994141e6 | 25335 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25336 | return resultobj; |
25337 | fail: | |
25338 | return NULL; | |
25339 | } | |
25340 | ||
25341 | ||
25342 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25343 | PyObject *resultobj; | |
25344 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25345 | int arg2 ; | |
25346 | bool result; | |
25347 | PyObject * obj0 = 0 ; | |
994141e6 | 25348 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25349 | char *kwnames[] = { |
25350 | (char *) "self",(char *) "effect", NULL | |
25351 | }; | |
25352 | ||
994141e6 | 25353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
25355 | { |
25356 | arg2 = (wxDragResult) SWIG_PyObj_AsInt(obj1); | |
25357 | if (PyErr_Occurred()) SWIG_fail; | |
25358 | } | |
d14a1e28 RD |
25359 | { |
25360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25361 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
25362 | ||
25363 | wxPyEndAllowThreads(__tstate); | |
25364 | if (PyErr_Occurred()) SWIG_fail; | |
25365 | } | |
4d5c3d91 | 25366 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25367 | return resultobj; |
25368 | fail: | |
25369 | return NULL; | |
25370 | } | |
25371 | ||
25372 | ||
25373 | static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) { | |
25374 | PyObject *obj; | |
25375 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25376 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
25377 | Py_INCREF(obj); | |
25378 | return Py_BuildValue((char *)""); | |
25379 | } | |
196addbf | 25380 | static PyObject *_wrap_new_PyDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25381 | PyObject *resultobj; |
25382 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
25383 | wxPyDropTarget *result; | |
25384 | PyObject * obj0 = 0 ; | |
25385 | char *kwnames[] = { | |
25386 | (char *) "dataObject", NULL | |
25387 | }; | |
25388 | ||
196addbf | 25389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDropTarget",kwnames,&obj0)) goto fail; |
d14a1e28 | 25390 | if (obj0) { |
58203fa6 | 25391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
25392 | } |
25393 | { | |
25394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25395 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
25396 | ||
25397 | wxPyEndAllowThreads(__tstate); | |
25398 | if (PyErr_Occurred()) SWIG_fail; | |
25399 | } | |
25400 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropTarget, 1); | |
25401 | return resultobj; | |
25402 | fail: | |
25403 | return NULL; | |
25404 | } | |
25405 | ||
25406 | ||
25407 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25408 | PyObject *resultobj; | |
25409 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25410 | PyObject *arg2 = (PyObject *) 0 ; | |
25411 | PyObject *arg3 = (PyObject *) 0 ; | |
25412 | PyObject * obj0 = 0 ; | |
25413 | PyObject * obj1 = 0 ; | |
25414 | PyObject * obj2 = 0 ; | |
25415 | char *kwnames[] = { | |
25416 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25417 | }; | |
25418 | ||
25419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25421 | arg2 = obj1; | |
25422 | arg3 = obj2; | |
25423 | { | |
25424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25425 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25426 | ||
25427 | wxPyEndAllowThreads(__tstate); | |
25428 | if (PyErr_Occurred()) SWIG_fail; | |
25429 | } | |
25430 | Py_INCREF(Py_None); resultobj = Py_None; | |
25431 | return resultobj; | |
25432 | fail: | |
25433 | return NULL; | |
25434 | } | |
25435 | ||
25436 | ||
25437 | static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25438 | PyObject *resultobj; | |
25439 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25440 | PyObject * obj0 = 0 ; | |
25441 | char *kwnames[] = { | |
25442 | (char *) "self", NULL | |
25443 | }; | |
25444 | ||
25445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
25446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25447 | { | |
25448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25449 | delete arg1; | |
25450 | ||
25451 | wxPyEndAllowThreads(__tstate); | |
25452 | if (PyErr_Occurred()) SWIG_fail; | |
25453 | } | |
25454 | Py_INCREF(Py_None); resultobj = Py_None; | |
25455 | return resultobj; | |
25456 | fail: | |
25457 | return NULL; | |
25458 | } | |
25459 | ||
25460 | ||
25461 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25462 | PyObject *resultobj; | |
25463 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25464 | wxDataObject *result; | |
25465 | PyObject * obj0 = 0 ; | |
25466 | char *kwnames[] = { | |
25467 | (char *) "self", NULL | |
25468 | }; | |
25469 | ||
25470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
25471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25472 | { | |
25473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25474 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
25475 | ||
25476 | wxPyEndAllowThreads(__tstate); | |
25477 | if (PyErr_Occurred()) SWIG_fail; | |
25478 | } | |
25479 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObject, 0); | |
25480 | return resultobj; | |
25481 | fail: | |
25482 | return NULL; | |
25483 | } | |
25484 | ||
25485 | ||
25486 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25487 | PyObject *resultobj; | |
25488 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25489 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
25490 | PyObject * obj0 = 0 ; | |
25491 | PyObject * obj1 = 0 ; | |
25492 | char *kwnames[] = { | |
25493 | (char *) "self",(char *) "dataObject", NULL | |
25494 | }; | |
25495 | ||
25496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
25497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 25498 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
25499 | { |
25500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25501 | (arg1)->SetDataObject(arg2); | |
25502 | ||
25503 | wxPyEndAllowThreads(__tstate); | |
25504 | if (PyErr_Occurred()) SWIG_fail; | |
25505 | } | |
25506 | Py_INCREF(Py_None); resultobj = Py_None; | |
25507 | return resultobj; | |
25508 | fail: | |
25509 | return NULL; | |
25510 | } | |
25511 | ||
25512 | ||
25513 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25514 | PyObject *resultobj; | |
25515 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
25516 | int arg2 ; |
25517 | int arg3 ; | |
d14a1e28 RD |
25518 | int arg4 ; |
25519 | int result; | |
25520 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25521 | PyObject * obj1 = 0 ; |
25522 | PyObject * obj2 = 0 ; | |
25523 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25524 | char *kwnames[] = { |
25525 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
25526 | }; | |
25527 | ||
994141e6 | 25528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 25529 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
25530 | { |
25531 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25532 | if (PyErr_Occurred()) SWIG_fail; | |
25533 | } | |
25534 | { | |
25535 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25536 | if (PyErr_Occurred()) SWIG_fail; | |
25537 | } | |
25538 | { | |
25539 | arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3); | |
25540 | if (PyErr_Occurred()) SWIG_fail; | |
25541 | } | |
d14a1e28 RD |
25542 | { |
25543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25544 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
25545 | ||
25546 | wxPyEndAllowThreads(__tstate); | |
25547 | if (PyErr_Occurred()) SWIG_fail; | |
25548 | } | |
994141e6 | 25549 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25550 | return resultobj; |
25551 | fail: | |
25552 | return NULL; | |
25553 | } | |
25554 | ||
25555 | ||
25556 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25557 | PyObject *resultobj; | |
25558 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
25559 | int arg2 ; |
25560 | int arg3 ; | |
d14a1e28 RD |
25561 | int arg4 ; |
25562 | int result; | |
25563 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25564 | PyObject * obj1 = 0 ; |
25565 | PyObject * obj2 = 0 ; | |
25566 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25567 | char *kwnames[] = { |
25568 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
25569 | }; | |
25570 | ||
994141e6 | 25571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 25572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
25573 | { |
25574 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25575 | if (PyErr_Occurred()) SWIG_fail; | |
25576 | } | |
25577 | { | |
25578 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25579 | if (PyErr_Occurred()) SWIG_fail; | |
25580 | } | |
25581 | { | |
25582 | arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3); | |
25583 | if (PyErr_Occurred()) SWIG_fail; | |
25584 | } | |
d14a1e28 RD |
25585 | { |
25586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25587 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
25588 | ||
25589 | wxPyEndAllowThreads(__tstate); | |
25590 | if (PyErr_Occurred()) SWIG_fail; | |
25591 | } | |
994141e6 | 25592 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25593 | return resultobj; |
25594 | fail: | |
25595 | return NULL; | |
25596 | } | |
25597 | ||
25598 | ||
25599 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25600 | PyObject *resultobj; | |
25601 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25602 | PyObject * obj0 = 0 ; | |
25603 | char *kwnames[] = { | |
25604 | (char *) "self", NULL | |
25605 | }; | |
25606 | ||
25607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
25608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25609 | { | |
25610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25611 | (arg1)->base_OnLeave(); | |
25612 | ||
25613 | wxPyEndAllowThreads(__tstate); | |
25614 | if (PyErr_Occurred()) SWIG_fail; | |
25615 | } | |
25616 | Py_INCREF(Py_None); resultobj = Py_None; | |
25617 | return resultobj; | |
25618 | fail: | |
25619 | return NULL; | |
25620 | } | |
25621 | ||
25622 | ||
25623 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25624 | PyObject *resultobj; | |
25625 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
25626 | int arg2 ; |
25627 | int arg3 ; | |
d14a1e28 RD |
25628 | bool result; |
25629 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25630 | PyObject * obj1 = 0 ; |
25631 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25632 | char *kwnames[] = { |
25633 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25634 | }; | |
25635 | ||
994141e6 | 25636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 25637 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
25638 | { |
25639 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25640 | if (PyErr_Occurred()) SWIG_fail; | |
25641 | } | |
25642 | { | |
25643 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25644 | if (PyErr_Occurred()) SWIG_fail; | |
25645 | } | |
d14a1e28 RD |
25646 | { |
25647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25648 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
25649 | ||
25650 | wxPyEndAllowThreads(__tstate); | |
25651 | if (PyErr_Occurred()) SWIG_fail; | |
25652 | } | |
4d5c3d91 | 25653 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25654 | return resultobj; |
25655 | fail: | |
25656 | return NULL; | |
25657 | } | |
25658 | ||
25659 | ||
25660 | static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25661 | PyObject *resultobj; | |
25662 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25663 | bool result; | |
25664 | PyObject * obj0 = 0 ; | |
25665 | char *kwnames[] = { | |
25666 | (char *) "self", NULL | |
25667 | }; | |
25668 | ||
25669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
25670 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25671 | { | |
25672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25673 | result = (bool)(arg1)->GetData(); | |
25674 | ||
25675 | wxPyEndAllowThreads(__tstate); | |
25676 | if (PyErr_Occurred()) SWIG_fail; | |
25677 | } | |
4d5c3d91 | 25678 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25679 | return resultobj; |
25680 | fail: | |
25681 | return NULL; | |
25682 | } | |
25683 | ||
25684 | ||
25685 | static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) { | |
25686 | PyObject *obj; | |
25687 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25688 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
25689 | Py_INCREF(obj); | |
25690 | return Py_BuildValue((char *)""); | |
25691 | } | |
25692 | static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25693 | PyObject *resultobj; | |
25694 | wxPyTextDropTarget *result; | |
25695 | char *kwnames[] = { | |
25696 | NULL | |
25697 | }; | |
25698 | ||
25699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
25700 | { | |
25701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25702 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
25703 | ||
25704 | wxPyEndAllowThreads(__tstate); | |
25705 | if (PyErr_Occurred()) SWIG_fail; | |
25706 | } | |
25707 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextDropTarget, 1); | |
25708 | return resultobj; | |
25709 | fail: | |
25710 | return NULL; | |
25711 | } | |
25712 | ||
25713 | ||
25714 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25715 | PyObject *resultobj; | |
25716 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
25717 | PyObject *arg2 = (PyObject *) 0 ; | |
25718 | PyObject *arg3 = (PyObject *) 0 ; | |
25719 | PyObject * obj0 = 0 ; | |
25720 | PyObject * obj1 = 0 ; | |
25721 | PyObject * obj2 = 0 ; | |
25722 | char *kwnames[] = { | |
25723 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25724 | }; | |
25725 | ||
25726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25727 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25728 | arg2 = obj1; | |
25729 | arg3 = obj2; | |
25730 | { | |
25731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25732 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25733 | ||
25734 | wxPyEndAllowThreads(__tstate); | |
25735 | if (PyErr_Occurred()) SWIG_fail; | |
25736 | } | |
25737 | Py_INCREF(Py_None); resultobj = Py_None; | |
25738 | return resultobj; | |
25739 | fail: | |
25740 | return NULL; | |
25741 | } | |
25742 | ||
25743 | ||
25744 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25745 | PyObject *resultobj; | |
25746 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
25747 | int arg2 ; |
25748 | int arg3 ; | |
d14a1e28 RD |
25749 | int arg4 ; |
25750 | int result; | |
25751 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25752 | PyObject * obj1 = 0 ; |
25753 | PyObject * obj2 = 0 ; | |
25754 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25755 | char *kwnames[] = { |
25756 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
25757 | }; | |
25758 | ||
994141e6 | 25759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 25760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
25761 | { |
25762 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25763 | if (PyErr_Occurred()) SWIG_fail; | |
25764 | } | |
25765 | { | |
25766 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25767 | if (PyErr_Occurred()) SWIG_fail; | |
25768 | } | |
25769 | { | |
25770 | arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3); | |
25771 | if (PyErr_Occurred()) SWIG_fail; | |
25772 | } | |
d14a1e28 RD |
25773 | { |
25774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25775 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
25776 | ||
25777 | wxPyEndAllowThreads(__tstate); | |
25778 | if (PyErr_Occurred()) SWIG_fail; | |
25779 | } | |
994141e6 | 25780 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25781 | return resultobj; |
25782 | fail: | |
25783 | return NULL; | |
25784 | } | |
25785 | ||
25786 | ||
25787 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25788 | PyObject *resultobj; | |
25789 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
25790 | int arg2 ; |
25791 | int arg3 ; | |
d14a1e28 RD |
25792 | int arg4 ; |
25793 | int result; | |
25794 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25795 | PyObject * obj1 = 0 ; |
25796 | PyObject * obj2 = 0 ; | |
25797 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25798 | char *kwnames[] = { |
25799 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
25800 | }; | |
25801 | ||
994141e6 | 25802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 25803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
25804 | { |
25805 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25806 | if (PyErr_Occurred()) SWIG_fail; | |
25807 | } | |
25808 | { | |
25809 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25810 | if (PyErr_Occurred()) SWIG_fail; | |
25811 | } | |
25812 | { | |
25813 | arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3); | |
25814 | if (PyErr_Occurred()) SWIG_fail; | |
25815 | } | |
d14a1e28 RD |
25816 | { |
25817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25818 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
25819 | ||
25820 | wxPyEndAllowThreads(__tstate); | |
25821 | if (PyErr_Occurred()) SWIG_fail; | |
25822 | } | |
994141e6 | 25823 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25824 | return resultobj; |
25825 | fail: | |
25826 | return NULL; | |
25827 | } | |
25828 | ||
25829 | ||
25830 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25831 | PyObject *resultobj; | |
25832 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
25833 | PyObject * obj0 = 0 ; | |
25834 | char *kwnames[] = { | |
25835 | (char *) "self", NULL | |
25836 | }; | |
25837 | ||
25838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
25839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25840 | { | |
25841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25842 | (arg1)->base_OnLeave(); | |
25843 | ||
25844 | wxPyEndAllowThreads(__tstate); | |
25845 | if (PyErr_Occurred()) SWIG_fail; | |
25846 | } | |
25847 | Py_INCREF(Py_None); resultobj = Py_None; | |
25848 | return resultobj; | |
25849 | fail: | |
25850 | return NULL; | |
25851 | } | |
25852 | ||
25853 | ||
25854 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25855 | PyObject *resultobj; | |
25856 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
25857 | int arg2 ; |
25858 | int arg3 ; | |
d14a1e28 RD |
25859 | bool result; |
25860 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25861 | PyObject * obj1 = 0 ; |
25862 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25863 | char *kwnames[] = { |
25864 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25865 | }; | |
25866 | ||
994141e6 | 25867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 25868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
25869 | { |
25870 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25871 | if (PyErr_Occurred()) SWIG_fail; | |
25872 | } | |
25873 | { | |
25874 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25875 | if (PyErr_Occurred()) SWIG_fail; | |
25876 | } | |
d14a1e28 RD |
25877 | { |
25878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25879 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
25880 | ||
25881 | wxPyEndAllowThreads(__tstate); | |
25882 | if (PyErr_Occurred()) SWIG_fail; | |
25883 | } | |
4d5c3d91 | 25884 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25885 | return resultobj; |
25886 | fail: | |
25887 | return NULL; | |
25888 | } | |
25889 | ||
25890 | ||
25891 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25892 | PyObject *resultobj; | |
25893 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
25894 | int arg2 ; |
25895 | int arg3 ; | |
d14a1e28 RD |
25896 | int arg4 ; |
25897 | int result; | |
25898 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25899 | PyObject * obj1 = 0 ; |
25900 | PyObject * obj2 = 0 ; | |
25901 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25902 | char *kwnames[] = { |
25903 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
25904 | }; | |
25905 | ||
994141e6 | 25906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 25907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
25908 | { |
25909 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25910 | if (PyErr_Occurred()) SWIG_fail; | |
25911 | } | |
25912 | { | |
25913 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25914 | if (PyErr_Occurred()) SWIG_fail; | |
25915 | } | |
25916 | { | |
25917 | arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3); | |
25918 | if (PyErr_Occurred()) SWIG_fail; | |
25919 | } | |
d14a1e28 RD |
25920 | { |
25921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25922 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
25923 | ||
25924 | wxPyEndAllowThreads(__tstate); | |
25925 | if (PyErr_Occurred()) SWIG_fail; | |
25926 | } | |
994141e6 | 25927 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25928 | return resultobj; |
25929 | fail: | |
25930 | return NULL; | |
25931 | } | |
25932 | ||
25933 | ||
25934 | static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) { | |
25935 | PyObject *obj; | |
25936 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25937 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
25938 | Py_INCREF(obj); | |
25939 | return Py_BuildValue((char *)""); | |
25940 | } | |
25941 | static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25942 | PyObject *resultobj; | |
25943 | wxPyFileDropTarget *result; | |
25944 | char *kwnames[] = { | |
25945 | NULL | |
25946 | }; | |
25947 | ||
25948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
25949 | { | |
25950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25951 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
25952 | ||
25953 | wxPyEndAllowThreads(__tstate); | |
25954 | if (PyErr_Occurred()) SWIG_fail; | |
25955 | } | |
25956 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFileDropTarget, 1); | |
25957 | return resultobj; | |
25958 | fail: | |
25959 | return NULL; | |
25960 | } | |
25961 | ||
25962 | ||
25963 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25964 | PyObject *resultobj; | |
25965 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
25966 | PyObject *arg2 = (PyObject *) 0 ; | |
25967 | PyObject *arg3 = (PyObject *) 0 ; | |
25968 | PyObject * obj0 = 0 ; | |
25969 | PyObject * obj1 = 0 ; | |
25970 | PyObject * obj2 = 0 ; | |
25971 | char *kwnames[] = { | |
25972 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25973 | }; | |
25974 | ||
25975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25977 | arg2 = obj1; | |
25978 | arg3 = obj2; | |
25979 | { | |
25980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25981 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25982 | ||
25983 | wxPyEndAllowThreads(__tstate); | |
25984 | if (PyErr_Occurred()) SWIG_fail; | |
25985 | } | |
25986 | Py_INCREF(Py_None); resultobj = Py_None; | |
25987 | return resultobj; | |
25988 | fail: | |
25989 | return NULL; | |
25990 | } | |
25991 | ||
25992 | ||
25993 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25994 | PyObject *resultobj; | |
25995 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
25996 | int arg2 ; |
25997 | int arg3 ; | |
d14a1e28 RD |
25998 | int arg4 ; |
25999 | int result; | |
26000 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26001 | PyObject * obj1 = 0 ; |
26002 | PyObject * obj2 = 0 ; | |
26003 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26004 | char *kwnames[] = { |
26005 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26006 | }; | |
26007 | ||
994141e6 | 26008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 26009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
26010 | { |
26011 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
26012 | if (PyErr_Occurred()) SWIG_fail; | |
26013 | } | |
26014 | { | |
26015 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
26016 | if (PyErr_Occurred()) SWIG_fail; | |
26017 | } | |
26018 | { | |
26019 | arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3); | |
26020 | if (PyErr_Occurred()) SWIG_fail; | |
26021 | } | |
d14a1e28 RD |
26022 | { |
26023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26024 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26025 | ||
26026 | wxPyEndAllowThreads(__tstate); | |
26027 | if (PyErr_Occurred()) SWIG_fail; | |
26028 | } | |
994141e6 | 26029 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
26030 | return resultobj; |
26031 | fail: | |
26032 | return NULL; | |
26033 | } | |
26034 | ||
26035 | ||
26036 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26037 | PyObject *resultobj; | |
26038 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26039 | int arg2 ; |
26040 | int arg3 ; | |
d14a1e28 RD |
26041 | int arg4 ; |
26042 | int result; | |
26043 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26044 | PyObject * obj1 = 0 ; |
26045 | PyObject * obj2 = 0 ; | |
26046 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26047 | char *kwnames[] = { |
26048 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26049 | }; | |
26050 | ||
994141e6 | 26051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 26052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
26053 | { |
26054 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
26055 | if (PyErr_Occurred()) SWIG_fail; | |
26056 | } | |
26057 | { | |
26058 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
26059 | if (PyErr_Occurred()) SWIG_fail; | |
26060 | } | |
26061 | { | |
26062 | arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3); | |
26063 | if (PyErr_Occurred()) SWIG_fail; | |
26064 | } | |
d14a1e28 RD |
26065 | { |
26066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26067 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26068 | ||
26069 | wxPyEndAllowThreads(__tstate); | |
26070 | if (PyErr_Occurred()) SWIG_fail; | |
26071 | } | |
994141e6 | 26072 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
26073 | return resultobj; |
26074 | fail: | |
26075 | return NULL; | |
26076 | } | |
26077 | ||
26078 | ||
26079 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26080 | PyObject *resultobj; | |
26081 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26082 | PyObject * obj0 = 0 ; | |
26083 | char *kwnames[] = { | |
26084 | (char *) "self", NULL | |
26085 | }; | |
26086 | ||
26087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26089 | { | |
26090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26091 | (arg1)->base_OnLeave(); | |
26092 | ||
26093 | wxPyEndAllowThreads(__tstate); | |
26094 | if (PyErr_Occurred()) SWIG_fail; | |
26095 | } | |
26096 | Py_INCREF(Py_None); resultobj = Py_None; | |
26097 | return resultobj; | |
26098 | fail: | |
26099 | return NULL; | |
26100 | } | |
26101 | ||
26102 | ||
26103 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26104 | PyObject *resultobj; | |
26105 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26106 | int arg2 ; |
26107 | int arg3 ; | |
d14a1e28 RD |
26108 | bool result; |
26109 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26110 | PyObject * obj1 = 0 ; |
26111 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26112 | char *kwnames[] = { |
26113 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26114 | }; | |
26115 | ||
994141e6 | 26116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 26117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
26118 | { |
26119 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
26120 | if (PyErr_Occurred()) SWIG_fail; | |
26121 | } | |
26122 | { | |
26123 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
26124 | if (PyErr_Occurred()) SWIG_fail; | |
26125 | } | |
d14a1e28 RD |
26126 | { |
26127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26128 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26129 | ||
26130 | wxPyEndAllowThreads(__tstate); | |
26131 | if (PyErr_Occurred()) SWIG_fail; | |
26132 | } | |
4d5c3d91 | 26133 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26134 | return resultobj; |
26135 | fail: | |
26136 | return NULL; | |
26137 | } | |
26138 | ||
26139 | ||
26140 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26141 | PyObject *resultobj; | |
26142 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26143 | int arg2 ; |
26144 | int arg3 ; | |
d14a1e28 RD |
26145 | int arg4 ; |
26146 | int result; | |
26147 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26148 | PyObject * obj1 = 0 ; |
26149 | PyObject * obj2 = 0 ; | |
26150 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26151 | char *kwnames[] = { |
26152 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26153 | }; | |
26154 | ||
994141e6 | 26155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 26156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
26157 | { |
26158 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
26159 | if (PyErr_Occurred()) SWIG_fail; | |
26160 | } | |
26161 | { | |
26162 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
26163 | if (PyErr_Occurred()) SWIG_fail; | |
26164 | } | |
26165 | { | |
26166 | arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3); | |
26167 | if (PyErr_Occurred()) SWIG_fail; | |
26168 | } | |
d14a1e28 RD |
26169 | { |
26170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26171 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26172 | ||
26173 | wxPyEndAllowThreads(__tstate); | |
26174 | if (PyErr_Occurred()) SWIG_fail; | |
26175 | } | |
994141e6 | 26176 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
26177 | return resultobj; |
26178 | fail: | |
26179 | return NULL; | |
26180 | } | |
26181 | ||
26182 | ||
26183 | static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26184 | PyObject *obj; | |
26185 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26186 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
26187 | Py_INCREF(obj); | |
26188 | return Py_BuildValue((char *)""); | |
26189 | } | |
26190 | static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26191 | PyObject *resultobj; | |
26192 | wxClipboard *result; | |
26193 | char *kwnames[] = { | |
26194 | NULL | |
26195 | }; | |
26196 | ||
26197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
26198 | { | |
26199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26200 | result = (wxClipboard *)new wxClipboard(); | |
26201 | ||
26202 | wxPyEndAllowThreads(__tstate); | |
26203 | if (PyErr_Occurred()) SWIG_fail; | |
26204 | } | |
26205 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClipboard, 1); | |
26206 | return resultobj; | |
26207 | fail: | |
26208 | return NULL; | |
26209 | } | |
26210 | ||
26211 | ||
26212 | static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26213 | PyObject *resultobj; | |
26214 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26215 | PyObject * obj0 = 0 ; | |
26216 | char *kwnames[] = { | |
26217 | (char *) "self", NULL | |
26218 | }; | |
26219 | ||
26220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
26221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26222 | { | |
26223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26224 | delete arg1; | |
26225 | ||
26226 | wxPyEndAllowThreads(__tstate); | |
26227 | if (PyErr_Occurred()) SWIG_fail; | |
26228 | } | |
26229 | Py_INCREF(Py_None); resultobj = Py_None; | |
26230 | return resultobj; | |
26231 | fail: | |
26232 | return NULL; | |
26233 | } | |
26234 | ||
26235 | ||
26236 | static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26237 | PyObject *resultobj; | |
26238 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26239 | bool result; | |
26240 | PyObject * obj0 = 0 ; | |
26241 | char *kwnames[] = { | |
26242 | (char *) "self", NULL | |
26243 | }; | |
26244 | ||
26245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
26246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26247 | { | |
26248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26249 | result = (bool)(arg1)->Open(); | |
26250 | ||
26251 | wxPyEndAllowThreads(__tstate); | |
26252 | if (PyErr_Occurred()) SWIG_fail; | |
26253 | } | |
4d5c3d91 | 26254 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26255 | return resultobj; |
26256 | fail: | |
26257 | return NULL; | |
26258 | } | |
26259 | ||
26260 | ||
26261 | static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26262 | PyObject *resultobj; | |
26263 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26264 | PyObject * obj0 = 0 ; | |
26265 | char *kwnames[] = { | |
26266 | (char *) "self", NULL | |
26267 | }; | |
26268 | ||
26269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
26270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26271 | { | |
26272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26273 | (arg1)->Close(); | |
26274 | ||
26275 | wxPyEndAllowThreads(__tstate); | |
26276 | if (PyErr_Occurred()) SWIG_fail; | |
26277 | } | |
26278 | Py_INCREF(Py_None); resultobj = Py_None; | |
26279 | return resultobj; | |
26280 | fail: | |
26281 | return NULL; | |
26282 | } | |
26283 | ||
26284 | ||
26285 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26286 | PyObject *resultobj; | |
26287 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26288 | bool result; | |
26289 | PyObject * obj0 = 0 ; | |
26290 | char *kwnames[] = { | |
26291 | (char *) "self", NULL | |
26292 | }; | |
26293 | ||
26294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
26295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26296 | { | |
26297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26298 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
26299 | ||
26300 | wxPyEndAllowThreads(__tstate); | |
26301 | if (PyErr_Occurred()) SWIG_fail; | |
26302 | } | |
4d5c3d91 | 26303 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26304 | return resultobj; |
26305 | fail: | |
26306 | return NULL; | |
26307 | } | |
26308 | ||
26309 | ||
26310 | static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26311 | PyObject *resultobj; | |
26312 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26313 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26314 | bool result; | |
26315 | PyObject * obj0 = 0 ; | |
26316 | PyObject * obj1 = 0 ; | |
26317 | char *kwnames[] = { | |
26318 | (char *) "self",(char *) "data", NULL | |
26319 | }; | |
26320 | ||
26321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
26322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 26323 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
26324 | { |
26325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26326 | result = (bool)(arg1)->AddData(arg2); | |
26327 | ||
26328 | wxPyEndAllowThreads(__tstate); | |
26329 | if (PyErr_Occurred()) SWIG_fail; | |
26330 | } | |
4d5c3d91 | 26331 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26332 | return resultobj; |
26333 | fail: | |
26334 | return NULL; | |
26335 | } | |
26336 | ||
26337 | ||
26338 | static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26339 | PyObject *resultobj; | |
26340 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26341 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26342 | bool result; | |
26343 | PyObject * obj0 = 0 ; | |
26344 | PyObject * obj1 = 0 ; | |
26345 | char *kwnames[] = { | |
26346 | (char *) "self",(char *) "data", NULL | |
26347 | }; | |
26348 | ||
26349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
26350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 26351 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
26352 | { |
26353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26354 | result = (bool)(arg1)->SetData(arg2); | |
26355 | ||
26356 | wxPyEndAllowThreads(__tstate); | |
26357 | if (PyErr_Occurred()) SWIG_fail; | |
26358 | } | |
4d5c3d91 | 26359 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26360 | return resultobj; |
26361 | fail: | |
26362 | return NULL; | |
26363 | } | |
26364 | ||
26365 | ||
26366 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26367 | PyObject *resultobj; | |
26368 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26369 | wxDataFormat *arg2 = 0 ; | |
26370 | bool result; | |
26371 | PyObject * obj0 = 0 ; | |
26372 | PyObject * obj1 = 0 ; | |
26373 | char *kwnames[] = { | |
26374 | (char *) "self",(char *) "format", NULL | |
26375 | }; | |
26376 | ||
26377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
26378 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26379 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26380 | if (arg2 == NULL) { | |
26381 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26382 | } | |
26383 | { | |
26384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26385 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
26386 | ||
26387 | wxPyEndAllowThreads(__tstate); | |
26388 | if (PyErr_Occurred()) SWIG_fail; | |
26389 | } | |
4d5c3d91 | 26390 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26391 | return resultobj; |
26392 | fail: | |
26393 | return NULL; | |
26394 | } | |
26395 | ||
26396 | ||
26397 | static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26398 | PyObject *resultobj; | |
26399 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26400 | wxDataObject *arg2 = 0 ; | |
26401 | bool result; | |
26402 | PyObject * obj0 = 0 ; | |
26403 | PyObject * obj1 = 0 ; | |
26404 | char *kwnames[] = { | |
26405 | (char *) "self",(char *) "data", NULL | |
26406 | }; | |
26407 | ||
26408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
26409 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26410 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26411 | if (arg2 == NULL) { | |
26412 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26413 | } | |
26414 | { | |
26415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26416 | result = (bool)(arg1)->GetData(*arg2); | |
26417 | ||
26418 | wxPyEndAllowThreads(__tstate); | |
26419 | if (PyErr_Occurred()) SWIG_fail; | |
26420 | } | |
4d5c3d91 | 26421 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26422 | return resultobj; |
26423 | fail: | |
26424 | return NULL; | |
26425 | } | |
26426 | ||
26427 | ||
26428 | static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26429 | PyObject *resultobj; | |
26430 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26431 | PyObject * obj0 = 0 ; | |
26432 | char *kwnames[] = { | |
26433 | (char *) "self", NULL | |
26434 | }; | |
26435 | ||
26436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
26437 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26438 | { | |
26439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26440 | (arg1)->Clear(); | |
26441 | ||
26442 | wxPyEndAllowThreads(__tstate); | |
26443 | if (PyErr_Occurred()) SWIG_fail; | |
26444 | } | |
26445 | Py_INCREF(Py_None); resultobj = Py_None; | |
26446 | return resultobj; | |
26447 | fail: | |
26448 | return NULL; | |
26449 | } | |
26450 | ||
26451 | ||
26452 | static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26453 | PyObject *resultobj; | |
26454 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26455 | bool result; | |
26456 | PyObject * obj0 = 0 ; | |
26457 | char *kwnames[] = { | |
26458 | (char *) "self", NULL | |
26459 | }; | |
26460 | ||
26461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
26462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26463 | { | |
26464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26465 | result = (bool)(arg1)->Flush(); | |
26466 | ||
26467 | wxPyEndAllowThreads(__tstate); | |
26468 | if (PyErr_Occurred()) SWIG_fail; | |
26469 | } | |
4d5c3d91 | 26470 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26471 | return resultobj; |
26472 | fail: | |
26473 | return NULL; | |
26474 | } | |
26475 | ||
26476 | ||
26477 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26478 | PyObject *resultobj; | |
26479 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
e811c8ce | 26480 | bool arg2 = (bool) False ; |
d14a1e28 RD |
26481 | PyObject * obj0 = 0 ; |
26482 | PyObject * obj1 = 0 ; | |
26483 | char *kwnames[] = { | |
26484 | (char *) "self",(char *) "primary", NULL | |
26485 | }; | |
26486 | ||
26487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
26488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26489 | if (obj1) { | |
a41e16b6 | 26490 | { |
994141e6 | 26491 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
26492 | if (PyErr_Occurred()) SWIG_fail; |
26493 | } | |
d14a1e28 RD |
26494 | } |
26495 | { | |
26496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26497 | (arg1)->UsePrimarySelection(arg2); | |
26498 | ||
26499 | wxPyEndAllowThreads(__tstate); | |
26500 | if (PyErr_Occurred()) SWIG_fail; | |
26501 | } | |
26502 | Py_INCREF(Py_None); resultobj = Py_None; | |
26503 | return resultobj; | |
26504 | fail: | |
26505 | return NULL; | |
26506 | } | |
26507 | ||
26508 | ||
26509 | static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) { | |
26510 | PyObject *obj; | |
26511 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26512 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
26513 | Py_INCREF(obj); | |
26514 | return Py_BuildValue((char *)""); | |
26515 | } | |
26516 | static int _wrap_TheClipboard_set(PyObject *_val) { | |
26517 | PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only."); | |
26518 | return 1; | |
26519 | } | |
26520 | ||
26521 | ||
26522 | static PyObject *_wrap_TheClipboard_get() { | |
26523 | PyObject *pyobj; | |
26524 | ||
26525 | pyobj = SWIG_NewPointerObj((void *) wxTheClipboard, SWIGTYPE_p_wxClipboard, 0); | |
26526 | return pyobj; | |
26527 | } | |
26528 | ||
26529 | ||
26530 | static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26531 | PyObject *resultobj; | |
26532 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
26533 | wxClipboardLocker *result; | |
26534 | PyObject * obj0 = 0 ; | |
26535 | char *kwnames[] = { | |
26536 | (char *) "clipboard", NULL | |
26537 | }; | |
26538 | ||
26539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
26540 | if (obj0) { | |
26541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26542 | } | |
26543 | { | |
26544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26545 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
26546 | ||
26547 | wxPyEndAllowThreads(__tstate); | |
26548 | if (PyErr_Occurred()) SWIG_fail; | |
26549 | } | |
26550 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClipboardLocker, 1); | |
26551 | return resultobj; | |
26552 | fail: | |
26553 | return NULL; | |
26554 | } | |
26555 | ||
26556 | ||
26557 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26558 | PyObject *resultobj; | |
26559 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
26560 | PyObject * obj0 = 0 ; | |
26561 | char *kwnames[] = { | |
26562 | (char *) "self", NULL | |
26563 | }; | |
26564 | ||
26565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
26566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboardLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26567 | { | |
26568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26569 | delete arg1; | |
26570 | ||
26571 | wxPyEndAllowThreads(__tstate); | |
26572 | if (PyErr_Occurred()) SWIG_fail; | |
26573 | } | |
26574 | Py_INCREF(Py_None); resultobj = Py_None; | |
26575 | return resultobj; | |
26576 | fail: | |
26577 | return NULL; | |
26578 | } | |
26579 | ||
26580 | ||
26581 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26582 | PyObject *resultobj; | |
26583 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
26584 | bool result; | |
26585 | PyObject * obj0 = 0 ; | |
26586 | char *kwnames[] = { | |
26587 | (char *) "self", NULL | |
26588 | }; | |
26589 | ||
26590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
26591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboardLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26592 | { | |
26593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26594 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
26595 | ||
26596 | wxPyEndAllowThreads(__tstate); | |
26597 | if (PyErr_Occurred()) SWIG_fail; | |
26598 | } | |
4d5c3d91 | 26599 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26600 | return resultobj; |
26601 | fail: | |
26602 | return NULL; | |
26603 | } | |
26604 | ||
26605 | ||
26606 | static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) { | |
26607 | PyObject *obj; | |
26608 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26609 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
26610 | Py_INCREF(obj); | |
26611 | return Py_BuildValue((char *)""); | |
26612 | } | |
26613 | static PyMethodDef SwigMethods[] = { | |
26614 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
26615 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
26616 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
26617 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, | |
26618 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
26619 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
26620 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS }, | |
26621 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS }, | |
26622 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
26623 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
26624 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
26625 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
26626 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
26627 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS }, | |
26628 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS }, | |
26629 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS }, | |
26630 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS }, | |
26631 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS }, | |
26632 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
26633 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS }, | |
26634 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS }, | |
26635 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS }, | |
26636 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS }, | |
26637 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS }, | |
26638 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS }, | |
26639 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS }, | |
26640 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS }, | |
26641 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS }, | |
26642 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS }, | |
26643 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS }, | |
26644 | { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS }, | |
26645 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS }, | |
26646 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS }, | |
26647 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS }, | |
26648 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS }, | |
26649 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS }, | |
26650 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS }, | |
26651 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS }, | |
26652 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS }, | |
26653 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS }, | |
26654 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS }, | |
26655 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS }, | |
26656 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS }, | |
26657 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
26658 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
26659 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS }, | |
26660 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
26661 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, | |
26662 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
26663 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
26664 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS }, | |
26665 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
26666 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
26667 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
26668 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
26669 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
26670 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
26671 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
26672 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
26673 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
26674 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
26675 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
26676 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
26677 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
26678 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
26679 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
26680 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, | |
39f61e25 | 26681 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
26682 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, |
26683 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
26684 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
26685 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
26686 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
26687 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS }, | |
26688 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS }, | |
26689 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS }, | |
26690 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
26691 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
26692 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
26693 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
26694 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
26695 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS }, | |
26696 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS }, | |
26697 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS }, | |
26698 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
26699 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 26700 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 26701 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 26702 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 26703 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
26704 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
26705 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
26706 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS }, | |
26707 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
26708 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
26709 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS }, | |
26710 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
26711 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS }, | |
26712 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
26713 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
26714 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
26715 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
26716 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS }, | |
26717 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
26718 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
26719 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS }, | |
26720 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
26721 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
26722 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS }, | |
26723 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS }, | |
26724 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
26725 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
26726 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
26727 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS }, | |
26728 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS }, | |
26729 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
26730 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
26731 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
26732 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
26733 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
26734 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
26735 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
26736 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
26737 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
26738 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
26739 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, | |
26740 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
26741 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
26742 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS }, | |
26743 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
26744 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
26745 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
26746 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
26747 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, | |
26748 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS }, | |
26749 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS }, | |
26750 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS }, | |
26751 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
26752 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
26753 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, | |
26754 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS }, | |
26755 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
26756 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26757 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS }, | |
26758 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS }, | |
26759 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
26760 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS }, | |
26761 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS }, | |
7722248d | 26762 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
26763 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS }, |
26764 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS }, | |
26765 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
26766 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS }, |
26767 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
26768 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
cc6dd355 | 26769 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
26770 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS }, |
26771 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS }, | |
26772 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
26773 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS }, | |
26774 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS }, | |
26775 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS }, | |
26776 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS }, | |
26777 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS }, | |
26778 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS }, | |
26779 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
26780 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
26781 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
26782 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS }, | |
26783 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
26784 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
26785 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
26786 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
26787 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS }, | |
26788 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
26789 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
26790 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
26791 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
26792 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
26793 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
26794 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
26795 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
26796 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
26797 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
26798 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
26799 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
26800 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
26801 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
26802 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS }, | |
26803 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
26804 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS }, | |
26805 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS }, | |
26806 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS }, | |
26807 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26808 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS }, | |
26809 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS }, | |
26810 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS }, | |
26811 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS }, | |
26812 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
26813 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
26814 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
26815 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
26816 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
26817 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS }, | |
26818 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS }, | |
26819 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
26820 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
26821 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
26822 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
26823 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS }, | |
26824 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
26825 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
26826 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
26827 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS }, | |
26828 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS }, | |
26829 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS }, | |
26830 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS }, | |
26831 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS }, | |
26832 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
26833 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS }, | |
26834 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
26835 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS }, | |
cc6dd355 | 26836 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS }, |
d14a1e28 RD |
26837 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS }, |
26838 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS }, | |
26839 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
26840 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
26841 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS }, | |
26842 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS }, | |
26843 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26844 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS }, | |
26845 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS }, | |
26846 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS }, | |
26847 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS }, | |
26848 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS }, | |
26849 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26850 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
26851 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
26852 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
26853 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS }, | |
26854 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
26855 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
26856 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
26857 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS }, | |
26858 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
26859 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
26860 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, | |
26861 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS }, | |
26862 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
26863 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
26864 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
26865 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
26866 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
26867 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
26868 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
26869 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS }, | |
26870 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS }, | |
26871 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
26872 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
26873 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26874 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
26875 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
26876 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
26877 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
26878 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
26879 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
26880 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
26881 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
26882 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
26883 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
26884 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
26885 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
26886 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
26887 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
26888 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
26889 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
26890 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
26891 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
26892 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
26893 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
26894 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
26895 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
26896 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
26897 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
26898 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
26899 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
26900 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
26901 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
26902 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
26903 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
26904 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
26905 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
26906 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
26907 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
26908 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
26909 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
26910 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
26911 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
26912 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
26913 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
26914 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
26915 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS }, | |
26916 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
26917 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
26918 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS }, | |
26919 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS }, | |
26920 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS }, | |
26921 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS }, | |
26922 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS }, | |
26923 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS }, | |
26924 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS }, | |
26925 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS }, | |
26926 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS }, | |
26927 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26928 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
26929 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
26930 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
26931 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
26932 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
26933 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
26934 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
26935 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26936 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
26937 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
26938 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS }, | |
26939 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS }, | |
26940 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
26941 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
26942 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
26943 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS }, | |
4d5c3d91 RD |
26944 | { (char *)"new_Sound", _wrap_new_Sound, METH_VARARGS }, |
26945 | { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS }, | |
26946 | { (char *)"Sound_Create", _wrap_Sound_Create, METH_VARARGS }, | |
26947 | { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
26948 | { (char *)"Sound_Play", _wrap_Sound_Play, METH_VARARGS }, | |
26949 | { (char *)"Sound_PlaySound", _wrap_Sound_PlaySound, METH_VARARGS }, | |
26950 | { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS }, | |
26951 | { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
26952 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS }, |
26953 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
26954 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
26955 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
26956 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
26957 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
26958 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
26959 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
26960 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
26961 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
26962 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
26963 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
26964 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
26965 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
26966 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
26967 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS }, | |
26968 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS }, | |
26969 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS }, | |
26970 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
26971 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
26972 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
26973 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
26974 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
26975 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
26976 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
26977 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
26978 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
26979 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
26980 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
26981 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
26982 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
26983 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS }, | |
26984 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
26985 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
26986 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
26987 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
26988 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
26989 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
26990 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
26991 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
26992 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
26993 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
26994 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
26995 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
26996 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
26997 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS }, | |
26998 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
26999 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
27000 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
27001 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
27002 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
27003 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
27004 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
1e0c8722 | 27005 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
27006 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS }, |
27007 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS }, | |
27008 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, | |
27009 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, | |
27010 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, | |
27011 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
27012 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
27013 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
27014 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, | |
27015 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, | |
27016 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, | |
27017 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, | |
27018 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, | |
27019 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, | |
27020 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, | |
27021 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, | |
27022 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, | |
27023 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, | |
27024 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, | |
27025 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, | |
27026 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, | |
27027 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS }, | |
27028 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, | |
27029 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, | |
27030 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, | |
27031 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS }, | |
27032 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, | |
27033 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, | |
27034 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, | |
27035 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, | |
27036 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, | |
27037 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, | |
27038 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
27039 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
27040 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, | |
27041 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, | |
27042 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
27043 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
27044 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
27045 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
27046 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
27047 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
27048 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
27049 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS }, | |
27050 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
27051 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
27052 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS }, | |
27053 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS }, | |
27054 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS }, | |
27055 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS }, | |
27056 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS }, | |
27057 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
27058 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
27059 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS }, | |
27060 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
27061 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, | |
27062 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, | |
27063 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, | |
27064 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, | |
27065 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, | |
27066 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, | |
27067 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, | |
27068 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, | |
27069 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, | |
27070 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, | |
27071 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, | |
27072 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, | |
27073 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, | |
27074 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, | |
27075 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, | |
27076 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, | |
27077 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS }, | |
27078 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS }, | |
27079 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS }, | |
27080 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
27081 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, | |
27082 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, | |
27083 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, | |
27084 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, | |
27085 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
27086 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, | |
27087 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, | |
27088 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, | |
27089 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, | |
27090 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS }, | |
27091 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, | |
27092 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, | |
27093 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, | |
27094 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, | |
27095 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, | |
27096 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, | |
27097 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, | |
27098 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
27099 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
27100 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
27101 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
27102 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
27103 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
27104 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
27105 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
27106 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
27107 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
27108 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, | |
27109 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, | |
27110 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
27111 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
27112 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, | |
27113 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, | |
27114 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
27115 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, | |
27116 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
27117 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, | |
27118 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, | |
27119 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, | |
27120 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, | |
27121 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, | |
27122 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, | |
27123 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, | |
27124 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
27125 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, | |
27126 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, | |
27127 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, | |
27128 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, | |
27129 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
27130 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, | |
27131 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, | |
27132 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, | |
27133 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
27134 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, | |
27135 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, | |
27136 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, | |
27137 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, | |
27138 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
27139 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, | |
27140 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, | |
27141 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, | |
27142 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, | |
27143 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, | |
27144 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, | |
27145 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, | |
27146 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, | |
27147 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, | |
27148 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, | |
27149 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, | |
27150 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
27151 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS }, | |
27152 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS }, | |
27153 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS }, | |
27154 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS }, | |
27155 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS }, | |
27156 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS }, | |
27157 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS }, | |
27158 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS }, | |
27159 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS }, | |
27160 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS }, | |
27161 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, | |
27162 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, | |
27163 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, | |
27164 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, | |
27165 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, | |
27166 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS }, | |
27167 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, | |
27168 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, | |
27169 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, | |
27170 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, | |
27171 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS }, | |
27172 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, | |
27173 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, | |
27174 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, | |
27175 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, | |
27176 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, | |
27177 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, | |
27178 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
27179 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
27180 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
27181 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
27182 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
27183 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
27184 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
27185 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
27186 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
27187 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
27188 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, | |
27189 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
27190 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
27191 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
27192 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
27193 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
27194 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
27195 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
27196 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
27197 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS }, | |
27198 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS }, | |
27199 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS }, | |
27200 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS }, | |
27201 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
27202 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
27203 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
27204 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, | |
27205 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, | |
27206 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
27207 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, | |
27208 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, | |
27209 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
27210 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
27211 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, | |
27212 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, | |
27213 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, | |
27214 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, | |
27215 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, | |
27216 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS }, | |
27217 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
27218 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
27219 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
27220 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
27221 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
27222 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
27223 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS }, | |
27224 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS }, | |
27225 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS }, | |
27226 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS }, | |
27227 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, | |
27228 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, | |
27229 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
27230 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, | |
27231 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, | |
27232 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, | |
27233 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
27234 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
27235 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, | |
27236 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
27237 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
27238 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
27239 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
27240 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
27241 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
27242 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
27243 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
27244 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
27245 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
27246 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
27247 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
27248 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
27249 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
27250 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS }, | |
27251 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS }, | |
27252 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS }, | |
27253 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS }, | |
27254 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, | |
27255 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
27256 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS }, | |
27257 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
27258 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS }, | |
27259 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS }, | |
27260 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS }, | |
27261 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS }, | |
27262 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS }, | |
27263 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS }, | |
27264 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS }, | |
27265 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS }, | |
27266 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS }, | |
27267 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS }, | |
27268 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
27269 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS }, | |
27270 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS }, | |
27271 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
27272 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
27273 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS }, | |
27274 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
27275 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS }, | |
27276 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS }, | |
27277 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS }, | |
27278 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
27279 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27280 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS }, | |
27281 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS }, | |
27282 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS }, | |
27283 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS }, | |
27284 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27285 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS }, | |
27286 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS }, | |
27287 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS }, | |
27288 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS }, | |
27289 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27290 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27291 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS }, | |
27292 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27293 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
27294 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
27295 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS }, | |
27296 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27297 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27298 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS }, | |
27299 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27300 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
27301 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS }, | |
27302 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27303 | { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS }, | |
27304 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
27305 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
27306 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS }, | |
27307 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS }, | |
27308 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27309 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS }, | |
27310 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS }, | |
27311 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS }, | |
27312 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27313 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS }, | |
27314 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS }, | |
27315 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
27316 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27317 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
27318 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS }, | |
27319 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27320 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
27321 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS }, | |
27322 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS }, | |
27323 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS }, | |
196addbf | 27324 | { (char *)"new_PyDropTarget", (PyCFunction) _wrap_new_PyDropTarget, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
27325 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
27326 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
27327 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27328 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27329 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
27330 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
27331 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
27332 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
27333 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS }, | |
27334 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS }, | |
27335 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
27336 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27337 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
27338 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
27339 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
27340 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
27341 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
27342 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS }, | |
27343 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
27344 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27345 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
27346 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
27347 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
27348 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
27349 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
27350 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS }, | |
27351 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
27352 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
27353 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS }, | |
27354 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS }, | |
27355 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS }, | |
27356 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS }, | |
27357 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS }, | |
27358 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
27359 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS }, | |
27360 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS }, | |
27361 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS }, | |
27362 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS }, | |
27363 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS }, | |
27364 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
27365 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
27366 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
27367 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS }, | |
27368 | { NULL, NULL } | |
27369 | }; | |
27370 | ||
27371 | ||
27372 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
27373 | ||
27374 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
27375 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
27376 | } | |
27377 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
27378 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
27379 | } | |
27380 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
27381 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
27382 | } | |
27383 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
27384 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
27385 | } | |
27386 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
27387 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
27388 | } | |
27389 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
27390 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
27391 | } | |
27392 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
27393 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
27394 | } | |
27395 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
27396 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
27397 | } | |
27398 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
27399 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
27400 | } | |
27401 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
27402 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
27403 | } | |
27404 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
27405 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
27406 | } | |
27407 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
27408 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
27409 | } | |
27410 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
27411 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
27412 | } | |
27413 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
27414 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
27415 | } | |
27416 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
27417 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
27418 | } | |
27419 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
27420 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
27421 | } | |
27422 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
27423 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
27424 | } | |
27425 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
27426 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
27427 | } | |
27428 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
27429 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
27430 | } | |
27431 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
27432 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
27433 | } | |
27434 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
27435 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
27436 | } | |
27437 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
27438 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
27439 | } | |
27440 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
27441 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
27442 | } | |
27443 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
27444 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
27445 | } | |
27446 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
27447 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
27448 | } | |
27449 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
27450 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
27451 | } | |
27452 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
27453 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
27454 | } | |
27455 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
27456 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
27457 | } | |
27458 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
27459 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
27460 | } | |
27461 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
27462 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
27463 | } | |
27464 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
27465 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
27466 | } | |
27467 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
27468 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
27469 | } | |
27470 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
27471 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
27472 | } | |
27473 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
27474 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
27475 | } | |
27476 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
27477 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
27478 | } | |
27479 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
27480 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
27481 | } | |
27482 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
27483 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
27484 | } | |
27485 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
27486 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
27487 | } | |
27488 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
27489 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
27490 | } | |
27491 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
27492 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
27493 | } | |
27494 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
27495 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
27496 | } | |
27497 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
27498 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
27499 | } | |
27500 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
27501 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
27502 | } | |
27503 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
27504 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
27505 | } | |
27506 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
27507 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
27508 | } | |
27509 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
27510 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
27511 | } | |
27512 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
27513 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
27514 | } | |
27515 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
27516 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
27517 | } | |
27518 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
27519 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
27520 | } | |
27521 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
27522 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
27523 | } | |
27524 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
27525 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
27526 | } | |
27527 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
27528 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
27529 | } | |
27530 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
27531 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
27532 | } | |
27533 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
27534 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
27535 | } | |
27536 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
27537 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
27538 | } | |
27539 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
27540 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
27541 | } | |
27542 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
27543 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
27544 | } | |
27545 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
27546 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
27547 | } | |
27548 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
27549 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
27550 | } | |
27551 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
27552 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
27553 | } | |
27554 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
27555 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
27556 | } | |
27557 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
27558 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
27559 | } | |
27560 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
27561 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
27562 | } | |
27563 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
27564 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
27565 | } | |
27566 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
27567 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
27568 | } | |
27569 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
27570 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
27571 | } | |
27572 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
27573 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
27574 | } | |
27575 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
27576 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
27577 | } | |
27578 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
27579 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
27580 | } | |
27581 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
27582 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
27583 | } | |
27584 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
27585 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
27586 | } | |
27587 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
27588 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
27589 | } | |
27590 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
27591 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
27592 | } | |
27593 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
27594 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
27595 | } | |
27596 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
27597 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
27598 | } | |
27599 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
27600 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
27601 | } | |
27602 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
27603 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
27604 | } | |
27605 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
27606 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
27607 | } | |
27608 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
27609 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
27610 | } | |
27611 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
27612 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
27613 | } | |
27614 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
27615 | return (void *)((wxObject *) ((wxSizer *) x)); | |
27616 | } | |
27617 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
27618 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
27619 | } | |
27620 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
27621 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
27622 | } | |
27623 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
27624 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
27625 | } | |
27626 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
27627 | return (void *)((wxObject *) ((wxEvent *) x)); | |
27628 | } | |
27629 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
27630 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
27631 | } | |
27632 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
27633 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
27634 | } | |
27635 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
27636 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
27637 | } | |
27638 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
27639 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
27640 | } | |
27641 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
27642 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
27643 | } | |
27644 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
27645 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
27646 | } | |
27647 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
27648 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
27649 | } | |
27650 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
27651 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
27652 | } | |
27653 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
27654 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
27655 | } | |
27656 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
27657 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
27658 | } | |
27659 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
27660 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
27661 | } | |
27662 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
27663 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
27664 | } | |
27665 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
27666 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
27667 | } | |
27668 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
27669 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
27670 | } | |
27671 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
27672 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
27673 | } | |
27674 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
27675 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
27676 | } | |
27677 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
27678 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
27679 | } | |
27680 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
27681 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
27682 | } | |
27683 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
27684 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
27685 | } | |
27686 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
27687 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
27688 | } | |
27689 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
27690 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
27691 | } | |
27692 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
27693 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
27694 | } | |
27695 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
27696 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
27697 | } | |
27698 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
27699 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
27700 | } | |
27701 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
27702 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
27703 | } | |
27704 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
27705 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
27706 | } | |
27707 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
27708 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
27709 | } | |
27710 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
27711 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
27712 | } | |
27713 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
27714 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
27715 | } | |
27716 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
27717 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
27718 | } | |
27719 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
27720 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
27721 | } | |
27722 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
27723 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
27724 | } | |
27725 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
27726 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
27727 | } | |
27728 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
27729 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
27730 | } | |
27731 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
27732 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
27733 | } | |
27734 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
27735 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
27736 | } | |
27737 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
27738 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
27739 | } | |
27740 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
27741 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
27742 | } | |
27743 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
27744 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
27745 | } | |
27746 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
27747 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
27748 | } | |
27749 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
27750 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
27751 | } | |
1e0c8722 RD |
27752 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
27753 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
27754 | } | |
d14a1e28 RD |
27755 | static void *_p_wxImageTo_p_wxObject(void *x) { |
27756 | return (void *)((wxObject *) ((wxImage *) x)); | |
27757 | } | |
27758 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
27759 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
27760 | } | |
27761 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
27762 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
27763 | } | |
27764 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
27765 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
27766 | } | |
27767 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
27768 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
27769 | } | |
27770 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
27771 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
27772 | } | |
27773 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
27774 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
27775 | } | |
27776 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
27777 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
27778 | } | |
27779 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
27780 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
27781 | } | |
27782 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
27783 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
27784 | } | |
27785 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
27786 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
27787 | } | |
27788 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
27789 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
27790 | } | |
27791 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
27792 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
27793 | } | |
27794 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
27795 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
27796 | } | |
27797 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
27798 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
27799 | } | |
27800 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
27801 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
27802 | } | |
27803 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
27804 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
27805 | } | |
27806 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
27807 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
27808 | } | |
27809 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
27810 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
27811 | } | |
27812 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
27813 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
27814 | } | |
27815 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
27816 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
27817 | } | |
27818 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
27819 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
27820 | } | |
27821 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
27822 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
27823 | } | |
27824 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
27825 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
27826 | } | |
27827 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
27828 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
27829 | } | |
27830 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
27831 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
27832 | } | |
27833 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
27834 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
27835 | } | |
27836 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
27837 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
27838 | } | |
27839 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
27840 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
27841 | } | |
27842 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
27843 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
27844 | } | |
27845 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
27846 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
27847 | } | |
27848 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
27849 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
27850 | } | |
27851 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
27852 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
27853 | } | |
27854 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
27855 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
27856 | } | |
27857 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
27858 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
27859 | } | |
27860 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
27861 | return (void *)((wxWindow *) ((wxControl *) x)); | |
27862 | } | |
27863 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
27864 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
27865 | } | |
27866 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
27867 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
27868 | } | |
27869 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
27870 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
27871 | } | |
27872 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
27873 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
27874 | } | |
27875 | static swig_type_info _swigt__p_wxLogChain[] = {{"_p_wxLogChain", 0, "wxLogChain *", 0},{"_p_wxLogChain"},{0}}; | |
27876 | static swig_type_info _swigt__p_wxMutexGuiLocker[] = {{"_p_wxMutexGuiLocker", 0, "wxMutexGuiLocker *", 0},{"_p_wxMutexGuiLocker"},{0}}; | |
27877 | static swig_type_info _swigt__p_wxFileHistory[] = {{"_p_wxFileHistory", 0, "wxFileHistory *", 0},{"_p_wxFileHistory"},{0}}; | |
27878 | static swig_type_info _swigt__p_wxLog[] = {{"_p_wxLog", 0, "wxLog *", 0},{"_p_wxLogStderr", _p_wxLogStderrTo_p_wxLog},{"_p_wxLogTextCtrl", _p_wxLogTextCtrlTo_p_wxLog},{"_p_wxLogWindow", _p_wxLogWindowTo_p_wxLog},{"_p_wxLogChain", _p_wxLogChainTo_p_wxLog},{"_p_wxLogGui", _p_wxLogGuiTo_p_wxLog},{"_p_wxPyLog", _p_wxPyLogTo_p_wxLog},{"_p_wxLog"},{0}}; | |
27879 | static swig_type_info _swigt__p_wxDateTime__TimeZone[] = {{"_p_wxDateTime__TimeZone", 0, "wxDateTime::TimeZone *", 0},{"_p_wxDateTime__TimeZone"},{0}}; | |
27880 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0},{"_p_wxMenu"},{0}}; | |
27881 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxEvent},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxEvent},{"_p_wxEvent"},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxEvent},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent},{0}}; | |
27882 | static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxFileConfig", _p_wxFileConfigTo_p_wxConfigBase},{"_p_wxConfigBase"},{"_p_wxConfig", _p_wxConfigTo_p_wxConfigBase},{0}}; | |
d14a1e28 RD |
27883 | static swig_type_info _swigt__p_wxFileType[] = {{"_p_wxFileType", 0, "wxFileType *", 0},{"_p_wxFileType"},{0}}; |
27884 | static swig_type_info _swigt__p_wxLogGui[] = {{"_p_wxLogGui", 0, "wxLogGui *", 0},{"_p_wxLogGui"},{0}}; | |
27885 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
27886 | static swig_type_info _swigt__p_wxDataFormat[] = {{"_p_wxDataFormat", 0, "wxDataFormat *", 0},{"_p_wxDataFormat"},{0}}; | |
27887 | static swig_type_info _swigt__p_wxTimerEvent[] = {{"_p_wxTimerEvent", 0, "wxTimerEvent *", 0},{"_p_wxTimerEvent"},{0}}; | |
27888 | static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0},{"_p_wxCaret"},{0}}; | |
27889 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
27890 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
27891 | static swig_type_info _swigt__p_wxClipboard[] = {{"_p_wxClipboard", 0, "wxClipboard *", 0},{"_p_wxClipboard"},{0}}; | |
27892 | static swig_type_info _swigt__p_wxStopWatch[] = {{"_p_wxStopWatch", 0, "wxStopWatch *", 0},{"_p_wxStopWatch"},{0}}; | |
27893 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; | |
27894 | static swig_type_info _swigt__p_wxClipboardLocker[] = {{"_p_wxClipboardLocker", 0, "wxClipboardLocker *", 0},{"_p_wxClipboardLocker"},{0}}; | |
27895 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
27896 | static swig_type_info _swigt__p_wxLogStderr[] = {{"_p_wxLogStderr", 0, "wxLogStderr *", 0},{"_p_wxLogStderr"},{0}}; | |
27897 | static swig_type_info _swigt__p_wxLogTextCtrl[] = {{"_p_wxLogTextCtrl", 0, "wxLogTextCtrl *", 0},{"_p_wxLogTextCtrl"},{0}}; | |
27898 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}}; | |
27899 | static swig_type_info _swigt__p_wxBusyCursor[] = {{"_p_wxBusyCursor", 0, "wxBusyCursor *", 0},{"_p_wxBusyCursor"},{0}}; | |
d14a1e28 RD |
27900 | static swig_type_info _swigt__p_wxPyTextDataObject[] = {{"_p_wxPyTextDataObject", 0, "wxPyTextDataObject *", 0},{"_p_wxPyTextDataObject"},{0}}; |
27901 | static swig_type_info _swigt__p_wxBitmapDataObject[] = {{"_p_wxBitmapDataObject", 0, "wxBitmapDataObject *", 0},{"_p_wxBitmapDataObject"},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject},{0}}; | |
27902 | static swig_type_info _swigt__p_wxTextDataObject[] = {{"_p_wxTextDataObject", 0, "wxTextDataObject *", 0},{"_p_wxTextDataObject"},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxTextDataObject},{0}}; | |
27903 | static swig_type_info _swigt__p_wxDataObject[] = {{"_p_wxDataObject", 0, "wxDataObject *", 0},{"_p_wxDataObjectSimple", _p_wxDataObjectSimpleTo_p_wxDataObject},{"_p_wxPyDataObjectSimple", _p_wxPyDataObjectSimpleTo_p_wxDataObject},{"_p_wxDataObjectComposite", _p_wxDataObjectCompositeTo_p_wxDataObject},{"_p_wxDataObject"},{"_p_wxTextDataObject", _p_wxTextDataObjectTo_p_wxDataObject},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxDataObject},{"_p_wxBitmapDataObject", _p_wxBitmapDataObjectTo_p_wxDataObject},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxDataObject},{"_p_wxFileDataObject", _p_wxFileDataObjectTo_p_wxDataObject},{"_p_wxCustomDataObject", _p_wxCustomDataObjectTo_p_wxDataObject},{"_p_wxMetafileDataObject", _p_wxMetafileDataObjectTo_p_wxDataObject},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObject},{0}}; | |
4d5c3d91 | 27904 | static swig_type_info _swigt__p_wxPyBitmapDataObject[] = {{"_p_wxPyBitmapDataObject", 0, "wxPyBitmapDataObject *", 0},{"_p_wxPyBitmapDataObject"},{0}}; |
994141e6 | 27905 | static swig_type_info _swigt__p_wxFileDataObject[] = {{"_p_wxFileDataObject", 0, "wxFileDataObject *", 0},{"_p_wxFileDataObject"},{0}}; |
d14a1e28 RD |
27906 | static swig_type_info _swigt__p_wxCustomDataObject[] = {{"_p_wxCustomDataObject", 0, "wxCustomDataObject *", 0},{"_p_wxCustomDataObject"},{0}}; |
27907 | static swig_type_info _swigt__p_wxURLDataObject[] = {{"_p_wxURLDataObject", 0, "wxURLDataObject *", 0},{"_p_wxURLDataObject"},{0}}; | |
27908 | static swig_type_info _swigt__p_wxMetafileDataObject[] = {{"_p_wxMetafileDataObject", 0, "wxMetafileDataObject *", 0},{"_p_wxMetafileDataObject"},{0}}; | |
4d5c3d91 | 27909 | static swig_type_info _swigt__p_wxSound[] = {{"_p_wxSound", 0, "wxSound *", 0},{"_p_wxSound"},{0}}; |
d14a1e28 RD |
27910 | static swig_type_info _swigt__p_wxTimerRunner[] = {{"_p_wxTimerRunner", 0, "wxTimerRunner *", 0},{"_p_wxTimerRunner"},{0}}; |
27911 | static swig_type_info _swigt__p_wxLogWindow[] = {{"_p_wxLogWindow", 0, "wxLogWindow *", 0},{"_p_wxLogWindow"},{0}}; | |
27912 | static swig_type_info _swigt__p_wxTimeSpan[] = {{"_p_wxTimeSpan", 0, "wxTimeSpan *", 0},{"_p_wxTimeSpan"},{0}}; | |
27913 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; | |
27914 | static swig_type_info _swigt__p_wxWindowDisabler[] = {{"_p_wxWindowDisabler", 0, "wxWindowDisabler *", 0},{"_p_wxWindowDisabler"},{0}}; | |
27915 | static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0},{"_p_wxToolTip"},{0}}; | |
27916 | static swig_type_info _swigt__p_wxDataObjectComposite[] = {{"_p_wxDataObjectComposite", 0, "wxDataObjectComposite *", 0},{"_p_wxDataObjectComposite"},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObjectComposite},{0}}; | |
27917 | static swig_type_info _swigt__p_wxFileConfig[] = {{"_p_wxFileConfig", 0, "wxFileConfig *", 0},{"_p_wxFileConfig"},{0}}; | |
27918 | static swig_type_info _swigt__p_wxSystemSettings[] = {{"_p_wxSystemSettings", 0, "wxSystemSettings *", 0},{"_p_wxSystemSettings"},{0}}; | |
27919 | static swig_type_info _swigt__p_wxPyDataObjectSimple[] = {{"_p_wxPyDataObjectSimple", 0, "wxPyDataObjectSimple *", 0},{"_p_wxPyDataObjectSimple"},{0}}; | |
27920 | static swig_type_info _swigt__p_wxDataObjectSimple[] = {{"_p_wxDataObjectSimple", 0, "wxDataObjectSimple *", 0},{"_p_wxDataObjectSimple"},{"_p_wxPyDataObjectSimple", _p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple},{"_p_wxTextDataObject", _p_wxTextDataObjectTo_p_wxDataObjectSimple},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxDataObjectSimple},{"_p_wxBitmapDataObject", _p_wxBitmapDataObjectTo_p_wxDataObjectSimple},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple},{"_p_wxFileDataObject", _p_wxFileDataObjectTo_p_wxDataObjectSimple},{"_p_wxCustomDataObject", _p_wxCustomDataObjectTo_p_wxDataObjectSimple},{"_p_wxMetafileDataObject", _p_wxMetafileDataObjectTo_p_wxDataObjectSimple},{0}}; | |
27921 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler},{"_p_wxEvtHandler"},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxEvtHandler},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxEvtHandler},{0}}; | |
27922 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
994141e6 | 27923 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}}; |
d14a1e28 RD |
27924 | static swig_type_info _swigt__p_wxSingleInstanceChecker[] = {{"_p_wxSingleInstanceChecker", 0, "wxSingleInstanceChecker *", 0},{"_p_wxSingleInstanceChecker"},{0}}; |
27925 | static swig_type_info _swigt__p_wxFileTypeInfo[] = {{"_p_wxFileTypeInfo", 0, "wxFileTypeInfo *", 0},{"_p_wxFileTypeInfo"},{0}}; | |
27926 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}}; | |
27927 | static swig_type_info _swigt__p_wxTimer[] = {{"_p_wxTimer", 0, "wxTimer *", 0},{"_p_wxTimer"},{0}}; | |
27928 | static swig_type_info _swigt__p_wxMimeTypesManager[] = {{"_p_wxMimeTypesManager", 0, "wxMimeTypesManager *", 0},{"_p_wxMimeTypesManager"},{0}}; | |
27929 | static swig_type_info _swigt__p_wxPyArtProvider[] = {{"_p_wxPyArtProvider", 0, "wxPyArtProvider *", 0},{"_p_wxPyArtProvider"},{0}}; | |
27930 | static swig_type_info _swigt__p_wxPyTipProvider[] = {{"_p_wxPyTipProvider", 0, "wxPyTipProvider *", 0},{"_p_wxPyTipProvider"},{0}}; | |
27931 | static swig_type_info _swigt__p_wxTipProvider[] = {{"_p_wxTipProvider", 0, "wxTipProvider *", 0},{"_p_wxTipProvider"},{"_p_wxPyTipProvider", _p_wxPyTipProviderTo_p_wxTipProvider},{0}}; | |
27932 | static swig_type_info _swigt__p_wxJoystick[] = {{"_p_wxJoystick", 0, "wxJoystick *", 0},{"_p_wxJoystick"},{0}}; | |
27933 | static swig_type_info _swigt__p_wxSystemOptions[] = {{"_p_wxSystemOptions", 0, "wxSystemOptions *", 0},{"_p_wxSystemOptions"},{0}}; | |
27934 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
27935 | static swig_type_info _swigt__p_wxJoystickEvent[] = {{"_p_wxJoystickEvent", 0, "wxJoystickEvent *", 0},{"_p_wxJoystickEvent"},{0}}; | |
27936 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
1e0c8722 | 27937 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxFileHistory", _p_wxFileHistoryTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxClipboard", _p_wxClipboardTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxToolTip", _p_wxToolTipTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxSystemOptions", _p_wxSystemOptionsTo_p_wxObject},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxObject},{"_p_wxObject"},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxBusyInfo", _p_wxBusyInfoTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxObject},{0}}; |
d14a1e28 RD |
27938 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}}; |
27939 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0},{"_p_wxDateTime"},{0}}; | |
27940 | static swig_type_info _swigt__p_wxPyDropSource[] = {{"_p_wxPyDropSource", 0, "wxPyDropSource *", 0},{"_p_wxPyDropSource"},{0}}; | |
27941 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{0}}; | |
27942 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
27943 | static swig_type_info _swigt__p_wxPyProcess[] = {{"_p_wxPyProcess", 0, "wxPyProcess *", 0},{"_p_wxPyProcess"},{0}}; | |
27944 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
27945 | static swig_type_info _swigt__p_wxConfig[] = {{"_p_wxConfig", 0, "wxConfig *", 0},{"_p_wxConfig"},{0}}; | |
27946 | static swig_type_info _swigt__p_wxChar[] = {{"_p_wxChar", 0, "wxChar *", 0},{"_p_wxChar"},{0}}; | |
27947 | static swig_type_info _swigt__p_wxBusyInfo[] = {{"_p_wxBusyInfo", 0, "wxBusyInfo *", 0},{"_p_wxBusyInfo"},{0}}; | |
27948 | static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0},{"_p_wxPyDropTarget"},{"_p_wxPyTextDropTarget", _p_wxPyTextDropTargetTo_p_wxPyDropTarget},{"_p_wxPyFileDropTarget", _p_wxPyFileDropTargetTo_p_wxPyDropTarget},{0}}; | |
27949 | static swig_type_info _swigt__p_wxPyTextDropTarget[] = {{"_p_wxPyTextDropTarget", 0, "wxPyTextDropTarget *", 0},{"_p_wxPyTextDropTarget"},{0}}; | |
27950 | static swig_type_info _swigt__p_wxPyFileDropTarget[] = {{"_p_wxPyFileDropTarget", 0, "wxPyFileDropTarget *", 0},{"_p_wxPyFileDropTarget"},{0}}; | |
27951 | static swig_type_info _swigt__p_wxProcessEvent[] = {{"_p_wxProcessEvent", 0, "wxProcessEvent *", 0},{"_p_wxProcessEvent"},{0}}; | |
27952 | static swig_type_info _swigt__p_wxPyLog[] = {{"_p_wxPyLog", 0, "wxPyLog *", 0},{"_p_wxPyLog"},{0}}; | |
27953 | static swig_type_info _swigt__p_wxLogNull[] = {{"_p_wxLogNull", 0, "wxLogNull *", 0},{"_p_wxLogNull"},{0}}; | |
27954 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
4d5c3d91 | 27955 | static swig_type_info _swigt__p_wxByte[] = {{"_p_wxByte", 0, "wxByte *", 0},{"_p_wxByte"},{0}}; |
d14a1e28 RD |
27956 | static swig_type_info _swigt__p_wxConfigPathChanger[] = {{"_p_wxConfigPathChanger", 0, "wxConfigPathChanger *", 0},{"_p_wxConfigPathChanger"},{0}}; |
27957 | static swig_type_info _swigt__p_wxPyTimer[] = {{"_p_wxPyTimer", 0, "wxPyTimer *", 0},{"_p_wxPyTimer"},{0}}; | |
27958 | static swig_type_info _swigt__p_wxDateSpan[] = {{"_p_wxDateSpan", 0, "wxDateSpan *", 0},{"_p_wxDateSpan"},{0}}; | |
27959 | ||
27960 | static swig_type_info *swig_types_initial[] = { | |
27961 | _swigt__p_wxLogChain, | |
27962 | _swigt__p_wxMutexGuiLocker, | |
27963 | _swigt__p_wxFileHistory, | |
27964 | _swigt__p_wxLog, | |
27965 | _swigt__p_wxDateTime__TimeZone, | |
27966 | _swigt__p_wxMenu, | |
27967 | _swigt__p_wxEvent, | |
27968 | _swigt__p_wxConfigBase, | |
d14a1e28 RD |
27969 | _swigt__p_wxFileType, |
27970 | _swigt__p_wxLogGui, | |
27971 | _swigt__p_wxFont, | |
27972 | _swigt__p_wxDataFormat, | |
27973 | _swigt__p_wxTimerEvent, | |
27974 | _swigt__p_wxCaret, | |
27975 | _swigt__p_int, | |
27976 | _swigt__p_wxSize, | |
27977 | _swigt__p_wxClipboard, | |
27978 | _swigt__p_wxStopWatch, | |
27979 | _swigt__p_wxDC, | |
27980 | _swigt__p_wxClipboardLocker, | |
27981 | _swigt__p_wxIcon, | |
27982 | _swigt__p_wxLogStderr, | |
27983 | _swigt__p_wxLogTextCtrl, | |
27984 | _swigt__p_wxTextCtrl, | |
27985 | _swigt__p_wxBusyCursor, | |
d14a1e28 RD |
27986 | _swigt__p_wxPyTextDataObject, |
27987 | _swigt__p_wxBitmapDataObject, | |
27988 | _swigt__p_wxTextDataObject, | |
27989 | _swigt__p_wxDataObject, | |
4d5c3d91 | 27990 | _swigt__p_wxPyBitmapDataObject, |
994141e6 | 27991 | _swigt__p_wxFileDataObject, |
d14a1e28 RD |
27992 | _swigt__p_wxCustomDataObject, |
27993 | _swigt__p_wxURLDataObject, | |
27994 | _swigt__p_wxMetafileDataObject, | |
4d5c3d91 | 27995 | _swigt__p_wxSound, |
d14a1e28 RD |
27996 | _swigt__p_wxTimerRunner, |
27997 | _swigt__p_wxLogWindow, | |
27998 | _swigt__p_wxTimeSpan, | |
27999 | _swigt__p_wxArrayString, | |
28000 | _swigt__p_wxWindowDisabler, | |
28001 | _swigt__p_wxToolTip, | |
28002 | _swigt__p_wxDataObjectComposite, | |
28003 | _swigt__p_wxFileConfig, | |
28004 | _swigt__p_wxSystemSettings, | |
28005 | _swigt__p_wxPyDataObjectSimple, | |
28006 | _swigt__p_wxDataObjectSimple, | |
28007 | _swigt__p_wxEvtHandler, | |
28008 | _swigt__p_wxRect, | |
994141e6 | 28009 | _swigt__p_char, |
d14a1e28 RD |
28010 | _swigt__p_wxSingleInstanceChecker, |
28011 | _swigt__p_wxFileTypeInfo, | |
28012 | _swigt__p_wxFrame, | |
28013 | _swigt__p_wxTimer, | |
28014 | _swigt__p_wxMimeTypesManager, | |
28015 | _swigt__p_wxPyArtProvider, | |
28016 | _swigt__p_wxPyTipProvider, | |
28017 | _swigt__p_wxTipProvider, | |
28018 | _swigt__p_wxJoystick, | |
28019 | _swigt__p_wxSystemOptions, | |
28020 | _swigt__p_wxPoint, | |
28021 | _swigt__p_wxJoystickEvent, | |
28022 | _swigt__p_wxCursor, | |
28023 | _swigt__p_wxObject, | |
28024 | _swigt__p_wxOutputStream, | |
28025 | _swigt__p_wxDateTime, | |
28026 | _swigt__p_wxPyDropSource, | |
28027 | _swigt__p_wxWindow, | |
28028 | _swigt__p_wxString, | |
28029 | _swigt__p_wxPyProcess, | |
28030 | _swigt__p_wxBitmap, | |
28031 | _swigt__p_wxConfig, | |
28032 | _swigt__p_wxChar, | |
28033 | _swigt__p_wxBusyInfo, | |
28034 | _swigt__p_wxPyDropTarget, | |
28035 | _swigt__p_wxPyTextDropTarget, | |
28036 | _swigt__p_wxPyFileDropTarget, | |
28037 | _swigt__p_wxProcessEvent, | |
28038 | _swigt__p_wxPyLog, | |
28039 | _swigt__p_wxLogNull, | |
28040 | _swigt__p_wxColour, | |
4d5c3d91 | 28041 | _swigt__p_wxByte, |
d14a1e28 RD |
28042 | _swigt__p_wxConfigPathChanger, |
28043 | _swigt__p_wxPyTimer, | |
28044 | _swigt__p_wxDateSpan, | |
28045 | 0 | |
28046 | }; | |
28047 | ||
28048 | ||
28049 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
28050 | ||
28051 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
28052 | { SWIG_PY_STRING, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", 0}, |
28053 | { SWIG_PY_STRING, (char*)"TRACE_Messages", 0, 0, (void *)"messages", 0}, | |
28054 | { SWIG_PY_STRING, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", 0}, | |
28055 | { SWIG_PY_STRING, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", 0}, | |
28056 | { SWIG_PY_STRING, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", 0}, | |
d14a1e28 RD |
28057 | {0}}; |
28058 | ||
28059 | #ifdef __cplusplus | |
28060 | } | |
28061 | #endif | |
28062 | ||
28063 | #ifdef __cplusplus | |
28064 | extern "C" | |
28065 | #endif | |
28066 | SWIGEXPORT(void) SWIG_init(void) { | |
28067 | static PyObject *SWIG_globals = 0; | |
28068 | static int typeinit = 0; | |
28069 | PyObject *m, *d; | |
28070 | int i; | |
28071 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
28072 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
28073 | d = PyModule_GetDict(m); | |
28074 | ||
28075 | if (!typeinit) { | |
28076 | for (i = 0; swig_types_initial[i]; i++) { | |
28077 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
28078 | } | |
28079 | typeinit = 1; | |
28080 | } | |
28081 | SWIG_InstallConstants(d,swig_const_table); | |
28082 | ||
994141e6 RD |
28083 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_PyObj_FromInt((int)wxSYS_OEM_FIXED_FONT)); |
28084 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_PyObj_FromInt((int)wxSYS_ANSI_FIXED_FONT)); | |
28085 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_PyObj_FromInt((int)wxSYS_ANSI_VAR_FONT)); | |
28086 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_PyObj_FromInt((int)wxSYS_SYSTEM_FONT)); | |
28087 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_PyObj_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT)); | |
28088 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_PyObj_FromInt((int)wxSYS_DEFAULT_PALETTE)); | |
28089 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_PyObj_FromInt((int)wxSYS_SYSTEM_FIXED_FONT)); | |
28090 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_PyObj_FromInt((int)wxSYS_DEFAULT_GUI_FONT)); | |
28091 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_PyObj_FromInt((int)wxSYS_ICONTITLE_FONT)); | |
28092 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_SCROLLBAR)); | |
28093 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_BACKGROUND)); | |
28094 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_DESKTOP)); | |
28095 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION)); | |
28096 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION)); | |
28097 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_MENU)); | |
28098 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_WINDOW)); | |
28099 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_WINDOWFRAME)); | |
28100 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_MENUTEXT)); | |
28101 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_WINDOWTEXT)); | |
28102 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT)); | |
28103 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER)); | |
28104 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER)); | |
28105 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_APPWORKSPACE)); | |
28106 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_HIGHLIGHT)); | |
28107 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
28108 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_BTNFACE)); | |
28109 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_3DFACE)); | |
28110 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_BTNSHADOW)); | |
28111 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_3DSHADOW)); | |
28112 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_GRAYTEXT)); | |
28113 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_BTNTEXT)); | |
28114 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
28115 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT)); | |
28116 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_BTNHILIGHT)); | |
28117 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT)); | |
28118 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_3DHILIGHT)); | |
28119 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_3DDKSHADOW)); | |
28120 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_3DLIGHT)); | |
28121 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_INFOTEXT)); | |
28122 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_INFOBK)); | |
28123 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_LISTBOX)); | |
28124 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_HOTLIGHT)); | |
28125 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
28126 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
28127 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_MENUHILIGHT)); | |
28128 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_MENUBAR)); | |
28129 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_MAX)); | |
28130 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_PyObj_FromInt((int)wxSYS_MOUSE_BUTTONS)); | |
28131 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_PyObj_FromInt((int)wxSYS_BORDER_X)); | |
28132 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_PyObj_FromInt((int)wxSYS_BORDER_Y)); | |
28133 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_PyObj_FromInt((int)wxSYS_CURSOR_X)); | |
28134 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_PyObj_FromInt((int)wxSYS_CURSOR_Y)); | |
28135 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_PyObj_FromInt((int)wxSYS_DCLICK_X)); | |
28136 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_PyObj_FromInt((int)wxSYS_DCLICK_Y)); | |
28137 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_PyObj_FromInt((int)wxSYS_DRAG_X)); | |
28138 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_PyObj_FromInt((int)wxSYS_DRAG_Y)); | |
28139 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_PyObj_FromInt((int)wxSYS_EDGE_X)); | |
28140 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_PyObj_FromInt((int)wxSYS_EDGE_Y)); | |
28141 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_PyObj_FromInt((int)wxSYS_HSCROLL_ARROW_X)); | |
28142 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_PyObj_FromInt((int)wxSYS_HSCROLL_ARROW_Y)); | |
28143 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_PyObj_FromInt((int)wxSYS_HTHUMB_X)); | |
28144 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_PyObj_FromInt((int)wxSYS_ICON_X)); | |
28145 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_PyObj_FromInt((int)wxSYS_ICON_Y)); | |
28146 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_PyObj_FromInt((int)wxSYS_ICONSPACING_X)); | |
28147 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_PyObj_FromInt((int)wxSYS_ICONSPACING_Y)); | |
28148 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_PyObj_FromInt((int)wxSYS_WINDOWMIN_X)); | |
28149 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_PyObj_FromInt((int)wxSYS_WINDOWMIN_Y)); | |
28150 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_X)); | |
28151 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_Y)); | |
28152 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_PyObj_FromInt((int)wxSYS_FRAMESIZE_X)); | |
28153 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_PyObj_FromInt((int)wxSYS_FRAMESIZE_Y)); | |
28154 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_PyObj_FromInt((int)wxSYS_SMALLICON_X)); | |
28155 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_PyObj_FromInt((int)wxSYS_SMALLICON_Y)); | |
28156 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_PyObj_FromInt((int)wxSYS_HSCROLL_Y)); | |
28157 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_PyObj_FromInt((int)wxSYS_VSCROLL_X)); | |
28158 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_PyObj_FromInt((int)wxSYS_VSCROLL_ARROW_X)); | |
28159 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_PyObj_FromInt((int)wxSYS_VSCROLL_ARROW_Y)); | |
28160 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_PyObj_FromInt((int)wxSYS_VTHUMB_Y)); | |
28161 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_PyObj_FromInt((int)wxSYS_CAPTION_Y)); | |
28162 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_PyObj_FromInt((int)wxSYS_MENU_Y)); | |
28163 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_PyObj_FromInt((int)wxSYS_NETWORK_PRESENT)); | |
28164 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_PyObj_FromInt((int)wxSYS_PENWINDOWS_PRESENT)); | |
28165 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_PyObj_FromInt((int)wxSYS_SHOW_SOUNDS)); | |
28166 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_PyObj_FromInt((int)wxSYS_SWAP_BUTTONS)); | |
28167 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_PyObj_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS)); | |
28168 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_PyObj_FromInt((int)wxSYS_CAN_ICONIZE_FRAME)); | |
28169 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_NONE)); | |
28170 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_TINY)); | |
28171 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_PDA)); | |
28172 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_SMALL)); | |
28173 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_DESKTOP)); | |
b2dc1044 RD |
28174 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
28175 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
28176 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
28177 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
994141e6 RD |
28178 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_PyObj_FromInt((int)wxSHUTDOWN_POWEROFF)); |
28179 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_PyObj_FromInt((int)wxSHUTDOWN_REBOOT)); | |
28180 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_PyObj_FromInt((int)wxTIMER_CONTINUOUS)); | |
28181 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_PyObj_FromInt((int)wxTIMER_ONE_SHOT)); | |
d14a1e28 | 28182 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); |
994141e6 RD |
28183 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_PyObj_FromInt((int)wxLOG_FatalError)); |
28184 | PyDict_SetItemString(d,"LOG_Error", SWIG_PyObj_FromInt((int)wxLOG_Error)); | |
28185 | PyDict_SetItemString(d,"LOG_Warning", SWIG_PyObj_FromInt((int)wxLOG_Warning)); | |
28186 | PyDict_SetItemString(d,"LOG_Message", SWIG_PyObj_FromInt((int)wxLOG_Message)); | |
28187 | PyDict_SetItemString(d,"LOG_Status", SWIG_PyObj_FromInt((int)wxLOG_Status)); | |
28188 | PyDict_SetItemString(d,"LOG_Info", SWIG_PyObj_FromInt((int)wxLOG_Info)); | |
28189 | PyDict_SetItemString(d,"LOG_Debug", SWIG_PyObj_FromInt((int)wxLOG_Debug)); | |
28190 | PyDict_SetItemString(d,"LOG_Trace", SWIG_PyObj_FromInt((int)wxLOG_Trace)); | |
28191 | PyDict_SetItemString(d,"LOG_Progress", SWIG_PyObj_FromInt((int)wxLOG_Progress)); | |
28192 | PyDict_SetItemString(d,"LOG_User", SWIG_PyObj_FromInt((int)wxLOG_User)); | |
28193 | PyDict_SetItemString(d,"LOG_Max", SWIG_PyObj_FromInt((int)wxLOG_Max)); | |
28194 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_PyObj_FromInt((int)0x0001)); | |
28195 | PyDict_SetItemString(d,"TraceMessages", SWIG_PyObj_FromInt((int)0x0002)); | |
28196 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_PyObj_FromInt((int)0x0004)); | |
28197 | PyDict_SetItemString(d,"TraceRefCount", SWIG_PyObj_FromInt((int)0x0008)); | |
28198 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_PyObj_FromInt((int)0x0100)); | |
28199 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_PyObj_FromInt((int)wxPROCESS_DEFAULT)); | |
28200 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_PyObj_FromInt((int)wxPROCESS_REDIRECT)); | |
28201 | PyDict_SetItemString(d,"KILL_OK", SWIG_PyObj_FromInt((int)wxKILL_OK)); | |
28202 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_PyObj_FromInt((int)wxKILL_BAD_SIGNAL)); | |
28203 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_PyObj_FromInt((int)wxKILL_ACCESS_DENIED)); | |
28204 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_PyObj_FromInt((int)wxKILL_NO_PROCESS)); | |
28205 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_PyObj_FromInt((int)wxKILL_ERROR)); | |
28206 | PyDict_SetItemString(d,"SIGNONE", SWIG_PyObj_FromInt((int)wxSIGNONE)); | |
28207 | PyDict_SetItemString(d,"SIGHUP", SWIG_PyObj_FromInt((int)wxSIGHUP)); | |
28208 | PyDict_SetItemString(d,"SIGINT", SWIG_PyObj_FromInt((int)wxSIGINT)); | |
28209 | PyDict_SetItemString(d,"SIGQUIT", SWIG_PyObj_FromInt((int)wxSIGQUIT)); | |
28210 | PyDict_SetItemString(d,"SIGILL", SWIG_PyObj_FromInt((int)wxSIGILL)); | |
28211 | PyDict_SetItemString(d,"SIGTRAP", SWIG_PyObj_FromInt((int)wxSIGTRAP)); | |
28212 | PyDict_SetItemString(d,"SIGABRT", SWIG_PyObj_FromInt((int)wxSIGABRT)); | |
28213 | PyDict_SetItemString(d,"SIGIOT", SWIG_PyObj_FromInt((int)wxSIGIOT)); | |
28214 | PyDict_SetItemString(d,"SIGEMT", SWIG_PyObj_FromInt((int)wxSIGEMT)); | |
28215 | PyDict_SetItemString(d,"SIGFPE", SWIG_PyObj_FromInt((int)wxSIGFPE)); | |
28216 | PyDict_SetItemString(d,"SIGKILL", SWIG_PyObj_FromInt((int)wxSIGKILL)); | |
28217 | PyDict_SetItemString(d,"SIGBUS", SWIG_PyObj_FromInt((int)wxSIGBUS)); | |
28218 | PyDict_SetItemString(d,"SIGSEGV", SWIG_PyObj_FromInt((int)wxSIGSEGV)); | |
28219 | PyDict_SetItemString(d,"SIGSYS", SWIG_PyObj_FromInt((int)wxSIGSYS)); | |
28220 | PyDict_SetItemString(d,"SIGPIPE", SWIG_PyObj_FromInt((int)wxSIGPIPE)); | |
28221 | PyDict_SetItemString(d,"SIGALRM", SWIG_PyObj_FromInt((int)wxSIGALRM)); | |
28222 | PyDict_SetItemString(d,"SIGTERM", SWIG_PyObj_FromInt((int)wxSIGTERM)); | |
d14a1e28 | 28223 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); |
994141e6 RD |
28224 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_PyObj_FromInt((int)wxEXEC_ASYNC)); |
28225 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_PyObj_FromInt((int)wxEXEC_SYNC)); | |
28226 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_PyObj_FromInt((int)wxEXEC_NOHIDE)); | |
28227 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_PyObj_FromInt((int)wxEXEC_MAKE_GROUP_LEADER)); | |
d14a1e28 RD |
28228 | |
28229 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
28230 | ||
994141e6 RD |
28231 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_PyObj_FromInt((int)wxJOYSTICK1)); |
28232 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_PyObj_FromInt((int)wxJOYSTICK2)); | |
28233 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_PyObj_FromInt((int)wxJOY_BUTTON_ANY)); | |
28234 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_PyObj_FromInt((int)wxJOY_BUTTON1)); | |
28235 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_PyObj_FromInt((int)wxJOY_BUTTON2)); | |
28236 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_PyObj_FromInt((int)wxJOY_BUTTON3)); | |
28237 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_PyObj_FromInt((int)wxJOY_BUTTON4)); | |
d14a1e28 RD |
28238 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); |
28239 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
28240 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
28241 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
4d5c3d91 RD |
28242 | PyDict_SetItemString(d,"SOUND_SYNC", SWIG_PyObj_FromInt((int)wxSOUND_SYNC)); |
28243 | PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_PyObj_FromInt((int)wxSOUND_ASYNC)); | |
28244 | PyDict_SetItemString(d,"SOUND_LOOP", SWIG_PyObj_FromInt((int)wxSOUND_LOOP)); | |
994141e6 RD |
28245 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_PyObj_FromInt((int)wxMAILCAP_STANDARD)); |
28246 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_PyObj_FromInt((int)wxMAILCAP_NETSCAPE)); | |
28247 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_PyObj_FromInt((int)wxMAILCAP_KDE)); | |
28248 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_PyObj_FromInt((int)wxMAILCAP_GNOME)); | |
28249 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_PyObj_FromInt((int)wxMAILCAP_ALL)); | |
d14a1e28 RD |
28250 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); |
28251 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
28252 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
28253 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
28254 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
28255 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
28256 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
28257 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); | |
28258 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
28259 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
28260 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
28261 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
28262 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
28263 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
28264 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
28265 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
28266 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
28267 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
28268 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
28269 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
28270 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
28271 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
28272 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
28273 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
28274 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
28275 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
28276 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
28277 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
28278 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
28279 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
28280 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
28281 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
28282 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
28283 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
28284 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
28285 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
28286 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
28287 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
28288 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
28289 | ||
28290 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
28291 | ||
994141e6 RD |
28292 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_PyObj_FromInt((int)wxCONFIG_USE_LOCAL_FILE)); |
28293 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_PyObj_FromInt((int)wxCONFIG_USE_GLOBAL_FILE)); | |
28294 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_PyObj_FromInt((int)wxCONFIG_USE_RELATIVE_PATH)); | |
28295 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_PyObj_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS)); | |
28296 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_PyObj_FromInt((int)wxConfigBase::Type_Unknown)); | |
28297 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_PyObj_FromInt((int)wxConfigBase::Type_String)); | |
28298 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_PyObj_FromInt((int)wxConfigBase::Type_Boolean)); | |
28299 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_PyObj_FromInt((int)wxConfigBase::Type_Integer)); | |
28300 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_PyObj_FromInt((int)wxConfigBase::Type_Float)); | |
b2dc1044 RD |
28301 | SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); |
28302 | SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); | |
994141e6 RD |
28303 | PyDict_SetItemString(d,"DateTime_Local", SWIG_PyObj_FromInt((int)wxDateTime::Local)); |
28304 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_PyObj_FromInt((int)wxDateTime::GMT_12)); | |
28305 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_PyObj_FromInt((int)wxDateTime::GMT_11)); | |
28306 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_PyObj_FromInt((int)wxDateTime::GMT_10)); | |
28307 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_PyObj_FromInt((int)wxDateTime::GMT_9)); | |
28308 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_PyObj_FromInt((int)wxDateTime::GMT_8)); | |
28309 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_PyObj_FromInt((int)wxDateTime::GMT_7)); | |
28310 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_PyObj_FromInt((int)wxDateTime::GMT_6)); | |
28311 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_PyObj_FromInt((int)wxDateTime::GMT_5)); | |
28312 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_PyObj_FromInt((int)wxDateTime::GMT_4)); | |
28313 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_PyObj_FromInt((int)wxDateTime::GMT_3)); | |
28314 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_PyObj_FromInt((int)wxDateTime::GMT_2)); | |
28315 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_PyObj_FromInt((int)wxDateTime::GMT_1)); | |
28316 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_PyObj_FromInt((int)wxDateTime::GMT0)); | |
28317 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_PyObj_FromInt((int)wxDateTime::GMT1)); | |
28318 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_PyObj_FromInt((int)wxDateTime::GMT2)); | |
28319 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_PyObj_FromInt((int)wxDateTime::GMT3)); | |
28320 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_PyObj_FromInt((int)wxDateTime::GMT4)); | |
28321 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_PyObj_FromInt((int)wxDateTime::GMT5)); | |
28322 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_PyObj_FromInt((int)wxDateTime::GMT6)); | |
28323 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_PyObj_FromInt((int)wxDateTime::GMT7)); | |
28324 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_PyObj_FromInt((int)wxDateTime::GMT8)); | |
28325 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_PyObj_FromInt((int)wxDateTime::GMT9)); | |
28326 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_PyObj_FromInt((int)wxDateTime::GMT10)); | |
28327 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_PyObj_FromInt((int)wxDateTime::GMT11)); | |
28328 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_PyObj_FromInt((int)wxDateTime::GMT12)); | |
28329 | PyDict_SetItemString(d,"DateTime_WET", SWIG_PyObj_FromInt((int)wxDateTime::WET)); | |
28330 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_PyObj_FromInt((int)wxDateTime::WEST)); | |
28331 | PyDict_SetItemString(d,"DateTime_CET", SWIG_PyObj_FromInt((int)wxDateTime::CET)); | |
28332 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_PyObj_FromInt((int)wxDateTime::CEST)); | |
28333 | PyDict_SetItemString(d,"DateTime_EET", SWIG_PyObj_FromInt((int)wxDateTime::EET)); | |
28334 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_PyObj_FromInt((int)wxDateTime::EEST)); | |
28335 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_PyObj_FromInt((int)wxDateTime::MSK)); | |
28336 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_PyObj_FromInt((int)wxDateTime::MSD)); | |
28337 | PyDict_SetItemString(d,"DateTime_AST", SWIG_PyObj_FromInt((int)wxDateTime::AST)); | |
28338 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_PyObj_FromInt((int)wxDateTime::ADT)); | |
28339 | PyDict_SetItemString(d,"DateTime_EST", SWIG_PyObj_FromInt((int)wxDateTime::EST)); | |
28340 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_PyObj_FromInt((int)wxDateTime::EDT)); | |
28341 | PyDict_SetItemString(d,"DateTime_CST", SWIG_PyObj_FromInt((int)wxDateTime::CST)); | |
28342 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_PyObj_FromInt((int)wxDateTime::CDT)); | |
28343 | PyDict_SetItemString(d,"DateTime_MST", SWIG_PyObj_FromInt((int)wxDateTime::MST)); | |
28344 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_PyObj_FromInt((int)wxDateTime::MDT)); | |
28345 | PyDict_SetItemString(d,"DateTime_PST", SWIG_PyObj_FromInt((int)wxDateTime::PST)); | |
28346 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_PyObj_FromInt((int)wxDateTime::PDT)); | |
28347 | PyDict_SetItemString(d,"DateTime_HST", SWIG_PyObj_FromInt((int)wxDateTime::HST)); | |
28348 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_PyObj_FromInt((int)wxDateTime::AKST)); | |
28349 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_PyObj_FromInt((int)wxDateTime::AKDT)); | |
28350 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_PyObj_FromInt((int)wxDateTime::A_WST)); | |
28351 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_PyObj_FromInt((int)wxDateTime::A_CST)); | |
28352 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_PyObj_FromInt((int)wxDateTime::A_EST)); | |
28353 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_PyObj_FromInt((int)wxDateTime::A_ESST)); | |
28354 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_PyObj_FromInt((int)wxDateTime::UTC)); | |
28355 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_PyObj_FromInt((int)wxDateTime::Gregorian)); | |
28356 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_PyObj_FromInt((int)wxDateTime::Julian)); | |
28357 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Unknown)); | |
28358 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Standard)); | |
28359 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Alaska)); | |
28360 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Albania)); | |
28361 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Austria)); | |
28362 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Austria_Brixen)); | |
28363 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Austria_Salzburg)); | |
28364 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Austria_Tyrol)); | |
28365 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Austria_Carinthia)); | |
28366 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Austria_Styria)); | |
28367 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Belgium)); | |
28368 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Bulgaria)); | |
28369 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Bulgaria_1)); | |
28370 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Bulgaria_2)); | |
28371 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Bulgaria_3)); | |
28372 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Canada)); | |
28373 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_PyObj_FromInt((int)wxDateTime::Gr_China)); | |
28374 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_PyObj_FromInt((int)wxDateTime::Gr_China_1)); | |
28375 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_PyObj_FromInt((int)wxDateTime::Gr_China_2)); | |
28376 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Czechoslovakia)); | |
28377 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Denmark)); | |
28378 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Egypt)); | |
28379 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Estonia)); | |
28380 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Finland)); | |
28381 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_PyObj_FromInt((int)wxDateTime::Gr_France)); | |
28382 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_PyObj_FromInt((int)wxDateTime::Gr_France_Alsace)); | |
28383 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_PyObj_FromInt((int)wxDateTime::Gr_France_Lorraine)); | |
28384 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_PyObj_FromInt((int)wxDateTime::Gr_France_Strasbourg)); | |
28385 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Germany)); | |
28386 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Germany_Catholic)); | |
28387 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Germany_Prussia)); | |
28388 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Germany_Protestant)); | |
28389 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_PyObj_FromInt((int)wxDateTime::Gr_GreatBritain)); | |
28390 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Greece)); | |
28391 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Hungary)); | |
28392 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Ireland)); | |
28393 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Italy)); | |
28394 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Japan)); | |
28395 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Japan_1)); | |
28396 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Japan_2)); | |
28397 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Japan_3)); | |
28398 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Latvia)); | |
28399 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Lithuania)); | |
28400 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Luxemburg)); | |
28401 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Netherlands)); | |
28402 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Netherlands_Groningen)); | |
28403 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland)); | |
28404 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht)); | |
28405 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Netherlands_Friesland)); | |
28406 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Norway)); | |
28407 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Poland)); | |
28408 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Portugal)); | |
28409 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Romania)); | |
28410 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Russia)); | |
28411 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Scotland)); | |
28412 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Spain)); | |
28413 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Sweden)); | |
28414 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Switzerland)); | |
28415 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Switzerland_Catholic)); | |
28416 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Switzerland_Protestant)); | |
28417 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Turkey)); | |
28418 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_PyObj_FromInt((int)wxDateTime::Gr_USA)); | |
28419 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Wales)); | |
28420 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Yugoslavia)); | |
28421 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_PyObj_FromInt((int)wxDateTime::Country_Unknown)); | |
28422 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_PyObj_FromInt((int)wxDateTime::Country_Default)); | |
28423 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_PyObj_FromInt((int)wxDateTime::Country_WesternEurope_Start)); | |
28424 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_PyObj_FromInt((int)wxDateTime::Country_EEC)); | |
28425 | PyDict_SetItemString(d,"DateTime_France", SWIG_PyObj_FromInt((int)wxDateTime::France)); | |
28426 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_PyObj_FromInt((int)wxDateTime::Germany)); | |
28427 | PyDict_SetItemString(d,"DateTime_UK", SWIG_PyObj_FromInt((int)wxDateTime::UK)); | |
28428 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_PyObj_FromInt((int)wxDateTime::Country_WesternEurope_End)); | |
28429 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_PyObj_FromInt((int)wxDateTime::Russia)); | |
28430 | PyDict_SetItemString(d,"DateTime_USA", SWIG_PyObj_FromInt((int)wxDateTime::USA)); | |
28431 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_PyObj_FromInt((int)wxDateTime::Jan)); | |
28432 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_PyObj_FromInt((int)wxDateTime::Feb)); | |
28433 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_PyObj_FromInt((int)wxDateTime::Mar)); | |
28434 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_PyObj_FromInt((int)wxDateTime::Apr)); | |
28435 | PyDict_SetItemString(d,"DateTime_May", SWIG_PyObj_FromInt((int)wxDateTime::May)); | |
28436 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_PyObj_FromInt((int)wxDateTime::Jun)); | |
28437 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_PyObj_FromInt((int)wxDateTime::Jul)); | |
28438 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_PyObj_FromInt((int)wxDateTime::Aug)); | |
28439 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_PyObj_FromInt((int)wxDateTime::Sep)); | |
28440 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_PyObj_FromInt((int)wxDateTime::Oct)); | |
28441 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_PyObj_FromInt((int)wxDateTime::Nov)); | |
28442 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_PyObj_FromInt((int)wxDateTime::Dec)); | |
28443 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_PyObj_FromInt((int)wxDateTime::Inv_Month)); | |
28444 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_PyObj_FromInt((int)wxDateTime::Sun)); | |
28445 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_PyObj_FromInt((int)wxDateTime::Mon)); | |
28446 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_PyObj_FromInt((int)wxDateTime::Tue)); | |
28447 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_PyObj_FromInt((int)wxDateTime::Wed)); | |
28448 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_PyObj_FromInt((int)wxDateTime::Thu)); | |
28449 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_PyObj_FromInt((int)wxDateTime::Fri)); | |
28450 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_PyObj_FromInt((int)wxDateTime::Sat)); | |
28451 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_PyObj_FromInt((int)wxDateTime::Inv_WeekDay)); | |
28452 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_PyObj_FromInt((int)wxDateTime::Inv_Year)); | |
28453 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_PyObj_FromInt((int)wxDateTime::Name_Full)); | |
28454 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_PyObj_FromInt((int)wxDateTime::Name_Abbr)); | |
28455 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_PyObj_FromInt((int)wxDateTime::Default_First)); | |
28456 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_PyObj_FromInt((int)wxDateTime::Monday_First)); | |
28457 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_PyObj_FromInt((int)wxDateTime::Sunday_First)); | |
28458 | PyDict_SetItemString(d,"DF_INVALID", SWIG_PyObj_FromInt((int)wxDF_INVALID)); | |
28459 | PyDict_SetItemString(d,"DF_TEXT", SWIG_PyObj_FromInt((int)wxDF_TEXT)); | |
28460 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_PyObj_FromInt((int)wxDF_BITMAP)); | |
28461 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_PyObj_FromInt((int)wxDF_METAFILE)); | |
28462 | PyDict_SetItemString(d,"DF_SYLK", SWIG_PyObj_FromInt((int)wxDF_SYLK)); | |
28463 | PyDict_SetItemString(d,"DF_DIF", SWIG_PyObj_FromInt((int)wxDF_DIF)); | |
28464 | PyDict_SetItemString(d,"DF_TIFF", SWIG_PyObj_FromInt((int)wxDF_TIFF)); | |
28465 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_PyObj_FromInt((int)wxDF_OEMTEXT)); | |
28466 | PyDict_SetItemString(d,"DF_DIB", SWIG_PyObj_FromInt((int)wxDF_DIB)); | |
28467 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_PyObj_FromInt((int)wxDF_PALETTE)); | |
28468 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_PyObj_FromInt((int)wxDF_PENDATA)); | |
28469 | PyDict_SetItemString(d,"DF_RIFF", SWIG_PyObj_FromInt((int)wxDF_RIFF)); | |
28470 | PyDict_SetItemString(d,"DF_WAVE", SWIG_PyObj_FromInt((int)wxDF_WAVE)); | |
28471 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_PyObj_FromInt((int)wxDF_UNICODETEXT)); | |
28472 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_PyObj_FromInt((int)wxDF_ENHMETAFILE)); | |
28473 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_PyObj_FromInt((int)wxDF_FILENAME)); | |
28474 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_PyObj_FromInt((int)wxDF_LOCALE)); | |
28475 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_PyObj_FromInt((int)wxDF_PRIVATE)); | |
28476 | PyDict_SetItemString(d,"DF_HTML", SWIG_PyObj_FromInt((int)wxDF_HTML)); | |
28477 | PyDict_SetItemString(d,"DF_MAX", SWIG_PyObj_FromInt((int)wxDF_MAX)); | |
d14a1e28 | 28478 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); |
994141e6 RD |
28479 | PyDict_SetItemString(d,"DataObject_Get", SWIG_PyObj_FromInt((int)wxDataObject::Get)); |
28480 | PyDict_SetItemString(d,"DataObject_Set", SWIG_PyObj_FromInt((int)wxDataObject::Set)); | |
28481 | PyDict_SetItemString(d,"DataObject_Both", SWIG_PyObj_FromInt((int)wxDataObject::Both)); | |
28482 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_PyObj_FromInt((int)wxDrag_CopyOnly)); | |
28483 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_PyObj_FromInt((int)wxDrag_AllowMove)); | |
28484 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_PyObj_FromInt((int)wxDrag_DefaultMove)); | |
28485 | PyDict_SetItemString(d,"DragError", SWIG_PyObj_FromInt((int)wxDragError)); | |
28486 | PyDict_SetItemString(d,"DragNone", SWIG_PyObj_FromInt((int)wxDragNone)); | |
28487 | PyDict_SetItemString(d,"DragCopy", SWIG_PyObj_FromInt((int)wxDragCopy)); | |
28488 | PyDict_SetItemString(d,"DragMove", SWIG_PyObj_FromInt((int)wxDragMove)); | |
28489 | PyDict_SetItemString(d,"DragLink", SWIG_PyObj_FromInt((int)wxDragLink)); | |
28490 | PyDict_SetItemString(d,"DragCancel", SWIG_PyObj_FromInt((int)wxDragCancel)); | |
d14a1e28 RD |
28491 | |
28492 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
28493 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
28494 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
28495 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
28496 | ||
28497 | SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set); | |
28498 | } | |
28499 |