]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
2dbef272 | 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 | |
9fd4be55 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 | ||
0f774bef 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 |
0f774bef RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
0f774bef | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
0f774bef | 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 { | |
0f774bef | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
0f774bef | 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 *); | |
0f774bef 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 | ||
0f774bef | 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) | |
2dbef272 | 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 | ||
8edf1c75 | 187 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 188 | |
0f774bef 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 | |
8edf1c75 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 | ||
423f194a | 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_wxMetafile swig_types[2] | |
236 | #define SWIGTYPE_p_wxFileHistory swig_types[3] | |
237 | #define SWIGTYPE_p_wxLog swig_types[4] | |
238 | #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[5] | |
239 | #define SWIGTYPE_p_wxMenu swig_types[6] | |
240 | #define SWIGTYPE_p_wxEvent swig_types[7] | |
241 | #define SWIGTYPE_p_wxConfigBase swig_types[8] | |
02a34c4c RD |
242 | #define SWIGTYPE_p_wxFileType swig_types[9] |
243 | #define SWIGTYPE_p_wxLogGui swig_types[10] | |
244 | #define SWIGTYPE_p_wxFont swig_types[11] | |
245 | #define SWIGTYPE_p_wxDataFormat swig_types[12] | |
246 | #define SWIGTYPE_p_wxTimerEvent swig_types[13] | |
247 | #define SWIGTYPE_p_wxCaret swig_types[14] | |
248 | #define SWIGTYPE_p_int swig_types[15] | |
249 | #define SWIGTYPE_p_wxSize swig_types[16] | |
250 | #define SWIGTYPE_p_wxClipboard swig_types[17] | |
251 | #define SWIGTYPE_p_wxStopWatch swig_types[18] | |
252 | #define SWIGTYPE_p_wxDC swig_types[19] | |
253 | #define SWIGTYPE_p_wxClipboardLocker swig_types[20] | |
254 | #define SWIGTYPE_p_wxIcon swig_types[21] | |
255 | #define SWIGTYPE_p_wxLogStderr swig_types[22] | |
256 | #define SWIGTYPE_p_wxLogTextCtrl swig_types[23] | |
257 | #define SWIGTYPE_p_wxTextCtrl swig_types[24] | |
258 | #define SWIGTYPE_p_wxBusyCursor swig_types[25] | |
259 | #define SWIGTYPE_p_wxPyTextDataObject swig_types[26] | |
260 | #define SWIGTYPE_p_wxBitmapDataObject swig_types[27] | |
261 | #define SWIGTYPE_p_wxTextDataObject swig_types[28] | |
262 | #define SWIGTYPE_p_wxDataObject swig_types[29] | |
263 | #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[30] | |
264 | #define SWIGTYPE_p_wxFileDataObject swig_types[31] | |
265 | #define SWIGTYPE_p_wxCustomDataObject swig_types[32] | |
266 | #define SWIGTYPE_p_wxURLDataObject swig_types[33] | |
267 | #define SWIGTYPE_p_wxMetafileDataObject swig_types[34] | |
268 | #define SWIGTYPE_p_wxSound swig_types[35] | |
d14a1e28 RD |
269 | #define SWIGTYPE_p_wxTimerRunner swig_types[36] |
270 | #define SWIGTYPE_p_wxLogWindow swig_types[37] | |
271 | #define SWIGTYPE_p_wxTimeSpan swig_types[38] | |
272 | #define SWIGTYPE_p_wxArrayString swig_types[39] | |
273 | #define SWIGTYPE_p_wxWindowDisabler swig_types[40] | |
274 | #define SWIGTYPE_p_wxToolTip swig_types[41] | |
275 | #define SWIGTYPE_p_wxDataObjectComposite swig_types[42] | |
276 | #define SWIGTYPE_p_wxFileConfig swig_types[43] | |
277 | #define SWIGTYPE_p_wxSystemSettings swig_types[44] | |
278 | #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[45] | |
279 | #define SWIGTYPE_p_wxDataObjectSimple swig_types[46] | |
280 | #define SWIGTYPE_p_wxEvtHandler swig_types[47] | |
281 | #define SWIGTYPE_p_wxRect swig_types[48] | |
8edf1c75 RD |
282 | #define SWIGTYPE_p_char swig_types[49] |
283 | #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[50] | |
284 | #define SWIGTYPE_p_wxFileTypeInfo swig_types[51] | |
285 | #define SWIGTYPE_p_wxFrame swig_types[52] | |
286 | #define SWIGTYPE_p_wxTimer swig_types[53] | |
287 | #define SWIGTYPE_p_wxMimeTypesManager swig_types[54] | |
288 | #define SWIGTYPE_p_wxPyArtProvider swig_types[55] | |
289 | #define SWIGTYPE_p_wxPyTipProvider swig_types[56] | |
290 | #define SWIGTYPE_p_wxTipProvider swig_types[57] | |
291 | #define SWIGTYPE_p_wxJoystick swig_types[58] | |
292 | #define SWIGTYPE_p_wxSystemOptions swig_types[59] | |
293 | #define SWIGTYPE_p_wxPoint swig_types[60] | |
294 | #define SWIGTYPE_p_wxJoystickEvent swig_types[61] | |
295 | #define SWIGTYPE_p_wxCursor swig_types[62] | |
296 | #define SWIGTYPE_p_wxObject swig_types[63] | |
297 | #define SWIGTYPE_p_wxOutputStream swig_types[64] | |
298 | #define SWIGTYPE_p_wxDateTime swig_types[65] | |
299 | #define SWIGTYPE_p_wxPyDropSource swig_types[66] | |
300 | #define SWIGTYPE_p_wxWindow swig_types[67] | |
301 | #define SWIGTYPE_p_wxString swig_types[68] | |
302 | #define SWIGTYPE_p_wxPyProcess swig_types[69] | |
303 | #define SWIGTYPE_p_wxBitmap swig_types[70] | |
304 | #define SWIGTYPE_p_wxConfig swig_types[71] | |
305 | #define SWIGTYPE_p_wxChar swig_types[72] | |
306 | #define SWIGTYPE_p_wxBusyInfo swig_types[73] | |
307 | #define SWIGTYPE_p_wxPyDropTarget swig_types[74] | |
308 | #define SWIGTYPE_p_wxPyTextDropTarget swig_types[75] | |
309 | #define SWIGTYPE_p_wxPyFileDropTarget swig_types[76] | |
310 | #define SWIGTYPE_p_wxProcessEvent swig_types[77] | |
311 | #define SWIGTYPE_p_wxPyLog swig_types[78] | |
312 | #define SWIGTYPE_p_wxLogNull swig_types[79] | |
313 | #define SWIGTYPE_p_wxColour swig_types[80] | |
02a34c4c RD |
314 | #define SWIGTYPE_p_wxByte swig_types[81] |
315 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[82] | |
316 | #define SWIGTYPE_p_wxPyTimer swig_types[83] | |
317 | #define SWIGTYPE_p_wxDateSpan swig_types[84] | |
318 | static swig_type_info *swig_types[86]; | |
d14a1e28 RD |
319 | |
320 | /* -------- TYPES TABLE (END) -------- */ | |
321 | ||
322 | ||
323 | /*----------------------------------------------- | |
324 | @(target):= _misc.so | |
325 | ------------------------------------------------*/ | |
326 | #define SWIG_init init_misc | |
327 | ||
328 | #define SWIG_name "_misc" | |
329 | ||
8edf1c75 RD |
330 | #include <limits.h> |
331 | #include <float.h> | |
332 | #include <string.h> | |
333 | ||
334 | #ifndef SWIGSTATIC | |
335 | #ifdef __cplusplus | |
336 | #define SWIGSTATIC(a) static inline a | |
337 | #else | |
338 | #define SWIGSTATIC(a) static a | |
339 | #endif | |
340 | #endif | |
341 | ||
342 | #ifndef numeric_cast | |
343 | #ifdef __cplusplus | |
344 | #ifdef HAVE_NUMERIC_CAST | |
345 | #define numeric_cast(type,a) numeric_cast<type>(a) | |
346 | #else | |
347 | #define numeric_cast(type,a) static_cast<type>(a) | |
348 | #endif | |
349 | #else | |
350 | #define numeric_cast(type,a) (type)(a) | |
351 | #endif | |
352 | #endif | |
353 | ||
354 | ||
355 | ||
356 | #define SWIG_PyObj_FromSignedChar PyInt_FromLong | |
357 | #define SWIG_PyObj_FromUnsignedChar PyInt_FromLong | |
358 | #define SWIG_PyObj_FromShort PyInt_FromLong | |
359 | #define SWIG_PyObj_FromUnsignedShort PyInt_FromLong | |
360 | #define SWIG_PyObj_FromInt PyInt_FromLong | |
361 | #define SWIG_PyObj_FromLong PyInt_FromLong | |
362 | #define SWIG_PyObj_FromFloat PyFloat_FromDouble | |
363 | #define SWIG_PyObj_FromDouble PyFloat_FromDouble | |
364 | #define SWIG_PyObj_FromFloat PyFloat_FromDouble | |
365 | #define SWIG_PyObj_FromDouble PyFloat_FromDouble | |
366 | ||
367 | ||
d14a1e28 RD |
368 | #include "wx/wxPython/wxPython.h" |
369 | #include "wx/wxPython/pyclasses.h" | |
370 | #include "wx/wxPython/pyistream.h" | |
371 | ||
d14a1e28 | 372 | |
cbd72d4f | 373 | static const wxString wxPyEmptyString(wxEmptyString); |
d14a1e28 RD |
374 | |
375 | ||
8edf1c75 RD |
376 | |
377 | SWIGSTATIC(int) | |
378 | SWIG_PyObj_AsInt(PyObject *obj) | |
379 | { | |
380 | return numeric_cast(int, | |
381 | SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX)); | |
382 | } | |
383 | ||
cbd72d4f RD |
384 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); |
385 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
386 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
d14a1e28 | 387 | |
8edf1c75 RD |
388 | SWIGSTATIC(long) |
389 | SWIG_PyObj_AsLong(PyObject * obj) | |
390 | { | |
391 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
392 | } | |
393 | ||
394 | ||
395 | SWIGSTATIC(bool) | |
396 | SWIG_PyObj_AsBool(PyObject *obj) | |
397 | { | |
398 | return PyObject_IsTrue(obj) ? true : false; | |
399 | } | |
400 | ||
401 | ||
d14a1e28 RD |
402 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
403 | PyObject* o2; | |
404 | PyObject* o3; | |
405 | ||
406 | if (!target) { | |
407 | target = o; | |
408 | } else if (target == Py_None) { | |
409 | Py_DECREF(Py_None); | |
410 | target = o; | |
411 | } else { | |
412 | if (!PyTuple_Check(target)) { | |
413 | o2 = target; | |
414 | target = PyTuple_New(1); | |
415 | PyTuple_SetItem(target, 0, o2); | |
416 | } | |
417 | o3 = PyTuple_New(1); | |
418 | PyTuple_SetItem(o3, 0, o); | |
419 | ||
420 | o2 = target; | |
421 | target = PySequence_Concat(o2, o3); | |
422 | Py_DECREF(o2); | |
423 | Py_DECREF(o3); | |
424 | } | |
425 | return target; | |
426 | } | |
427 | ||
428 | ||
8edf1c75 RD |
429 | SWIGSTATIC(PyObject* ) |
430 | SWIG_PyObj_FromUnsignedLong(unsigned long value) | |
431 | { | |
432 | return (value > (unsigned long)(LONG_MAX)) ? | |
433 | PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value); | |
434 | } | |
435 | ||
436 | ||
d14a1e28 RD |
437 | bool wxThread_IsMain() { |
438 | #ifdef WXP_WITH_THREAD | |
439 | return wxThread::IsMain(); | |
440 | #else | |
423f194a | 441 | return True; |
d14a1e28 RD |
442 | #endif |
443 | } | |
444 | ||
445 | ||
446 | int wxCaret_GetBlinkTime() { | |
447 | return wxCaret::GetBlinkTime(); | |
448 | } | |
449 | ||
450 | void wxCaret_SetBlinkTime(int milliseconds) { | |
451 | wxCaret::SetBlinkTime(milliseconds); | |
452 | } | |
453 | ||
454 | ||
455 | #include <wx/snglinst.h> | |
456 | ||
457 | ||
458 | #ifdef __WXMSW__ | |
459 | #include <wx/msw/private.h> | |
460 | #include <wx/dynload.h> | |
461 | #endif | |
462 | ||
463 | ||
464 | ||
465 | void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) | |
466 | { | |
467 | #ifdef __WXMSW__ | |
468 | ||
469 | switch (method) | |
470 | { | |
471 | case 1: | |
472 | // This one only partially works. Appears to be an undocumented | |
473 | // "standard" convention that not all widgets adhear to. For | |
474 | // example, for some widgets backgrounds or non-client areas may | |
475 | // not be painted. | |
476 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
477 | break; | |
478 | ||
479 | case 2: | |
480 | // This one works much better, except for on XP. On Win2k nearly | |
481 | // all widgets and their children are captured correctly[**]. On | |
482 | // XP with Themes activated most native widgets draw only | |
483 | // partially, if at all. Without themes it works just like on | |
484 | // Win2k. | |
485 | // | |
486 | // ** For example the radio buttons in a wxRadioBox are not its | |
487 | // children by default, but you can capture it via the panel | |
488 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
489 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
490 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
491 | PRF_ERASEBKGND | PRF_OWNED ); | |
492 | break; | |
493 | ||
494 | case 3: | |
495 | // This one is only defined in the latest SDK and is only | |
496 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
497 | // so I expect that it will work similar to the above. Since it | |
498 | // is avaialble only on XP, it can't be compiled like this and | |
499 | // will have to be loaded dynamically. | |
500 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
501 | ||
502 | // fall through | |
503 | ||
504 | case 4: | |
505 | // Use PrintWindow if available, or fallback to WM_PRINT | |
506 | // otherwise. Unfortunately using PrintWindow is even worse than | |
507 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
508 | // at all, with or without Themes. | |
509 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
423f194a | 510 | static bool s_triedToLoad = False; |
d14a1e28 RD |
511 | static PrintWindow_t pfnPrintWindow = NULL; |
512 | if ( !s_triedToLoad ) | |
513 | { | |
514 | ||
423f194a | 515 | s_triedToLoad = True; |
d14a1e28 RD |
516 | wxDynamicLibrary dllUser32(_T("user32.dll")); |
517 | if ( dllUser32.IsLoaded() ) | |
518 | { | |
519 | wxLogNull nolog; // Don't report errors here | |
520 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
521 | } | |
522 | } | |
523 | if (pfnPrintWindow) | |
524 | { | |
525 | printf("Using PrintWindow\n"); | |
526 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
527 | } | |
528 | else | |
529 | { | |
530 | printf("Using WM_PRINT\n"); | |
531 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
532 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); | |
533 | } | |
534 | } | |
535 | #endif | |
536 | } | |
537 | ||
538 | ||
539 | ||
540 | #include <wx/tipdlg.h> | |
541 | ||
542 | ||
543 | class wxPyTipProvider : public wxTipProvider { | |
544 | public: | |
545 | wxPyTipProvider(size_t currentTip) | |
546 | : wxTipProvider(currentTip) {} | |
547 | ||
548 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
549 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
550 | PYPRIVATE; | |
551 | }; | |
552 | ||
553 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
554 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
555 | ||
556 | ||
557 | IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); | |
558 | ||
8edf1c75 RD |
559 | |
560 | SWIGSTATIC(unsigned int) | |
561 | SWIG_PyObj_AsUnsignedInt(PyObject *obj) | |
562 | { | |
563 | return numeric_cast(unsigned int, | |
564 | SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned int", UINT_MAX)); | |
565 | } | |
566 | ||
d14a1e28 RD |
567 | wxString Log_TimeStamp(){ |
568 | wxString msg; | |
569 | wxLog::TimeStamp(&msg); | |
570 | return msg; | |
571 | } | |
572 | void wxLog_Destroy(wxLog *self){ delete self; } | |
573 | ||
574 | // A wxLog class that can be derived from in wxPython | |
575 | class wxPyLog : public wxLog { | |
576 | public: | |
577 | wxPyLog() : wxLog() {} | |
578 | ||
579 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
580 | bool found; | |
581 | wxPyBeginBlockThreads(); | |
582 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { | |
583 | PyObject* s = wx2PyString(szString); | |
584 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
585 | Py_DECREF(s); | |
586 | } | |
587 | wxPyEndBlockThreads(); | |
588 | if (! found) | |
589 | wxLog::DoLog(level, szString, t); | |
590 | } | |
591 | ||
592 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
593 | bool found; | |
594 | wxPyBeginBlockThreads(); | |
595 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { | |
596 | PyObject* s = wx2PyString(szString); | |
597 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
598 | Py_DECREF(s); | |
599 | } | |
600 | wxPyEndBlockThreads(); | |
601 | if (! found) | |
602 | wxLog::DoLogString(szString, t); | |
603 | } | |
604 | ||
605 | PYPRIVATE; | |
606 | }; | |
607 | ||
608 | ||
609 | ||
610 | ||
611 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
612 | ||
613 | ||
614 | #include <wx/joystick.h> | |
615 | ||
616 | ||
617 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
618 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
619 | class wxJoystick : public wxObject { | |
620 | public: | |
621 | wxJoystick(int joystick = wxJOYSTICK1) { | |
622 | wxPyBeginBlockThreads(); | |
cbd72d4f RD |
623 | PyErr_SetString(PyExc_NotImplementedError, |
624 | "wxJoystick is not available on this platform."); | |
d14a1e28 RD |
625 | wxPyEndBlockThreads(); |
626 | } | |
627 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
628 | int GetZPosition() { return -1; } | |
629 | int GetButtonState() { return -1; } | |
630 | int GetPOVPosition() { return -1; } | |
631 | int GetPOVCTSPosition() { return -1; } | |
632 | int GetRudderPosition() { return -1; } | |
633 | int GetUPosition() { return -1; } | |
634 | int GetVPosition() { return -1; } | |
635 | int GetMovementThreshold() { return -1; } | |
636 | void SetMovementThreshold(int threshold) {} | |
637 | ||
423f194a | 638 | bool IsOk(void) { return False; } |
d14a1e28 RD |
639 | int GetNumberJoysticks() { return -1; } |
640 | int GetManufacturerId() { return -1; } | |
641 | int GetProductId() { return -1; } | |
642 | wxString GetProductName() { return ""; } | |
643 | int GetXMin() { return -1; } | |
644 | int GetYMin() { return -1; } | |
645 | int GetZMin() { return -1; } | |
646 | int GetXMax() { return -1; } | |
647 | int GetYMax() { return -1; } | |
648 | int GetZMax() { return -1; } | |
649 | int GetNumberButtons() { return -1; } | |
650 | int GetNumberAxes() { return -1; } | |
651 | int GetMaxButtons() { return -1; } | |
652 | int GetMaxAxes() { return -1; } | |
653 | int GetPollingMin() { return -1; } | |
654 | int GetPollingMax() { return -1; } | |
655 | int GetRudderMin() { return -1; } | |
656 | int GetRudderMax() { return -1; } | |
657 | int GetUMin() { return -1; } | |
658 | int GetUMax() { return -1; } | |
659 | int GetVMin() { return -1; } | |
660 | int GetVMax() { return -1; } | |
661 | ||
423f194a RD |
662 | bool HasRudder() { return False; } |
663 | bool HasZ() { return False; } | |
664 | bool HasU() { return False; } | |
665 | bool HasV() { return False; } | |
666 | bool HasPOV() { return False; } | |
667 | bool HasPOV4Dir() { return False; } | |
668 | bool HasPOVCTS() { return False; } | |
d14a1e28 | 669 | |
423f194a RD |
670 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; } |
671 | bool ReleaseCapture() { return False; } | |
d14a1e28 RD |
672 | }; |
673 | #endif | |
674 | ||
675 | ||
02a34c4c | 676 | #include <wx/sound.h> |
d14a1e28 RD |
677 | |
678 | ||
dff1fa9b | 679 | #if !wxUSE_SOUND |
d14a1e28 | 680 | // A C++ stub class for wxWave for platforms that don't have it. |
02a34c4c | 681 | class wxSound : public wxObject |
d14a1e28 RD |
682 | { |
683 | public: | |
02a34c4c | 684 | wxSound() { |
d14a1e28 | 685 | wxPyBeginBlockThreads(); |
cbd72d4f | 686 | PyErr_SetString(PyExc_NotImplementedError, |
02a34c4c | 687 | "wxSound is not available on this platform."); |
d14a1e28 RD |
688 | wxPyEndBlockThreads(); |
689 | } | |
02a34c4c | 690 | wxSound(const wxString&, bool) { |
d14a1e28 | 691 | wxPyBeginBlockThreads(); |
cbd72d4f | 692 | PyErr_SetString(PyExc_NotImplementedError, |
02a34c4c | 693 | "wxSound is not available on this platform."); |
d14a1e28 RD |
694 | wxPyEndBlockThreads(); |
695 | } | |
02a34c4c RD |
696 | wxSound(int, const wxByte*) { |
697 | wxPyBeginBlockThreads(); | |
698 | PyErr_SetString(PyExc_NotImplementedError, | |
699 | "wxSound is not available on this platform."); | |
700 | wxPyEndBlockThreads(); | |
701 | } | |
702 | ||
703 | ~wxSound() {}; | |
d14a1e28 | 704 | |
02a34c4c RD |
705 | bool Create(const wxString&, bool) { return false; } |
706 | bool Create(int, const wxByte*) { return false; }; | |
707 | bool IsOk() { return false; }; | |
708 | bool Play(unsigned) const { return false; } | |
709 | static bool Play(const wxString&, unsigned) { return false; } | |
710 | static void Stop() {} | |
d14a1e28 RD |
711 | }; |
712 | ||
713 | #endif | |
714 | ||
02a34c4c RD |
715 | bool wxSound_Create__SWIG_1(wxSound *self,int size,wxByte const *data){ |
716 | wxPyBeginBlockThreads(); | |
717 | PyErr_SetString(PyExc_NotImplementedError, | |
718 | "Create from data is not available on this platform."); | |
719 | wxPyEndBlockThreads(); | |
b409bb30 | 720 | return False; |
d14a1e28 | 721 | } |
02a34c4c | 722 | void Sound_Stop(){} |
d14a1e28 RD |
723 | |
724 | #include <wx/mimetype.h> | |
725 | ||
726 | PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
727 | wxString str; | |
728 | if (self->GetMimeType(&str)) | |
729 | return wx2PyString(str); | |
730 | else | |
731 | RETURN_NONE(); | |
732 | } | |
733 | PyObject *wxFileType_GetMimeTypes(wxFileType *self){ | |
734 | wxArrayString arr; | |
735 | if (self->GetMimeTypes(arr)) | |
736 | return wxArrayString2PyList_helper(arr); | |
737 | else | |
738 | RETURN_NONE(); | |
739 | } | |
740 | PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
741 | wxArrayString arr; | |
742 | if (self->GetExtensions(arr)) | |
743 | return wxArrayString2PyList_helper(arr); | |
744 | else | |
745 | RETURN_NONE(); | |
746 | } | |
747 | wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
748 | wxIconLocation loc; | |
749 | if (self->GetIcon(&loc)) | |
750 | return new wxIcon(loc); | |
751 | else | |
752 | return NULL; | |
753 | } | |
754 | PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
755 | wxIconLocation loc; | |
756 | if (self->GetIcon(&loc)) { | |
757 | wxString iconFile = loc.GetFileName(); | |
758 | int iconIndex = -1; | |
759 | ||
760 | ||
761 | ||
762 | // Make a tuple and put the values in it | |
763 | wxPyBeginBlockThreads(); | |
764 | PyObject* tuple = PyTuple_New(3); | |
765 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
423f194a | 766 | wxT("wxIcon"), True)); |
d14a1e28 RD |
767 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); |
768 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
769 | wxPyEndBlockThreads(); | |
770 | return tuple; | |
771 | } | |
772 | else | |
773 | RETURN_NONE(); | |
774 | } | |
775 | PyObject *wxFileType_GetDescription(wxFileType *self){ | |
776 | wxString str; | |
777 | if (self->GetDescription(&str)) | |
778 | return wx2PyString(str); | |
779 | else | |
780 | RETURN_NONE(); | |
781 | } | |
782 | PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
783 | wxString str; | |
784 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
785 | return wx2PyString(str); | |
786 | else | |
787 | RETURN_NONE(); | |
788 | } | |
789 | PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
790 | wxString str; | |
791 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
792 | return wx2PyString(str); | |
793 | else | |
794 | RETURN_NONE(); | |
795 | } | |
796 | PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
797 | wxArrayString verbs; | |
798 | wxArrayString commands; | |
799 | if (self->GetAllCommands(&verbs, &commands, | |
800 | wxFileType::MessageParameters(filename, mimetype))) { | |
801 | wxPyBeginBlockThreads(); | |
802 | PyObject* tuple = PyTuple_New(2); | |
803 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
804 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
805 | wxPyEndBlockThreads(); | |
806 | return tuple; | |
807 | } | |
808 | else | |
809 | RETURN_NONE(); | |
810 | } | |
811 | wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ | |
812 | return wxFileType::ExpandCommand(command, | |
813 | wxFileType::MessageParameters(filename, mimetype)); | |
814 | } | |
815 | PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
816 | wxArrayString arr; | |
817 | self->EnumAllFileTypes(arr); | |
818 | return wxArrayString2PyList_helper(arr); | |
819 | } | |
820 | ||
821 | #include <wx/artprov.h> | |
822 | ||
823 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); | |
824 | static const wxString wxPyART_MENU(wxART_MENU); | |
825 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
826 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
827 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
828 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
829 | static const wxString wxPyART_OTHER(wxART_OTHER); | |
830 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
831 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
832 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
833 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
834 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
835 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
836 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
837 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
838 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
839 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
840 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
841 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
842 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
843 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
844 | static const wxString wxPyART_PRINT(wxART_PRINT); | |
845 | static const wxString wxPyART_HELP(wxART_HELP); | |
846 | static const wxString wxPyART_TIP(wxART_TIP); | |
847 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
848 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
849 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
850 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
851 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
852 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
853 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
854 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
855 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
856 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
857 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
858 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
859 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
860 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
861 | // Python aware wxArtProvider | |
862 | class wxPyArtProvider : public wxArtProvider { | |
863 | public: | |
864 | ||
865 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
866 | const wxArtClient& client, | |
867 | const wxSize& size) { | |
868 | wxBitmap rval = wxNullBitmap; | |
869 | wxPyBeginBlockThreads(); | |
870 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
871 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
872 | PyObject* ro; | |
873 | wxBitmap* ptr; | |
874 | PyObject* s1, *s2; | |
875 | s1 = wx2PyString(id); | |
876 | s2 = wx2PyString(client); | |
877 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
878 | Py_DECREF(so); | |
879 | Py_DECREF(s1); | |
880 | Py_DECREF(s2); | |
881 | if (ro) { | |
882 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
883 | rval = *ptr; | |
884 | Py_DECREF(ro); | |
885 | } | |
886 | } | |
887 | wxPyEndBlockThreads(); | |
888 | return rval; | |
889 | } | |
890 | ||
891 | PYPRIVATE; | |
892 | }; | |
893 | ||
41f1cec7 | 894 | void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } |
d14a1e28 RD |
895 | |
896 | ||
897 | ||
898 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
899 | PyObject* ret = PyTuple_New(3); | |
900 | if (ret) { | |
901 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
902 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
903 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
904 | } | |
905 | return ret; | |
906 | } | |
907 | ||
908 | PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ | |
909 | bool cont; | |
910 | long index = 0; | |
911 | wxString value; | |
912 | ||
913 | cont = self->GetFirstGroup(value, index); | |
914 | return __EnumerationHelper(cont, value, index); | |
915 | } | |
916 | PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
917 | bool cont; | |
918 | wxString value; | |
919 | ||
920 | cont = self->GetNextGroup(value, index); | |
921 | return __EnumerationHelper(cont, value, index); | |
922 | } | |
923 | PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
924 | bool cont; | |
925 | long index = 0; | |
926 | wxString value; | |
927 | ||
928 | cont = self->GetFirstEntry(value, index); | |
929 | return __EnumerationHelper(cont, value, index); | |
930 | } | |
931 | PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
932 | bool cont; | |
933 | wxString value; | |
934 | ||
935 | cont = self->GetNextEntry(value, index); | |
936 | return __EnumerationHelper(cont, value, index); | |
937 | } | |
938 | long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ | |
939 | long rv; | |
940 | self->Read(key, &rv, defaultVal); | |
941 | return rv; | |
942 | } | |
8edf1c75 RD |
943 | |
944 | SWIGSTATIC(double) | |
945 | SWIG_PyObj_AsDouble(PyObject *obj) | |
946 | { | |
947 | return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) : | |
948 | #if HAVE_LONG_LONG | |
949 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj)); | |
950 | #else | |
951 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj)); | |
952 | #endif | |
953 | if (PyErr_Occurred()) { | |
954 | PyErr_Clear(); | |
955 | PyErr_SetString(PyExc_TypeError, "a double is expected"); | |
956 | } | |
957 | } | |
958 | ||
d14a1e28 RD |
959 | double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ |
960 | double rv; | |
961 | self->Read(key, &rv, defaultVal); | |
962 | return rv; | |
963 | } | |
964 | bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){ | |
965 | bool rv; | |
966 | self->Read(key, &rv, defaultVal); | |
967 | return rv; | |
968 | } | |
969 | ||
970 | #include <wx/datetime.h> | |
971 | ||
d14a1e28 | 972 | |
32958cea RD |
973 | static const wxString wxPyDateFormatStr(wxT("%c")); |
974 | static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S")); | |
d14a1e28 RD |
975 | |
976 | #define LOCAL_TZ wxDateTime::Local | |
977 | ||
8edf1c75 RD |
978 | |
979 | #define SWIG_PyObj_FromUnsignedInt SWIG_PyObj_FromUnsignedLong | |
980 | ||
d14a1e28 RD |
981 | wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } |
982 | wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
983 | wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
984 | wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
985 | wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
986 | bool wxDateTime___lt__(wxDateTime *self,wxDateTime const &other){ return *self < other; } | |
987 | bool wxDateTime___le__(wxDateTime *self,wxDateTime const &other){ return *self <= other; } | |
988 | bool wxDateTime___gt__(wxDateTime *self,wxDateTime const &other){ return *self > other; } | |
989 | bool wxDateTime___ge__(wxDateTime *self,wxDateTime const &other){ return *self >= other; } | |
990 | bool wxDateTime___eq__(wxDateTime *self,wxDateTime const &other){ return *self == other; } | |
991 | bool wxDateTime___ne__(wxDateTime *self,wxDateTime const &other){ return *self != other; } | |
992 | int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ | |
993 | const wxChar* rv; | |
994 | const wxChar* _date = date; | |
995 | rv = self->ParseRfc822Date(_date); | |
996 | if (rv == NULL) return -1; | |
997 | return rv - _date; | |
998 | } | |
999 | int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){ | |
1000 | const wxChar* rv; | |
1001 | const wxChar* _date = date; | |
1002 | rv = self->ParseFormat(_date, format, dateDef); | |
1003 | if (rv == NULL) return -1; | |
1004 | return rv - _date; | |
1005 | } | |
1006 | int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
1007 | const wxChar* rv; | |
1008 | const wxChar* _datetime = datetime; | |
1009 | rv = self->ParseDateTime(_datetime); | |
1010 | if (rv == NULL) return -1; | |
1011 | return rv - _datetime; | |
1012 | } | |
1013 | int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
1014 | const wxChar* rv; | |
1015 | const wxChar* _date = date; | |
1016 | rv = self->ParseDate(_date); | |
1017 | if (rv == NULL) return -1; | |
1018 | return rv - _date; | |
1019 | } | |
1020 | int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
1021 | const wxChar* rv; | |
1022 | const wxChar* _time = time; | |
1023 | rv = self->ParseTime(_time); | |
1024 | if (rv == NULL) return -1; | |
1025 | return rv - _time; | |
1026 | } | |
1027 | wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
1028 | wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
1029 | wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
1030 | wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
1031 | bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const &other){ return *self < other; } | |
1032 | bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const &other){ return *self <= other; } | |
1033 | bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const &other){ return *self > other; } | |
1034 | bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const &other){ return *self >= other; } | |
1035 | bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const &other){ return *self == other; } | |
1036 | bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const &other){ return *self != other; } | |
1037 | wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } | |
1038 | wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
1039 | wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
1040 | wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
1041 | bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const &other){ return *self == other; } | |
1042 | bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const &other){ return *self != other; } | |
1043 | ||
1044 | #include <wx/dataobj.h> | |
1045 | ||
1046 | // Create a new class for wxPython to use | |
1047 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
1048 | public: | |
1049 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
1050 | : wxDataObjectSimple(format) {} | |
1051 | ||
1052 | DEC_PYCALLBACK_SIZET__const(GetDataSize); | |
1053 | bool GetDataHere(void *buf) const; | |
1054 | bool SetData(size_t len, const void *buf) const; | |
1055 | PYPRIVATE; | |
1056 | }; | |
1057 | ||
1058 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
1059 | ||
1060 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { | |
1061 | // We need to get the data for this object and write it to buf. I think | |
1062 | // the best way to do this for wxPython is to have the Python method | |
1063 | // return either a string or None and then act appropriately with the | |
1064 | // C++ version. | |
1065 | ||
423f194a | 1066 | bool rval = False; |
d14a1e28 RD |
1067 | wxPyBeginBlockThreads(); |
1068 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { | |
1069 | PyObject* ro; | |
1070 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1071 | if (ro) { | |
1072 | rval = (ro != Py_None && PyString_Check(ro)); | |
1073 | if (rval) | |
1074 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
1075 | Py_DECREF(ro); | |
1076 | } | |
1077 | } | |
1078 | wxPyEndBlockThreads(); | |
1079 | return rval; | |
1080 | } | |
1081 | ||
1082 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ | |
1083 | // For this one we simply need to make a string from buf and len | |
1084 | // and send it to the Python method. | |
423f194a | 1085 | bool rval = False; |
d14a1e28 RD |
1086 | wxPyBeginBlockThreads(); |
1087 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { | |
1088 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
1089 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
1090 | Py_DECREF(data); | |
1091 | } | |
1092 | wxPyEndBlockThreads(); | |
1093 | return rval; | |
1094 | } | |
1095 | ||
1096 | // Create a new class for wxPython to use | |
1097 | class wxPyTextDataObject : public wxTextDataObject { | |
1098 | public: | |
1099 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
1100 | : wxTextDataObject(text) {} | |
1101 | ||
1102 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
1103 | DEC_PYCALLBACK_STRING__const(GetText); | |
1104 | DEC_PYCALLBACK__STRING(SetText); | |
1105 | PYPRIVATE; | |
1106 | }; | |
1107 | ||
1108 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
1109 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
1110 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
1111 | ||
1112 | ||
1113 | // Create a new class for wxPython to use | |
1114 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
1115 | public: | |
1116 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
1117 | : wxBitmapDataObject(bitmap) {} | |
1118 | ||
1119 | wxBitmap GetBitmap() const; | |
1120 | void SetBitmap(const wxBitmap& bitmap); | |
1121 | PYPRIVATE; | |
1122 | }; | |
1123 | ||
1124 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
1125 | wxBitmap* rval = &wxNullBitmap; | |
1126 | wxPyBeginBlockThreads(); | |
1127 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { | |
1128 | PyObject* ro; | |
1129 | wxBitmap* ptr; | |
1130 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1131 | if (ro) { | |
1132 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
1133 | rval = ptr; | |
1134 | Py_DECREF(ro); | |
1135 | } | |
1136 | } | |
1137 | wxPyEndBlockThreads(); | |
1138 | return *rval; | |
1139 | } | |
1140 | ||
1141 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { | |
1142 | wxPyBeginBlockThreads(); | |
1143 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { | |
423f194a | 1144 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False); |
d14a1e28 RD |
1145 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); |
1146 | Py_DECREF(bo); | |
1147 | } | |
1148 | wxPyEndBlockThreads(); | |
1149 | } | |
1150 | ||
1151 | void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){ | |
1152 | if (PyString_Check(data)) { | |
1153 | // for Python we just call SetData here since we always need it to make a copy. | |
1154 | self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1155 | } | |
1156 | else { | |
1157 | // raise a TypeError if not a string | |
1158 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1159 | } | |
1160 | } | |
1161 | bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ | |
1162 | if (PyString_Check(data)) { | |
1163 | return self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1164 | } | |
1165 | else { | |
1166 | // raise a TypeError if not a string | |
1167 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
423f194a | 1168 | return False; |
d14a1e28 RD |
1169 | } |
1170 | } | |
1171 | PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
1172 | return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
1173 | } | |
1174 | ||
1175 | #include <wx/metafile.h> | |
1176 | ||
1177 | ||
d14a1e28 RD |
1178 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); |
1179 | ||
1180 | ||
d14a1e28 RD |
1181 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); |
1182 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1183 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1184 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1185 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1186 | ||
1187 | ||
d14a1e28 RD |
1188 | class wxPyTextDropTarget : public wxTextDropTarget { |
1189 | public: | |
1190 | wxPyTextDropTarget() {} | |
1191 | ||
1192 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1193 | ||
1194 | DEC_PYCALLBACK__(OnLeave); | |
1195 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1196 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1197 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1198 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1199 | ||
1200 | PYPRIVATE; | |
1201 | }; | |
1202 | ||
1203 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1204 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1205 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1206 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1207 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1208 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1209 | ||
1210 | ||
1211 | ||
1212 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1213 | public: | |
1214 | wxPyFileDropTarget() {} | |
1215 | ||
1216 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1217 | ||
1218 | DEC_PYCALLBACK__(OnLeave); | |
1219 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1220 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1221 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1222 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1223 | ||
1224 | PYPRIVATE; | |
1225 | }; | |
1226 | ||
1227 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1228 | const wxArrayString& filenames) { | |
423f194a | 1229 | bool rval = False; |
d14a1e28 RD |
1230 | wxPyBeginBlockThreads(); |
1231 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { | |
1232 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1233 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1234 | Py_DECREF(list); | |
1235 | } | |
1236 | wxPyEndBlockThreads(); | |
1237 | return rval; | |
1238 | } | |
1239 | ||
1240 | ||
1241 | ||
1242 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1243 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1244 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1245 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1246 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1247 | ||
1248 | ||
1249 | ||
1250 | ||
1251 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
1252 | #ifdef __cplusplus | |
1253 | extern "C" { | |
1254 | #endif | |
1255 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1256 | PyObject *resultobj; | |
1257 | int arg1 ; | |
1258 | wxColour result; | |
8edf1c75 | 1259 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1260 | char *kwnames[] = { |
1261 | (char *) "index", NULL | |
1262 | }; | |
1263 | ||
8edf1c75 RD |
1264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; |
1265 | { | |
1266 | arg1 = (wxSystemColour) SWIG_PyObj_AsInt(obj0); | |
1267 | if (PyErr_Occurred()) SWIG_fail; | |
1268 | } | |
d14a1e28 RD |
1269 | { |
1270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1271 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1272 | ||
1273 | wxPyEndAllowThreads(__tstate); | |
1274 | if (PyErr_Occurred()) SWIG_fail; | |
1275 | } | |
1276 | { | |
1277 | wxColour * resultptr; | |
1278 | resultptr = new wxColour((wxColour &) result); | |
1279 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1280 | } | |
1281 | return resultobj; | |
1282 | fail: | |
1283 | return NULL; | |
1284 | } | |
1285 | ||
1286 | ||
1287 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1288 | PyObject *resultobj; | |
1289 | int arg1 ; | |
1290 | wxFont result; | |
8edf1c75 | 1291 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1292 | char *kwnames[] = { |
1293 | (char *) "index", NULL | |
1294 | }; | |
1295 | ||
8edf1c75 RD |
1296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; |
1297 | { | |
1298 | arg1 = (wxSystemFont) SWIG_PyObj_AsInt(obj0); | |
1299 | if (PyErr_Occurred()) SWIG_fail; | |
1300 | } | |
d14a1e28 RD |
1301 | { |
1302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1303 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1304 | ||
1305 | wxPyEndAllowThreads(__tstate); | |
1306 | if (PyErr_Occurred()) SWIG_fail; | |
1307 | } | |
1308 | { | |
1309 | wxFont * resultptr; | |
1310 | resultptr = new wxFont((wxFont &) result); | |
1311 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
1312 | } | |
1313 | return resultobj; | |
1314 | fail: | |
1315 | return NULL; | |
1316 | } | |
1317 | ||
1318 | ||
1319 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1320 | PyObject *resultobj; | |
1321 | int arg1 ; | |
1322 | int result; | |
8edf1c75 | 1323 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1324 | char *kwnames[] = { |
1325 | (char *) "index", NULL | |
1326 | }; | |
1327 | ||
8edf1c75 RD |
1328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail; |
1329 | { | |
1330 | arg1 = (wxSystemMetric) SWIG_PyObj_AsInt(obj0); | |
1331 | if (PyErr_Occurred()) SWIG_fail; | |
1332 | } | |
d14a1e28 RD |
1333 | { |
1334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1335 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1336 | ||
1337 | wxPyEndAllowThreads(__tstate); | |
1338 | if (PyErr_Occurred()) SWIG_fail; | |
1339 | } | |
8edf1c75 | 1340 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1341 | return resultobj; |
1342 | fail: | |
1343 | return NULL; | |
1344 | } | |
1345 | ||
1346 | ||
1347 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1348 | PyObject *resultobj; | |
1349 | int arg1 ; | |
1350 | bool result; | |
8edf1c75 | 1351 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1352 | char *kwnames[] = { |
1353 | (char *) "index", NULL | |
1354 | }; | |
1355 | ||
8edf1c75 RD |
1356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; |
1357 | { | |
1358 | arg1 = (wxSystemFeature) SWIG_PyObj_AsInt(obj0); | |
1359 | if (PyErr_Occurred()) SWIG_fail; | |
1360 | } | |
d14a1e28 RD |
1361 | { |
1362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1363 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1364 | ||
1365 | wxPyEndAllowThreads(__tstate); | |
1366 | if (PyErr_Occurred()) SWIG_fail; | |
1367 | } | |
02a34c4c | 1368 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1369 | return resultobj; |
1370 | fail: | |
1371 | return NULL; | |
1372 | } | |
1373 | ||
1374 | ||
1375 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1376 | PyObject *resultobj; | |
1377 | int result; | |
1378 | char *kwnames[] = { | |
1379 | NULL | |
1380 | }; | |
1381 | ||
1382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1383 | { | |
1384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1385 | result = (int)wxSystemSettings::GetScreenType(); | |
1386 | ||
1387 | wxPyEndAllowThreads(__tstate); | |
1388 | if (PyErr_Occurred()) SWIG_fail; | |
1389 | } | |
8edf1c75 | 1390 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1391 | return resultobj; |
1392 | fail: | |
1393 | return NULL; | |
1394 | } | |
1395 | ||
1396 | ||
1397 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1398 | PyObject *resultobj; | |
1399 | int arg1 ; | |
8edf1c75 | 1400 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1401 | char *kwnames[] = { |
1402 | (char *) "screen", NULL | |
1403 | }; | |
1404 | ||
8edf1c75 RD |
1405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; |
1406 | { | |
1407 | arg1 = (wxSystemScreenType) SWIG_PyObj_AsInt(obj0); | |
1408 | if (PyErr_Occurred()) SWIG_fail; | |
1409 | } | |
d14a1e28 RD |
1410 | { |
1411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1412 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
1413 | ||
1414 | wxPyEndAllowThreads(__tstate); | |
1415 | if (PyErr_Occurred()) SWIG_fail; | |
1416 | } | |
1417 | Py_INCREF(Py_None); resultobj = Py_None; | |
1418 | return resultobj; | |
1419 | fail: | |
1420 | return NULL; | |
1421 | } | |
1422 | ||
1423 | ||
1424 | static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) { | |
1425 | PyObject *obj; | |
1426 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1427 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
1428 | Py_INCREF(obj); | |
1429 | return Py_BuildValue((char *)""); | |
1430 | } | |
1431 | static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1432 | PyObject *resultobj; | |
1433 | wxSystemOptions *result; | |
1434 | char *kwnames[] = { | |
1435 | NULL | |
1436 | }; | |
1437 | ||
1438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
1439 | { | |
1440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1441 | result = (wxSystemOptions *)new wxSystemOptions(); | |
1442 | ||
1443 | wxPyEndAllowThreads(__tstate); | |
1444 | if (PyErr_Occurred()) SWIG_fail; | |
1445 | } | |
1446 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSystemOptions, 1); | |
1447 | return resultobj; | |
1448 | fail: | |
1449 | return NULL; | |
1450 | } | |
1451 | ||
1452 | ||
1453 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1454 | PyObject *resultobj; | |
1455 | wxString *arg1 = 0 ; | |
1456 | wxString *arg2 = 0 ; | |
423f194a RD |
1457 | bool temp1 = False ; |
1458 | bool temp2 = False ; | |
d14a1e28 RD |
1459 | PyObject * obj0 = 0 ; |
1460 | PyObject * obj1 = 0 ; | |
1461 | char *kwnames[] = { | |
1462 | (char *) "name",(char *) "value", NULL | |
1463 | }; | |
1464 | ||
1465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
1466 | { | |
1467 | arg1 = wxString_in_helper(obj0); | |
1468 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1469 | temp1 = True; |
d14a1e28 RD |
1470 | } |
1471 | { | |
1472 | arg2 = wxString_in_helper(obj1); | |
1473 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 1474 | temp2 = True; |
d14a1e28 RD |
1475 | } |
1476 | { | |
1477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1478 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
1479 | ||
1480 | wxPyEndAllowThreads(__tstate); | |
1481 | if (PyErr_Occurred()) SWIG_fail; | |
1482 | } | |
1483 | Py_INCREF(Py_None); resultobj = Py_None; | |
1484 | { | |
1485 | if (temp1) | |
1486 | delete arg1; | |
1487 | } | |
1488 | { | |
1489 | if (temp2) | |
1490 | delete arg2; | |
1491 | } | |
1492 | return resultobj; | |
1493 | fail: | |
1494 | { | |
1495 | if (temp1) | |
1496 | delete arg1; | |
1497 | } | |
1498 | { | |
1499 | if (temp2) | |
1500 | delete arg2; | |
1501 | } | |
1502 | return NULL; | |
1503 | } | |
1504 | ||
1505 | ||
1506 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1507 | PyObject *resultobj; | |
1508 | wxString *arg1 = 0 ; | |
1509 | int arg2 ; | |
423f194a | 1510 | bool temp1 = False ; |
d14a1e28 | 1511 | PyObject * obj0 = 0 ; |
8edf1c75 | 1512 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1513 | char *kwnames[] = { |
1514 | (char *) "name",(char *) "value", NULL | |
1515 | }; | |
1516 | ||
8edf1c75 | 1517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
1518 | { |
1519 | arg1 = wxString_in_helper(obj0); | |
1520 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1521 | temp1 = True; |
d14a1e28 | 1522 | } |
8edf1c75 RD |
1523 | { |
1524 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1525 | if (PyErr_Occurred()) SWIG_fail; | |
1526 | } | |
d14a1e28 RD |
1527 | { |
1528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1529 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
1530 | ||
1531 | wxPyEndAllowThreads(__tstate); | |
1532 | if (PyErr_Occurred()) SWIG_fail; | |
1533 | } | |
1534 | Py_INCREF(Py_None); resultobj = Py_None; | |
1535 | { | |
1536 | if (temp1) | |
1537 | delete arg1; | |
1538 | } | |
1539 | return resultobj; | |
1540 | fail: | |
1541 | { | |
1542 | if (temp1) | |
1543 | delete arg1; | |
1544 | } | |
1545 | return NULL; | |
1546 | } | |
1547 | ||
1548 | ||
1549 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1550 | PyObject *resultobj; | |
1551 | wxString *arg1 = 0 ; | |
1552 | wxString result; | |
423f194a | 1553 | bool temp1 = False ; |
d14a1e28 RD |
1554 | PyObject * obj0 = 0 ; |
1555 | char *kwnames[] = { | |
1556 | (char *) "name", NULL | |
1557 | }; | |
1558 | ||
1559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
1560 | { | |
1561 | arg1 = wxString_in_helper(obj0); | |
1562 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1563 | temp1 = True; |
d14a1e28 RD |
1564 | } |
1565 | { | |
1566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1567 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
1568 | ||
1569 | wxPyEndAllowThreads(__tstate); | |
1570 | if (PyErr_Occurred()) SWIG_fail; | |
1571 | } | |
1572 | { | |
1573 | #if wxUSE_UNICODE | |
1574 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1575 | #else | |
1576 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1577 | #endif | |
1578 | } | |
1579 | { | |
1580 | if (temp1) | |
1581 | delete arg1; | |
1582 | } | |
1583 | return resultobj; | |
1584 | fail: | |
1585 | { | |
1586 | if (temp1) | |
1587 | delete arg1; | |
1588 | } | |
1589 | return NULL; | |
1590 | } | |
1591 | ||
1592 | ||
1593 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1594 | PyObject *resultobj; | |
1595 | wxString *arg1 = 0 ; | |
1596 | int result; | |
423f194a | 1597 | bool temp1 = False ; |
d14a1e28 RD |
1598 | PyObject * obj0 = 0 ; |
1599 | char *kwnames[] = { | |
1600 | (char *) "name", NULL | |
1601 | }; | |
1602 | ||
1603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
1604 | { | |
1605 | arg1 = wxString_in_helper(obj0); | |
1606 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1607 | temp1 = True; |
d14a1e28 RD |
1608 | } |
1609 | { | |
1610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1611 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
1612 | ||
1613 | wxPyEndAllowThreads(__tstate); | |
1614 | if (PyErr_Occurred()) SWIG_fail; | |
1615 | } | |
8edf1c75 | 1616 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1617 | { |
1618 | if (temp1) | |
1619 | delete arg1; | |
1620 | } | |
1621 | return resultobj; | |
1622 | fail: | |
1623 | { | |
1624 | if (temp1) | |
1625 | delete arg1; | |
1626 | } | |
1627 | return NULL; | |
1628 | } | |
1629 | ||
1630 | ||
1631 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1632 | PyObject *resultobj; | |
1633 | wxString *arg1 = 0 ; | |
1634 | bool result; | |
423f194a | 1635 | bool temp1 = False ; |
d14a1e28 RD |
1636 | PyObject * obj0 = 0 ; |
1637 | char *kwnames[] = { | |
1638 | (char *) "name", NULL | |
1639 | }; | |
1640 | ||
1641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
1642 | { | |
1643 | arg1 = wxString_in_helper(obj0); | |
1644 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1645 | temp1 = True; |
d14a1e28 RD |
1646 | } |
1647 | { | |
1648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1649 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
1650 | ||
1651 | wxPyEndAllowThreads(__tstate); | |
1652 | if (PyErr_Occurred()) SWIG_fail; | |
1653 | } | |
02a34c4c | 1654 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1655 | { |
1656 | if (temp1) | |
1657 | delete arg1; | |
1658 | } | |
1659 | return resultobj; | |
1660 | fail: | |
1661 | { | |
1662 | if (temp1) | |
1663 | delete arg1; | |
1664 | } | |
1665 | return NULL; | |
1666 | } | |
1667 | ||
1668 | ||
1669 | static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) { | |
1670 | PyObject *obj; | |
1671 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1672 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
1673 | Py_INCREF(obj); | |
1674 | return Py_BuildValue((char *)""); | |
1675 | } | |
8edf1c75 | 1676 | static int _wrap_FileSelectorPromptStr_set(PyObject *) { |
cbd72d4f RD |
1677 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); |
1678 | return 1; | |
1679 | } | |
1680 | ||
1681 | ||
1682 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
1683 | PyObject *pyobj; | |
1684 | ||
1685 | { | |
1686 | #if wxUSE_UNICODE | |
1687 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1688 | #else | |
1689 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1690 | #endif | |
1691 | } | |
1692 | return pyobj; | |
1693 | } | |
1694 | ||
1695 | ||
8edf1c75 | 1696 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) { |
cbd72d4f RD |
1697 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); |
1698 | return 1; | |
1699 | } | |
1700 | ||
1701 | ||
1702 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
1703 | PyObject *pyobj; | |
1704 | ||
1705 | { | |
1706 | #if wxUSE_UNICODE | |
1707 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1708 | #else | |
1709 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1710 | #endif | |
1711 | } | |
1712 | return pyobj; | |
1713 | } | |
1714 | ||
1715 | ||
8edf1c75 | 1716 | static int _wrap_DirSelectorPromptStr_set(PyObject *) { |
cbd72d4f RD |
1717 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); |
1718 | return 1; | |
1719 | } | |
1720 | ||
1721 | ||
1722 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
1723 | PyObject *pyobj; | |
1724 | ||
1725 | { | |
1726 | #if wxUSE_UNICODE | |
1727 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1728 | #else | |
1729 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1730 | #endif | |
1731 | } | |
1732 | return pyobj; | |
1733 | } | |
1734 | ||
1735 | ||
d14a1e28 RD |
1736 | static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) { |
1737 | PyObject *resultobj; | |
1738 | long result; | |
1739 | char *kwnames[] = { | |
1740 | NULL | |
1741 | }; | |
1742 | ||
1743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
1744 | { | |
1745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1746 | result = (long)wxNewId(); | |
1747 | ||
1748 | wxPyEndAllowThreads(__tstate); | |
1749 | if (PyErr_Occurred()) SWIG_fail; | |
1750 | } | |
8edf1c75 | 1751 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
1752 | return resultobj; |
1753 | fail: | |
1754 | return NULL; | |
1755 | } | |
1756 | ||
1757 | ||
1758 | static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1759 | PyObject *resultobj; | |
1760 | long arg1 ; | |
8edf1c75 | 1761 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1762 | char *kwnames[] = { |
1763 | (char *) "id", NULL | |
1764 | }; | |
1765 | ||
8edf1c75 RD |
1766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; |
1767 | { | |
1768 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
1769 | if (PyErr_Occurred()) SWIG_fail; | |
1770 | } | |
d14a1e28 RD |
1771 | { |
1772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1773 | wxRegisterId(arg1); | |
1774 | ||
1775 | wxPyEndAllowThreads(__tstate); | |
1776 | if (PyErr_Occurred()) SWIG_fail; | |
1777 | } | |
1778 | Py_INCREF(Py_None); resultobj = Py_None; | |
1779 | return resultobj; | |
1780 | fail: | |
1781 | return NULL; | |
1782 | } | |
1783 | ||
1784 | ||
1785 | static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1786 | PyObject *resultobj; | |
1787 | long result; | |
1788 | char *kwnames[] = { | |
1789 | NULL | |
1790 | }; | |
1791 | ||
1792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
1793 | { | |
1794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1795 | result = (long)wxGetCurrentId(); | |
1796 | ||
1797 | wxPyEndAllowThreads(__tstate); | |
1798 | if (PyErr_Occurred()) SWIG_fail; | |
1799 | } | |
8edf1c75 | 1800 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
1801 | return resultobj; |
1802 | fail: | |
1803 | return NULL; | |
1804 | } | |
1805 | ||
1806 | ||
1807 | static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1808 | PyObject *resultobj; | |
1809 | char *kwnames[] = { | |
1810 | NULL | |
1811 | }; | |
1812 | ||
1813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
1814 | { | |
1815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1816 | wxBell(); | |
1817 | ||
1818 | wxPyEndAllowThreads(__tstate); | |
1819 | if (PyErr_Occurred()) SWIG_fail; | |
1820 | } | |
1821 | Py_INCREF(Py_None); resultobj = Py_None; | |
1822 | return resultobj; | |
1823 | fail: | |
1824 | return NULL; | |
1825 | } | |
1826 | ||
1827 | ||
1828 | static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1829 | PyObject *resultobj; | |
1830 | char *kwnames[] = { | |
1831 | NULL | |
1832 | }; | |
1833 | ||
1834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
1835 | { | |
1836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1837 | wxEndBusyCursor(); | |
1838 | ||
1839 | wxPyEndAllowThreads(__tstate); | |
1840 | if (PyErr_Occurred()) SWIG_fail; | |
1841 | } | |
1842 | Py_INCREF(Py_None); resultobj = Py_None; | |
1843 | return resultobj; | |
1844 | fail: | |
1845 | return NULL; | |
1846 | } | |
1847 | ||
1848 | ||
1849 | static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1850 | PyObject *resultobj; | |
423f194a | 1851 | bool arg1 = (bool) True ; |
d14a1e28 RD |
1852 | long result; |
1853 | PyObject * obj0 = 0 ; | |
1854 | char *kwnames[] = { | |
1855 | (char *) "resetTimer", NULL | |
1856 | }; | |
1857 | ||
1858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
1859 | if (obj0) { | |
2dbef272 | 1860 | { |
8edf1c75 | 1861 | arg1 = (bool) SWIG_PyObj_AsBool(obj0); |
2dbef272 RD |
1862 | if (PyErr_Occurred()) SWIG_fail; |
1863 | } | |
d14a1e28 RD |
1864 | } |
1865 | { | |
1866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1867 | result = (long)wxGetElapsedTime(arg1); | |
1868 | ||
1869 | wxPyEndAllowThreads(__tstate); | |
1870 | if (PyErr_Occurred()) SWIG_fail; | |
1871 | } | |
8edf1c75 | 1872 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
1873 | return resultobj; |
1874 | fail: | |
1875 | return NULL; | |
1876 | } | |
1877 | ||
1878 | ||
1879 | static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1880 | PyObject *resultobj; | |
1881 | int *arg1 = (int *) 0 ; | |
1882 | int *arg2 = (int *) 0 ; | |
1883 | int temp1 ; | |
1884 | int temp2 ; | |
1885 | char *kwnames[] = { | |
1886 | NULL | |
1887 | }; | |
1888 | ||
1889 | arg1 = &temp1; | |
1890 | arg2 = &temp2; | |
1891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
1892 | { | |
1893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1894 | wxGetMousePosition(arg1,arg2); | |
1895 | ||
1896 | wxPyEndAllowThreads(__tstate); | |
1897 | if (PyErr_Occurred()) SWIG_fail; | |
1898 | } | |
1899 | Py_INCREF(Py_None); resultobj = Py_None; | |
1900 | { | |
1901 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
1902 | resultobj = t_output_helper(resultobj,o); | |
1903 | } | |
1904 | { | |
1905 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1906 | resultobj = t_output_helper(resultobj,o); | |
1907 | } | |
1908 | return resultobj; | |
1909 | fail: | |
1910 | return NULL; | |
1911 | } | |
1912 | ||
1913 | ||
1914 | static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1915 | PyObject *resultobj; | |
1916 | bool result; | |
1917 | char *kwnames[] = { | |
1918 | NULL | |
1919 | }; | |
1920 | ||
1921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
1922 | { | |
1923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1924 | result = (bool)wxIsBusy(); | |
1925 | ||
1926 | wxPyEndAllowThreads(__tstate); | |
1927 | if (PyErr_Occurred()) SWIG_fail; | |
1928 | } | |
02a34c4c | 1929 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1930 | return resultobj; |
1931 | fail: | |
1932 | return NULL; | |
1933 | } | |
1934 | ||
1935 | ||
1936 | static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1937 | PyObject *resultobj; | |
1938 | wxString result; | |
1939 | char *kwnames[] = { | |
1940 | NULL | |
1941 | }; | |
1942 | ||
1943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
1944 | { | |
1945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1946 | result = wxNow(); | |
1947 | ||
1948 | wxPyEndAllowThreads(__tstate); | |
1949 | if (PyErr_Occurred()) SWIG_fail; | |
1950 | } | |
1951 | { | |
1952 | #if wxUSE_UNICODE | |
1953 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1954 | #else | |
1955 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1956 | #endif | |
1957 | } | |
1958 | return resultobj; | |
1959 | fail: | |
1960 | return NULL; | |
1961 | } | |
1962 | ||
1963 | ||
1964 | static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1965 | PyObject *resultobj; | |
1966 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
1967 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
1968 | bool result; | |
423f194a | 1969 | bool temp1 = False ; |
d14a1e28 RD |
1970 | PyObject * obj0 = 0 ; |
1971 | char *kwnames[] = { | |
1972 | (char *) "command", NULL | |
1973 | }; | |
1974 | ||
1975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
1976 | if (obj0) { | |
1977 | { | |
1978 | arg1 = wxString_in_helper(obj0); | |
1979 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1980 | temp1 = True; |
d14a1e28 RD |
1981 | } |
1982 | } | |
1983 | { | |
1984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1985 | result = (bool)wxShell((wxString const &)*arg1); | |
1986 | ||
1987 | wxPyEndAllowThreads(__tstate); | |
1988 | if (PyErr_Occurred()) SWIG_fail; | |
1989 | } | |
02a34c4c | 1990 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1991 | { |
1992 | if (temp1) | |
1993 | delete arg1; | |
1994 | } | |
1995 | return resultobj; | |
1996 | fail: | |
1997 | { | |
1998 | if (temp1) | |
1999 | delete arg1; | |
2000 | } | |
2001 | return NULL; | |
2002 | } | |
2003 | ||
2004 | ||
2005 | static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2006 | PyObject *resultobj; | |
2007 | char *kwnames[] = { | |
2008 | NULL | |
2009 | }; | |
2010 | ||
2011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
2012 | { | |
2013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2014 | wxStartTimer(); | |
2015 | ||
2016 | wxPyEndAllowThreads(__tstate); | |
2017 | if (PyErr_Occurred()) SWIG_fail; | |
2018 | } | |
2019 | Py_INCREF(Py_None); resultobj = Py_None; | |
2020 | return resultobj; | |
2021 | fail: | |
2022 | return NULL; | |
2023 | } | |
2024 | ||
2025 | ||
2026 | static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2027 | PyObject *resultobj; | |
2028 | int *arg1 = (int *) 0 ; | |
2029 | int *arg2 = (int *) 0 ; | |
2030 | int result; | |
2031 | int temp1 ; | |
2032 | int temp2 ; | |
2033 | char *kwnames[] = { | |
2034 | NULL | |
2035 | }; | |
2036 | ||
2037 | arg1 = &temp1; | |
2038 | arg2 = &temp2; | |
2039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
2040 | { | |
2041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2042 | result = (int)wxGetOsVersion(arg1,arg2); | |
2043 | ||
2044 | wxPyEndAllowThreads(__tstate); | |
2045 | if (PyErr_Occurred()) SWIG_fail; | |
2046 | } | |
8edf1c75 | 2047 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2048 | { |
2049 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2050 | resultobj = t_output_helper(resultobj,o); | |
2051 | } | |
2052 | { | |
2053 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2054 | resultobj = t_output_helper(resultobj,o); | |
2055 | } | |
2056 | return resultobj; | |
2057 | fail: | |
2058 | return NULL; | |
2059 | } | |
2060 | ||
2061 | ||
2062 | static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2063 | PyObject *resultobj; | |
2064 | wxString result; | |
2065 | char *kwnames[] = { | |
2066 | NULL | |
2067 | }; | |
2068 | ||
2069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
2070 | { | |
2071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2072 | result = wxGetOsDescription(); | |
2073 | ||
2074 | wxPyEndAllowThreads(__tstate); | |
2075 | if (PyErr_Occurred()) SWIG_fail; | |
2076 | } | |
2077 | { | |
2078 | #if wxUSE_UNICODE | |
2079 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2080 | #else | |
2081 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2082 | #endif | |
2083 | } | |
2084 | return resultobj; | |
2085 | fail: | |
2086 | return NULL; | |
2087 | } | |
2088 | ||
2089 | ||
2090 | static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2091 | PyObject *resultobj; | |
2092 | long result; | |
2093 | char *kwnames[] = { | |
2094 | NULL | |
2095 | }; | |
2096 | ||
2097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
2098 | { | |
2099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2100 | result = (long)wxGetFreeMemory(); | |
2101 | ||
2102 | wxPyEndAllowThreads(__tstate); | |
2103 | if (PyErr_Occurred()) SWIG_fail; | |
2104 | } | |
8edf1c75 | 2105 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
2106 | return resultobj; |
2107 | fail: | |
2108 | return NULL; | |
2109 | } | |
2110 | ||
2111 | ||
2112 | static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2113 | PyObject *resultobj; | |
2114 | int arg1 ; | |
2115 | bool result; | |
8edf1c75 | 2116 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2117 | char *kwnames[] = { |
2118 | (char *) "wFlags", NULL | |
2119 | }; | |
2120 | ||
8edf1c75 RD |
2121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; |
2122 | { | |
2123 | arg1 = (wxShutdownFlags) SWIG_PyObj_AsInt(obj0); | |
2124 | if (PyErr_Occurred()) SWIG_fail; | |
2125 | } | |
d14a1e28 RD |
2126 | { |
2127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2128 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
2129 | ||
2130 | wxPyEndAllowThreads(__tstate); | |
2131 | if (PyErr_Occurred()) SWIG_fail; | |
2132 | } | |
02a34c4c | 2133 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2134 | return resultobj; |
2135 | fail: | |
2136 | return NULL; | |
2137 | } | |
2138 | ||
2139 | ||
2140 | static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2141 | PyObject *resultobj; | |
2142 | int arg1 ; | |
8edf1c75 | 2143 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2144 | char *kwnames[] = { |
2145 | (char *) "secs", NULL | |
2146 | }; | |
2147 | ||
8edf1c75 RD |
2148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; |
2149 | { | |
2150 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
2151 | if (PyErr_Occurred()) SWIG_fail; | |
2152 | } | |
d14a1e28 RD |
2153 | { |
2154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2155 | wxSleep(arg1); | |
2156 | ||
2157 | wxPyEndAllowThreads(__tstate); | |
2158 | if (PyErr_Occurred()) SWIG_fail; | |
2159 | } | |
2160 | Py_INCREF(Py_None); resultobj = Py_None; | |
2161 | return resultobj; | |
2162 | fail: | |
2163 | return NULL; | |
2164 | } | |
2165 | ||
2166 | ||
2167 | static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2168 | PyObject *resultobj; | |
2169 | unsigned long arg1 ; | |
2170 | PyObject * obj0 = 0 ; | |
2171 | char *kwnames[] = { | |
2172 | (char *) "milliseconds", NULL | |
2173 | }; | |
2174 | ||
2175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail; | |
2dbef272 | 2176 | { |
8edf1c75 | 2177 | arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0); |
2dbef272 RD |
2178 | if (PyErr_Occurred()) SWIG_fail; |
2179 | } | |
d14a1e28 RD |
2180 | { |
2181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2182 | wxUsleep(arg1); | |
2183 | ||
2184 | wxPyEndAllowThreads(__tstate); | |
2185 | if (PyErr_Occurred()) SWIG_fail; | |
2186 | } | |
2187 | Py_INCREF(Py_None); resultobj = Py_None; | |
2188 | return resultobj; | |
2189 | fail: | |
2190 | return NULL; | |
2191 | } | |
2192 | ||
2193 | ||
2194 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2195 | PyObject *resultobj; | |
2196 | bool arg1 ; | |
2197 | PyObject * obj0 = 0 ; | |
2198 | char *kwnames[] = { | |
2199 | (char *) "enable", NULL | |
2200 | }; | |
2201 | ||
2202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
2dbef272 | 2203 | { |
8edf1c75 | 2204 | arg1 = (bool) SWIG_PyObj_AsBool(obj0); |
2dbef272 RD |
2205 | if (PyErr_Occurred()) SWIG_fail; |
2206 | } | |
d14a1e28 RD |
2207 | { |
2208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2209 | wxEnableTopLevelWindows(arg1); | |
2210 | ||
2211 | wxPyEndAllowThreads(__tstate); | |
2212 | if (PyErr_Occurred()) SWIG_fail; | |
2213 | } | |
2214 | Py_INCREF(Py_None); resultobj = Py_None; | |
2215 | return resultobj; | |
2216 | fail: | |
2217 | return NULL; | |
2218 | } | |
2219 | ||
2220 | ||
2221 | static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2222 | PyObject *resultobj; | |
2223 | wxString *arg1 = 0 ; | |
2224 | wxString result; | |
423f194a | 2225 | bool temp1 = False ; |
d14a1e28 RD |
2226 | PyObject * obj0 = 0 ; |
2227 | char *kwnames[] = { | |
2228 | (char *) "in", NULL | |
2229 | }; | |
2230 | ||
2231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2232 | { | |
2233 | arg1 = wxString_in_helper(obj0); | |
2234 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2235 | temp1 = True; |
d14a1e28 RD |
2236 | } |
2237 | { | |
2238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2239 | result = wxStripMenuCodes((wxString const &)*arg1); | |
2240 | ||
2241 | wxPyEndAllowThreads(__tstate); | |
2242 | if (PyErr_Occurred()) SWIG_fail; | |
2243 | } | |
2244 | { | |
2245 | #if wxUSE_UNICODE | |
2246 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2247 | #else | |
2248 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2249 | #endif | |
2250 | } | |
2251 | { | |
2252 | if (temp1) | |
2253 | delete arg1; | |
2254 | } | |
2255 | return resultobj; | |
2256 | fail: | |
2257 | { | |
2258 | if (temp1) | |
2259 | delete arg1; | |
2260 | } | |
2261 | return NULL; | |
2262 | } | |
2263 | ||
2264 | ||
2265 | static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2266 | PyObject *resultobj; | |
2267 | wxString result; | |
2268 | char *kwnames[] = { | |
2269 | NULL | |
2270 | }; | |
2271 | ||
2272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2273 | { | |
2274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2275 | result = wxGetEmailAddress(); | |
2276 | ||
2277 | wxPyEndAllowThreads(__tstate); | |
2278 | if (PyErr_Occurred()) SWIG_fail; | |
2279 | } | |
2280 | { | |
2281 | #if wxUSE_UNICODE | |
2282 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2283 | #else | |
2284 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2285 | #endif | |
2286 | } | |
2287 | return resultobj; | |
2288 | fail: | |
2289 | return NULL; | |
2290 | } | |
2291 | ||
2292 | ||
2293 | static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2294 | PyObject *resultobj; | |
2295 | wxString result; | |
2296 | char *kwnames[] = { | |
2297 | NULL | |
2298 | }; | |
2299 | ||
2300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2301 | { | |
2302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2303 | result = wxGetHostName(); | |
2304 | ||
2305 | wxPyEndAllowThreads(__tstate); | |
2306 | if (PyErr_Occurred()) SWIG_fail; | |
2307 | } | |
2308 | { | |
2309 | #if wxUSE_UNICODE | |
2310 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2311 | #else | |
2312 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2313 | #endif | |
2314 | } | |
2315 | return resultobj; | |
2316 | fail: | |
2317 | return NULL; | |
2318 | } | |
2319 | ||
2320 | ||
2321 | static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2322 | PyObject *resultobj; | |
2323 | wxString result; | |
2324 | char *kwnames[] = { | |
2325 | NULL | |
2326 | }; | |
2327 | ||
2328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2329 | { | |
2330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2331 | result = wxGetFullHostName(); | |
2332 | ||
2333 | wxPyEndAllowThreads(__tstate); | |
2334 | if (PyErr_Occurred()) SWIG_fail; | |
2335 | } | |
2336 | { | |
2337 | #if wxUSE_UNICODE | |
2338 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2339 | #else | |
2340 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2341 | #endif | |
2342 | } | |
2343 | return resultobj; | |
2344 | fail: | |
2345 | return NULL; | |
2346 | } | |
2347 | ||
2348 | ||
2349 | static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2350 | PyObject *resultobj; | |
2351 | wxString result; | |
2352 | char *kwnames[] = { | |
2353 | NULL | |
2354 | }; | |
2355 | ||
2356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
2357 | { | |
2358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2359 | result = wxGetUserId(); | |
2360 | ||
2361 | wxPyEndAllowThreads(__tstate); | |
2362 | if (PyErr_Occurred()) SWIG_fail; | |
2363 | } | |
2364 | { | |
2365 | #if wxUSE_UNICODE | |
2366 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2367 | #else | |
2368 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2369 | #endif | |
2370 | } | |
2371 | return resultobj; | |
2372 | fail: | |
2373 | return NULL; | |
2374 | } | |
2375 | ||
2376 | ||
2377 | static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2378 | PyObject *resultobj; | |
2379 | wxString result; | |
2380 | char *kwnames[] = { | |
2381 | NULL | |
2382 | }; | |
2383 | ||
2384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
2385 | { | |
2386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2387 | result = wxGetUserName(); | |
2388 | ||
2389 | wxPyEndAllowThreads(__tstate); | |
2390 | if (PyErr_Occurred()) SWIG_fail; | |
2391 | } | |
2392 | { | |
2393 | #if wxUSE_UNICODE | |
2394 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2395 | #else | |
2396 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2397 | #endif | |
2398 | } | |
2399 | return resultobj; | |
2400 | fail: | |
2401 | return NULL; | |
2402 | } | |
2403 | ||
2404 | ||
2405 | static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2406 | PyObject *resultobj; | |
2407 | wxString result; | |
2408 | char *kwnames[] = { | |
2409 | NULL | |
2410 | }; | |
2411 | ||
2412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
2413 | { | |
2414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2415 | result = wxGetHomeDir(); | |
2416 | ||
2417 | wxPyEndAllowThreads(__tstate); | |
2418 | if (PyErr_Occurred()) SWIG_fail; | |
2419 | } | |
2420 | { | |
2421 | #if wxUSE_UNICODE | |
2422 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2423 | #else | |
2424 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2425 | #endif | |
2426 | } | |
2427 | return resultobj; | |
2428 | fail: | |
2429 | return NULL; | |
2430 | } | |
2431 | ||
2432 | ||
2433 | static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2434 | PyObject *resultobj; | |
2435 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2436 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2437 | wxString result; | |
423f194a | 2438 | bool temp1 = False ; |
d14a1e28 RD |
2439 | PyObject * obj0 = 0 ; |
2440 | char *kwnames[] = { | |
2441 | (char *) "user", NULL | |
2442 | }; | |
2443 | ||
2444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
2445 | if (obj0) { | |
2446 | { | |
2447 | arg1 = wxString_in_helper(obj0); | |
2448 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2449 | temp1 = True; |
d14a1e28 RD |
2450 | } |
2451 | } | |
2452 | { | |
2453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2454 | result = wxGetUserHome((wxString const &)*arg1); | |
2455 | ||
2456 | wxPyEndAllowThreads(__tstate); | |
2457 | if (PyErr_Occurred()) SWIG_fail; | |
2458 | } | |
2459 | { | |
2460 | #if wxUSE_UNICODE | |
2461 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2462 | #else | |
2463 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2464 | #endif | |
2465 | } | |
2466 | { | |
2467 | if (temp1) | |
2468 | delete arg1; | |
2469 | } | |
2470 | return resultobj; | |
2471 | fail: | |
2472 | { | |
2473 | if (temp1) | |
2474 | delete arg1; | |
2475 | } | |
2476 | return NULL; | |
2477 | } | |
2478 | ||
2479 | ||
2480 | static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2481 | PyObject *resultobj; | |
2482 | unsigned long result; | |
2483 | char *kwnames[] = { | |
2484 | NULL | |
2485 | }; | |
2486 | ||
2487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
2488 | { | |
2489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2490 | result = (unsigned long)wxGetProcessId(); | |
2491 | ||
2492 | wxPyEndAllowThreads(__tstate); | |
2493 | if (PyErr_Occurred()) SWIG_fail; | |
2494 | } | |
8edf1c75 | 2495 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
2496 | return resultobj; |
2497 | fail: | |
2498 | return NULL; | |
2499 | } | |
2500 | ||
2501 | ||
2502 | static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2503 | PyObject *resultobj; | |
2504 | char *kwnames[] = { | |
2505 | NULL | |
2506 | }; | |
2507 | ||
2508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
2509 | { | |
2510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2511 | wxTrap(); | |
2512 | ||
2513 | wxPyEndAllowThreads(__tstate); | |
2514 | if (PyErr_Occurred()) SWIG_fail; | |
2515 | } | |
2516 | Py_INCREF(Py_None); resultobj = Py_None; | |
2517 | return resultobj; | |
2518 | fail: | |
2519 | return NULL; | |
2520 | } | |
2521 | ||
2522 | ||
2523 | static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2524 | PyObject *resultobj; | |
2525 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
2526 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2527 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2528 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2529 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2530 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2531 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2532 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2533 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
2534 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
2535 | int arg6 = (int) 0 ; | |
2536 | wxWindow *arg7 = (wxWindow *) NULL ; | |
2537 | int arg8 = (int) -1 ; | |
2538 | int arg9 = (int) -1 ; | |
2539 | wxString result; | |
423f194a RD |
2540 | bool temp1 = False ; |
2541 | bool temp2 = False ; | |
2542 | bool temp3 = False ; | |
2543 | bool temp4 = False ; | |
2544 | bool temp5 = False ; | |
d14a1e28 RD |
2545 | PyObject * obj0 = 0 ; |
2546 | PyObject * obj1 = 0 ; | |
2547 | PyObject * obj2 = 0 ; | |
2548 | PyObject * obj3 = 0 ; | |
2549 | PyObject * obj4 = 0 ; | |
8edf1c75 | 2550 | PyObject * obj5 = 0 ; |
d14a1e28 | 2551 | PyObject * obj6 = 0 ; |
8edf1c75 RD |
2552 | PyObject * obj7 = 0 ; |
2553 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
2554 | char *kwnames[] = { |
2555 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
2556 | }; | |
2557 | ||
8edf1c75 | 2558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
2559 | if (obj0) { |
2560 | { | |
2561 | arg1 = wxString_in_helper(obj0); | |
2562 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2563 | temp1 = True; |
d14a1e28 RD |
2564 | } |
2565 | } | |
2566 | if (obj1) { | |
2567 | { | |
2568 | arg2 = wxString_in_helper(obj1); | |
2569 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2570 | temp2 = True; |
d14a1e28 RD |
2571 | } |
2572 | } | |
2573 | if (obj2) { | |
2574 | { | |
2575 | arg3 = wxString_in_helper(obj2); | |
2576 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2577 | temp3 = True; |
d14a1e28 RD |
2578 | } |
2579 | } | |
2580 | if (obj3) { | |
2581 | { | |
2582 | arg4 = wxString_in_helper(obj3); | |
2583 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 2584 | temp4 = True; |
d14a1e28 RD |
2585 | } |
2586 | } | |
2587 | if (obj4) { | |
2588 | { | |
2589 | arg5 = wxString_in_helper(obj4); | |
2590 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 2591 | temp5 = True; |
d14a1e28 RD |
2592 | } |
2593 | } | |
8edf1c75 RD |
2594 | if (obj5) { |
2595 | { | |
2596 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
2597 | if (PyErr_Occurred()) SWIG_fail; | |
2598 | } | |
2599 | } | |
d14a1e28 RD |
2600 | if (obj6) { |
2601 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2602 | } | |
8edf1c75 RD |
2603 | if (obj7) { |
2604 | { | |
2605 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
2606 | if (PyErr_Occurred()) SWIG_fail; | |
2607 | } | |
2608 | } | |
2609 | if (obj8) { | |
2610 | { | |
2611 | arg9 = (int) SWIG_PyObj_AsInt(obj8); | |
2612 | if (PyErr_Occurred()) SWIG_fail; | |
2613 | } | |
2614 | } | |
d14a1e28 RD |
2615 | { |
2616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2617 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
2618 | ||
2619 | wxPyEndAllowThreads(__tstate); | |
2620 | if (PyErr_Occurred()) SWIG_fail; | |
2621 | } | |
2622 | { | |
2623 | #if wxUSE_UNICODE | |
2624 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2625 | #else | |
2626 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2627 | #endif | |
2628 | } | |
2629 | { | |
2630 | if (temp1) | |
2631 | delete arg1; | |
2632 | } | |
2633 | { | |
2634 | if (temp2) | |
2635 | delete arg2; | |
2636 | } | |
2637 | { | |
2638 | if (temp3) | |
2639 | delete arg3; | |
2640 | } | |
2641 | { | |
2642 | if (temp4) | |
2643 | delete arg4; | |
2644 | } | |
2645 | { | |
2646 | if (temp5) | |
2647 | delete arg5; | |
2648 | } | |
2649 | return resultobj; | |
2650 | fail: | |
2651 | { | |
2652 | if (temp1) | |
2653 | delete arg1; | |
2654 | } | |
2655 | { | |
2656 | if (temp2) | |
2657 | delete arg2; | |
2658 | } | |
2659 | { | |
2660 | if (temp3) | |
2661 | delete arg3; | |
2662 | } | |
2663 | { | |
2664 | if (temp4) | |
2665 | delete arg4; | |
2666 | } | |
2667 | { | |
2668 | if (temp5) | |
2669 | delete arg5; | |
2670 | } | |
2671 | return NULL; | |
2672 | } | |
2673 | ||
2674 | ||
2675 | static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2676 | PyObject *resultobj; | |
2677 | wxString *arg1 = 0 ; | |
2678 | wxString *arg2 = 0 ; | |
2679 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2680 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2681 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2682 | wxString result; | |
423f194a RD |
2683 | bool temp1 = False ; |
2684 | bool temp2 = False ; | |
2685 | bool temp3 = False ; | |
d14a1e28 RD |
2686 | PyObject * obj0 = 0 ; |
2687 | PyObject * obj1 = 0 ; | |
2688 | PyObject * obj2 = 0 ; | |
2689 | PyObject * obj3 = 0 ; | |
2690 | char *kwnames[] = { | |
2691 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2692 | }; | |
2693 | ||
2694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2695 | { | |
2696 | arg1 = wxString_in_helper(obj0); | |
2697 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2698 | temp1 = True; |
d14a1e28 RD |
2699 | } |
2700 | { | |
2701 | arg2 = wxString_in_helper(obj1); | |
2702 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2703 | temp2 = True; |
d14a1e28 RD |
2704 | } |
2705 | if (obj2) { | |
2706 | { | |
2707 | arg3 = wxString_in_helper(obj2); | |
2708 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2709 | temp3 = True; |
d14a1e28 RD |
2710 | } |
2711 | } | |
2712 | if (obj3) { | |
2713 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2714 | } | |
2715 | { | |
2716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2717 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2718 | ||
2719 | wxPyEndAllowThreads(__tstate); | |
2720 | if (PyErr_Occurred()) SWIG_fail; | |
2721 | } | |
2722 | { | |
2723 | #if wxUSE_UNICODE | |
2724 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2725 | #else | |
2726 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2727 | #endif | |
2728 | } | |
2729 | { | |
2730 | if (temp1) | |
2731 | delete arg1; | |
2732 | } | |
2733 | { | |
2734 | if (temp2) | |
2735 | delete arg2; | |
2736 | } | |
2737 | { | |
2738 | if (temp3) | |
2739 | delete arg3; | |
2740 | } | |
2741 | return resultobj; | |
2742 | fail: | |
2743 | { | |
2744 | if (temp1) | |
2745 | delete arg1; | |
2746 | } | |
2747 | { | |
2748 | if (temp2) | |
2749 | delete arg2; | |
2750 | } | |
2751 | { | |
2752 | if (temp3) | |
2753 | delete arg3; | |
2754 | } | |
2755 | return NULL; | |
2756 | } | |
2757 | ||
2758 | ||
2759 | static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2760 | PyObject *resultobj; | |
2761 | wxString *arg1 = 0 ; | |
2762 | wxString *arg2 = 0 ; | |
2763 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2764 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2765 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2766 | wxString result; | |
423f194a RD |
2767 | bool temp1 = False ; |
2768 | bool temp2 = False ; | |
2769 | bool temp3 = False ; | |
d14a1e28 RD |
2770 | PyObject * obj0 = 0 ; |
2771 | PyObject * obj1 = 0 ; | |
2772 | PyObject * obj2 = 0 ; | |
2773 | PyObject * obj3 = 0 ; | |
2774 | char *kwnames[] = { | |
2775 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2776 | }; | |
2777 | ||
2778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2779 | { | |
2780 | arg1 = wxString_in_helper(obj0); | |
2781 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2782 | temp1 = True; |
d14a1e28 RD |
2783 | } |
2784 | { | |
2785 | arg2 = wxString_in_helper(obj1); | |
2786 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2787 | temp2 = True; |
d14a1e28 RD |
2788 | } |
2789 | if (obj2) { | |
2790 | { | |
2791 | arg3 = wxString_in_helper(obj2); | |
2792 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2793 | temp3 = True; |
d14a1e28 RD |
2794 | } |
2795 | } | |
2796 | if (obj3) { | |
2797 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2798 | } | |
2799 | { | |
2800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2801 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2802 | ||
2803 | wxPyEndAllowThreads(__tstate); | |
2804 | if (PyErr_Occurred()) SWIG_fail; | |
2805 | } | |
2806 | { | |
2807 | #if wxUSE_UNICODE | |
2808 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2809 | #else | |
2810 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2811 | #endif | |
2812 | } | |
2813 | { | |
2814 | if (temp1) | |
2815 | delete arg1; | |
2816 | } | |
2817 | { | |
2818 | if (temp2) | |
2819 | delete arg2; | |
2820 | } | |
2821 | { | |
2822 | if (temp3) | |
2823 | delete arg3; | |
2824 | } | |
2825 | return resultobj; | |
2826 | fail: | |
2827 | { | |
2828 | if (temp1) | |
2829 | delete arg1; | |
2830 | } | |
2831 | { | |
2832 | if (temp2) | |
2833 | delete arg2; | |
2834 | } | |
2835 | { | |
2836 | if (temp3) | |
2837 | delete arg3; | |
2838 | } | |
2839 | return NULL; | |
2840 | } | |
2841 | ||
2842 | ||
2843 | static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2844 | PyObject *resultobj; | |
2845 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
2846 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2847 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2848 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2849 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
2850 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2851 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2852 | wxWindow *arg5 = (wxWindow *) NULL ; | |
2853 | wxString result; | |
423f194a RD |
2854 | bool temp1 = False ; |
2855 | bool temp2 = False ; | |
d14a1e28 RD |
2856 | wxPoint temp4 ; |
2857 | PyObject * obj0 = 0 ; | |
2858 | PyObject * obj1 = 0 ; | |
8edf1c75 | 2859 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2860 | PyObject * obj3 = 0 ; |
2861 | PyObject * obj4 = 0 ; | |
2862 | char *kwnames[] = { | |
2863 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
2864 | }; | |
2865 | ||
8edf1c75 | 2866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
2867 | if (obj0) { |
2868 | { | |
2869 | arg1 = wxString_in_helper(obj0); | |
2870 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2871 | temp1 = True; |
d14a1e28 RD |
2872 | } |
2873 | } | |
2874 | if (obj1) { | |
2875 | { | |
2876 | arg2 = wxString_in_helper(obj1); | |
2877 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2878 | temp2 = True; |
d14a1e28 RD |
2879 | } |
2880 | } | |
8edf1c75 RD |
2881 | if (obj2) { |
2882 | { | |
2883 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
2884 | if (PyErr_Occurred()) SWIG_fail; | |
2885 | } | |
2886 | } | |
d14a1e28 RD |
2887 | if (obj3) { |
2888 | { | |
2889 | arg4 = &temp4; | |
2890 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2891 | } | |
2892 | } | |
2893 | if (obj4) { | |
2894 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2895 | } | |
2896 | { | |
2897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2898 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
2899 | ||
2900 | wxPyEndAllowThreads(__tstate); | |
2901 | if (PyErr_Occurred()) SWIG_fail; | |
2902 | } | |
2903 | { | |
2904 | #if wxUSE_UNICODE | |
2905 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2906 | #else | |
2907 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2908 | #endif | |
2909 | } | |
2910 | { | |
2911 | if (temp1) | |
2912 | delete arg1; | |
2913 | } | |
2914 | { | |
2915 | if (temp2) | |
2916 | delete arg2; | |
2917 | } | |
2918 | return resultobj; | |
2919 | fail: | |
2920 | { | |
2921 | if (temp1) | |
2922 | delete arg1; | |
2923 | } | |
2924 | { | |
2925 | if (temp2) | |
2926 | delete arg2; | |
2927 | } | |
2928 | return NULL; | |
2929 | } | |
2930 | ||
2931 | ||
2932 | static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2933 | PyObject *resultobj; | |
2934 | wxString *arg1 = 0 ; | |
2935 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2936 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2937 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2938 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2939 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2940 | int arg5 = (int) -1 ; | |
2941 | int arg6 = (int) -1 ; | |
423f194a | 2942 | bool arg7 = (bool) True ; |
d14a1e28 | 2943 | wxString result; |
423f194a RD |
2944 | bool temp1 = False ; |
2945 | bool temp2 = False ; | |
2946 | bool temp3 = False ; | |
d14a1e28 RD |
2947 | PyObject * obj0 = 0 ; |
2948 | PyObject * obj1 = 0 ; | |
2949 | PyObject * obj2 = 0 ; | |
2950 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
2951 | PyObject * obj4 = 0 ; |
2952 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
2953 | PyObject * obj6 = 0 ; |
2954 | char *kwnames[] = { | |
2955 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
2956 | }; | |
2957 | ||
8edf1c75 | 2958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
2959 | { |
2960 | arg1 = wxString_in_helper(obj0); | |
2961 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2962 | temp1 = True; |
d14a1e28 RD |
2963 | } |
2964 | if (obj1) { | |
2965 | { | |
2966 | arg2 = wxString_in_helper(obj1); | |
2967 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2968 | temp2 = True; |
d14a1e28 RD |
2969 | } |
2970 | } | |
2971 | if (obj2) { | |
2972 | { | |
2973 | arg3 = wxString_in_helper(obj2); | |
2974 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2975 | temp3 = True; |
d14a1e28 RD |
2976 | } |
2977 | } | |
2978 | if (obj3) { | |
2979 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2980 | } | |
8edf1c75 RD |
2981 | if (obj4) { |
2982 | { | |
2983 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
2984 | if (PyErr_Occurred()) SWIG_fail; | |
2985 | } | |
2986 | } | |
2987 | if (obj5) { | |
2988 | { | |
2989 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
2990 | if (PyErr_Occurred()) SWIG_fail; | |
2991 | } | |
2992 | } | |
d14a1e28 | 2993 | if (obj6) { |
2dbef272 | 2994 | { |
8edf1c75 | 2995 | arg7 = (bool) SWIG_PyObj_AsBool(obj6); |
2dbef272 RD |
2996 | if (PyErr_Occurred()) SWIG_fail; |
2997 | } | |
d14a1e28 RD |
2998 | } |
2999 | { | |
3000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3001 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
3002 | ||
3003 | wxPyEndAllowThreads(__tstate); | |
3004 | if (PyErr_Occurred()) SWIG_fail; | |
3005 | } | |
3006 | { | |
3007 | #if wxUSE_UNICODE | |
3008 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3009 | #else | |
3010 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3011 | #endif | |
3012 | } | |
3013 | { | |
3014 | if (temp1) | |
3015 | delete arg1; | |
3016 | } | |
3017 | { | |
3018 | if (temp2) | |
3019 | delete arg2; | |
3020 | } | |
3021 | { | |
3022 | if (temp3) | |
3023 | delete arg3; | |
3024 | } | |
3025 | return resultobj; | |
3026 | fail: | |
3027 | { | |
3028 | if (temp1) | |
3029 | delete arg1; | |
3030 | } | |
3031 | { | |
3032 | if (temp2) | |
3033 | delete arg2; | |
3034 | } | |
3035 | { | |
3036 | if (temp3) | |
3037 | delete arg3; | |
3038 | } | |
3039 | return NULL; | |
3040 | } | |
3041 | ||
3042 | ||
3043 | static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3044 | PyObject *resultobj; | |
3045 | wxString *arg1 = 0 ; | |
3046 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3047 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3048 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3049 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3050 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3051 | wxString result; | |
423f194a RD |
3052 | bool temp1 = False ; |
3053 | bool temp2 = False ; | |
3054 | bool temp3 = False ; | |
d14a1e28 RD |
3055 | PyObject * obj0 = 0 ; |
3056 | PyObject * obj1 = 0 ; | |
3057 | PyObject * obj2 = 0 ; | |
3058 | PyObject * obj3 = 0 ; | |
3059 | char *kwnames[] = { | |
3060 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
3061 | }; | |
3062 | ||
3063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3064 | { | |
3065 | arg1 = wxString_in_helper(obj0); | |
3066 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3067 | temp1 = True; |
d14a1e28 RD |
3068 | } |
3069 | if (obj1) { | |
3070 | { | |
3071 | arg2 = wxString_in_helper(obj1); | |
3072 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3073 | temp2 = True; |
d14a1e28 RD |
3074 | } |
3075 | } | |
3076 | if (obj2) { | |
3077 | { | |
3078 | arg3 = wxString_in_helper(obj2); | |
3079 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 3080 | temp3 = True; |
d14a1e28 RD |
3081 | } |
3082 | } | |
3083 | if (obj3) { | |
3084 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3085 | } | |
3086 | { | |
3087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3088 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3089 | ||
3090 | wxPyEndAllowThreads(__tstate); | |
3091 | if (PyErr_Occurred()) SWIG_fail; | |
3092 | } | |
3093 | { | |
3094 | #if wxUSE_UNICODE | |
3095 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3096 | #else | |
3097 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3098 | #endif | |
3099 | } | |
3100 | { | |
3101 | if (temp1) | |
3102 | delete arg1; | |
3103 | } | |
3104 | { | |
3105 | if (temp2) | |
3106 | delete arg2; | |
3107 | } | |
3108 | { | |
3109 | if (temp3) | |
3110 | delete arg3; | |
3111 | } | |
3112 | return resultobj; | |
3113 | fail: | |
3114 | { | |
3115 | if (temp1) | |
3116 | delete arg1; | |
3117 | } | |
3118 | { | |
3119 | if (temp2) | |
3120 | delete arg2; | |
3121 | } | |
3122 | { | |
3123 | if (temp3) | |
3124 | delete arg3; | |
3125 | } | |
3126 | return NULL; | |
3127 | } | |
3128 | ||
3129 | ||
3130 | static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3131 | PyObject *resultobj; | |
3132 | wxString *arg1 = 0 ; | |
3133 | wxString *arg2 = 0 ; | |
3134 | int arg3 ; | |
3135 | wxString *arg4 = (wxString *) 0 ; | |
3136 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3137 | int arg6 = (int) -1 ; | |
3138 | int arg7 = (int) -1 ; | |
423f194a | 3139 | bool arg8 = (bool) True ; |
d14a1e28 RD |
3140 | int arg9 = (int) 150 ; |
3141 | int arg10 = (int) 200 ; | |
3142 | wxString result; | |
423f194a RD |
3143 | bool temp1 = False ; |
3144 | bool temp2 = False ; | |
d14a1e28 RD |
3145 | PyObject * obj0 = 0 ; |
3146 | PyObject * obj1 = 0 ; | |
3147 | PyObject * obj2 = 0 ; | |
3148 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
3149 | PyObject * obj4 = 0 ; |
3150 | PyObject * obj5 = 0 ; | |
d14a1e28 | 3151 | PyObject * obj6 = 0 ; |
8edf1c75 RD |
3152 | PyObject * obj7 = 0 ; |
3153 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
3154 | char *kwnames[] = { |
3155 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3156 | }; | |
3157 | ||
8edf1c75 | 3158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3159 | { |
3160 | arg1 = wxString_in_helper(obj0); | |
3161 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3162 | temp1 = True; |
d14a1e28 RD |
3163 | } |
3164 | { | |
3165 | arg2 = wxString_in_helper(obj1); | |
3166 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3167 | temp2 = True; |
d14a1e28 RD |
3168 | } |
3169 | { | |
3170 | arg3 = PyList_Size(obj2); | |
3171 | arg4 = wxString_LIST_helper(obj2); | |
3172 | if (arg4 == NULL) SWIG_fail; | |
3173 | } | |
3174 | if (obj3) { | |
3175 | if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3176 | } | |
8edf1c75 RD |
3177 | if (obj4) { |
3178 | { | |
3179 | arg6 = (int) SWIG_PyObj_AsInt(obj4); | |
3180 | if (PyErr_Occurred()) SWIG_fail; | |
3181 | } | |
3182 | } | |
3183 | if (obj5) { | |
3184 | { | |
3185 | arg7 = (int) SWIG_PyObj_AsInt(obj5); | |
3186 | if (PyErr_Occurred()) SWIG_fail; | |
3187 | } | |
3188 | } | |
d14a1e28 | 3189 | if (obj6) { |
2dbef272 | 3190 | { |
8edf1c75 RD |
3191 | arg8 = (bool) SWIG_PyObj_AsBool(obj6); |
3192 | if (PyErr_Occurred()) SWIG_fail; | |
3193 | } | |
3194 | } | |
3195 | if (obj7) { | |
3196 | { | |
3197 | arg9 = (int) SWIG_PyObj_AsInt(obj7); | |
3198 | if (PyErr_Occurred()) SWIG_fail; | |
3199 | } | |
3200 | } | |
3201 | if (obj8) { | |
3202 | { | |
3203 | arg10 = (int) SWIG_PyObj_AsInt(obj8); | |
2dbef272 RD |
3204 | if (PyErr_Occurred()) SWIG_fail; |
3205 | } | |
d14a1e28 RD |
3206 | } |
3207 | { | |
3208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3209 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3210 | ||
3211 | wxPyEndAllowThreads(__tstate); | |
3212 | if (PyErr_Occurred()) SWIG_fail; | |
3213 | } | |
3214 | { | |
3215 | #if wxUSE_UNICODE | |
3216 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3217 | #else | |
3218 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3219 | #endif | |
3220 | } | |
3221 | { | |
3222 | if (temp1) | |
3223 | delete arg1; | |
3224 | } | |
3225 | { | |
3226 | if (temp2) | |
3227 | delete arg2; | |
3228 | } | |
3229 | { | |
3230 | if (arg4) delete [] arg4; | |
3231 | } | |
3232 | return resultobj; | |
3233 | fail: | |
3234 | { | |
3235 | if (temp1) | |
3236 | delete arg1; | |
3237 | } | |
3238 | { | |
3239 | if (temp2) | |
3240 | delete arg2; | |
3241 | } | |
3242 | { | |
3243 | if (arg4) delete [] arg4; | |
3244 | } | |
3245 | return NULL; | |
3246 | } | |
3247 | ||
3248 | ||
3249 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3250 | PyObject *resultobj; | |
3251 | wxString *arg1 = 0 ; | |
3252 | wxString *arg2 = 0 ; | |
3253 | int arg3 ; | |
3254 | wxString *arg4 = (wxString *) 0 ; | |
3255 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3256 | int arg6 = (int) -1 ; | |
3257 | int arg7 = (int) -1 ; | |
423f194a | 3258 | bool arg8 = (bool) True ; |
d14a1e28 RD |
3259 | int arg9 = (int) 150 ; |
3260 | int arg10 = (int) 200 ; | |
3261 | int result; | |
423f194a RD |
3262 | bool temp1 = False ; |
3263 | bool temp2 = False ; | |
d14a1e28 RD |
3264 | PyObject * obj0 = 0 ; |
3265 | PyObject * obj1 = 0 ; | |
3266 | PyObject * obj2 = 0 ; | |
3267 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
3268 | PyObject * obj4 = 0 ; |
3269 | PyObject * obj5 = 0 ; | |
d14a1e28 | 3270 | PyObject * obj6 = 0 ; |
8edf1c75 RD |
3271 | PyObject * obj7 = 0 ; |
3272 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
3273 | char *kwnames[] = { |
3274 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3275 | }; | |
3276 | ||
8edf1c75 | 3277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3278 | { |
3279 | arg1 = wxString_in_helper(obj0); | |
3280 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3281 | temp1 = True; |
d14a1e28 RD |
3282 | } |
3283 | { | |
3284 | arg2 = wxString_in_helper(obj1); | |
3285 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3286 | temp2 = True; |
d14a1e28 RD |
3287 | } |
3288 | { | |
3289 | arg3 = PyList_Size(obj2); | |
3290 | arg4 = wxString_LIST_helper(obj2); | |
3291 | if (arg4 == NULL) SWIG_fail; | |
3292 | } | |
3293 | if (obj3) { | |
3294 | if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3295 | } | |
8edf1c75 RD |
3296 | if (obj4) { |
3297 | { | |
3298 | arg6 = (int) SWIG_PyObj_AsInt(obj4); | |
3299 | if (PyErr_Occurred()) SWIG_fail; | |
3300 | } | |
3301 | } | |
3302 | if (obj5) { | |
3303 | { | |
3304 | arg7 = (int) SWIG_PyObj_AsInt(obj5); | |
3305 | if (PyErr_Occurred()) SWIG_fail; | |
3306 | } | |
3307 | } | |
d14a1e28 | 3308 | if (obj6) { |
2dbef272 | 3309 | { |
8edf1c75 RD |
3310 | arg8 = (bool) SWIG_PyObj_AsBool(obj6); |
3311 | if (PyErr_Occurred()) SWIG_fail; | |
3312 | } | |
3313 | } | |
3314 | if (obj7) { | |
3315 | { | |
3316 | arg9 = (int) SWIG_PyObj_AsInt(obj7); | |
3317 | if (PyErr_Occurred()) SWIG_fail; | |
3318 | } | |
3319 | } | |
3320 | if (obj8) { | |
3321 | { | |
3322 | arg10 = (int) SWIG_PyObj_AsInt(obj8); | |
2dbef272 RD |
3323 | if (PyErr_Occurred()) SWIG_fail; |
3324 | } | |
d14a1e28 RD |
3325 | } |
3326 | { | |
3327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3328 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3329 | ||
3330 | wxPyEndAllowThreads(__tstate); | |
3331 | if (PyErr_Occurred()) SWIG_fail; | |
3332 | } | |
8edf1c75 | 3333 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3334 | { |
3335 | if (temp1) | |
3336 | delete arg1; | |
3337 | } | |
3338 | { | |
3339 | if (temp2) | |
3340 | delete arg2; | |
3341 | } | |
3342 | { | |
3343 | if (arg4) delete [] arg4; | |
3344 | } | |
3345 | return resultobj; | |
3346 | fail: | |
3347 | { | |
3348 | if (temp1) | |
3349 | delete arg1; | |
3350 | } | |
3351 | { | |
3352 | if (temp2) | |
3353 | delete arg2; | |
3354 | } | |
3355 | { | |
3356 | if (arg4) delete [] arg4; | |
3357 | } | |
3358 | return NULL; | |
3359 | } | |
3360 | ||
3361 | ||
3362 | static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3363 | PyObject *resultobj; | |
3364 | wxString *arg1 = 0 ; | |
3365 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3366 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3367 | int arg3 = (int) wxOK|wxCENTRE ; | |
3368 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3369 | int arg5 = (int) -1 ; | |
3370 | int arg6 = (int) -1 ; | |
3371 | int result; | |
423f194a RD |
3372 | bool temp1 = False ; |
3373 | bool temp2 = False ; | |
d14a1e28 RD |
3374 | PyObject * obj0 = 0 ; |
3375 | PyObject * obj1 = 0 ; | |
8edf1c75 | 3376 | PyObject * obj2 = 0 ; |
d14a1e28 | 3377 | PyObject * obj3 = 0 ; |
8edf1c75 RD |
3378 | PyObject * obj4 = 0 ; |
3379 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
3380 | char *kwnames[] = { |
3381 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3382 | }; | |
3383 | ||
8edf1c75 | 3384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
3385 | { |
3386 | arg1 = wxString_in_helper(obj0); | |
3387 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3388 | temp1 = True; |
d14a1e28 RD |
3389 | } |
3390 | if (obj1) { | |
3391 | { | |
3392 | arg2 = wxString_in_helper(obj1); | |
3393 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3394 | temp2 = True; |
d14a1e28 RD |
3395 | } |
3396 | } | |
8edf1c75 RD |
3397 | if (obj2) { |
3398 | { | |
3399 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3400 | if (PyErr_Occurred()) SWIG_fail; | |
3401 | } | |
3402 | } | |
d14a1e28 RD |
3403 | if (obj3) { |
3404 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3405 | } | |
8edf1c75 RD |
3406 | if (obj4) { |
3407 | { | |
3408 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
3409 | if (PyErr_Occurred()) SWIG_fail; | |
3410 | } | |
3411 | } | |
3412 | if (obj5) { | |
3413 | { | |
3414 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
3415 | if (PyErr_Occurred()) SWIG_fail; | |
3416 | } | |
3417 | } | |
d14a1e28 RD |
3418 | { |
3419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3420 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
3421 | ||
3422 | wxPyEndAllowThreads(__tstate); | |
3423 | if (PyErr_Occurred()) SWIG_fail; | |
3424 | } | |
8edf1c75 | 3425 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3426 | { |
3427 | if (temp1) | |
3428 | delete arg1; | |
3429 | } | |
3430 | { | |
3431 | if (temp2) | |
3432 | delete arg2; | |
3433 | } | |
3434 | return resultobj; | |
3435 | fail: | |
3436 | { | |
3437 | if (temp1) | |
3438 | delete arg1; | |
3439 | } | |
3440 | { | |
3441 | if (temp2) | |
3442 | delete arg2; | |
3443 | } | |
3444 | return NULL; | |
3445 | } | |
3446 | ||
3447 | ||
3448 | static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3449 | PyObject *resultobj; | |
3450 | wxString *arg1 = 0 ; | |
3451 | wxString *arg2 = 0 ; | |
3452 | wxString *arg3 = 0 ; | |
3453 | long arg4 ; | |
3454 | long arg5 = (long) 0 ; | |
3455 | long arg6 = (long) 100 ; | |
3456 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3457 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
3458 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
3459 | long result; | |
423f194a RD |
3460 | bool temp1 = False ; |
3461 | bool temp2 = False ; | |
3462 | bool temp3 = False ; | |
d14a1e28 RD |
3463 | wxPoint temp8 ; |
3464 | PyObject * obj0 = 0 ; | |
3465 | PyObject * obj1 = 0 ; | |
3466 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
3467 | PyObject * obj3 = 0 ; |
3468 | PyObject * obj4 = 0 ; | |
3469 | PyObject * obj5 = 0 ; | |
3470 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
3471 | PyObject * obj7 = 0 ; |
3472 | char *kwnames[] = { | |
3473 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
3474 | }; | |
3475 | ||
8edf1c75 | 3476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
3477 | { |
3478 | arg1 = wxString_in_helper(obj0); | |
3479 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3480 | temp1 = True; |
d14a1e28 RD |
3481 | } |
3482 | { | |
3483 | arg2 = wxString_in_helper(obj1); | |
3484 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3485 | temp2 = True; |
d14a1e28 RD |
3486 | } |
3487 | { | |
3488 | arg3 = wxString_in_helper(obj2); | |
3489 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 3490 | temp3 = True; |
d14a1e28 | 3491 | } |
8edf1c75 RD |
3492 | { |
3493 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
3494 | if (PyErr_Occurred()) SWIG_fail; | |
3495 | } | |
3496 | if (obj4) { | |
3497 | { | |
3498 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
3499 | if (PyErr_Occurred()) SWIG_fail; | |
3500 | } | |
3501 | } | |
3502 | if (obj5) { | |
3503 | { | |
3504 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
3505 | if (PyErr_Occurred()) SWIG_fail; | |
3506 | } | |
3507 | } | |
d14a1e28 RD |
3508 | if (obj6) { |
3509 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3510 | } | |
3511 | if (obj7) { | |
3512 | { | |
3513 | arg8 = &temp8; | |
3514 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
3515 | } | |
3516 | } | |
3517 | { | |
3518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3519 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
3520 | ||
3521 | wxPyEndAllowThreads(__tstate); | |
3522 | if (PyErr_Occurred()) SWIG_fail; | |
3523 | } | |
8edf1c75 | 3524 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
3525 | { |
3526 | if (temp1) | |
3527 | delete arg1; | |
3528 | } | |
3529 | { | |
3530 | if (temp2) | |
3531 | delete arg2; | |
3532 | } | |
3533 | { | |
3534 | if (temp3) | |
3535 | delete arg3; | |
3536 | } | |
3537 | return resultobj; | |
3538 | fail: | |
3539 | { | |
3540 | if (temp1) | |
3541 | delete arg1; | |
3542 | } | |
3543 | { | |
3544 | if (temp2) | |
3545 | delete arg2; | |
3546 | } | |
3547 | { | |
3548 | if (temp3) | |
3549 | delete arg3; | |
3550 | } | |
3551 | return NULL; | |
3552 | } | |
3553 | ||
3554 | ||
3555 | static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3556 | PyObject *resultobj; | |
3557 | bool result; | |
3558 | char *kwnames[] = { | |
3559 | NULL | |
3560 | }; | |
3561 | ||
3562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
3563 | { | |
3564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3565 | result = (bool)wxColourDisplay(); | |
3566 | ||
3567 | wxPyEndAllowThreads(__tstate); | |
3568 | if (PyErr_Occurred()) SWIG_fail; | |
3569 | } | |
02a34c4c | 3570 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3571 | return resultobj; |
3572 | fail: | |
3573 | return NULL; | |
3574 | } | |
3575 | ||
3576 | ||
3577 | static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3578 | PyObject *resultobj; | |
3579 | int result; | |
3580 | char *kwnames[] = { | |
3581 | NULL | |
3582 | }; | |
3583 | ||
3584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
3585 | { | |
3586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3587 | result = (int)wxDisplayDepth(); | |
3588 | ||
3589 | wxPyEndAllowThreads(__tstate); | |
3590 | if (PyErr_Occurred()) SWIG_fail; | |
3591 | } | |
8edf1c75 | 3592 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3593 | return resultobj; |
3594 | fail: | |
3595 | return NULL; | |
3596 | } | |
3597 | ||
3598 | ||
3599 | static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3600 | PyObject *resultobj; | |
3601 | int result; | |
3602 | char *kwnames[] = { | |
3603 | NULL | |
3604 | }; | |
3605 | ||
3606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
3607 | { | |
3608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3609 | result = (int)wxGetDisplayDepth(); | |
3610 | ||
3611 | wxPyEndAllowThreads(__tstate); | |
3612 | if (PyErr_Occurred()) SWIG_fail; | |
3613 | } | |
8edf1c75 | 3614 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3615 | return resultobj; |
3616 | fail: | |
3617 | return NULL; | |
3618 | } | |
3619 | ||
3620 | ||
3621 | static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3622 | PyObject *resultobj; | |
3623 | int *arg1 = (int *) 0 ; | |
3624 | int *arg2 = (int *) 0 ; | |
3625 | int temp1 ; | |
3626 | int temp2 ; | |
3627 | char *kwnames[] = { | |
3628 | NULL | |
3629 | }; | |
3630 | ||
3631 | arg1 = &temp1; | |
3632 | arg2 = &temp2; | |
3633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; | |
3634 | { | |
3635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3636 | wxDisplaySize(arg1,arg2); | |
3637 | ||
3638 | wxPyEndAllowThreads(__tstate); | |
3639 | if (PyErr_Occurred()) SWIG_fail; | |
3640 | } | |
3641 | Py_INCREF(Py_None); resultobj = Py_None; | |
3642 | { | |
3643 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3644 | resultobj = t_output_helper(resultobj,o); | |
3645 | } | |
3646 | { | |
3647 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3648 | resultobj = t_output_helper(resultobj,o); | |
3649 | } | |
3650 | return resultobj; | |
3651 | fail: | |
3652 | return NULL; | |
3653 | } | |
3654 | ||
3655 | ||
3656 | static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3657 | PyObject *resultobj; | |
3658 | wxSize result; | |
3659 | char *kwnames[] = { | |
3660 | NULL | |
3661 | }; | |
3662 | ||
3663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
3664 | { | |
3665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3666 | result = wxGetDisplaySize(); | |
3667 | ||
3668 | wxPyEndAllowThreads(__tstate); | |
3669 | if (PyErr_Occurred()) SWIG_fail; | |
3670 | } | |
3671 | { | |
3672 | wxSize * resultptr; | |
3673 | resultptr = new wxSize((wxSize &) result); | |
3674 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
3675 | } | |
3676 | return resultobj; | |
3677 | fail: | |
3678 | return NULL; | |
3679 | } | |
3680 | ||
3681 | ||
3682 | static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3683 | PyObject *resultobj; | |
3684 | int *arg1 = (int *) 0 ; | |
3685 | int *arg2 = (int *) 0 ; | |
3686 | int temp1 ; | |
3687 | int temp2 ; | |
3688 | char *kwnames[] = { | |
3689 | NULL | |
3690 | }; | |
3691 | ||
3692 | arg1 = &temp1; | |
3693 | arg2 = &temp2; | |
3694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; | |
3695 | { | |
3696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3697 | wxDisplaySizeMM(arg1,arg2); | |
3698 | ||
3699 | wxPyEndAllowThreads(__tstate); | |
3700 | if (PyErr_Occurred()) SWIG_fail; | |
3701 | } | |
3702 | Py_INCREF(Py_None); resultobj = Py_None; | |
3703 | { | |
3704 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3705 | resultobj = t_output_helper(resultobj,o); | |
3706 | } | |
3707 | { | |
3708 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3709 | resultobj = t_output_helper(resultobj,o); | |
3710 | } | |
3711 | return resultobj; | |
3712 | fail: | |
3713 | return NULL; | |
3714 | } | |
3715 | ||
3716 | ||
3717 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3718 | PyObject *resultobj; | |
3719 | wxSize result; | |
3720 | char *kwnames[] = { | |
3721 | NULL | |
3722 | }; | |
3723 | ||
3724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
3725 | { | |
3726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3727 | result = wxGetDisplaySizeMM(); | |
3728 | ||
3729 | wxPyEndAllowThreads(__tstate); | |
3730 | if (PyErr_Occurred()) SWIG_fail; | |
3731 | } | |
3732 | { | |
3733 | wxSize * resultptr; | |
3734 | resultptr = new wxSize((wxSize &) result); | |
3735 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
3736 | } | |
3737 | return resultobj; | |
3738 | fail: | |
3739 | return NULL; | |
3740 | } | |
3741 | ||
3742 | ||
3743 | static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3744 | PyObject *resultobj; | |
3745 | int *arg1 = (int *) 0 ; | |
3746 | int *arg2 = (int *) 0 ; | |
3747 | int *arg3 = (int *) 0 ; | |
3748 | int *arg4 = (int *) 0 ; | |
3749 | int temp1 ; | |
3750 | int temp2 ; | |
3751 | int temp3 ; | |
3752 | int temp4 ; | |
3753 | char *kwnames[] = { | |
3754 | NULL | |
3755 | }; | |
3756 | ||
3757 | arg1 = &temp1; | |
3758 | arg2 = &temp2; | |
3759 | arg3 = &temp3; | |
3760 | arg4 = &temp4; | |
3761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; | |
3762 | { | |
3763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3764 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
3765 | ||
3766 | wxPyEndAllowThreads(__tstate); | |
3767 | if (PyErr_Occurred()) SWIG_fail; | |
3768 | } | |
3769 | Py_INCREF(Py_None); resultobj = Py_None; | |
3770 | { | |
3771 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3772 | resultobj = t_output_helper(resultobj,o); | |
3773 | } | |
3774 | { | |
3775 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3776 | resultobj = t_output_helper(resultobj,o); | |
3777 | } | |
3778 | { | |
3779 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
3780 | resultobj = t_output_helper(resultobj,o); | |
3781 | } | |
3782 | { | |
3783 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
3784 | resultobj = t_output_helper(resultobj,o); | |
3785 | } | |
3786 | return resultobj; | |
3787 | fail: | |
3788 | return NULL; | |
3789 | } | |
3790 | ||
3791 | ||
3792 | static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3793 | PyObject *resultobj; | |
3794 | wxRect result; | |
3795 | char *kwnames[] = { | |
3796 | NULL | |
3797 | }; | |
3798 | ||
3799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
3800 | { | |
3801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3802 | result = wxGetClientDisplayRect(); | |
3803 | ||
3804 | wxPyEndAllowThreads(__tstate); | |
3805 | if (PyErr_Occurred()) SWIG_fail; | |
3806 | } | |
3807 | { | |
3808 | wxRect * resultptr; | |
3809 | resultptr = new wxRect((wxRect &) result); | |
3810 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
3811 | } | |
3812 | return resultobj; | |
3813 | fail: | |
3814 | return NULL; | |
3815 | } | |
3816 | ||
3817 | ||
3818 | static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3819 | PyObject *resultobj; | |
3820 | wxCursor *arg1 = 0 ; | |
3821 | PyObject * obj0 = 0 ; | |
3822 | char *kwnames[] = { | |
3823 | (char *) "cursor", NULL | |
3824 | }; | |
3825 | ||
3826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
3827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3828 | if (arg1 == NULL) { | |
3829 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3830 | } | |
3831 | { | |
3832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3833 | wxSetCursor(*arg1); | |
3834 | ||
3835 | wxPyEndAllowThreads(__tstate); | |
3836 | if (PyErr_Occurred()) SWIG_fail; | |
3837 | } | |
3838 | Py_INCREF(Py_None); resultobj = Py_None; | |
3839 | return resultobj; | |
3840 | fail: | |
3841 | return NULL; | |
3842 | } | |
3843 | ||
3844 | ||
3845 | static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3846 | PyObject *resultobj; | |
3847 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
3848 | PyObject * obj0 = 0 ; | |
3849 | char *kwnames[] = { | |
3850 | (char *) "cursor", NULL | |
3851 | }; | |
3852 | ||
3853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
3854 | if (obj0) { | |
3855 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3856 | } | |
3857 | { | |
3858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3859 | wxBeginBusyCursor(arg1); | |
3860 | ||
3861 | wxPyEndAllowThreads(__tstate); | |
3862 | if (PyErr_Occurred()) SWIG_fail; | |
3863 | } | |
3864 | Py_INCREF(Py_None); resultobj = Py_None; | |
3865 | return resultobj; | |
3866 | fail: | |
3867 | return NULL; | |
3868 | } | |
3869 | ||
3870 | ||
3871 | static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3872 | PyObject *resultobj; | |
3873 | wxWindow *result; | |
3874 | char *kwnames[] = { | |
3875 | NULL | |
3876 | }; | |
3877 | ||
3878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
3879 | { | |
3880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3881 | result = (wxWindow *)wxGetActiveWindow(); | |
3882 | ||
3883 | wxPyEndAllowThreads(__tstate); | |
3884 | if (PyErr_Occurred()) SWIG_fail; | |
3885 | } | |
3886 | { | |
3887 | resultobj = wxPyMake_wxObject(result); | |
3888 | } | |
3889 | return resultobj; | |
3890 | fail: | |
3891 | return NULL; | |
3892 | } | |
3893 | ||
3894 | ||
3895 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3896 | PyObject *resultobj; | |
3897 | wxPoint *arg1 = 0 ; | |
3898 | wxWindow *result; | |
3899 | wxPoint temp1 ; | |
3900 | PyObject * obj0 = 0 ; | |
3901 | char *kwnames[] = { | |
3902 | (char *) "pt", NULL | |
3903 | }; | |
3904 | ||
3905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
3906 | { | |
3907 | arg1 = &temp1; | |
3908 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3909 | } | |
3910 | { | |
3911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3912 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
3913 | ||
3914 | wxPyEndAllowThreads(__tstate); | |
3915 | if (PyErr_Occurred()) SWIG_fail; | |
3916 | } | |
3917 | { | |
3918 | resultobj = wxPyMake_wxObject(result); | |
3919 | } | |
3920 | return resultobj; | |
3921 | fail: | |
3922 | return NULL; | |
3923 | } | |
3924 | ||
3925 | ||
3926 | static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3927 | PyObject *resultobj; | |
3928 | wxPoint *arg1 = 0 ; | |
3929 | wxWindow *result; | |
3930 | wxPoint temp1 ; | |
3931 | PyObject * obj0 = 0 ; | |
3932 | char *kwnames[] = { | |
3933 | (char *) "pt", NULL | |
3934 | }; | |
3935 | ||
3936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
3937 | { | |
3938 | arg1 = &temp1; | |
3939 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3940 | } | |
3941 | { | |
3942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3943 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
3944 | ||
3945 | wxPyEndAllowThreads(__tstate); | |
3946 | if (PyErr_Occurred()) SWIG_fail; | |
3947 | } | |
3948 | { | |
3949 | resultobj = wxPyMake_wxObject(result); | |
3950 | } | |
3951 | return resultobj; | |
3952 | fail: | |
3953 | return NULL; | |
3954 | } | |
3955 | ||
3956 | ||
3957 | static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3958 | PyObject *resultobj; | |
3959 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3960 | wxWindow *result; | |
3961 | PyObject * obj0 = 0 ; | |
3962 | char *kwnames[] = { | |
3963 | (char *) "win", NULL | |
3964 | }; | |
3965 | ||
3966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
3967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3968 | { | |
3969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3970 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
3971 | ||
3972 | wxPyEndAllowThreads(__tstate); | |
3973 | if (PyErr_Occurred()) SWIG_fail; | |
3974 | } | |
3975 | { | |
3976 | resultobj = wxPyMake_wxObject(result); | |
3977 | } | |
3978 | return resultobj; | |
3979 | fail: | |
3980 | return NULL; | |
3981 | } | |
3982 | ||
3983 | ||
cbd72d4f RD |
3984 | static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) { |
3985 | PyObject *resultobj; | |
3986 | int arg1 ; | |
3987 | bool result; | |
8edf1c75 | 3988 | PyObject * obj0 = 0 ; |
cbd72d4f RD |
3989 | char *kwnames[] = { |
3990 | (char *) "key", NULL | |
3991 | }; | |
3992 | ||
8edf1c75 RD |
3993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; |
3994 | { | |
3995 | arg1 = (wxKeyCode) SWIG_PyObj_AsInt(obj0); | |
3996 | if (PyErr_Occurred()) SWIG_fail; | |
3997 | } | |
cbd72d4f RD |
3998 | { |
3999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4000 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
4001 | ||
4002 | wxPyEndAllowThreads(__tstate); | |
4003 | if (PyErr_Occurred()) SWIG_fail; | |
4004 | } | |
02a34c4c | 4005 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
cbd72d4f RD |
4006 | return resultobj; |
4007 | fail: | |
4008 | return NULL; | |
4009 | } | |
4010 | ||
4011 | ||
d14a1e28 RD |
4012 | static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { |
4013 | PyObject *resultobj; | |
4014 | char *kwnames[] = { | |
4015 | NULL | |
4016 | }; | |
4017 | ||
4018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
4019 | { | |
4020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4021 | wxWakeUpMainThread(); | |
4022 | ||
4023 | wxPyEndAllowThreads(__tstate); | |
4024 | if (PyErr_Occurred()) SWIG_fail; | |
4025 | } | |
4026 | Py_INCREF(Py_None); resultobj = Py_None; | |
4027 | return resultobj; | |
4028 | fail: | |
4029 | return NULL; | |
4030 | } | |
4031 | ||
4032 | ||
4033 | static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4034 | PyObject *resultobj; | |
4035 | char *kwnames[] = { | |
4036 | NULL | |
4037 | }; | |
4038 | ||
4039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
4040 | { | |
4041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4042 | wxMutexGuiEnter(); | |
4043 | ||
4044 | wxPyEndAllowThreads(__tstate); | |
4045 | if (PyErr_Occurred()) SWIG_fail; | |
4046 | } | |
4047 | Py_INCREF(Py_None); resultobj = Py_None; | |
4048 | return resultobj; | |
4049 | fail: | |
4050 | return NULL; | |
4051 | } | |
4052 | ||
4053 | ||
4054 | static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4055 | PyObject *resultobj; | |
4056 | char *kwnames[] = { | |
4057 | NULL | |
4058 | }; | |
4059 | ||
4060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
4061 | { | |
4062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4063 | wxMutexGuiLeave(); | |
4064 | ||
4065 | wxPyEndAllowThreads(__tstate); | |
4066 | if (PyErr_Occurred()) SWIG_fail; | |
4067 | } | |
4068 | Py_INCREF(Py_None); resultobj = Py_None; | |
4069 | return resultobj; | |
4070 | fail: | |
4071 | return NULL; | |
4072 | } | |
4073 | ||
4074 | ||
4075 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4076 | PyObject *resultobj; | |
4077 | wxMutexGuiLocker *result; | |
4078 | char *kwnames[] = { | |
4079 | NULL | |
4080 | }; | |
4081 | ||
4082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
4083 | { | |
4084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4085 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
4086 | ||
4087 | wxPyEndAllowThreads(__tstate); | |
4088 | if (PyErr_Occurred()) SWIG_fail; | |
4089 | } | |
4090 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMutexGuiLocker, 1); | |
4091 | return resultobj; | |
4092 | fail: | |
4093 | return NULL; | |
4094 | } | |
4095 | ||
4096 | ||
4097 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4098 | PyObject *resultobj; | |
4099 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
4100 | PyObject * obj0 = 0 ; | |
4101 | char *kwnames[] = { | |
4102 | (char *) "self", NULL | |
4103 | }; | |
4104 | ||
4105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
4106 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMutexGuiLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4107 | { | |
4108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4109 | delete arg1; | |
4110 | ||
4111 | wxPyEndAllowThreads(__tstate); | |
4112 | if (PyErr_Occurred()) SWIG_fail; | |
4113 | } | |
4114 | Py_INCREF(Py_None); resultobj = Py_None; | |
4115 | return resultobj; | |
4116 | fail: | |
4117 | return NULL; | |
4118 | } | |
4119 | ||
4120 | ||
4121 | static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) { | |
4122 | PyObject *obj; | |
4123 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4124 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
4125 | Py_INCREF(obj); | |
4126 | return Py_BuildValue((char *)""); | |
4127 | } | |
4128 | static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4129 | PyObject *resultobj; | |
4130 | bool result; | |
4131 | char *kwnames[] = { | |
4132 | NULL | |
4133 | }; | |
4134 | ||
4135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
4136 | { | |
4137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4138 | result = (bool)wxThread_IsMain(); | |
4139 | ||
4140 | wxPyEndAllowThreads(__tstate); | |
4141 | if (PyErr_Occurred()) SWIG_fail; | |
4142 | } | |
02a34c4c | 4143 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4144 | return resultobj; |
4145 | fail: | |
4146 | return NULL; | |
4147 | } | |
4148 | ||
4149 | ||
4150 | static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4151 | PyObject *resultobj; | |
4152 | wxString *arg1 = 0 ; | |
4153 | wxToolTip *result; | |
423f194a | 4154 | bool temp1 = False ; |
d14a1e28 RD |
4155 | PyObject * obj0 = 0 ; |
4156 | char *kwnames[] = { | |
4157 | (char *) "tip", NULL | |
4158 | }; | |
4159 | ||
4160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
4161 | { | |
4162 | arg1 = wxString_in_helper(obj0); | |
4163 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 4164 | temp1 = True; |
d14a1e28 RD |
4165 | } |
4166 | { | |
4167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4168 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
4169 | ||
4170 | wxPyEndAllowThreads(__tstate); | |
4171 | if (PyErr_Occurred()) SWIG_fail; | |
4172 | } | |
4173 | { | |
4174 | resultobj = wxPyMake_wxObject(result); | |
4175 | } | |
4176 | { | |
4177 | if (temp1) | |
4178 | delete arg1; | |
4179 | } | |
4180 | return resultobj; | |
4181 | fail: | |
4182 | { | |
4183 | if (temp1) | |
4184 | delete arg1; | |
4185 | } | |
4186 | return NULL; | |
4187 | } | |
4188 | ||
4189 | ||
4190 | static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4191 | PyObject *resultobj; | |
4192 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4193 | wxString *arg2 = 0 ; | |
423f194a | 4194 | bool temp2 = False ; |
d14a1e28 RD |
4195 | PyObject * obj0 = 0 ; |
4196 | PyObject * obj1 = 0 ; | |
4197 | char *kwnames[] = { | |
4198 | (char *) "self",(char *) "tip", NULL | |
4199 | }; | |
4200 | ||
4201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
4202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4203 | { | |
4204 | arg2 = wxString_in_helper(obj1); | |
4205 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 4206 | temp2 = True; |
d14a1e28 RD |
4207 | } |
4208 | { | |
4209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4210 | (arg1)->SetTip((wxString const &)*arg2); | |
4211 | ||
4212 | wxPyEndAllowThreads(__tstate); | |
4213 | if (PyErr_Occurred()) SWIG_fail; | |
4214 | } | |
4215 | Py_INCREF(Py_None); resultobj = Py_None; | |
4216 | { | |
4217 | if (temp2) | |
4218 | delete arg2; | |
4219 | } | |
4220 | return resultobj; | |
4221 | fail: | |
4222 | { | |
4223 | if (temp2) | |
4224 | delete arg2; | |
4225 | } | |
4226 | return NULL; | |
4227 | } | |
4228 | ||
4229 | ||
4230 | static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4231 | PyObject *resultobj; | |
4232 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4233 | wxString result; | |
4234 | PyObject * obj0 = 0 ; | |
4235 | char *kwnames[] = { | |
4236 | (char *) "self", NULL | |
4237 | }; | |
4238 | ||
4239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
4240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4241 | { | |
4242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4243 | result = (arg1)->GetTip(); | |
4244 | ||
4245 | wxPyEndAllowThreads(__tstate); | |
4246 | if (PyErr_Occurred()) SWIG_fail; | |
4247 | } | |
4248 | { | |
4249 | #if wxUSE_UNICODE | |
4250 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4251 | #else | |
4252 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4253 | #endif | |
4254 | } | |
4255 | return resultobj; | |
4256 | fail: | |
4257 | return NULL; | |
4258 | } | |
4259 | ||
4260 | ||
4261 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4262 | PyObject *resultobj; | |
4263 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4264 | wxWindow *result; | |
4265 | PyObject * obj0 = 0 ; | |
4266 | char *kwnames[] = { | |
4267 | (char *) "self", NULL | |
4268 | }; | |
4269 | ||
4270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
4271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4272 | { | |
4273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4274 | result = (wxWindow *)(arg1)->GetWindow(); | |
4275 | ||
4276 | wxPyEndAllowThreads(__tstate); | |
4277 | if (PyErr_Occurred()) SWIG_fail; | |
4278 | } | |
4279 | { | |
4280 | resultobj = wxPyMake_wxObject(result); | |
4281 | } | |
4282 | return resultobj; | |
4283 | fail: | |
4284 | return NULL; | |
4285 | } | |
4286 | ||
4287 | ||
4288 | static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4289 | PyObject *resultobj; | |
4290 | bool arg1 ; | |
4291 | PyObject * obj0 = 0 ; | |
4292 | char *kwnames[] = { | |
4293 | (char *) "flag", NULL | |
4294 | }; | |
4295 | ||
4296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
2dbef272 | 4297 | { |
8edf1c75 | 4298 | arg1 = (bool) SWIG_PyObj_AsBool(obj0); |
2dbef272 RD |
4299 | if (PyErr_Occurred()) SWIG_fail; |
4300 | } | |
d14a1e28 RD |
4301 | { |
4302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4303 | wxToolTip::Enable(arg1); | |
4304 | ||
4305 | wxPyEndAllowThreads(__tstate); | |
4306 | if (PyErr_Occurred()) SWIG_fail; | |
4307 | } | |
4308 | Py_INCREF(Py_None); resultobj = Py_None; | |
4309 | return resultobj; | |
4310 | fail: | |
4311 | return NULL; | |
4312 | } | |
4313 | ||
4314 | ||
4315 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4316 | PyObject *resultobj; | |
4317 | long arg1 ; | |
8edf1c75 | 4318 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
4319 | char *kwnames[] = { |
4320 | (char *) "milliseconds", NULL | |
4321 | }; | |
4322 | ||
8edf1c75 RD |
4323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; |
4324 | { | |
4325 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
4326 | if (PyErr_Occurred()) SWIG_fail; | |
4327 | } | |
d14a1e28 RD |
4328 | { |
4329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4330 | wxToolTip::SetDelay(arg1); | |
4331 | ||
4332 | wxPyEndAllowThreads(__tstate); | |
4333 | if (PyErr_Occurred()) SWIG_fail; | |
4334 | } | |
4335 | Py_INCREF(Py_None); resultobj = Py_None; | |
4336 | return resultobj; | |
4337 | fail: | |
4338 | return NULL; | |
4339 | } | |
4340 | ||
4341 | ||
4342 | static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) { | |
4343 | PyObject *obj; | |
4344 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4345 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
4346 | Py_INCREF(obj); | |
4347 | return Py_BuildValue((char *)""); | |
4348 | } | |
4349 | static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4350 | PyObject *resultobj; | |
4351 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4352 | wxSize *arg2 = 0 ; | |
4353 | wxCaret *result; | |
4354 | wxSize temp2 ; | |
4355 | PyObject * obj0 = 0 ; | |
4356 | PyObject * obj1 = 0 ; | |
4357 | char *kwnames[] = { | |
4358 | (char *) "window",(char *) "size", NULL | |
4359 | }; | |
4360 | ||
4361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
4362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4363 | { | |
4364 | arg2 = &temp2; | |
4365 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4366 | } | |
4367 | { | |
4368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4369 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
4370 | ||
4371 | wxPyEndAllowThreads(__tstate); | |
4372 | if (PyErr_Occurred()) SWIG_fail; | |
4373 | } | |
4374 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCaret, 1); | |
4375 | return resultobj; | |
4376 | fail: | |
4377 | return NULL; | |
4378 | } | |
4379 | ||
4380 | ||
4381 | static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4382 | PyObject *resultobj; | |
4383 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4384 | PyObject * obj0 = 0 ; | |
4385 | char *kwnames[] = { | |
4386 | (char *) "self", NULL | |
4387 | }; | |
4388 | ||
4389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
4390 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4391 | { | |
4392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4393 | delete arg1; | |
4394 | ||
4395 | wxPyEndAllowThreads(__tstate); | |
4396 | if (PyErr_Occurred()) SWIG_fail; | |
4397 | } | |
4398 | Py_INCREF(Py_None); resultobj = Py_None; | |
4399 | return resultobj; | |
4400 | fail: | |
4401 | return NULL; | |
4402 | } | |
4403 | ||
4404 | ||
4405 | static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4406 | PyObject *resultobj; | |
4407 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4408 | bool result; | |
4409 | PyObject * obj0 = 0 ; | |
4410 | char *kwnames[] = { | |
4411 | (char *) "self", NULL | |
4412 | }; | |
4413 | ||
4414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
4415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4416 | { | |
4417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4418 | result = (bool)(arg1)->IsOk(); | |
4419 | ||
4420 | wxPyEndAllowThreads(__tstate); | |
4421 | if (PyErr_Occurred()) SWIG_fail; | |
4422 | } | |
02a34c4c | 4423 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4424 | return resultobj; |
4425 | fail: | |
4426 | return NULL; | |
4427 | } | |
4428 | ||
4429 | ||
4430 | static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4431 | PyObject *resultobj; | |
4432 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4433 | bool result; | |
4434 | PyObject * obj0 = 0 ; | |
4435 | char *kwnames[] = { | |
4436 | (char *) "self", NULL | |
4437 | }; | |
4438 | ||
4439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
4440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4441 | { | |
4442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4443 | result = (bool)(arg1)->IsVisible(); | |
4444 | ||
4445 | wxPyEndAllowThreads(__tstate); | |
4446 | if (PyErr_Occurred()) SWIG_fail; | |
4447 | } | |
02a34c4c | 4448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4449 | return resultobj; |
4450 | fail: | |
4451 | return NULL; | |
4452 | } | |
4453 | ||
4454 | ||
44127b65 RD |
4455 | static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
4456 | PyObject *resultobj; | |
4457 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4458 | wxPoint result; | |
4459 | PyObject * obj0 = 0 ; | |
4460 | char *kwnames[] = { | |
4461 | (char *) "self", NULL | |
4462 | }; | |
4463 | ||
4464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
4465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4466 | { | |
4467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4468 | result = (arg1)->GetPosition(); | |
4469 | ||
4470 | wxPyEndAllowThreads(__tstate); | |
4471 | if (PyErr_Occurred()) SWIG_fail; | |
4472 | } | |
4473 | { | |
4474 | wxPoint * resultptr; | |
4475 | resultptr = new wxPoint((wxPoint &) result); | |
4476 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
4477 | } | |
4478 | return resultobj; | |
4479 | fail: | |
4480 | return NULL; | |
4481 | } | |
4482 | ||
4483 | ||
d14a1e28 RD |
4484 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
4485 | PyObject *resultobj; | |
4486 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4487 | int *arg2 = (int *) 0 ; | |
4488 | int *arg3 = (int *) 0 ; | |
4489 | int temp2 ; | |
4490 | int temp3 ; | |
4491 | PyObject * obj0 = 0 ; | |
4492 | char *kwnames[] = { | |
4493 | (char *) "self", NULL | |
4494 | }; | |
4495 | ||
4496 | arg2 = &temp2; | |
4497 | arg3 = &temp3; | |
4498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; | |
4499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4500 | { | |
4501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4502 | (arg1)->GetPosition(arg2,arg3); | |
4503 | ||
4504 | wxPyEndAllowThreads(__tstate); | |
4505 | if (PyErr_Occurred()) SWIG_fail; | |
4506 | } | |
4507 | Py_INCREF(Py_None); resultobj = Py_None; | |
4508 | { | |
4509 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4510 | resultobj = t_output_helper(resultobj,o); | |
4511 | } | |
4512 | { | |
4513 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4514 | resultobj = t_output_helper(resultobj,o); | |
4515 | } | |
4516 | return resultobj; | |
4517 | fail: | |
4518 | return NULL; | |
4519 | } | |
4520 | ||
4521 | ||
44127b65 | 4522 | static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4523 | PyObject *resultobj; |
4524 | wxCaret *arg1 = (wxCaret *) 0 ; | |
44127b65 | 4525 | wxSize result; |
d14a1e28 RD |
4526 | PyObject * obj0 = 0 ; |
4527 | char *kwnames[] = { | |
4528 | (char *) "self", NULL | |
4529 | }; | |
4530 | ||
44127b65 | 4531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
4532 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4533 | { | |
4534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 4535 | result = (arg1)->GetSize(); |
d14a1e28 RD |
4536 | |
4537 | wxPyEndAllowThreads(__tstate); | |
4538 | if (PyErr_Occurred()) SWIG_fail; | |
4539 | } | |
4540 | { | |
44127b65 RD |
4541 | wxSize * resultptr; |
4542 | resultptr = new wxSize((wxSize &) result); | |
4543 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
d14a1e28 RD |
4544 | } |
4545 | return resultobj; | |
4546 | fail: | |
4547 | return NULL; | |
4548 | } | |
4549 | ||
4550 | ||
4551 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4552 | PyObject *resultobj; | |
4553 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4554 | int *arg2 = (int *) 0 ; | |
4555 | int *arg3 = (int *) 0 ; | |
4556 | int temp2 ; | |
4557 | int temp3 ; | |
4558 | PyObject * obj0 = 0 ; | |
4559 | char *kwnames[] = { | |
4560 | (char *) "self", NULL | |
4561 | }; | |
4562 | ||
4563 | arg2 = &temp2; | |
4564 | arg3 = &temp3; | |
4565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; | |
4566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4567 | { | |
4568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4569 | (arg1)->GetSize(arg2,arg3); | |
4570 | ||
4571 | wxPyEndAllowThreads(__tstate); | |
4572 | if (PyErr_Occurred()) SWIG_fail; | |
4573 | } | |
4574 | Py_INCREF(Py_None); resultobj = Py_None; | |
4575 | { | |
4576 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4577 | resultobj = t_output_helper(resultobj,o); | |
4578 | } | |
4579 | { | |
4580 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4581 | resultobj = t_output_helper(resultobj,o); | |
4582 | } | |
4583 | return resultobj; | |
4584 | fail: | |
4585 | return NULL; | |
4586 | } | |
4587 | ||
4588 | ||
d14a1e28 RD |
4589 | static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
4590 | PyObject *resultobj; | |
4591 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4592 | wxWindow *result; | |
4593 | PyObject * obj0 = 0 ; | |
4594 | char *kwnames[] = { | |
4595 | (char *) "self", NULL | |
4596 | }; | |
4597 | ||
4598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
4599 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4600 | { | |
4601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4602 | result = (wxWindow *)(arg1)->GetWindow(); | |
4603 | ||
4604 | wxPyEndAllowThreads(__tstate); | |
4605 | if (PyErr_Occurred()) SWIG_fail; | |
4606 | } | |
4607 | { | |
4608 | resultobj = wxPyMake_wxObject(result); | |
4609 | } | |
4610 | return resultobj; | |
4611 | fail: | |
4612 | return NULL; | |
4613 | } | |
4614 | ||
4615 | ||
4616 | static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4617 | PyObject *resultobj; | |
4618 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4619 | int arg2 ; | |
4620 | int arg3 ; | |
4621 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4622 | PyObject * obj1 = 0 ; |
4623 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4624 | char *kwnames[] = { |
4625 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4626 | }; | |
4627 | ||
8edf1c75 | 4628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 4629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4630 | { |
4631 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4632 | if (PyErr_Occurred()) SWIG_fail; | |
4633 | } | |
4634 | { | |
4635 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4636 | if (PyErr_Occurred()) SWIG_fail; | |
4637 | } | |
d14a1e28 RD |
4638 | { |
4639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4640 | (arg1)->Move(arg2,arg3); | |
4641 | ||
4642 | wxPyEndAllowThreads(__tstate); | |
4643 | if (PyErr_Occurred()) SWIG_fail; | |
4644 | } | |
4645 | Py_INCREF(Py_None); resultobj = Py_None; | |
4646 | return resultobj; | |
4647 | fail: | |
4648 | return NULL; | |
4649 | } | |
4650 | ||
4651 | ||
4652 | static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4653 | PyObject *resultobj; | |
4654 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4655 | wxPoint *arg2 = 0 ; | |
4656 | wxPoint temp2 ; | |
4657 | PyObject * obj0 = 0 ; | |
4658 | PyObject * obj1 = 0 ; | |
4659 | char *kwnames[] = { | |
4660 | (char *) "self",(char *) "pt", NULL | |
4661 | }; | |
4662 | ||
4663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
4664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4665 | { | |
4666 | arg2 = &temp2; | |
4667 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4668 | } | |
4669 | { | |
4670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4671 | (arg1)->Move((wxPoint const &)*arg2); | |
4672 | ||
4673 | wxPyEndAllowThreads(__tstate); | |
4674 | if (PyErr_Occurred()) SWIG_fail; | |
4675 | } | |
4676 | Py_INCREF(Py_None); resultobj = Py_None; | |
4677 | return resultobj; | |
4678 | fail: | |
4679 | return NULL; | |
4680 | } | |
4681 | ||
4682 | ||
4683 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4684 | PyObject *resultobj; | |
4685 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4686 | int arg2 ; | |
4687 | int arg3 ; | |
4688 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4689 | PyObject * obj1 = 0 ; |
4690 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4691 | char *kwnames[] = { |
4692 | (char *) "self",(char *) "width",(char *) "height", NULL | |
4693 | }; | |
4694 | ||
8edf1c75 | 4695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 4696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4697 | { |
4698 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4699 | if (PyErr_Occurred()) SWIG_fail; | |
4700 | } | |
4701 | { | |
4702 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4703 | if (PyErr_Occurred()) SWIG_fail; | |
4704 | } | |
d14a1e28 RD |
4705 | { |
4706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4707 | (arg1)->SetSize(arg2,arg3); | |
4708 | ||
4709 | wxPyEndAllowThreads(__tstate); | |
4710 | if (PyErr_Occurred()) SWIG_fail; | |
4711 | } | |
4712 | Py_INCREF(Py_None); resultobj = Py_None; | |
4713 | return resultobj; | |
4714 | fail: | |
4715 | return NULL; | |
4716 | } | |
4717 | ||
4718 | ||
4719 | static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4720 | PyObject *resultobj; | |
4721 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4722 | wxSize *arg2 = 0 ; | |
4723 | wxSize temp2 ; | |
4724 | PyObject * obj0 = 0 ; | |
4725 | PyObject * obj1 = 0 ; | |
4726 | char *kwnames[] = { | |
4727 | (char *) "self",(char *) "size", NULL | |
4728 | }; | |
4729 | ||
4730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4732 | { | |
4733 | arg2 = &temp2; | |
4734 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4735 | } | |
4736 | { | |
4737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4738 | (arg1)->SetSize((wxSize const &)*arg2); | |
4739 | ||
4740 | wxPyEndAllowThreads(__tstate); | |
4741 | if (PyErr_Occurred()) SWIG_fail; | |
4742 | } | |
4743 | Py_INCREF(Py_None); resultobj = Py_None; | |
4744 | return resultobj; | |
4745 | fail: | |
4746 | return NULL; | |
4747 | } | |
4748 | ||
4749 | ||
4750 | static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4751 | PyObject *resultobj; | |
4752 | wxCaret *arg1 = (wxCaret *) 0 ; | |
423f194a | 4753 | int arg2 = (int) True ; |
d14a1e28 | 4754 | PyObject * obj0 = 0 ; |
8edf1c75 | 4755 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4756 | char *kwnames[] = { |
4757 | (char *) "self",(char *) "show", NULL | |
4758 | }; | |
4759 | ||
8edf1c75 | 4760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4762 | if (obj1) { |
4763 | { | |
4764 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4765 | if (PyErr_Occurred()) SWIG_fail; | |
4766 | } | |
4767 | } | |
d14a1e28 RD |
4768 | { |
4769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4770 | (arg1)->Show(arg2); | |
4771 | ||
4772 | wxPyEndAllowThreads(__tstate); | |
4773 | if (PyErr_Occurred()) SWIG_fail; | |
4774 | } | |
4775 | Py_INCREF(Py_None); resultobj = Py_None; | |
4776 | return resultobj; | |
4777 | fail: | |
4778 | return NULL; | |
4779 | } | |
4780 | ||
4781 | ||
4782 | static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4783 | PyObject *resultobj; | |
4784 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4785 | PyObject * obj0 = 0 ; | |
4786 | char *kwnames[] = { | |
4787 | (char *) "self", NULL | |
4788 | }; | |
4789 | ||
4790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
4791 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4792 | { | |
4793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4794 | (arg1)->Hide(); | |
4795 | ||
4796 | wxPyEndAllowThreads(__tstate); | |
4797 | if (PyErr_Occurred()) SWIG_fail; | |
4798 | } | |
4799 | Py_INCREF(Py_None); resultobj = Py_None; | |
4800 | return resultobj; | |
4801 | fail: | |
4802 | return NULL; | |
4803 | } | |
4804 | ||
4805 | ||
4806 | static PyObject * Caret_swigregister(PyObject *self, PyObject *args) { | |
4807 | PyObject *obj; | |
4808 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4809 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
4810 | Py_INCREF(obj); | |
4811 | return Py_BuildValue((char *)""); | |
4812 | } | |
4813 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4814 | PyObject *resultobj; | |
4815 | int result; | |
4816 | char *kwnames[] = { | |
4817 | NULL | |
4818 | }; | |
4819 | ||
4820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
4821 | { | |
4822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4823 | result = (int)wxCaret_GetBlinkTime(); | |
4824 | ||
4825 | wxPyEndAllowThreads(__tstate); | |
4826 | if (PyErr_Occurred()) SWIG_fail; | |
4827 | } | |
8edf1c75 | 4828 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4829 | return resultobj; |
4830 | fail: | |
4831 | return NULL; | |
4832 | } | |
4833 | ||
4834 | ||
4835 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4836 | PyObject *resultobj; | |
4837 | int arg1 ; | |
8edf1c75 | 4838 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
4839 | char *kwnames[] = { |
4840 | (char *) "milliseconds", NULL | |
4841 | }; | |
4842 | ||
8edf1c75 RD |
4843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; |
4844 | { | |
4845 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
4846 | if (PyErr_Occurred()) SWIG_fail; | |
4847 | } | |
d14a1e28 RD |
4848 | { |
4849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4850 | wxCaret_SetBlinkTime(arg1); | |
4851 | ||
4852 | wxPyEndAllowThreads(__tstate); | |
4853 | if (PyErr_Occurred()) SWIG_fail; | |
4854 | } | |
4855 | Py_INCREF(Py_None); resultobj = Py_None; | |
4856 | return resultobj; | |
4857 | fail: | |
4858 | return NULL; | |
4859 | } | |
4860 | ||
4861 | ||
4862 | static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4863 | PyObject *resultobj; | |
4864 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4865 | wxBusyCursor *result; | |
4866 | PyObject * obj0 = 0 ; | |
4867 | char *kwnames[] = { | |
4868 | (char *) "cursor", NULL | |
4869 | }; | |
4870 | ||
4871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
4872 | if (obj0) { | |
4873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4874 | } | |
4875 | { | |
4876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4877 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
4878 | ||
4879 | wxPyEndAllowThreads(__tstate); | |
4880 | if (PyErr_Occurred()) SWIG_fail; | |
4881 | } | |
4882 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBusyCursor, 1); | |
4883 | return resultobj; | |
4884 | fail: | |
4885 | return NULL; | |
4886 | } | |
4887 | ||
4888 | ||
4889 | static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4890 | PyObject *resultobj; | |
4891 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
4892 | PyObject * obj0 = 0 ; | |
4893 | char *kwnames[] = { | |
4894 | (char *) "self", NULL | |
4895 | }; | |
4896 | ||
4897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
4898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBusyCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4899 | { | |
4900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4901 | delete arg1; | |
4902 | ||
4903 | wxPyEndAllowThreads(__tstate); | |
4904 | if (PyErr_Occurred()) SWIG_fail; | |
4905 | } | |
4906 | Py_INCREF(Py_None); resultobj = Py_None; | |
4907 | return resultobj; | |
4908 | fail: | |
4909 | return NULL; | |
4910 | } | |
4911 | ||
4912 | ||
4913 | static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) { | |
4914 | PyObject *obj; | |
4915 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4916 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
4917 | Py_INCREF(obj); | |
4918 | return Py_BuildValue((char *)""); | |
4919 | } | |
4920 | static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4921 | PyObject *resultobj; | |
4922 | wxWindow *arg1 = (wxWindow *) NULL ; | |
4923 | wxWindowDisabler *result; | |
4924 | PyObject * obj0 = 0 ; | |
4925 | char *kwnames[] = { | |
4926 | (char *) "winToSkip", NULL | |
4927 | }; | |
4928 | ||
4929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
4930 | if (obj0) { | |
4931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4932 | } | |
4933 | { | |
4934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4935 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
4936 | ||
4937 | wxPyEndAllowThreads(__tstate); | |
4938 | if (PyErr_Occurred()) SWIG_fail; | |
4939 | } | |
4940 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDisabler, 1); | |
4941 | return resultobj; | |
4942 | fail: | |
4943 | return NULL; | |
4944 | } | |
4945 | ||
4946 | ||
4947 | static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4948 | PyObject *resultobj; | |
4949 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
4950 | PyObject * obj0 = 0 ; | |
4951 | char *kwnames[] = { | |
4952 | (char *) "self", NULL | |
4953 | }; | |
4954 | ||
4955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
4956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowDisabler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4957 | { | |
4958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4959 | delete arg1; | |
4960 | ||
4961 | wxPyEndAllowThreads(__tstate); | |
4962 | if (PyErr_Occurred()) SWIG_fail; | |
4963 | } | |
4964 | Py_INCREF(Py_None); resultobj = Py_None; | |
4965 | return resultobj; | |
4966 | fail: | |
4967 | return NULL; | |
4968 | } | |
4969 | ||
4970 | ||
4971 | static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) { | |
4972 | PyObject *obj; | |
4973 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4974 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
4975 | Py_INCREF(obj); | |
4976 | return Py_BuildValue((char *)""); | |
4977 | } | |
4978 | static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4979 | PyObject *resultobj; | |
4980 | wxString *arg1 = 0 ; | |
4981 | wxBusyInfo *result; | |
423f194a | 4982 | bool temp1 = False ; |
d14a1e28 RD |
4983 | PyObject * obj0 = 0 ; |
4984 | char *kwnames[] = { | |
4985 | (char *) "message", NULL | |
4986 | }; | |
4987 | ||
4988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
4989 | { | |
4990 | arg1 = wxString_in_helper(obj0); | |
4991 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 4992 | temp1 = True; |
d14a1e28 RD |
4993 | } |
4994 | { | |
4995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4996 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
4997 | ||
4998 | wxPyEndAllowThreads(__tstate); | |
4999 | if (PyErr_Occurred()) SWIG_fail; | |
5000 | } | |
5001 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBusyInfo, 1); | |
5002 | { | |
5003 | if (temp1) | |
5004 | delete arg1; | |
5005 | } | |
5006 | return resultobj; | |
5007 | fail: | |
5008 | { | |
5009 | if (temp1) | |
5010 | delete arg1; | |
5011 | } | |
5012 | return NULL; | |
5013 | } | |
5014 | ||
5015 | ||
5016 | static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5017 | PyObject *resultobj; | |
5018 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
5019 | PyObject * obj0 = 0 ; | |
5020 | char *kwnames[] = { | |
5021 | (char *) "self", NULL | |
5022 | }; | |
5023 | ||
5024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
5025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBusyInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5026 | { | |
5027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5028 | delete arg1; | |
5029 | ||
5030 | wxPyEndAllowThreads(__tstate); | |
5031 | if (PyErr_Occurred()) SWIG_fail; | |
5032 | } | |
5033 | Py_INCREF(Py_None); resultobj = Py_None; | |
5034 | return resultobj; | |
5035 | fail: | |
5036 | return NULL; | |
5037 | } | |
5038 | ||
5039 | ||
5040 | static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) { | |
5041 | PyObject *obj; | |
5042 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5043 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
5044 | Py_INCREF(obj); | |
5045 | return Py_BuildValue((char *)""); | |
5046 | } | |
5047 | static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5048 | PyObject *resultobj; | |
5049 | wxStopWatch *result; | |
5050 | char *kwnames[] = { | |
5051 | NULL | |
5052 | }; | |
5053 | ||
5054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
5055 | { | |
5056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5057 | result = (wxStopWatch *)new wxStopWatch(); | |
5058 | ||
5059 | wxPyEndAllowThreads(__tstate); | |
5060 | if (PyErr_Occurred()) SWIG_fail; | |
5061 | } | |
5062 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStopWatch, 1); | |
5063 | return resultobj; | |
5064 | fail: | |
5065 | return NULL; | |
5066 | } | |
5067 | ||
5068 | ||
5069 | static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5070 | PyObject *resultobj; | |
5071 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5072 | long arg2 = (long) 0 ; | |
5073 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5074 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5075 | char *kwnames[] = { |
5076 | (char *) "self",(char *) "t0", NULL | |
5077 | }; | |
5078 | ||
8edf1c75 | 5079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5081 | if (obj1) { |
5082 | { | |
5083 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
5084 | if (PyErr_Occurred()) SWIG_fail; | |
5085 | } | |
5086 | } | |
d14a1e28 RD |
5087 | { |
5088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5089 | (arg1)->Start(arg2); | |
5090 | ||
5091 | wxPyEndAllowThreads(__tstate); | |
5092 | if (PyErr_Occurred()) SWIG_fail; | |
5093 | } | |
5094 | Py_INCREF(Py_None); resultobj = Py_None; | |
5095 | return resultobj; | |
5096 | fail: | |
5097 | return NULL; | |
5098 | } | |
5099 | ||
5100 | ||
5101 | static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5102 | PyObject *resultobj; | |
5103 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5104 | PyObject * obj0 = 0 ; | |
5105 | char *kwnames[] = { | |
5106 | (char *) "self", NULL | |
5107 | }; | |
5108 | ||
5109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
5110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5111 | { | |
5112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5113 | (arg1)->Pause(); | |
5114 | ||
5115 | wxPyEndAllowThreads(__tstate); | |
5116 | if (PyErr_Occurred()) SWIG_fail; | |
5117 | } | |
5118 | Py_INCREF(Py_None); resultobj = Py_None; | |
5119 | return resultobj; | |
5120 | fail: | |
5121 | return NULL; | |
5122 | } | |
5123 | ||
5124 | ||
5125 | static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5126 | PyObject *resultobj; | |
5127 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5128 | PyObject * obj0 = 0 ; | |
5129 | char *kwnames[] = { | |
5130 | (char *) "self", NULL | |
5131 | }; | |
5132 | ||
5133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
5134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5135 | { | |
5136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5137 | (arg1)->Resume(); | |
5138 | ||
5139 | wxPyEndAllowThreads(__tstate); | |
5140 | if (PyErr_Occurred()) SWIG_fail; | |
5141 | } | |
5142 | Py_INCREF(Py_None); resultobj = Py_None; | |
5143 | return resultobj; | |
5144 | fail: | |
5145 | return NULL; | |
5146 | } | |
5147 | ||
5148 | ||
5149 | static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5150 | PyObject *resultobj; | |
5151 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5152 | long result; | |
5153 | PyObject * obj0 = 0 ; | |
5154 | char *kwnames[] = { | |
5155 | (char *) "self", NULL | |
5156 | }; | |
5157 | ||
5158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
5159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5160 | { | |
5161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5162 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
5163 | ||
5164 | wxPyEndAllowThreads(__tstate); | |
5165 | if (PyErr_Occurred()) SWIG_fail; | |
5166 | } | |
8edf1c75 | 5167 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
5168 | return resultobj; |
5169 | fail: | |
5170 | return NULL; | |
5171 | } | |
5172 | ||
5173 | ||
5174 | static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) { | |
5175 | PyObject *obj; | |
5176 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5177 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
5178 | Py_INCREF(obj); | |
5179 | return Py_BuildValue((char *)""); | |
5180 | } | |
5181 | static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5182 | PyObject *resultobj; | |
5183 | int arg1 = (int) 9 ; | |
5184 | wxFileHistory *result; | |
8edf1c75 | 5185 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
5186 | char *kwnames[] = { |
5187 | (char *) "maxFiles", NULL | |
5188 | }; | |
5189 | ||
8edf1c75 RD |
5190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail; |
5191 | if (obj0) { | |
5192 | { | |
5193 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
5194 | if (PyErr_Occurred()) SWIG_fail; | |
5195 | } | |
5196 | } | |
d14a1e28 RD |
5197 | { |
5198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5199 | result = (wxFileHistory *)new wxFileHistory(arg1); | |
5200 | ||
5201 | wxPyEndAllowThreads(__tstate); | |
5202 | if (PyErr_Occurred()) SWIG_fail; | |
5203 | } | |
5204 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileHistory, 1); | |
5205 | return resultobj; | |
5206 | fail: | |
5207 | return NULL; | |
5208 | } | |
5209 | ||
5210 | ||
5211 | static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5212 | PyObject *resultobj; | |
5213 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5214 | PyObject * obj0 = 0 ; | |
5215 | char *kwnames[] = { | |
5216 | (char *) "self", NULL | |
5217 | }; | |
5218 | ||
5219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
5220 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5221 | { | |
5222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5223 | delete arg1; | |
5224 | ||
5225 | wxPyEndAllowThreads(__tstate); | |
5226 | if (PyErr_Occurred()) SWIG_fail; | |
5227 | } | |
5228 | Py_INCREF(Py_None); resultobj = Py_None; | |
5229 | return resultobj; | |
5230 | fail: | |
5231 | return NULL; | |
5232 | } | |
5233 | ||
5234 | ||
5235 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5236 | PyObject *resultobj; | |
5237 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5238 | wxString *arg2 = 0 ; | |
423f194a | 5239 | bool temp2 = False ; |
d14a1e28 RD |
5240 | PyObject * obj0 = 0 ; |
5241 | PyObject * obj1 = 0 ; | |
5242 | char *kwnames[] = { | |
5243 | (char *) "self",(char *) "file", NULL | |
5244 | }; | |
5245 | ||
5246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
5247 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5248 | { | |
5249 | arg2 = wxString_in_helper(obj1); | |
5250 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5251 | temp2 = True; |
d14a1e28 RD |
5252 | } |
5253 | { | |
5254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5255 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
5256 | ||
5257 | wxPyEndAllowThreads(__tstate); | |
5258 | if (PyErr_Occurred()) SWIG_fail; | |
5259 | } | |
5260 | Py_INCREF(Py_None); resultobj = Py_None; | |
5261 | { | |
5262 | if (temp2) | |
5263 | delete arg2; | |
5264 | } | |
5265 | return resultobj; | |
5266 | fail: | |
5267 | { | |
5268 | if (temp2) | |
5269 | delete arg2; | |
5270 | } | |
5271 | return NULL; | |
5272 | } | |
5273 | ||
5274 | ||
5275 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5276 | PyObject *resultobj; | |
5277 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5278 | int arg2 ; | |
5279 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5280 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5281 | char *kwnames[] = { |
5282 | (char *) "self",(char *) "i", NULL | |
5283 | }; | |
5284 | ||
8edf1c75 | 5285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5287 | { |
5288 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5289 | if (PyErr_Occurred()) SWIG_fail; | |
5290 | } | |
d14a1e28 RD |
5291 | { |
5292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5293 | (arg1)->RemoveFileFromHistory(arg2); | |
5294 | ||
5295 | wxPyEndAllowThreads(__tstate); | |
5296 | if (PyErr_Occurred()) SWIG_fail; | |
5297 | } | |
5298 | Py_INCREF(Py_None); resultobj = Py_None; | |
5299 | return resultobj; | |
5300 | fail: | |
5301 | return NULL; | |
5302 | } | |
5303 | ||
5304 | ||
5305 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5306 | PyObject *resultobj; | |
5307 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5308 | int result; | |
5309 | PyObject * obj0 = 0 ; | |
5310 | char *kwnames[] = { | |
5311 | (char *) "self", NULL | |
5312 | }; | |
5313 | ||
5314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
5315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5316 | { | |
5317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5318 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
5319 | ||
5320 | wxPyEndAllowThreads(__tstate); | |
5321 | if (PyErr_Occurred()) SWIG_fail; | |
5322 | } | |
8edf1c75 | 5323 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5324 | return resultobj; |
5325 | fail: | |
5326 | return NULL; | |
5327 | } | |
5328 | ||
5329 | ||
5330 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5331 | PyObject *resultobj; | |
5332 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5333 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5334 | PyObject * obj0 = 0 ; | |
5335 | PyObject * obj1 = 0 ; | |
5336 | char *kwnames[] = { | |
5337 | (char *) "self",(char *) "menu", NULL | |
5338 | }; | |
5339 | ||
5340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
5341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5342 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5343 | { | |
5344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5345 | (arg1)->UseMenu(arg2); | |
5346 | ||
5347 | wxPyEndAllowThreads(__tstate); | |
5348 | if (PyErr_Occurred()) SWIG_fail; | |
5349 | } | |
5350 | Py_INCREF(Py_None); resultobj = Py_None; | |
5351 | return resultobj; | |
5352 | fail: | |
5353 | return NULL; | |
5354 | } | |
5355 | ||
5356 | ||
5357 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5358 | PyObject *resultobj; | |
5359 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5360 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5361 | PyObject * obj0 = 0 ; | |
5362 | PyObject * obj1 = 0 ; | |
5363 | char *kwnames[] = { | |
5364 | (char *) "self",(char *) "menu", NULL | |
5365 | }; | |
5366 | ||
5367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
5368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5369 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5370 | { | |
5371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5372 | (arg1)->RemoveMenu(arg2); | |
5373 | ||
5374 | wxPyEndAllowThreads(__tstate); | |
5375 | if (PyErr_Occurred()) SWIG_fail; | |
5376 | } | |
5377 | Py_INCREF(Py_None); resultobj = Py_None; | |
5378 | return resultobj; | |
5379 | fail: | |
5380 | return NULL; | |
5381 | } | |
5382 | ||
5383 | ||
5384 | static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5385 | PyObject *resultobj; | |
5386 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5387 | wxConfigBase *arg2 = 0 ; | |
5388 | PyObject * obj0 = 0 ; | |
5389 | PyObject * obj1 = 0 ; | |
5390 | char *kwnames[] = { | |
5391 | (char *) "self",(char *) "config", NULL | |
5392 | }; | |
5393 | ||
5394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
5395 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5396 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5397 | if (arg2 == NULL) { | |
5398 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5399 | } | |
5400 | { | |
5401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5402 | (arg1)->Load(*arg2); | |
5403 | ||
5404 | wxPyEndAllowThreads(__tstate); | |
5405 | if (PyErr_Occurred()) SWIG_fail; | |
5406 | } | |
5407 | Py_INCREF(Py_None); resultobj = Py_None; | |
5408 | return resultobj; | |
5409 | fail: | |
5410 | return NULL; | |
5411 | } | |
5412 | ||
5413 | ||
5414 | static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5415 | PyObject *resultobj; | |
5416 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5417 | wxConfigBase *arg2 = 0 ; | |
5418 | PyObject * obj0 = 0 ; | |
5419 | PyObject * obj1 = 0 ; | |
5420 | char *kwnames[] = { | |
5421 | (char *) "self",(char *) "config", NULL | |
5422 | }; | |
5423 | ||
5424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
5425 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5426 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5427 | if (arg2 == NULL) { | |
5428 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5429 | } | |
5430 | { | |
5431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5432 | (arg1)->Save(*arg2); | |
5433 | ||
5434 | wxPyEndAllowThreads(__tstate); | |
5435 | if (PyErr_Occurred()) SWIG_fail; | |
5436 | } | |
5437 | Py_INCREF(Py_None); resultobj = Py_None; | |
5438 | return resultobj; | |
5439 | fail: | |
5440 | return NULL; | |
5441 | } | |
5442 | ||
5443 | ||
5444 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5445 | PyObject *resultobj; | |
5446 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5447 | PyObject * obj0 = 0 ; | |
5448 | char *kwnames[] = { | |
5449 | (char *) "self", NULL | |
5450 | }; | |
5451 | ||
5452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
5453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5454 | { | |
5455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5456 | (arg1)->AddFilesToMenu(); | |
5457 | ||
5458 | wxPyEndAllowThreads(__tstate); | |
5459 | if (PyErr_Occurred()) SWIG_fail; | |
5460 | } | |
5461 | Py_INCREF(Py_None); resultobj = Py_None; | |
5462 | return resultobj; | |
5463 | fail: | |
5464 | return NULL; | |
5465 | } | |
5466 | ||
5467 | ||
5468 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5469 | PyObject *resultobj; | |
5470 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5471 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5472 | PyObject * obj0 = 0 ; | |
5473 | PyObject * obj1 = 0 ; | |
5474 | char *kwnames[] = { | |
5475 | (char *) "self",(char *) "menu", NULL | |
5476 | }; | |
5477 | ||
5478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
5479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5480 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5481 | { | |
5482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5483 | (arg1)->AddFilesToMenu(arg2); | |
5484 | ||
5485 | wxPyEndAllowThreads(__tstate); | |
5486 | if (PyErr_Occurred()) SWIG_fail; | |
5487 | } | |
5488 | Py_INCREF(Py_None); resultobj = Py_None; | |
5489 | return resultobj; | |
5490 | fail: | |
5491 | return NULL; | |
5492 | } | |
5493 | ||
5494 | ||
5495 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5496 | PyObject *resultobj; | |
5497 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5498 | int arg2 ; | |
5499 | wxString result; | |
5500 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5501 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5502 | char *kwnames[] = { |
5503 | (char *) "self",(char *) "i", NULL | |
5504 | }; | |
5505 | ||
8edf1c75 | 5506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5508 | { |
5509 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5510 | if (PyErr_Occurred()) SWIG_fail; | |
5511 | } | |
d14a1e28 RD |
5512 | { |
5513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5514 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
5515 | ||
5516 | wxPyEndAllowThreads(__tstate); | |
5517 | if (PyErr_Occurred()) SWIG_fail; | |
5518 | } | |
5519 | { | |
5520 | #if wxUSE_UNICODE | |
5521 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5522 | #else | |
5523 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5524 | #endif | |
5525 | } | |
5526 | return resultobj; | |
5527 | fail: | |
5528 | return NULL; | |
5529 | } | |
5530 | ||
5531 | ||
5532 | static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5533 | PyObject *resultobj; | |
5534 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5535 | int result; | |
5536 | PyObject * obj0 = 0 ; | |
5537 | char *kwnames[] = { | |
5538 | (char *) "self", NULL | |
5539 | }; | |
5540 | ||
5541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
5542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5543 | { | |
5544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5545 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
5546 | ||
5547 | wxPyEndAllowThreads(__tstate); | |
5548 | if (PyErr_Occurred()) SWIG_fail; | |
5549 | } | |
8edf1c75 | 5550 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5551 | return resultobj; |
5552 | fail: | |
5553 | return NULL; | |
5554 | } | |
5555 | ||
5556 | ||
5557 | static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) { | |
5558 | PyObject *obj; | |
5559 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5560 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
5561 | Py_INCREF(obj); | |
5562 | return Py_BuildValue((char *)""); | |
5563 | } | |
5564 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5565 | PyObject *resultobj; | |
5566 | wxString *arg1 = 0 ; | |
5567 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5568 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5569 | wxSingleInstanceChecker *result; | |
423f194a RD |
5570 | bool temp1 = False ; |
5571 | bool temp2 = False ; | |
d14a1e28 RD |
5572 | PyObject * obj0 = 0 ; |
5573 | PyObject * obj1 = 0 ; | |
5574 | char *kwnames[] = { | |
5575 | (char *) "name",(char *) "path", NULL | |
5576 | }; | |
5577 | ||
5578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
5579 | { | |
5580 | arg1 = wxString_in_helper(obj0); | |
5581 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 5582 | temp1 = True; |
d14a1e28 RD |
5583 | } |
5584 | if (obj1) { | |
5585 | { | |
5586 | arg2 = wxString_in_helper(obj1); | |
5587 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5588 | temp2 = True; |
d14a1e28 RD |
5589 | } |
5590 | } | |
5591 | { | |
5592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5593 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
5594 | ||
5595 | wxPyEndAllowThreads(__tstate); | |
5596 | if (PyErr_Occurred()) SWIG_fail; | |
5597 | } | |
5598 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5599 | { | |
5600 | if (temp1) | |
5601 | delete arg1; | |
5602 | } | |
5603 | { | |
5604 | if (temp2) | |
5605 | delete arg2; | |
5606 | } | |
5607 | return resultobj; | |
5608 | fail: | |
5609 | { | |
5610 | if (temp1) | |
5611 | delete arg1; | |
5612 | } | |
5613 | { | |
5614 | if (temp2) | |
5615 | delete arg2; | |
5616 | } | |
5617 | return NULL; | |
5618 | } | |
5619 | ||
5620 | ||
5621 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5622 | PyObject *resultobj; | |
5623 | wxSingleInstanceChecker *result; | |
5624 | char *kwnames[] = { | |
5625 | NULL | |
5626 | }; | |
5627 | ||
5628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
5629 | { | |
5630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5631 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
5632 | ||
5633 | wxPyEndAllowThreads(__tstate); | |
5634 | if (PyErr_Occurred()) SWIG_fail; | |
5635 | } | |
5636 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5637 | return resultobj; | |
5638 | fail: | |
5639 | return NULL; | |
5640 | } | |
5641 | ||
5642 | ||
5643 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5644 | PyObject *resultobj; | |
5645 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5646 | PyObject * obj0 = 0 ; | |
5647 | char *kwnames[] = { | |
5648 | (char *) "self", NULL | |
5649 | }; | |
5650 | ||
5651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
5652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5653 | { | |
5654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5655 | delete arg1; | |
5656 | ||
5657 | wxPyEndAllowThreads(__tstate); | |
5658 | if (PyErr_Occurred()) SWIG_fail; | |
5659 | } | |
5660 | Py_INCREF(Py_None); resultobj = Py_None; | |
5661 | return resultobj; | |
5662 | fail: | |
5663 | return NULL; | |
5664 | } | |
5665 | ||
5666 | ||
5667 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5668 | PyObject *resultobj; | |
5669 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5670 | wxString *arg2 = 0 ; | |
5671 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5672 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5673 | bool result; | |
423f194a RD |
5674 | bool temp2 = False ; |
5675 | bool temp3 = False ; | |
d14a1e28 RD |
5676 | PyObject * obj0 = 0 ; |
5677 | PyObject * obj1 = 0 ; | |
5678 | PyObject * obj2 = 0 ; | |
5679 | char *kwnames[] = { | |
5680 | (char *) "self",(char *) "name",(char *) "path", NULL | |
5681 | }; | |
5682 | ||
5683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5684 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5685 | { | |
5686 | arg2 = wxString_in_helper(obj1); | |
5687 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5688 | temp2 = True; |
d14a1e28 RD |
5689 | } |
5690 | if (obj2) { | |
5691 | { | |
5692 | arg3 = wxString_in_helper(obj2); | |
5693 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 5694 | temp3 = True; |
d14a1e28 RD |
5695 | } |
5696 | } | |
5697 | { | |
5698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5699 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
5700 | ||
5701 | wxPyEndAllowThreads(__tstate); | |
5702 | if (PyErr_Occurred()) SWIG_fail; | |
5703 | } | |
02a34c4c | 5704 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5705 | { |
5706 | if (temp2) | |
5707 | delete arg2; | |
5708 | } | |
5709 | { | |
5710 | if (temp3) | |
5711 | delete arg3; | |
5712 | } | |
5713 | return resultobj; | |
5714 | fail: | |
5715 | { | |
5716 | if (temp2) | |
5717 | delete arg2; | |
5718 | } | |
5719 | { | |
5720 | if (temp3) | |
5721 | delete arg3; | |
5722 | } | |
5723 | return NULL; | |
5724 | } | |
5725 | ||
5726 | ||
5727 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5728 | PyObject *resultobj; | |
5729 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5730 | bool result; | |
5731 | PyObject * obj0 = 0 ; | |
5732 | char *kwnames[] = { | |
5733 | (char *) "self", NULL | |
5734 | }; | |
5735 | ||
5736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
5737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5738 | { | |
5739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5740 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
5741 | ||
5742 | wxPyEndAllowThreads(__tstate); | |
5743 | if (PyErr_Occurred()) SWIG_fail; | |
5744 | } | |
02a34c4c | 5745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5746 | return resultobj; |
5747 | fail: | |
5748 | return NULL; | |
5749 | } | |
5750 | ||
5751 | ||
5752 | static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) { | |
5753 | PyObject *obj; | |
5754 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5755 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
5756 | Py_INCREF(obj); | |
5757 | return Py_BuildValue((char *)""); | |
5758 | } | |
5759 | static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5760 | PyObject *resultobj; | |
5761 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5762 | wxDC *arg2 = 0 ; | |
5763 | int arg3 ; | |
5764 | PyObject * obj0 = 0 ; | |
5765 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5766 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5767 | char *kwnames[] = { |
5768 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
5769 | }; | |
5770 | ||
8edf1c75 | 5771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
5772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5773 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5774 | if (arg2 == NULL) { | |
5775 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5776 | } | |
8edf1c75 RD |
5777 | { |
5778 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5779 | if (PyErr_Occurred()) SWIG_fail; | |
5780 | } | |
d14a1e28 RD |
5781 | { |
5782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5783 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
5784 | ||
5785 | wxPyEndAllowThreads(__tstate); | |
5786 | if (PyErr_Occurred()) SWIG_fail; | |
5787 | } | |
5788 | Py_INCREF(Py_None); resultobj = Py_None; | |
5789 | return resultobj; | |
5790 | fail: | |
5791 | return NULL; | |
5792 | } | |
5793 | ||
5794 | ||
5795 | static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5796 | PyObject *resultobj; | |
5797 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5798 | PyObject * obj0 = 0 ; | |
5799 | char *kwnames[] = { | |
5800 | (char *) "self", NULL | |
5801 | }; | |
5802 | ||
5803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
5804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5805 | { | |
5806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5807 | delete arg1; | |
5808 | ||
5809 | wxPyEndAllowThreads(__tstate); | |
5810 | if (PyErr_Occurred()) SWIG_fail; | |
5811 | } | |
5812 | Py_INCREF(Py_None); resultobj = Py_None; | |
5813 | return resultobj; | |
5814 | fail: | |
5815 | return NULL; | |
5816 | } | |
5817 | ||
5818 | ||
5819 | static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5820 | PyObject *resultobj; | |
5821 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5822 | wxString result; | |
5823 | PyObject * obj0 = 0 ; | |
5824 | char *kwnames[] = { | |
5825 | (char *) "self", NULL | |
5826 | }; | |
5827 | ||
5828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
5829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5830 | { | |
5831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5832 | result = (arg1)->GetTip(); | |
5833 | ||
5834 | wxPyEndAllowThreads(__tstate); | |
5835 | if (PyErr_Occurred()) SWIG_fail; | |
5836 | } | |
5837 | { | |
5838 | #if wxUSE_UNICODE | |
5839 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5840 | #else | |
5841 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5842 | #endif | |
5843 | } | |
5844 | return resultobj; | |
5845 | fail: | |
5846 | return NULL; | |
5847 | } | |
5848 | ||
5849 | ||
5850 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5851 | PyObject *resultobj; | |
5852 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5853 | size_t result; | |
5854 | PyObject * obj0 = 0 ; | |
5855 | char *kwnames[] = { | |
5856 | (char *) "self", NULL | |
5857 | }; | |
5858 | ||
5859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
5860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5861 | { | |
5862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5863 | result = (size_t)(arg1)->GetCurrentTip(); | |
5864 | ||
5865 | wxPyEndAllowThreads(__tstate); | |
5866 | if (PyErr_Occurred()) SWIG_fail; | |
5867 | } | |
8edf1c75 | 5868 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
5869 | return resultobj; |
5870 | fail: | |
5871 | return NULL; | |
5872 | } | |
5873 | ||
5874 | ||
5875 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5876 | PyObject *resultobj; | |
5877 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5878 | wxString *arg2 = 0 ; | |
5879 | wxString result; | |
423f194a | 5880 | bool temp2 = False ; |
d14a1e28 RD |
5881 | PyObject * obj0 = 0 ; |
5882 | PyObject * obj1 = 0 ; | |
5883 | char *kwnames[] = { | |
5884 | (char *) "self",(char *) "tip", NULL | |
5885 | }; | |
5886 | ||
5887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
5888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5889 | { | |
5890 | arg2 = wxString_in_helper(obj1); | |
5891 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5892 | temp2 = True; |
d14a1e28 RD |
5893 | } |
5894 | { | |
5895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5896 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
5897 | ||
5898 | wxPyEndAllowThreads(__tstate); | |
5899 | if (PyErr_Occurred()) SWIG_fail; | |
5900 | } | |
5901 | { | |
5902 | #if wxUSE_UNICODE | |
5903 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5904 | #else | |
5905 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5906 | #endif | |
5907 | } | |
5908 | { | |
5909 | if (temp2) | |
5910 | delete arg2; | |
5911 | } | |
5912 | return resultobj; | |
5913 | fail: | |
5914 | { | |
5915 | if (temp2) | |
5916 | delete arg2; | |
5917 | } | |
5918 | return NULL; | |
5919 | } | |
5920 | ||
5921 | ||
5922 | static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) { | |
5923 | PyObject *obj; | |
5924 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5925 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
5926 | Py_INCREF(obj); | |
5927 | return Py_BuildValue((char *)""); | |
5928 | } | |
5929 | static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5930 | PyObject *resultobj; | |
5931 | size_t arg1 ; | |
5932 | wxPyTipProvider *result; | |
5933 | PyObject * obj0 = 0 ; | |
5934 | char *kwnames[] = { | |
5935 | (char *) "currentTip", NULL | |
5936 | }; | |
5937 | ||
5938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
2dbef272 | 5939 | { |
8edf1c75 | 5940 | arg1 = (size_t) SWIG_PyObj_AsUnsignedLong(obj0); |
2dbef272 RD |
5941 | if (PyErr_Occurred()) SWIG_fail; |
5942 | } | |
d14a1e28 RD |
5943 | { |
5944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5945 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
5946 | ||
5947 | wxPyEndAllowThreads(__tstate); | |
5948 | if (PyErr_Occurred()) SWIG_fail; | |
5949 | } | |
5950 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTipProvider, 1); | |
5951 | return resultobj; | |
5952 | fail: | |
5953 | return NULL; | |
5954 | } | |
5955 | ||
5956 | ||
5957 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5958 | PyObject *resultobj; | |
5959 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
5960 | PyObject *arg2 = (PyObject *) 0 ; | |
5961 | PyObject *arg3 = (PyObject *) 0 ; | |
5962 | PyObject * obj0 = 0 ; | |
5963 | PyObject * obj1 = 0 ; | |
5964 | PyObject * obj2 = 0 ; | |
5965 | char *kwnames[] = { | |
5966 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
5967 | }; | |
5968 | ||
5969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5970 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5971 | arg2 = obj1; | |
5972 | arg3 = obj2; | |
5973 | { | |
5974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5975 | (arg1)->_setCallbackInfo(arg2,arg3); | |
5976 | ||
5977 | wxPyEndAllowThreads(__tstate); | |
5978 | if (PyErr_Occurred()) SWIG_fail; | |
5979 | } | |
5980 | Py_INCREF(Py_None); resultobj = Py_None; | |
5981 | return resultobj; | |
5982 | fail: | |
5983 | return NULL; | |
5984 | } | |
5985 | ||
5986 | ||
5987 | static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) { | |
5988 | PyObject *obj; | |
5989 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5990 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
5991 | Py_INCREF(obj); | |
5992 | return Py_BuildValue((char *)""); | |
5993 | } | |
5994 | static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5995 | PyObject *resultobj; | |
5996 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5997 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
423f194a | 5998 | bool arg3 = (bool) True ; |
d14a1e28 RD |
5999 | bool result; |
6000 | PyObject * obj0 = 0 ; | |
6001 | PyObject * obj1 = 0 ; | |
6002 | PyObject * obj2 = 0 ; | |
6003 | char *kwnames[] = { | |
6004 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
6005 | }; | |
6006 | ||
6007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6009 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6010 | if (obj2) { | |
2dbef272 | 6011 | { |
8edf1c75 | 6012 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
6013 | if (PyErr_Occurred()) SWIG_fail; |
6014 | } | |
d14a1e28 RD |
6015 | } |
6016 | { | |
6017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6018 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
6019 | ||
6020 | wxPyEndAllowThreads(__tstate); | |
6021 | if (PyErr_Occurred()) SWIG_fail; | |
6022 | } | |
02a34c4c | 6023 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6024 | return resultobj; |
6025 | fail: | |
6026 | return NULL; | |
6027 | } | |
6028 | ||
6029 | ||
6030 | static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6031 | PyObject *resultobj; | |
6032 | wxString *arg1 = 0 ; | |
6033 | size_t arg2 ; | |
6034 | wxTipProvider *result; | |
423f194a | 6035 | bool temp1 = False ; |
d14a1e28 RD |
6036 | PyObject * obj0 = 0 ; |
6037 | PyObject * obj1 = 0 ; | |
6038 | char *kwnames[] = { | |
6039 | (char *) "filename",(char *) "currentTip", NULL | |
6040 | }; | |
6041 | ||
6042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
6043 | { | |
6044 | arg1 = wxString_in_helper(obj0); | |
6045 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6046 | temp1 = True; |
d14a1e28 | 6047 | } |
2dbef272 | 6048 | { |
8edf1c75 | 6049 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
2dbef272 RD |
6050 | if (PyErr_Occurred()) SWIG_fail; |
6051 | } | |
d14a1e28 RD |
6052 | { |
6053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6054 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
6055 | ||
6056 | wxPyEndAllowThreads(__tstate); | |
6057 | if (PyErr_Occurred()) SWIG_fail; | |
6058 | } | |
6059 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTipProvider, 1); | |
6060 | { | |
6061 | if (temp1) | |
6062 | delete arg1; | |
6063 | } | |
6064 | return resultobj; | |
6065 | fail: | |
6066 | { | |
6067 | if (temp1) | |
6068 | delete arg1; | |
6069 | } | |
6070 | return NULL; | |
6071 | } | |
6072 | ||
6073 | ||
6074 | static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6075 | PyObject *resultobj; | |
6076 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
6077 | int arg2 = (int) -1 ; | |
6078 | wxPyTimer *result; | |
6079 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6080 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6081 | char *kwnames[] = { |
6082 | (char *) "owner",(char *) "id", NULL | |
6083 | }; | |
6084 | ||
8edf1c75 | 6085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
6086 | if (obj0) { |
6087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6088 | } | |
8edf1c75 RD |
6089 | if (obj1) { |
6090 | { | |
6091 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6092 | if (PyErr_Occurred()) SWIG_fail; | |
6093 | } | |
6094 | } | |
d14a1e28 RD |
6095 | { |
6096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6097 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
6098 | ||
6099 | wxPyEndAllowThreads(__tstate); | |
6100 | if (PyErr_Occurred()) SWIG_fail; | |
6101 | } | |
6102 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTimer, 1); | |
6103 | return resultobj; | |
6104 | fail: | |
6105 | return NULL; | |
6106 | } | |
6107 | ||
6108 | ||
6109 | static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6110 | PyObject *resultobj; | |
6111 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6112 | PyObject * obj0 = 0 ; | |
6113 | char *kwnames[] = { | |
6114 | (char *) "self", NULL | |
6115 | }; | |
6116 | ||
6117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
6118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6119 | { | |
6120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6121 | delete arg1; | |
6122 | ||
6123 | wxPyEndAllowThreads(__tstate); | |
6124 | if (PyErr_Occurred()) SWIG_fail; | |
6125 | } | |
6126 | Py_INCREF(Py_None); resultobj = Py_None; | |
6127 | return resultobj; | |
6128 | fail: | |
6129 | return NULL; | |
6130 | } | |
6131 | ||
6132 | ||
44127b65 RD |
6133 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
6134 | PyObject *resultobj; | |
6135 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6136 | PyObject *arg2 = (PyObject *) 0 ; | |
6137 | PyObject *arg3 = (PyObject *) 0 ; | |
6138 | PyObject * obj0 = 0 ; | |
6139 | PyObject * obj1 = 0 ; | |
6140 | PyObject * obj2 = 0 ; | |
6141 | char *kwnames[] = { | |
6142 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6143 | }; | |
6144 | ||
6145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6147 | arg2 = obj1; | |
6148 | arg3 = obj2; | |
6149 | { | |
6150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6151 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6152 | ||
6153 | wxPyEndAllowThreads(__tstate); | |
6154 | if (PyErr_Occurred()) SWIG_fail; | |
6155 | } | |
6156 | Py_INCREF(Py_None); resultobj = Py_None; | |
6157 | return resultobj; | |
6158 | fail: | |
6159 | return NULL; | |
6160 | } | |
6161 | ||
6162 | ||
d14a1e28 RD |
6163 | static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { |
6164 | PyObject *resultobj; | |
6165 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6166 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
6167 | int arg3 = (int) -1 ; | |
6168 | PyObject * obj0 = 0 ; | |
6169 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6170 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6171 | char *kwnames[] = { |
6172 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
6173 | }; | |
6174 | ||
8edf1c75 | 6175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
6176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6177 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
6178 | if (obj2) { |
6179 | { | |
6180 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6181 | if (PyErr_Occurred()) SWIG_fail; | |
6182 | } | |
6183 | } | |
d14a1e28 RD |
6184 | { |
6185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6186 | (arg1)->SetOwner(arg2,arg3); | |
6187 | ||
6188 | wxPyEndAllowThreads(__tstate); | |
6189 | if (PyErr_Occurred()) SWIG_fail; | |
6190 | } | |
6191 | Py_INCREF(Py_None); resultobj = Py_None; | |
6192 | return resultobj; | |
6193 | fail: | |
6194 | return NULL; | |
6195 | } | |
6196 | ||
6197 | ||
6198 | static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6199 | PyObject *resultobj; | |
6200 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6201 | int arg2 = (int) -1 ; | |
423f194a | 6202 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6203 | bool result; |
6204 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6205 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6206 | PyObject * obj2 = 0 ; |
6207 | char *kwnames[] = { | |
6208 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
6209 | }; | |
6210 | ||
8edf1c75 | 6211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6213 | if (obj1) { |
6214 | { | |
6215 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6216 | if (PyErr_Occurred()) SWIG_fail; | |
6217 | } | |
6218 | } | |
d14a1e28 | 6219 | if (obj2) { |
2dbef272 | 6220 | { |
8edf1c75 | 6221 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
6222 | if (PyErr_Occurred()) SWIG_fail; |
6223 | } | |
d14a1e28 RD |
6224 | } |
6225 | { | |
6226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6227 | result = (bool)(arg1)->Start(arg2,arg3); | |
6228 | ||
6229 | wxPyEndAllowThreads(__tstate); | |
6230 | if (PyErr_Occurred()) SWIG_fail; | |
6231 | } | |
02a34c4c | 6232 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6233 | return resultobj; |
6234 | fail: | |
6235 | return NULL; | |
6236 | } | |
6237 | ||
6238 | ||
6239 | static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6240 | PyObject *resultobj; | |
6241 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6242 | PyObject * obj0 = 0 ; | |
6243 | char *kwnames[] = { | |
6244 | (char *) "self", NULL | |
6245 | }; | |
6246 | ||
6247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
6248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6249 | { | |
6250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6251 | (arg1)->Stop(); | |
6252 | ||
6253 | wxPyEndAllowThreads(__tstate); | |
6254 | if (PyErr_Occurred()) SWIG_fail; | |
6255 | } | |
6256 | Py_INCREF(Py_None); resultobj = Py_None; | |
6257 | return resultobj; | |
6258 | fail: | |
6259 | return NULL; | |
6260 | } | |
6261 | ||
6262 | ||
d14a1e28 RD |
6263 | static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { |
6264 | PyObject *resultobj; | |
6265 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6266 | bool result; | |
6267 | PyObject * obj0 = 0 ; | |
6268 | char *kwnames[] = { | |
6269 | (char *) "self", NULL | |
6270 | }; | |
6271 | ||
6272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
6273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6274 | { | |
6275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6276 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
6277 | ||
6278 | wxPyEndAllowThreads(__tstate); | |
6279 | if (PyErr_Occurred()) SWIG_fail; | |
6280 | } | |
02a34c4c | 6281 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6282 | return resultobj; |
6283 | fail: | |
6284 | return NULL; | |
6285 | } | |
6286 | ||
6287 | ||
6288 | static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6289 | PyObject *resultobj; | |
6290 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6291 | int result; | |
6292 | PyObject * obj0 = 0 ; | |
6293 | char *kwnames[] = { | |
6294 | (char *) "self", NULL | |
6295 | }; | |
6296 | ||
6297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
6298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6299 | { | |
6300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6301 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
6302 | ||
6303 | wxPyEndAllowThreads(__tstate); | |
6304 | if (PyErr_Occurred()) SWIG_fail; | |
6305 | } | |
8edf1c75 | 6306 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6307 | return resultobj; |
6308 | fail: | |
6309 | return NULL; | |
6310 | } | |
6311 | ||
6312 | ||
6313 | static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6314 | PyObject *resultobj; | |
6315 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6316 | bool result; | |
6317 | PyObject * obj0 = 0 ; | |
6318 | char *kwnames[] = { | |
6319 | (char *) "self", NULL | |
6320 | }; | |
6321 | ||
6322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
6323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6324 | { | |
6325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6326 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
6327 | ||
6328 | wxPyEndAllowThreads(__tstate); | |
6329 | if (PyErr_Occurred()) SWIG_fail; | |
6330 | } | |
02a34c4c | 6331 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6332 | return resultobj; |
6333 | fail: | |
6334 | return NULL; | |
6335 | } | |
6336 | ||
6337 | ||
0f774bef RD |
6338 | static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
6339 | PyObject *resultobj; | |
6340 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6341 | int result; | |
6342 | PyObject * obj0 = 0 ; | |
6343 | char *kwnames[] = { | |
6344 | (char *) "self", NULL | |
6345 | }; | |
6346 | ||
6347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
6348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6349 | { | |
6350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6351 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
6352 | ||
6353 | wxPyEndAllowThreads(__tstate); | |
6354 | if (PyErr_Occurred()) SWIG_fail; | |
6355 | } | |
8edf1c75 | 6356 | resultobj = SWIG_PyObj_FromInt((int)result); |
0f774bef RD |
6357 | return resultobj; |
6358 | fail: | |
6359 | return NULL; | |
6360 | } | |
6361 | ||
6362 | ||
d14a1e28 RD |
6363 | static PyObject * Timer_swigregister(PyObject *self, PyObject *args) { |
6364 | PyObject *obj; | |
6365 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6366 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
6367 | Py_INCREF(obj); | |
6368 | return Py_BuildValue((char *)""); | |
6369 | } | |
6370 | static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6371 | PyObject *resultobj; | |
6372 | int arg1 = (int) 0 ; | |
6373 | int arg2 = (int) 0 ; | |
6374 | wxTimerEvent *result; | |
8edf1c75 RD |
6375 | PyObject * obj0 = 0 ; |
6376 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
6377 | char *kwnames[] = { |
6378 | (char *) "timerid",(char *) "interval", NULL | |
6379 | }; | |
6380 | ||
8edf1c75 RD |
6381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; |
6382 | if (obj0) { | |
6383 | { | |
6384 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
6385 | if (PyErr_Occurred()) SWIG_fail; | |
6386 | } | |
6387 | } | |
6388 | if (obj1) { | |
6389 | { | |
6390 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6391 | if (PyErr_Occurred()) SWIG_fail; | |
6392 | } | |
6393 | } | |
d14a1e28 RD |
6394 | { |
6395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6396 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
6397 | ||
6398 | wxPyEndAllowThreads(__tstate); | |
6399 | if (PyErr_Occurred()) SWIG_fail; | |
6400 | } | |
6401 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerEvent, 1); | |
6402 | return resultobj; | |
6403 | fail: | |
6404 | return NULL; | |
6405 | } | |
6406 | ||
6407 | ||
6408 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6409 | PyObject *resultobj; | |
6410 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
6411 | int result; | |
6412 | PyObject * obj0 = 0 ; | |
6413 | char *kwnames[] = { | |
6414 | (char *) "self", NULL | |
6415 | }; | |
6416 | ||
6417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
6418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6419 | { | |
6420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6421 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
6422 | ||
6423 | wxPyEndAllowThreads(__tstate); | |
6424 | if (PyErr_Occurred()) SWIG_fail; | |
6425 | } | |
8edf1c75 | 6426 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6427 | return resultobj; |
6428 | fail: | |
6429 | return NULL; | |
6430 | } | |
6431 | ||
6432 | ||
6433 | static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) { | |
6434 | PyObject *obj; | |
6435 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6436 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
6437 | Py_INCREF(obj); | |
6438 | return Py_BuildValue((char *)""); | |
6439 | } | |
6440 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) { | |
6441 | PyObject *resultobj; | |
6442 | wxTimer *arg1 = 0 ; | |
6443 | wxTimerRunner *result; | |
6444 | PyObject * obj0 = 0 ; | |
6445 | ||
6446 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
6447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6448 | if (arg1 == NULL) { | |
6449 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6450 | } | |
6451 | { | |
6452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6453 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
6454 | ||
6455 | wxPyEndAllowThreads(__tstate); | |
6456 | if (PyErr_Occurred()) SWIG_fail; | |
6457 | } | |
6458 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerRunner, 1); | |
6459 | return resultobj; | |
6460 | fail: | |
6461 | return NULL; | |
6462 | } | |
6463 | ||
6464 | ||
6465 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) { | |
6466 | PyObject *resultobj; | |
6467 | wxTimer *arg1 = 0 ; | |
6468 | int arg2 ; | |
423f194a | 6469 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6470 | wxTimerRunner *result; |
6471 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6472 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6473 | PyObject * obj2 = 0 ; |
6474 | ||
8edf1c75 | 6475 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
6476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6477 | if (arg1 == NULL) { | |
6478 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6479 | } | |
8edf1c75 RD |
6480 | { |
6481 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6482 | if (PyErr_Occurred()) SWIG_fail; | |
6483 | } | |
d14a1e28 | 6484 | if (obj2) { |
2dbef272 | 6485 | { |
8edf1c75 | 6486 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
6487 | if (PyErr_Occurred()) SWIG_fail; |
6488 | } | |
d14a1e28 RD |
6489 | } |
6490 | { | |
6491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6492 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
6493 | ||
6494 | wxPyEndAllowThreads(__tstate); | |
6495 | if (PyErr_Occurred()) SWIG_fail; | |
6496 | } | |
6497 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerRunner, 1); | |
6498 | return resultobj; | |
6499 | fail: | |
6500 | return NULL; | |
6501 | } | |
6502 | ||
6503 | ||
6504 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
6505 | int argc; | |
6506 | PyObject *argv[4]; | |
6507 | int ii; | |
6508 | ||
6509 | argc = PyObject_Length(args); | |
6510 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
6511 | argv[ii] = PyTuple_GetItem(args,ii); | |
6512 | } | |
6513 | if (argc == 1) { | |
6514 | int _v; | |
6515 | { | |
6516 | void *ptr; | |
6517 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6518 | _v = 0; | |
6519 | PyErr_Clear(); | |
6520 | } else { | |
6521 | _v = 1; | |
6522 | } | |
6523 | } | |
6524 | if (_v) { | |
6525 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
6526 | } | |
6527 | } | |
6528 | if ((argc >= 2) && (argc <= 3)) { | |
6529 | int _v; | |
6530 | { | |
6531 | void *ptr; | |
6532 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6533 | _v = 0; | |
6534 | PyErr_Clear(); | |
6535 | } else { | |
6536 | _v = 1; | |
6537 | } | |
6538 | } | |
6539 | if (_v) { | |
6540 | { | |
8edf1c75 | 6541 | SWIG_PyObj_AsInt(argv[1]); |
2dbef272 RD |
6542 | if (PyErr_Occurred()) { |
6543 | _v = 0; | |
6544 | PyErr_Clear(); | |
6545 | } else { | |
6546 | _v = 1; | |
6547 | } | |
d14a1e28 RD |
6548 | } |
6549 | if (_v) { | |
6550 | if (argc <= 2) { | |
6551 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6552 | } | |
6553 | { | |
8edf1c75 | 6554 | SWIG_PyObj_AsBool(argv[2]); |
2dbef272 RD |
6555 | if (PyErr_Occurred()) { |
6556 | _v = 0; | |
6557 | PyErr_Clear(); | |
6558 | } else { | |
6559 | _v = 1; | |
6560 | } | |
d14a1e28 RD |
6561 | } |
6562 | if (_v) { | |
6563 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6564 | } | |
6565 | } | |
6566 | } | |
6567 | } | |
6568 | ||
6569 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
6570 | return NULL; | |
6571 | } | |
6572 | ||
6573 | ||
6574 | static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6575 | PyObject *resultobj; | |
6576 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6577 | PyObject * obj0 = 0 ; | |
6578 | char *kwnames[] = { | |
6579 | (char *) "self", NULL | |
6580 | }; | |
6581 | ||
6582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
6583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerRunner,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6584 | { | |
6585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6586 | delete arg1; | |
6587 | ||
6588 | wxPyEndAllowThreads(__tstate); | |
6589 | if (PyErr_Occurred()) SWIG_fail; | |
6590 | } | |
6591 | Py_INCREF(Py_None); resultobj = Py_None; | |
6592 | return resultobj; | |
6593 | fail: | |
6594 | return NULL; | |
6595 | } | |
6596 | ||
6597 | ||
6598 | static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6599 | PyObject *resultobj; | |
6600 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6601 | int arg2 ; | |
423f194a | 6602 | bool arg3 = (bool) False ; |
d14a1e28 | 6603 | PyObject * obj0 = 0 ; |
8edf1c75 | 6604 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6605 | PyObject * obj2 = 0 ; |
6606 | char *kwnames[] = { | |
6607 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
6608 | }; | |
6609 | ||
8edf1c75 | 6610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerRunner,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6612 | { |
6613 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6614 | if (PyErr_Occurred()) SWIG_fail; | |
6615 | } | |
d14a1e28 | 6616 | if (obj2) { |
2dbef272 | 6617 | { |
8edf1c75 | 6618 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
6619 | if (PyErr_Occurred()) SWIG_fail; |
6620 | } | |
d14a1e28 RD |
6621 | } |
6622 | { | |
6623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6624 | (arg1)->Start(arg2,arg3); | |
6625 | ||
6626 | wxPyEndAllowThreads(__tstate); | |
6627 | if (PyErr_Occurred()) SWIG_fail; | |
6628 | } | |
6629 | Py_INCREF(Py_None); resultobj = Py_None; | |
6630 | return resultobj; | |
6631 | fail: | |
6632 | return NULL; | |
6633 | } | |
6634 | ||
6635 | ||
6636 | static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) { | |
6637 | PyObject *obj; | |
6638 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6639 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
6640 | Py_INCREF(obj); | |
6641 | return Py_BuildValue((char *)""); | |
6642 | } | |
6643 | static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6644 | PyObject *resultobj; | |
6645 | wxLog *result; | |
6646 | char *kwnames[] = { | |
6647 | NULL | |
6648 | }; | |
6649 | ||
6650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
6651 | { | |
6652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6653 | result = (wxLog *)new wxLog(); | |
6654 | ||
6655 | wxPyEndAllowThreads(__tstate); | |
6656 | if (PyErr_Occurred()) SWIG_fail; | |
6657 | } | |
6658 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 1); | |
6659 | return resultobj; | |
6660 | fail: | |
6661 | return NULL; | |
6662 | } | |
6663 | ||
6664 | ||
6665 | static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6666 | PyObject *resultobj; | |
6667 | bool result; | |
6668 | char *kwnames[] = { | |
6669 | NULL | |
6670 | }; | |
6671 | ||
6672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
6673 | { | |
6674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6675 | result = (bool)wxLog::IsEnabled(); | |
6676 | ||
6677 | wxPyEndAllowThreads(__tstate); | |
6678 | if (PyErr_Occurred()) SWIG_fail; | |
6679 | } | |
02a34c4c | 6680 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6681 | return resultobj; |
6682 | fail: | |
6683 | return NULL; | |
6684 | } | |
6685 | ||
6686 | ||
6687 | static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6688 | PyObject *resultobj; | |
423f194a | 6689 | bool arg1 = (bool) True ; |
d14a1e28 RD |
6690 | bool result; |
6691 | PyObject * obj0 = 0 ; | |
6692 | char *kwnames[] = { | |
6693 | (char *) "doIt", NULL | |
6694 | }; | |
6695 | ||
6696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
6697 | if (obj0) { | |
2dbef272 | 6698 | { |
8edf1c75 | 6699 | arg1 = (bool) SWIG_PyObj_AsBool(obj0); |
2dbef272 RD |
6700 | if (PyErr_Occurred()) SWIG_fail; |
6701 | } | |
d14a1e28 RD |
6702 | } |
6703 | { | |
6704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6705 | result = (bool)wxLog::EnableLogging(arg1); | |
6706 | ||
6707 | wxPyEndAllowThreads(__tstate); | |
6708 | if (PyErr_Occurred()) SWIG_fail; | |
6709 | } | |
02a34c4c | 6710 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6711 | return resultobj; |
6712 | fail: | |
6713 | return NULL; | |
6714 | } | |
6715 | ||
6716 | ||
6717 | static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6718 | PyObject *resultobj; | |
6719 | wxLogLevel arg1 ; | |
6720 | wxChar *arg2 = (wxChar *) 0 ; | |
6721 | time_t arg3 ; | |
6722 | PyObject * obj0 = 0 ; | |
6723 | PyObject * obj1 = 0 ; | |
6724 | PyObject * obj2 = 0 ; | |
6725 | char *kwnames[] = { | |
6726 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
6727 | }; | |
6728 | ||
6729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2dbef272 | 6730 | { |
8edf1c75 | 6731 | arg1 = (wxLogLevel) SWIG_PyObj_AsUnsignedLong(obj0); |
2dbef272 RD |
6732 | if (PyErr_Occurred()) SWIG_fail; |
6733 | } | |
d14a1e28 | 6734 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2dbef272 | 6735 | { |
8edf1c75 | 6736 | arg3 = (time_t) SWIG_PyObj_AsUnsignedInt(obj2); |
2dbef272 RD |
6737 | if (PyErr_Occurred()) SWIG_fail; |
6738 | } | |
d14a1e28 RD |
6739 | { |
6740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6741 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
6742 | ||
6743 | wxPyEndAllowThreads(__tstate); | |
6744 | if (PyErr_Occurred()) SWIG_fail; | |
6745 | } | |
6746 | Py_INCREF(Py_None); resultobj = Py_None; | |
6747 | return resultobj; | |
6748 | fail: | |
6749 | return NULL; | |
6750 | } | |
6751 | ||
6752 | ||
6753 | static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6754 | PyObject *resultobj; | |
6755 | wxLog *arg1 = (wxLog *) 0 ; | |
6756 | PyObject * obj0 = 0 ; | |
6757 | char *kwnames[] = { | |
6758 | (char *) "self", NULL | |
6759 | }; | |
6760 | ||
6761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
6762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6763 | { | |
6764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6765 | (arg1)->Flush(); | |
6766 | ||
6767 | wxPyEndAllowThreads(__tstate); | |
6768 | if (PyErr_Occurred()) SWIG_fail; | |
6769 | } | |
6770 | Py_INCREF(Py_None); resultobj = Py_None; | |
6771 | return resultobj; | |
6772 | fail: | |
6773 | return NULL; | |
6774 | } | |
6775 | ||
6776 | ||
6777 | static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6778 | PyObject *resultobj; | |
6779 | char *kwnames[] = { | |
6780 | NULL | |
6781 | }; | |
6782 | ||
6783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
6784 | { | |
6785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6786 | wxLog::FlushActive(); | |
6787 | ||
6788 | wxPyEndAllowThreads(__tstate); | |
6789 | if (PyErr_Occurred()) SWIG_fail; | |
6790 | } | |
6791 | Py_INCREF(Py_None); resultobj = Py_None; | |
6792 | return resultobj; | |
6793 | fail: | |
6794 | return NULL; | |
6795 | } | |
6796 | ||
6797 | ||
6798 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6799 | PyObject *resultobj; | |
6800 | wxLog *result; | |
6801 | char *kwnames[] = { | |
6802 | NULL | |
6803 | }; | |
6804 | ||
6805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
6806 | { | |
6807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6808 | result = (wxLog *)wxLog::GetActiveTarget(); | |
6809 | ||
6810 | wxPyEndAllowThreads(__tstate); | |
6811 | if (PyErr_Occurred()) SWIG_fail; | |
6812 | } | |
6813 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
6814 | return resultobj; | |
6815 | fail: | |
6816 | return NULL; | |
6817 | } | |
6818 | ||
6819 | ||
6820 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6821 | PyObject *resultobj; | |
6822 | wxLog *arg1 = (wxLog *) 0 ; | |
6823 | wxLog *result; | |
6824 | PyObject * obj0 = 0 ; | |
6825 | char *kwnames[] = { | |
6826 | (char *) "pLogger", NULL | |
6827 | }; | |
6828 | ||
6829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
6830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6831 | { | |
6832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6833 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
6834 | ||
6835 | wxPyEndAllowThreads(__tstate); | |
6836 | if (PyErr_Occurred()) SWIG_fail; | |
6837 | } | |
6838 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
6839 | return resultobj; | |
6840 | fail: | |
6841 | return NULL; | |
6842 | } | |
6843 | ||
6844 | ||
6845 | static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6846 | PyObject *resultobj; | |
6847 | char *kwnames[] = { | |
6848 | NULL | |
6849 | }; | |
6850 | ||
6851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
6852 | { | |
6853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6854 | wxLog::Suspend(); | |
6855 | ||
6856 | wxPyEndAllowThreads(__tstate); | |
6857 | if (PyErr_Occurred()) SWIG_fail; | |
6858 | } | |
6859 | Py_INCREF(Py_None); resultobj = Py_None; | |
6860 | return resultobj; | |
6861 | fail: | |
6862 | return NULL; | |
6863 | } | |
6864 | ||
6865 | ||
6866 | static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6867 | PyObject *resultobj; | |
6868 | char *kwnames[] = { | |
6869 | NULL | |
6870 | }; | |
6871 | ||
6872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
6873 | { | |
6874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6875 | wxLog::Resume(); | |
6876 | ||
6877 | wxPyEndAllowThreads(__tstate); | |
6878 | if (PyErr_Occurred()) SWIG_fail; | |
6879 | } | |
6880 | Py_INCREF(Py_None); resultobj = Py_None; | |
6881 | return resultobj; | |
6882 | fail: | |
6883 | return NULL; | |
6884 | } | |
6885 | ||
6886 | ||
6887 | static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6888 | PyObject *resultobj; | |
423f194a | 6889 | bool arg1 = (bool) True ; |
d14a1e28 RD |
6890 | PyObject * obj0 = 0 ; |
6891 | char *kwnames[] = { | |
6892 | (char *) "bVerbose", NULL | |
6893 | }; | |
6894 | ||
6895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
6896 | if (obj0) { | |
2dbef272 | 6897 | { |
8edf1c75 | 6898 | arg1 = (bool) SWIG_PyObj_AsBool(obj0); |
2dbef272 RD |
6899 | if (PyErr_Occurred()) SWIG_fail; |
6900 | } | |
d14a1e28 RD |
6901 | } |
6902 | { | |
6903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6904 | wxLog::SetVerbose(arg1); | |
6905 | ||
6906 | wxPyEndAllowThreads(__tstate); | |
6907 | if (PyErr_Occurred()) SWIG_fail; | |
6908 | } | |
6909 | Py_INCREF(Py_None); resultobj = Py_None; | |
6910 | return resultobj; | |
6911 | fail: | |
6912 | return NULL; | |
6913 | } | |
6914 | ||
6915 | ||
6916 | static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6917 | PyObject *resultobj; | |
6918 | wxLogLevel arg1 ; | |
6919 | PyObject * obj0 = 0 ; | |
6920 | char *kwnames[] = { | |
6921 | (char *) "logLevel", NULL | |
6922 | }; | |
6923 | ||
6924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
2dbef272 | 6925 | { |
8edf1c75 | 6926 | arg1 = (wxLogLevel) SWIG_PyObj_AsUnsignedLong(obj0); |
2dbef272 RD |
6927 | if (PyErr_Occurred()) SWIG_fail; |
6928 | } | |
d14a1e28 RD |
6929 | { |
6930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6931 | wxLog::SetLogLevel(arg1); | |
6932 | ||
6933 | wxPyEndAllowThreads(__tstate); | |
6934 | if (PyErr_Occurred()) SWIG_fail; | |
6935 | } | |
6936 | Py_INCREF(Py_None); resultobj = Py_None; | |
6937 | return resultobj; | |
6938 | fail: | |
6939 | return NULL; | |
6940 | } | |
6941 | ||
6942 | ||
6943 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6944 | PyObject *resultobj; | |
6945 | char *kwnames[] = { | |
6946 | NULL | |
6947 | }; | |
6948 | ||
6949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
6950 | { | |
6951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6952 | wxLog::DontCreateOnDemand(); | |
6953 | ||
6954 | wxPyEndAllowThreads(__tstate); | |
6955 | if (PyErr_Occurred()) SWIG_fail; | |
6956 | } | |
6957 | Py_INCREF(Py_None); resultobj = Py_None; | |
6958 | return resultobj; | |
6959 | fail: | |
6960 | return NULL; | |
6961 | } | |
6962 | ||
6963 | ||
6964 | static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6965 | PyObject *resultobj; | |
6966 | wxTraceMask arg1 ; | |
6967 | PyObject * obj0 = 0 ; | |
6968 | char *kwnames[] = { | |
6969 | (char *) "ulMask", NULL | |
6970 | }; | |
6971 | ||
6972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
2dbef272 | 6973 | { |
8edf1c75 | 6974 | arg1 = (wxTraceMask) SWIG_PyObj_AsUnsignedLong(obj0); |
2dbef272 RD |
6975 | if (PyErr_Occurred()) SWIG_fail; |
6976 | } | |
d14a1e28 RD |
6977 | { |
6978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6979 | wxLog::SetTraceMask(arg1); | |
6980 | ||
6981 | wxPyEndAllowThreads(__tstate); | |
6982 | if (PyErr_Occurred()) SWIG_fail; | |
6983 | } | |
6984 | Py_INCREF(Py_None); resultobj = Py_None; | |
6985 | return resultobj; | |
6986 | fail: | |
6987 | return NULL; | |
6988 | } | |
6989 | ||
6990 | ||
6991 | static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6992 | PyObject *resultobj; | |
6993 | wxString *arg1 = 0 ; | |
423f194a | 6994 | bool temp1 = False ; |
d14a1e28 RD |
6995 | PyObject * obj0 = 0 ; |
6996 | char *kwnames[] = { | |
6997 | (char *) "str", NULL | |
6998 | }; | |
6999 | ||
7000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
7001 | { | |
7002 | arg1 = wxString_in_helper(obj0); | |
7003 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7004 | temp1 = True; |
d14a1e28 RD |
7005 | } |
7006 | { | |
7007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7008 | wxLog::AddTraceMask((wxString const &)*arg1); | |
7009 | ||
7010 | wxPyEndAllowThreads(__tstate); | |
7011 | if (PyErr_Occurred()) SWIG_fail; | |
7012 | } | |
7013 | Py_INCREF(Py_None); resultobj = Py_None; | |
7014 | { | |
7015 | if (temp1) | |
7016 | delete arg1; | |
7017 | } | |
7018 | return resultobj; | |
7019 | fail: | |
7020 | { | |
7021 | if (temp1) | |
7022 | delete arg1; | |
7023 | } | |
7024 | return NULL; | |
7025 | } | |
7026 | ||
7027 | ||
7028 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7029 | PyObject *resultobj; | |
7030 | wxString *arg1 = 0 ; | |
423f194a | 7031 | bool temp1 = False ; |
d14a1e28 RD |
7032 | PyObject * obj0 = 0 ; |
7033 | char *kwnames[] = { | |
7034 | (char *) "str", NULL | |
7035 | }; | |
7036 | ||
7037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
7038 | { | |
7039 | arg1 = wxString_in_helper(obj0); | |
7040 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7041 | temp1 = True; |
d14a1e28 RD |
7042 | } |
7043 | { | |
7044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7045 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
7046 | ||
7047 | wxPyEndAllowThreads(__tstate); | |
7048 | if (PyErr_Occurred()) SWIG_fail; | |
7049 | } | |
7050 | Py_INCREF(Py_None); resultobj = Py_None; | |
7051 | { | |
7052 | if (temp1) | |
7053 | delete arg1; | |
7054 | } | |
7055 | return resultobj; | |
7056 | fail: | |
7057 | { | |
7058 | if (temp1) | |
7059 | delete arg1; | |
7060 | } | |
7061 | return NULL; | |
7062 | } | |
7063 | ||
7064 | ||
7065 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7066 | PyObject *resultobj; | |
7067 | char *kwnames[] = { | |
7068 | NULL | |
7069 | }; | |
7070 | ||
7071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
7072 | { | |
7073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7074 | wxLog::ClearTraceMasks(); | |
7075 | ||
7076 | wxPyEndAllowThreads(__tstate); | |
7077 | if (PyErr_Occurred()) SWIG_fail; | |
7078 | } | |
7079 | Py_INCREF(Py_None); resultobj = Py_None; | |
7080 | return resultobj; | |
7081 | fail: | |
7082 | return NULL; | |
7083 | } | |
7084 | ||
7085 | ||
7086 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7087 | PyObject *resultobj; | |
7088 | wxArrayString *result; | |
7089 | char *kwnames[] = { | |
7090 | NULL | |
7091 | }; | |
7092 | ||
7093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
7094 | { | |
7095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7096 | { | |
7097 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
7098 | result = (wxArrayString *) &_result_ref; | |
7099 | } | |
7100 | ||
7101 | wxPyEndAllowThreads(__tstate); | |
7102 | if (PyErr_Occurred()) SWIG_fail; | |
7103 | } | |
7104 | { | |
7105 | resultobj = wxArrayString2PyList_helper(*result); | |
7106 | } | |
7107 | return resultobj; | |
7108 | fail: | |
7109 | return NULL; | |
7110 | } | |
7111 | ||
7112 | ||
7113 | static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7114 | PyObject *resultobj; | |
7115 | wxChar *arg1 = (wxChar *) 0 ; | |
7116 | PyObject * obj0 = 0 ; | |
7117 | char *kwnames[] = { | |
7118 | (char *) "ts", NULL | |
7119 | }; | |
7120 | ||
7121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
7122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7123 | { | |
7124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7125 | wxLog::SetTimestamp((wxChar const *)arg1); | |
7126 | ||
7127 | wxPyEndAllowThreads(__tstate); | |
7128 | if (PyErr_Occurred()) SWIG_fail; | |
7129 | } | |
7130 | Py_INCREF(Py_None); resultobj = Py_None; | |
7131 | return resultobj; | |
7132 | fail: | |
7133 | return NULL; | |
7134 | } | |
7135 | ||
7136 | ||
7137 | static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7138 | PyObject *resultobj; | |
7139 | bool result; | |
7140 | char *kwnames[] = { | |
7141 | NULL | |
7142 | }; | |
7143 | ||
7144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
7145 | { | |
7146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7147 | result = (bool)wxLog::GetVerbose(); | |
7148 | ||
7149 | wxPyEndAllowThreads(__tstate); | |
7150 | if (PyErr_Occurred()) SWIG_fail; | |
7151 | } | |
02a34c4c | 7152 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7153 | return resultobj; |
7154 | fail: | |
7155 | return NULL; | |
7156 | } | |
7157 | ||
7158 | ||
7159 | static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7160 | PyObject *resultobj; | |
7161 | wxTraceMask result; | |
7162 | char *kwnames[] = { | |
7163 | NULL | |
7164 | }; | |
7165 | ||
7166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
7167 | { | |
7168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7169 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
7170 | ||
7171 | wxPyEndAllowThreads(__tstate); | |
7172 | if (PyErr_Occurred()) SWIG_fail; | |
7173 | } | |
8edf1c75 | 7174 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7175 | return resultobj; |
7176 | fail: | |
7177 | return NULL; | |
7178 | } | |
7179 | ||
7180 | ||
7181 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7182 | PyObject *resultobj; | |
7183 | wxChar *arg1 = (wxChar *) 0 ; | |
7184 | bool result; | |
7185 | PyObject * obj0 = 0 ; | |
7186 | char *kwnames[] = { | |
7187 | (char *) "mask", NULL | |
7188 | }; | |
7189 | ||
7190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
7191 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7192 | { | |
7193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7194 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
7195 | ||
7196 | wxPyEndAllowThreads(__tstate); | |
7197 | if (PyErr_Occurred()) SWIG_fail; | |
7198 | } | |
02a34c4c | 7199 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7200 | return resultobj; |
7201 | fail: | |
7202 | return NULL; | |
7203 | } | |
7204 | ||
7205 | ||
7206 | static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7207 | PyObject *resultobj; | |
7208 | wxLogLevel result; | |
7209 | char *kwnames[] = { | |
7210 | NULL | |
7211 | }; | |
7212 | ||
7213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
7214 | { | |
7215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7216 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
7217 | ||
7218 | wxPyEndAllowThreads(__tstate); | |
7219 | if (PyErr_Occurred()) SWIG_fail; | |
7220 | } | |
8edf1c75 | 7221 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7222 | return resultobj; |
7223 | fail: | |
7224 | return NULL; | |
7225 | } | |
7226 | ||
7227 | ||
7228 | static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7229 | PyObject *resultobj; | |
7230 | wxChar *result; | |
7231 | char *kwnames[] = { | |
7232 | NULL | |
7233 | }; | |
7234 | ||
7235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
7236 | { | |
7237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7238 | result = (wxChar *)wxLog::GetTimestamp(); | |
7239 | ||
7240 | wxPyEndAllowThreads(__tstate); | |
7241 | if (PyErr_Occurred()) SWIG_fail; | |
7242 | } | |
7243 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChar, 0); | |
7244 | return resultobj; | |
7245 | fail: | |
7246 | return NULL; | |
7247 | } | |
7248 | ||
7249 | ||
7250 | static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7251 | PyObject *resultobj; | |
7252 | wxString result; | |
7253 | char *kwnames[] = { | |
7254 | NULL | |
7255 | }; | |
7256 | ||
7257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
7258 | { | |
7259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7260 | result = Log_TimeStamp(); | |
7261 | ||
7262 | wxPyEndAllowThreads(__tstate); | |
7263 | if (PyErr_Occurred()) SWIG_fail; | |
7264 | } | |
7265 | { | |
7266 | #if wxUSE_UNICODE | |
7267 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7268 | #else | |
7269 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7270 | #endif | |
7271 | } | |
7272 | return resultobj; | |
7273 | fail: | |
7274 | return NULL; | |
7275 | } | |
7276 | ||
7277 | ||
7278 | static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7279 | PyObject *resultobj; | |
7280 | wxLog *arg1 = (wxLog *) 0 ; | |
7281 | PyObject * obj0 = 0 ; | |
7282 | char *kwnames[] = { | |
7283 | (char *) "self", NULL | |
7284 | }; | |
7285 | ||
7286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
7287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7288 | { | |
7289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7290 | wxLog_Destroy(arg1); | |
7291 | ||
7292 | wxPyEndAllowThreads(__tstate); | |
7293 | if (PyErr_Occurred()) SWIG_fail; | |
7294 | } | |
7295 | Py_INCREF(Py_None); resultobj = Py_None; | |
7296 | return resultobj; | |
7297 | fail: | |
7298 | return NULL; | |
7299 | } | |
7300 | ||
7301 | ||
7302 | static PyObject * Log_swigregister(PyObject *self, PyObject *args) { | |
7303 | PyObject *obj; | |
7304 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7305 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
7306 | Py_INCREF(obj); | |
7307 | return Py_BuildValue((char *)""); | |
7308 | } | |
7309 | static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7310 | PyObject *resultobj; | |
7311 | wxLogStderr *result; | |
7312 | char *kwnames[] = { | |
7313 | NULL | |
7314 | }; | |
7315 | ||
7316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
7317 | { | |
7318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7319 | result = (wxLogStderr *)new wxLogStderr(); | |
7320 | ||
7321 | wxPyEndAllowThreads(__tstate); | |
7322 | if (PyErr_Occurred()) SWIG_fail; | |
7323 | } | |
7324 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogStderr, 1); | |
7325 | return resultobj; | |
7326 | fail: | |
7327 | return NULL; | |
7328 | } | |
7329 | ||
7330 | ||
7331 | static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) { | |
7332 | PyObject *obj; | |
7333 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7334 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
7335 | Py_INCREF(obj); | |
7336 | return Py_BuildValue((char *)""); | |
7337 | } | |
7338 | static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7339 | PyObject *resultobj; | |
7340 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7341 | wxLogTextCtrl *result; | |
7342 | PyObject * obj0 = 0 ; | |
7343 | char *kwnames[] = { | |
7344 | (char *) "pTextCtrl", NULL | |
7345 | }; | |
7346 | ||
7347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
7348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7349 | { | |
7350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7351 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
7352 | ||
7353 | wxPyEndAllowThreads(__tstate); | |
7354 | if (PyErr_Occurred()) SWIG_fail; | |
7355 | } | |
7356 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogTextCtrl, 1); | |
7357 | return resultobj; | |
7358 | fail: | |
7359 | return NULL; | |
7360 | } | |
7361 | ||
7362 | ||
7363 | static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) { | |
7364 | PyObject *obj; | |
7365 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7366 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
7367 | Py_INCREF(obj); | |
7368 | return Py_BuildValue((char *)""); | |
7369 | } | |
7370 | static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7371 | PyObject *resultobj; | |
7372 | wxLogGui *result; | |
7373 | char *kwnames[] = { | |
7374 | NULL | |
7375 | }; | |
7376 | ||
7377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
7378 | { | |
7379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7380 | result = (wxLogGui *)new wxLogGui(); | |
7381 | ||
7382 | wxPyEndAllowThreads(__tstate); | |
7383 | if (PyErr_Occurred()) SWIG_fail; | |
7384 | } | |
7385 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogGui, 1); | |
7386 | return resultobj; | |
7387 | fail: | |
7388 | return NULL; | |
7389 | } | |
7390 | ||
7391 | ||
7392 | static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) { | |
7393 | PyObject *obj; | |
7394 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7395 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
7396 | Py_INCREF(obj); | |
7397 | return Py_BuildValue((char *)""); | |
7398 | } | |
7399 | static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7400 | PyObject *resultobj; | |
7401 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7402 | wxString *arg2 = 0 ; | |
423f194a RD |
7403 | bool arg3 = (bool) True ; |
7404 | bool arg4 = (bool) True ; | |
d14a1e28 | 7405 | wxLogWindow *result; |
423f194a | 7406 | bool temp2 = False ; |
d14a1e28 RD |
7407 | PyObject * obj0 = 0 ; |
7408 | PyObject * obj1 = 0 ; | |
7409 | PyObject * obj2 = 0 ; | |
7410 | PyObject * obj3 = 0 ; | |
7411 | char *kwnames[] = { | |
7412 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
7413 | }; | |
7414 | ||
7415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7416 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7417 | { | |
7418 | arg2 = wxString_in_helper(obj1); | |
7419 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7420 | temp2 = True; |
d14a1e28 RD |
7421 | } |
7422 | if (obj2) { | |
2dbef272 | 7423 | { |
8edf1c75 | 7424 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
7425 | if (PyErr_Occurred()) SWIG_fail; |
7426 | } | |
d14a1e28 RD |
7427 | } |
7428 | if (obj3) { | |
2dbef272 | 7429 | { |
8edf1c75 | 7430 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
2dbef272 RD |
7431 | if (PyErr_Occurred()) SWIG_fail; |
7432 | } | |
d14a1e28 RD |
7433 | } |
7434 | { | |
7435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7436 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
7437 | ||
7438 | wxPyEndAllowThreads(__tstate); | |
7439 | if (PyErr_Occurred()) SWIG_fail; | |
7440 | } | |
7441 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogWindow, 1); | |
7442 | { | |
7443 | if (temp2) | |
7444 | delete arg2; | |
7445 | } | |
7446 | return resultobj; | |
7447 | fail: | |
7448 | { | |
7449 | if (temp2) | |
7450 | delete arg2; | |
7451 | } | |
7452 | return NULL; | |
7453 | } | |
7454 | ||
7455 | ||
7456 | static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7457 | PyObject *resultobj; | |
7458 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
423f194a | 7459 | bool arg2 = (bool) True ; |
d14a1e28 RD |
7460 | PyObject * obj0 = 0 ; |
7461 | PyObject * obj1 = 0 ; | |
7462 | char *kwnames[] = { | |
7463 | (char *) "self",(char *) "bShow", NULL | |
7464 | }; | |
7465 | ||
7466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
7467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7468 | if (obj1) { | |
2dbef272 | 7469 | { |
8edf1c75 | 7470 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
7471 | if (PyErr_Occurred()) SWIG_fail; |
7472 | } | |
d14a1e28 RD |
7473 | } |
7474 | { | |
7475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7476 | (arg1)->Show(arg2); | |
7477 | ||
7478 | wxPyEndAllowThreads(__tstate); | |
7479 | if (PyErr_Occurred()) SWIG_fail; | |
7480 | } | |
7481 | Py_INCREF(Py_None); resultobj = Py_None; | |
7482 | return resultobj; | |
7483 | fail: | |
7484 | return NULL; | |
7485 | } | |
7486 | ||
7487 | ||
7488 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7489 | PyObject *resultobj; | |
7490 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7491 | wxFrame *result; | |
7492 | PyObject * obj0 = 0 ; | |
7493 | char *kwnames[] = { | |
7494 | (char *) "self", NULL | |
7495 | }; | |
7496 | ||
7497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
7498 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7499 | { | |
7500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7501 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
7502 | ||
7503 | wxPyEndAllowThreads(__tstate); | |
7504 | if (PyErr_Occurred()) SWIG_fail; | |
7505 | } | |
7506 | { | |
7507 | resultobj = wxPyMake_wxObject(result); | |
7508 | } | |
7509 | return resultobj; | |
7510 | fail: | |
7511 | return NULL; | |
7512 | } | |
7513 | ||
7514 | ||
7515 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7516 | PyObject *resultobj; | |
7517 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7518 | wxLog *result; | |
7519 | PyObject * obj0 = 0 ; | |
7520 | char *kwnames[] = { | |
7521 | (char *) "self", NULL | |
7522 | }; | |
7523 | ||
7524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
7525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7526 | { | |
7527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7528 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
7529 | ||
7530 | wxPyEndAllowThreads(__tstate); | |
7531 | if (PyErr_Occurred()) SWIG_fail; | |
7532 | } | |
7533 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
7534 | return resultobj; | |
7535 | fail: | |
7536 | return NULL; | |
7537 | } | |
7538 | ||
7539 | ||
7540 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7541 | PyObject *resultobj; | |
7542 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7543 | bool result; | |
7544 | PyObject * obj0 = 0 ; | |
7545 | char *kwnames[] = { | |
7546 | (char *) "self", NULL | |
7547 | }; | |
7548 | ||
7549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7551 | { | |
7552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7553 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
7554 | ||
7555 | wxPyEndAllowThreads(__tstate); | |
7556 | if (PyErr_Occurred()) SWIG_fail; | |
7557 | } | |
02a34c4c | 7558 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7559 | return resultobj; |
7560 | fail: | |
7561 | return NULL; | |
7562 | } | |
7563 | ||
7564 | ||
7565 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7566 | PyObject *resultobj; | |
7567 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7568 | bool arg2 ; | |
7569 | PyObject * obj0 = 0 ; | |
7570 | PyObject * obj1 = 0 ; | |
7571 | char *kwnames[] = { | |
7572 | (char *) "self",(char *) "bDoPass", NULL | |
7573 | }; | |
7574 | ||
7575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 7577 | { |
8edf1c75 | 7578 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
7579 | if (PyErr_Occurred()) SWIG_fail; |
7580 | } | |
d14a1e28 RD |
7581 | { |
7582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7583 | (arg1)->PassMessages(arg2); | |
7584 | ||
7585 | wxPyEndAllowThreads(__tstate); | |
7586 | if (PyErr_Occurred()) SWIG_fail; | |
7587 | } | |
7588 | Py_INCREF(Py_None); resultobj = Py_None; | |
7589 | return resultobj; | |
7590 | fail: | |
7591 | return NULL; | |
7592 | } | |
7593 | ||
7594 | ||
7595 | static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) { | |
7596 | PyObject *obj; | |
7597 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7598 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
7599 | Py_INCREF(obj); | |
7600 | return Py_BuildValue((char *)""); | |
7601 | } | |
7602 | static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7603 | PyObject *resultobj; | |
7604 | wxLog *arg1 = (wxLog *) 0 ; | |
7605 | wxLogChain *result; | |
7606 | PyObject * obj0 = 0 ; | |
7607 | char *kwnames[] = { | |
7608 | (char *) "logger", NULL | |
7609 | }; | |
7610 | ||
7611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
7612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7613 | { | |
7614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7615 | result = (wxLogChain *)new wxLogChain(arg1); | |
7616 | ||
7617 | wxPyEndAllowThreads(__tstate); | |
7618 | if (PyErr_Occurred()) SWIG_fail; | |
7619 | } | |
7620 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogChain, 1); | |
7621 | return resultobj; | |
7622 | fail: | |
7623 | return NULL; | |
7624 | } | |
7625 | ||
7626 | ||
7627 | static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7628 | PyObject *resultobj; | |
7629 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7630 | wxLog *arg2 = (wxLog *) 0 ; | |
7631 | PyObject * obj0 = 0 ; | |
7632 | PyObject * obj1 = 0 ; | |
7633 | char *kwnames[] = { | |
7634 | (char *) "self",(char *) "logger", NULL | |
7635 | }; | |
7636 | ||
7637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
7638 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7639 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7640 | { | |
7641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7642 | (arg1)->SetLog(arg2); | |
7643 | ||
7644 | wxPyEndAllowThreads(__tstate); | |
7645 | if (PyErr_Occurred()) SWIG_fail; | |
7646 | } | |
7647 | Py_INCREF(Py_None); resultobj = Py_None; | |
7648 | return resultobj; | |
7649 | fail: | |
7650 | return NULL; | |
7651 | } | |
7652 | ||
7653 | ||
7654 | static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7655 | PyObject *resultobj; | |
7656 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7657 | bool arg2 ; | |
7658 | PyObject * obj0 = 0 ; | |
7659 | PyObject * obj1 = 0 ; | |
7660 | char *kwnames[] = { | |
7661 | (char *) "self",(char *) "bDoPass", NULL | |
7662 | }; | |
7663 | ||
7664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 7666 | { |
8edf1c75 | 7667 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
7668 | if (PyErr_Occurred()) SWIG_fail; |
7669 | } | |
d14a1e28 RD |
7670 | { |
7671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7672 | (arg1)->PassMessages(arg2); | |
7673 | ||
7674 | wxPyEndAllowThreads(__tstate); | |
7675 | if (PyErr_Occurred()) SWIG_fail; | |
7676 | } | |
7677 | Py_INCREF(Py_None); resultobj = Py_None; | |
7678 | return resultobj; | |
7679 | fail: | |
7680 | return NULL; | |
7681 | } | |
7682 | ||
7683 | ||
7684 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7685 | PyObject *resultobj; | |
7686 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7687 | bool result; | |
7688 | PyObject * obj0 = 0 ; | |
7689 | char *kwnames[] = { | |
7690 | (char *) "self", NULL | |
7691 | }; | |
7692 | ||
7693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7695 | { | |
7696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7697 | result = (bool)(arg1)->IsPassingMessages(); | |
7698 | ||
7699 | wxPyEndAllowThreads(__tstate); | |
7700 | if (PyErr_Occurred()) SWIG_fail; | |
7701 | } | |
02a34c4c | 7702 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7703 | return resultobj; |
7704 | fail: | |
7705 | return NULL; | |
7706 | } | |
7707 | ||
7708 | ||
7709 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7710 | PyObject *resultobj; | |
7711 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7712 | wxLog *result; | |
7713 | PyObject * obj0 = 0 ; | |
7714 | char *kwnames[] = { | |
7715 | (char *) "self", NULL | |
7716 | }; | |
7717 | ||
7718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
7719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7720 | { | |
7721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7722 | result = (wxLog *)(arg1)->GetOldLog(); | |
7723 | ||
7724 | wxPyEndAllowThreads(__tstate); | |
7725 | if (PyErr_Occurred()) SWIG_fail; | |
7726 | } | |
7727 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
7728 | return resultobj; | |
7729 | fail: | |
7730 | return NULL; | |
7731 | } | |
7732 | ||
7733 | ||
7734 | static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) { | |
7735 | PyObject *obj; | |
7736 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7737 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
7738 | Py_INCREF(obj); | |
7739 | return Py_BuildValue((char *)""); | |
7740 | } | |
7741 | static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7742 | PyObject *resultobj; | |
7743 | unsigned long result; | |
7744 | char *kwnames[] = { | |
7745 | NULL | |
7746 | }; | |
7747 | ||
7748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
7749 | { | |
7750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7751 | result = (unsigned long)wxSysErrorCode(); | |
7752 | ||
7753 | wxPyEndAllowThreads(__tstate); | |
7754 | if (PyErr_Occurred()) SWIG_fail; | |
7755 | } | |
8edf1c75 | 7756 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7757 | return resultobj; |
7758 | fail: | |
7759 | return NULL; | |
7760 | } | |
7761 | ||
7762 | ||
7763 | static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7764 | PyObject *resultobj; | |
7765 | unsigned long arg1 = (unsigned long) 0 ; | |
7766 | wxString result; | |
7767 | PyObject * obj0 = 0 ; | |
7768 | char *kwnames[] = { | |
7769 | (char *) "nErrCode", NULL | |
7770 | }; | |
7771 | ||
7772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
7773 | if (obj0) { | |
2dbef272 | 7774 | { |
8edf1c75 | 7775 | arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0); |
2dbef272 RD |
7776 | if (PyErr_Occurred()) SWIG_fail; |
7777 | } | |
d14a1e28 RD |
7778 | } |
7779 | { | |
7780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7781 | result = wxSysErrorMsg(arg1); | |
7782 | ||
7783 | wxPyEndAllowThreads(__tstate); | |
7784 | if (PyErr_Occurred()) SWIG_fail; | |
7785 | } | |
7786 | { | |
7787 | #if wxUSE_UNICODE | |
7788 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7789 | #else | |
7790 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7791 | #endif | |
7792 | } | |
7793 | return resultobj; | |
7794 | fail: | |
7795 | return NULL; | |
7796 | } | |
7797 | ||
7798 | ||
7799 | static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7800 | PyObject *resultobj; | |
7801 | wxString *arg1 = 0 ; | |
423f194a | 7802 | bool temp1 = False ; |
d14a1e28 RD |
7803 | PyObject * obj0 = 0 ; |
7804 | char *kwnames[] = { | |
7805 | (char *) "msg", NULL | |
7806 | }; | |
7807 | ||
7808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
7809 | { | |
7810 | arg1 = wxString_in_helper(obj0); | |
7811 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7812 | temp1 = True; |
d14a1e28 RD |
7813 | } |
7814 | { | |
7815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7816 | wxLogFatalError((wxString const &)*arg1); | |
7817 | ||
7818 | wxPyEndAllowThreads(__tstate); | |
7819 | if (PyErr_Occurred()) SWIG_fail; | |
7820 | } | |
7821 | Py_INCREF(Py_None); resultobj = Py_None; | |
7822 | { | |
7823 | if (temp1) | |
7824 | delete arg1; | |
7825 | } | |
7826 | return resultobj; | |
7827 | fail: | |
7828 | { | |
7829 | if (temp1) | |
7830 | delete arg1; | |
7831 | } | |
7832 | return NULL; | |
7833 | } | |
7834 | ||
7835 | ||
7836 | static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7837 | PyObject *resultobj; | |
7838 | wxString *arg1 = 0 ; | |
423f194a | 7839 | bool temp1 = False ; |
d14a1e28 RD |
7840 | PyObject * obj0 = 0 ; |
7841 | char *kwnames[] = { | |
7842 | (char *) "msg", NULL | |
7843 | }; | |
7844 | ||
7845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
7846 | { | |
7847 | arg1 = wxString_in_helper(obj0); | |
7848 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7849 | temp1 = True; |
d14a1e28 RD |
7850 | } |
7851 | { | |
7852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7853 | wxLogError((wxString const &)*arg1); | |
7854 | ||
7855 | wxPyEndAllowThreads(__tstate); | |
7856 | if (PyErr_Occurred()) SWIG_fail; | |
7857 | } | |
7858 | Py_INCREF(Py_None); resultobj = Py_None; | |
7859 | { | |
7860 | if (temp1) | |
7861 | delete arg1; | |
7862 | } | |
7863 | return resultobj; | |
7864 | fail: | |
7865 | { | |
7866 | if (temp1) | |
7867 | delete arg1; | |
7868 | } | |
7869 | return NULL; | |
7870 | } | |
7871 | ||
7872 | ||
7873 | static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7874 | PyObject *resultobj; | |
7875 | wxString *arg1 = 0 ; | |
423f194a | 7876 | bool temp1 = False ; |
d14a1e28 RD |
7877 | PyObject * obj0 = 0 ; |
7878 | char *kwnames[] = { | |
7879 | (char *) "msg", NULL | |
7880 | }; | |
7881 | ||
7882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
7883 | { | |
7884 | arg1 = wxString_in_helper(obj0); | |
7885 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7886 | temp1 = True; |
d14a1e28 RD |
7887 | } |
7888 | { | |
7889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7890 | wxLogWarning((wxString const &)*arg1); | |
7891 | ||
7892 | wxPyEndAllowThreads(__tstate); | |
7893 | if (PyErr_Occurred()) SWIG_fail; | |
7894 | } | |
7895 | Py_INCREF(Py_None); resultobj = Py_None; | |
7896 | { | |
7897 | if (temp1) | |
7898 | delete arg1; | |
7899 | } | |
7900 | return resultobj; | |
7901 | fail: | |
7902 | { | |
7903 | if (temp1) | |
7904 | delete arg1; | |
7905 | } | |
7906 | return NULL; | |
7907 | } | |
7908 | ||
7909 | ||
7910 | static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7911 | PyObject *resultobj; | |
7912 | wxString *arg1 = 0 ; | |
423f194a | 7913 | bool temp1 = False ; |
d14a1e28 RD |
7914 | PyObject * obj0 = 0 ; |
7915 | char *kwnames[] = { | |
7916 | (char *) "msg", NULL | |
7917 | }; | |
7918 | ||
7919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
7920 | { | |
7921 | arg1 = wxString_in_helper(obj0); | |
7922 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7923 | temp1 = True; |
d14a1e28 RD |
7924 | } |
7925 | { | |
7926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7927 | wxLogMessage((wxString const &)*arg1); | |
7928 | ||
7929 | wxPyEndAllowThreads(__tstate); | |
7930 | if (PyErr_Occurred()) SWIG_fail; | |
7931 | } | |
7932 | Py_INCREF(Py_None); resultobj = Py_None; | |
7933 | { | |
7934 | if (temp1) | |
7935 | delete arg1; | |
7936 | } | |
7937 | return resultobj; | |
7938 | fail: | |
7939 | { | |
7940 | if (temp1) | |
7941 | delete arg1; | |
7942 | } | |
7943 | return NULL; | |
7944 | } | |
7945 | ||
7946 | ||
7947 | static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7948 | PyObject *resultobj; | |
7949 | wxString *arg1 = 0 ; | |
423f194a | 7950 | bool temp1 = False ; |
d14a1e28 RD |
7951 | PyObject * obj0 = 0 ; |
7952 | char *kwnames[] = { | |
7953 | (char *) "msg", NULL | |
7954 | }; | |
7955 | ||
7956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
7957 | { | |
7958 | arg1 = wxString_in_helper(obj0); | |
7959 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7960 | temp1 = True; |
d14a1e28 RD |
7961 | } |
7962 | { | |
7963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7964 | wxLogInfo((wxString const &)*arg1); | |
7965 | ||
7966 | wxPyEndAllowThreads(__tstate); | |
7967 | if (PyErr_Occurred()) SWIG_fail; | |
7968 | } | |
7969 | Py_INCREF(Py_None); resultobj = Py_None; | |
7970 | { | |
7971 | if (temp1) | |
7972 | delete arg1; | |
7973 | } | |
7974 | return resultobj; | |
7975 | fail: | |
7976 | { | |
7977 | if (temp1) | |
7978 | delete arg1; | |
7979 | } | |
7980 | return NULL; | |
7981 | } | |
7982 | ||
7983 | ||
7984 | static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7985 | PyObject *resultobj; | |
7986 | wxString *arg1 = 0 ; | |
423f194a | 7987 | bool temp1 = False ; |
d14a1e28 RD |
7988 | PyObject * obj0 = 0 ; |
7989 | char *kwnames[] = { | |
7990 | (char *) "msg", NULL | |
7991 | }; | |
7992 | ||
7993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
7994 | { | |
7995 | arg1 = wxString_in_helper(obj0); | |
7996 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7997 | temp1 = True; |
d14a1e28 RD |
7998 | } |
7999 | { | |
8000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8001 | wxLogDebug((wxString const &)*arg1); | |
8002 | ||
8003 | wxPyEndAllowThreads(__tstate); | |
8004 | if (PyErr_Occurred()) SWIG_fail; | |
8005 | } | |
8006 | Py_INCREF(Py_None); resultobj = Py_None; | |
8007 | { | |
8008 | if (temp1) | |
8009 | delete arg1; | |
8010 | } | |
8011 | return resultobj; | |
8012 | fail: | |
8013 | { | |
8014 | if (temp1) | |
8015 | delete arg1; | |
8016 | } | |
8017 | return NULL; | |
8018 | } | |
8019 | ||
8020 | ||
8021 | static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8022 | PyObject *resultobj; | |
8023 | wxString *arg1 = 0 ; | |
423f194a | 8024 | bool temp1 = False ; |
d14a1e28 RD |
8025 | PyObject * obj0 = 0 ; |
8026 | char *kwnames[] = { | |
8027 | (char *) "msg", NULL | |
8028 | }; | |
8029 | ||
8030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
8031 | { | |
8032 | arg1 = wxString_in_helper(obj0); | |
8033 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8034 | temp1 = True; |
d14a1e28 RD |
8035 | } |
8036 | { | |
8037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8038 | wxLogVerbose((wxString const &)*arg1); | |
8039 | ||
8040 | wxPyEndAllowThreads(__tstate); | |
8041 | if (PyErr_Occurred()) SWIG_fail; | |
8042 | } | |
8043 | Py_INCREF(Py_None); resultobj = Py_None; | |
8044 | { | |
8045 | if (temp1) | |
8046 | delete arg1; | |
8047 | } | |
8048 | return resultobj; | |
8049 | fail: | |
8050 | { | |
8051 | if (temp1) | |
8052 | delete arg1; | |
8053 | } | |
8054 | return NULL; | |
8055 | } | |
8056 | ||
8057 | ||
8058 | static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8059 | PyObject *resultobj; | |
8060 | wxString *arg1 = 0 ; | |
423f194a | 8061 | bool temp1 = False ; |
d14a1e28 RD |
8062 | PyObject * obj0 = 0 ; |
8063 | char *kwnames[] = { | |
8064 | (char *) "msg", NULL | |
8065 | }; | |
8066 | ||
8067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
8068 | { | |
8069 | arg1 = wxString_in_helper(obj0); | |
8070 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8071 | temp1 = True; |
d14a1e28 RD |
8072 | } |
8073 | { | |
8074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8075 | wxLogStatus((wxString const &)*arg1); | |
8076 | ||
8077 | wxPyEndAllowThreads(__tstate); | |
8078 | if (PyErr_Occurred()) SWIG_fail; | |
8079 | } | |
8080 | Py_INCREF(Py_None); resultobj = Py_None; | |
8081 | { | |
8082 | if (temp1) | |
8083 | delete arg1; | |
8084 | } | |
8085 | return resultobj; | |
8086 | fail: | |
8087 | { | |
8088 | if (temp1) | |
8089 | delete arg1; | |
8090 | } | |
8091 | return NULL; | |
8092 | } | |
8093 | ||
8094 | ||
8095 | static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8096 | PyObject *resultobj; | |
8097 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8098 | wxString *arg2 = 0 ; | |
423f194a | 8099 | bool temp2 = False ; |
d14a1e28 RD |
8100 | PyObject * obj0 = 0 ; |
8101 | PyObject * obj1 = 0 ; | |
8102 | char *kwnames[] = { | |
8103 | (char *) "pFrame",(char *) "msg", NULL | |
8104 | }; | |
8105 | ||
8106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
8107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8108 | { | |
8109 | arg2 = wxString_in_helper(obj1); | |
8110 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8111 | temp2 = True; |
d14a1e28 RD |
8112 | } |
8113 | { | |
8114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8115 | wxLogStatus(arg1,(wxString const &)*arg2); | |
8116 | ||
8117 | wxPyEndAllowThreads(__tstate); | |
8118 | if (PyErr_Occurred()) SWIG_fail; | |
8119 | } | |
8120 | Py_INCREF(Py_None); resultobj = Py_None; | |
8121 | { | |
8122 | if (temp2) | |
8123 | delete arg2; | |
8124 | } | |
8125 | return resultobj; | |
8126 | fail: | |
8127 | { | |
8128 | if (temp2) | |
8129 | delete arg2; | |
8130 | } | |
8131 | return NULL; | |
8132 | } | |
8133 | ||
8134 | ||
8135 | static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8136 | PyObject *resultobj; | |
8137 | wxString *arg1 = 0 ; | |
423f194a | 8138 | bool temp1 = False ; |
d14a1e28 RD |
8139 | PyObject * obj0 = 0 ; |
8140 | char *kwnames[] = { | |
8141 | (char *) "msg", NULL | |
8142 | }; | |
8143 | ||
8144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
8145 | { | |
8146 | arg1 = wxString_in_helper(obj0); | |
8147 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8148 | temp1 = True; |
d14a1e28 RD |
8149 | } |
8150 | { | |
8151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8152 | wxLogSysError((wxString const &)*arg1); | |
8153 | ||
8154 | wxPyEndAllowThreads(__tstate); | |
8155 | if (PyErr_Occurred()) SWIG_fail; | |
8156 | } | |
8157 | Py_INCREF(Py_None); resultobj = Py_None; | |
8158 | { | |
8159 | if (temp1) | |
8160 | delete arg1; | |
8161 | } | |
8162 | return resultobj; | |
8163 | fail: | |
8164 | { | |
8165 | if (temp1) | |
8166 | delete arg1; | |
8167 | } | |
8168 | return NULL; | |
8169 | } | |
8170 | ||
8171 | ||
0f774bef | 8172 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 | 8173 | PyObject *resultobj; |
0f774bef RD |
8174 | unsigned long arg1 ; |
8175 | wxString *arg2 = 0 ; | |
8176 | bool temp2 = False ; | |
d14a1e28 | 8177 | PyObject * obj0 = 0 ; |
0f774bef | 8178 | PyObject * obj1 = 0 ; |
d14a1e28 | 8179 | |
0f774bef | 8180 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
2dbef272 | 8181 | { |
8edf1c75 | 8182 | arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0); |
2dbef272 RD |
8183 | if (PyErr_Occurred()) SWIG_fail; |
8184 | } | |
d14a1e28 | 8185 | { |
0f774bef RD |
8186 | arg2 = wxString_in_helper(obj1); |
8187 | if (arg2 == NULL) SWIG_fail; | |
8188 | temp2 = True; | |
d14a1e28 RD |
8189 | } |
8190 | { | |
8191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0f774bef | 8192 | wxLogTrace(arg1,(wxString const &)*arg2); |
d14a1e28 RD |
8193 | |
8194 | wxPyEndAllowThreads(__tstate); | |
8195 | if (PyErr_Occurred()) SWIG_fail; | |
8196 | } | |
8197 | Py_INCREF(Py_None); resultobj = Py_None; | |
8198 | { | |
0f774bef RD |
8199 | if (temp2) |
8200 | delete arg2; | |
d14a1e28 RD |
8201 | } |
8202 | return resultobj; | |
8203 | fail: | |
8204 | { | |
0f774bef RD |
8205 | if (temp2) |
8206 | delete arg2; | |
d14a1e28 RD |
8207 | } |
8208 | return NULL; | |
8209 | } | |
8210 | ||
8211 | ||
0f774bef | 8212 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
8213 | PyObject *resultobj; |
8214 | wxString *arg1 = 0 ; | |
8215 | wxString *arg2 = 0 ; | |
423f194a RD |
8216 | bool temp1 = False ; |
8217 | bool temp2 = False ; | |
d14a1e28 RD |
8218 | PyObject * obj0 = 0 ; |
8219 | PyObject * obj1 = 0 ; | |
d14a1e28 | 8220 | |
0f774bef | 8221 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
8222 | { |
8223 | arg1 = wxString_in_helper(obj0); | |
8224 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8225 | temp1 = True; |
d14a1e28 RD |
8226 | } |
8227 | { | |
8228 | arg2 = wxString_in_helper(obj1); | |
8229 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8230 | temp2 = True; |
d14a1e28 RD |
8231 | } |
8232 | { | |
8233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8234 | wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); | |
8235 | ||
8236 | wxPyEndAllowThreads(__tstate); | |
8237 | if (PyErr_Occurred()) SWIG_fail; | |
8238 | } | |
8239 | Py_INCREF(Py_None); resultobj = Py_None; | |
8240 | { | |
8241 | if (temp1) | |
8242 | delete arg1; | |
8243 | } | |
8244 | { | |
8245 | if (temp2) | |
8246 | delete arg2; | |
8247 | } | |
8248 | return resultobj; | |
8249 | fail: | |
8250 | { | |
8251 | if (temp1) | |
8252 | delete arg1; | |
8253 | } | |
8254 | { | |
8255 | if (temp2) | |
8256 | delete arg2; | |
8257 | } | |
8258 | return NULL; | |
8259 | } | |
8260 | ||
8261 | ||
0f774bef RD |
8262 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { |
8263 | int argc; | |
8264 | PyObject *argv[3]; | |
8265 | int ii; | |
8266 | ||
8267 | argc = PyObject_Length(args); | |
8268 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
8269 | argv[ii] = PyTuple_GetItem(args,ii); | |
8270 | } | |
8271 | if (argc == 2) { | |
8272 | int _v; | |
8273 | { | |
02a34c4c | 8274 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
0f774bef RD |
8275 | } |
8276 | if (_v) { | |
8277 | { | |
02a34c4c | 8278 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
0f774bef RD |
8279 | } |
8280 | if (_v) { | |
8281 | return _wrap_LogTrace__SWIG_1(self,args); | |
8282 | } | |
8283 | } | |
8284 | } | |
8285 | if (argc == 2) { | |
8286 | int _v; | |
8287 | { | |
8edf1c75 | 8288 | SWIG_PyObj_AsUnsignedLong(argv[0]); |
2dbef272 RD |
8289 | if (PyErr_Occurred()) { |
8290 | _v = 0; | |
8291 | PyErr_Clear(); | |
8292 | } else { | |
8293 | _v = 1; | |
8294 | } | |
0f774bef RD |
8295 | } |
8296 | if (_v) { | |
8297 | { | |
02a34c4c | 8298 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
0f774bef RD |
8299 | } |
8300 | if (_v) { | |
8301 | return _wrap_LogTrace__SWIG_0(self,args); | |
8302 | } | |
8303 | } | |
8304 | } | |
8305 | ||
8306 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
8307 | return NULL; | |
8308 | } | |
8309 | ||
8310 | ||
d14a1e28 RD |
8311 | static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { |
8312 | PyObject *resultobj; | |
8313 | unsigned long arg1 ; | |
8314 | wxString *arg2 = 0 ; | |
423f194a | 8315 | bool temp2 = False ; |
d14a1e28 RD |
8316 | PyObject * obj0 = 0 ; |
8317 | PyObject * obj1 = 0 ; | |
8318 | char *kwnames[] = { | |
8319 | (char *) "level",(char *) "msg", NULL | |
8320 | }; | |
8321 | ||
8322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
2dbef272 | 8323 | { |
8edf1c75 | 8324 | arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0); |
2dbef272 RD |
8325 | if (PyErr_Occurred()) SWIG_fail; |
8326 | } | |
d14a1e28 RD |
8327 | { |
8328 | arg2 = wxString_in_helper(obj1); | |
8329 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8330 | temp2 = True; |
d14a1e28 RD |
8331 | } |
8332 | { | |
8333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8334 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
8335 | ||
8336 | wxPyEndAllowThreads(__tstate); | |
8337 | if (PyErr_Occurred()) SWIG_fail; | |
8338 | } | |
8339 | Py_INCREF(Py_None); resultobj = Py_None; | |
8340 | { | |
8341 | if (temp2) | |
8342 | delete arg2; | |
8343 | } | |
8344 | return resultobj; | |
8345 | fail: | |
8346 | { | |
8347 | if (temp2) | |
8348 | delete arg2; | |
8349 | } | |
8350 | return NULL; | |
8351 | } | |
8352 | ||
8353 | ||
8354 | static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8355 | PyObject *resultobj; | |
8356 | wxString *arg1 = 0 ; | |
8357 | wxString *arg2 = 0 ; | |
423f194a RD |
8358 | bool temp1 = False ; |
8359 | bool temp2 = False ; | |
d14a1e28 RD |
8360 | PyObject * obj0 = 0 ; |
8361 | PyObject * obj1 = 0 ; | |
8362 | char *kwnames[] = { | |
8363 | (char *) "title",(char *) "text", NULL | |
8364 | }; | |
8365 | ||
8366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
8367 | { | |
8368 | arg1 = wxString_in_helper(obj0); | |
8369 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8370 | temp1 = True; |
d14a1e28 RD |
8371 | } |
8372 | { | |
8373 | arg2 = wxString_in_helper(obj1); | |
8374 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8375 | temp2 = True; |
d14a1e28 RD |
8376 | } |
8377 | { | |
8378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8379 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
8380 | ||
8381 | wxPyEndAllowThreads(__tstate); | |
8382 | if (PyErr_Occurred()) SWIG_fail; | |
8383 | } | |
8384 | Py_INCREF(Py_None); resultobj = Py_None; | |
8385 | { | |
8386 | if (temp1) | |
8387 | delete arg1; | |
8388 | } | |
8389 | { | |
8390 | if (temp2) | |
8391 | delete arg2; | |
8392 | } | |
8393 | return resultobj; | |
8394 | fail: | |
8395 | { | |
8396 | if (temp1) | |
8397 | delete arg1; | |
8398 | } | |
8399 | { | |
8400 | if (temp2) | |
8401 | delete arg2; | |
8402 | } | |
8403 | return NULL; | |
8404 | } | |
8405 | ||
8406 | ||
8407 | static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8408 | PyObject *resultobj; | |
8409 | wxLogNull *result; | |
8410 | char *kwnames[] = { | |
8411 | NULL | |
8412 | }; | |
8413 | ||
8414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
8415 | { | |
8416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8417 | result = (wxLogNull *)new wxLogNull(); | |
8418 | ||
8419 | wxPyEndAllowThreads(__tstate); | |
8420 | if (PyErr_Occurred()) SWIG_fail; | |
8421 | } | |
8422 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogNull, 1); | |
8423 | return resultobj; | |
8424 | fail: | |
8425 | return NULL; | |
8426 | } | |
8427 | ||
8428 | ||
8429 | static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8430 | PyObject *resultobj; | |
8431 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
8432 | PyObject * obj0 = 0 ; | |
8433 | char *kwnames[] = { | |
8434 | (char *) "self", NULL | |
8435 | }; | |
8436 | ||
8437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
8438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogNull,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8439 | { | |
8440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8441 | delete arg1; | |
8442 | ||
8443 | wxPyEndAllowThreads(__tstate); | |
8444 | if (PyErr_Occurred()) SWIG_fail; | |
8445 | } | |
8446 | Py_INCREF(Py_None); resultobj = Py_None; | |
8447 | return resultobj; | |
8448 | fail: | |
8449 | return NULL; | |
8450 | } | |
8451 | ||
8452 | ||
8453 | static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) { | |
8454 | PyObject *obj; | |
8455 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8456 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
8457 | Py_INCREF(obj); | |
8458 | return Py_BuildValue((char *)""); | |
8459 | } | |
8460 | static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8461 | PyObject *resultobj; | |
8462 | wxPyLog *result; | |
8463 | char *kwnames[] = { | |
8464 | NULL | |
8465 | }; | |
8466 | ||
8467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
8468 | { | |
8469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8470 | result = (wxPyLog *)new wxPyLog(); | |
8471 | ||
8472 | wxPyEndAllowThreads(__tstate); | |
8473 | if (PyErr_Occurred()) SWIG_fail; | |
8474 | } | |
8475 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyLog, 1); | |
8476 | return resultobj; | |
8477 | fail: | |
8478 | return NULL; | |
8479 | } | |
8480 | ||
8481 | ||
8482 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8483 | PyObject *resultobj; | |
8484 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
8485 | PyObject *arg2 = (PyObject *) 0 ; | |
8486 | PyObject *arg3 = (PyObject *) 0 ; | |
8487 | PyObject * obj0 = 0 ; | |
8488 | PyObject * obj1 = 0 ; | |
8489 | PyObject * obj2 = 0 ; | |
8490 | char *kwnames[] = { | |
8491 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8492 | }; | |
8493 | ||
8494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8496 | arg2 = obj1; | |
8497 | arg3 = obj2; | |
8498 | { | |
8499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8500 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8501 | ||
8502 | wxPyEndAllowThreads(__tstate); | |
8503 | if (PyErr_Occurred()) SWIG_fail; | |
8504 | } | |
8505 | Py_INCREF(Py_None); resultobj = Py_None; | |
8506 | return resultobj; | |
8507 | fail: | |
8508 | return NULL; | |
8509 | } | |
8510 | ||
8511 | ||
8512 | static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) { | |
8513 | PyObject *obj; | |
8514 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8515 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
8516 | Py_INCREF(obj); | |
8517 | return Py_BuildValue((char *)""); | |
8518 | } | |
8519 | static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8520 | PyObject *resultobj; | |
8521 | int arg1 ; | |
8522 | int arg2 = (int) wxSIGTERM ; | |
8523 | int result; | |
8edf1c75 RD |
8524 | PyObject * obj0 = 0 ; |
8525 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8526 | char *kwnames[] = { |
8527 | (char *) "pid",(char *) "sig", NULL | |
8528 | }; | |
8529 | ||
8edf1c75 RD |
8530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail; |
8531 | { | |
8532 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
8533 | if (PyErr_Occurred()) SWIG_fail; | |
8534 | } | |
8535 | if (obj1) { | |
8536 | { | |
8537 | arg2 = (wxSignal) SWIG_PyObj_AsInt(obj1); | |
8538 | if (PyErr_Occurred()) SWIG_fail; | |
8539 | } | |
8540 | } | |
d14a1e28 RD |
8541 | { |
8542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8543 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
8544 | ||
8545 | wxPyEndAllowThreads(__tstate); | |
8546 | if (PyErr_Occurred()) SWIG_fail; | |
8547 | } | |
8edf1c75 | 8548 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
8549 | return resultobj; |
8550 | fail: | |
8551 | return NULL; | |
8552 | } | |
8553 | ||
8554 | ||
8555 | static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8556 | PyObject *resultobj; | |
8557 | int arg1 ; | |
8558 | bool result; | |
8edf1c75 | 8559 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
8560 | char *kwnames[] = { |
8561 | (char *) "pid", NULL | |
8562 | }; | |
8563 | ||
8edf1c75 RD |
8564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; |
8565 | { | |
8566 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
8567 | if (PyErr_Occurred()) SWIG_fail; | |
8568 | } | |
d14a1e28 RD |
8569 | { |
8570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8571 | result = (bool)wxPyProcess::Exists(arg1); | |
8572 | ||
8573 | wxPyEndAllowThreads(__tstate); | |
8574 | if (PyErr_Occurred()) SWIG_fail; | |
8575 | } | |
02a34c4c | 8576 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8577 | return resultobj; |
8578 | fail: | |
8579 | return NULL; | |
8580 | } | |
8581 | ||
8582 | ||
8583 | static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8584 | PyObject *resultobj; | |
8585 | wxString *arg1 = 0 ; | |
8586 | int arg2 = (int) wxEXEC_ASYNC ; | |
8587 | wxPyProcess *result; | |
423f194a | 8588 | bool temp1 = False ; |
d14a1e28 | 8589 | PyObject * obj0 = 0 ; |
8edf1c75 | 8590 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8591 | char *kwnames[] = { |
8592 | (char *) "cmd",(char *) "flags", NULL | |
8593 | }; | |
8594 | ||
8edf1c75 | 8595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
8596 | { |
8597 | arg1 = wxString_in_helper(obj0); | |
8598 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8599 | temp1 = True; |
d14a1e28 | 8600 | } |
8edf1c75 RD |
8601 | if (obj1) { |
8602 | { | |
8603 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8604 | if (PyErr_Occurred()) SWIG_fail; | |
8605 | } | |
8606 | } | |
d14a1e28 RD |
8607 | { |
8608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8609 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
8610 | ||
8611 | wxPyEndAllowThreads(__tstate); | |
8612 | if (PyErr_Occurred()) SWIG_fail; | |
8613 | } | |
8614 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyProcess, 0); | |
8615 | { | |
8616 | if (temp1) | |
8617 | delete arg1; | |
8618 | } | |
8619 | return resultobj; | |
8620 | fail: | |
8621 | { | |
8622 | if (temp1) | |
8623 | delete arg1; | |
8624 | } | |
8625 | return NULL; | |
8626 | } | |
8627 | ||
8628 | ||
8629 | static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8630 | PyObject *resultobj; | |
8631 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
8632 | int arg2 = (int) -1 ; | |
8633 | wxPyProcess *result; | |
8634 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8635 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8636 | char *kwnames[] = { |
8637 | (char *) "parent",(char *) "id", NULL | |
8638 | }; | |
8639 | ||
8edf1c75 | 8640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
8641 | if (obj0) { |
8642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8643 | } | |
8edf1c75 RD |
8644 | if (obj1) { |
8645 | { | |
8646 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8647 | if (PyErr_Occurred()) SWIG_fail; | |
8648 | } | |
8649 | } | |
d14a1e28 RD |
8650 | { |
8651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8652 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
8653 | ||
8654 | wxPyEndAllowThreads(__tstate); | |
8655 | if (PyErr_Occurred()) SWIG_fail; | |
8656 | } | |
8657 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyProcess, 1); | |
8658 | return resultobj; | |
8659 | fail: | |
8660 | return NULL; | |
8661 | } | |
8662 | ||
8663 | ||
8664 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8665 | PyObject *resultobj; | |
8666 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8667 | PyObject *arg2 = (PyObject *) 0 ; | |
8668 | PyObject *arg3 = (PyObject *) 0 ; | |
8669 | PyObject * obj0 = 0 ; | |
8670 | PyObject * obj1 = 0 ; | |
8671 | PyObject * obj2 = 0 ; | |
8672 | char *kwnames[] = { | |
8673 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8674 | }; | |
8675 | ||
8676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8678 | arg2 = obj1; | |
8679 | arg3 = obj2; | |
8680 | { | |
8681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8682 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8683 | ||
8684 | wxPyEndAllowThreads(__tstate); | |
8685 | if (PyErr_Occurred()) SWIG_fail; | |
8686 | } | |
8687 | Py_INCREF(Py_None); resultobj = Py_None; | |
8688 | return resultobj; | |
8689 | fail: | |
8690 | return NULL; | |
8691 | } | |
8692 | ||
8693 | ||
8694 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8695 | PyObject *resultobj; | |
8696 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8697 | int arg2 ; | |
8698 | int arg3 ; | |
8699 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8700 | PyObject * obj1 = 0 ; |
8701 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8702 | char *kwnames[] = { |
8703 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
8704 | }; | |
8705 | ||
8edf1c75 | 8706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8708 | { |
8709 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8710 | if (PyErr_Occurred()) SWIG_fail; | |
8711 | } | |
8712 | { | |
8713 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8714 | if (PyErr_Occurred()) SWIG_fail; | |
8715 | } | |
d14a1e28 RD |
8716 | { |
8717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8718 | (arg1)->base_OnTerminate(arg2,arg3); | |
8719 | ||
8720 | wxPyEndAllowThreads(__tstate); | |
8721 | if (PyErr_Occurred()) SWIG_fail; | |
8722 | } | |
8723 | Py_INCREF(Py_None); resultobj = Py_None; | |
8724 | return resultobj; | |
8725 | fail: | |
8726 | return NULL; | |
8727 | } | |
8728 | ||
8729 | ||
8730 | static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8731 | PyObject *resultobj; | |
8732 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8733 | PyObject * obj0 = 0 ; | |
8734 | char *kwnames[] = { | |
8735 | (char *) "self", NULL | |
8736 | }; | |
8737 | ||
8738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
8739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8740 | { | |
8741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8742 | (arg1)->Redirect(); | |
8743 | ||
8744 | wxPyEndAllowThreads(__tstate); | |
8745 | if (PyErr_Occurred()) SWIG_fail; | |
8746 | } | |
8747 | Py_INCREF(Py_None); resultobj = Py_None; | |
8748 | return resultobj; | |
8749 | fail: | |
8750 | return NULL; | |
8751 | } | |
8752 | ||
8753 | ||
8754 | static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8755 | PyObject *resultobj; | |
8756 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8757 | bool result; | |
8758 | PyObject * obj0 = 0 ; | |
8759 | char *kwnames[] = { | |
8760 | (char *) "self", NULL | |
8761 | }; | |
8762 | ||
8763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
8764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8765 | { | |
8766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8767 | result = (bool)(arg1)->IsRedirected(); | |
8768 | ||
8769 | wxPyEndAllowThreads(__tstate); | |
8770 | if (PyErr_Occurred()) SWIG_fail; | |
8771 | } | |
02a34c4c | 8772 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8773 | return resultobj; |
8774 | fail: | |
8775 | return NULL; | |
8776 | } | |
8777 | ||
8778 | ||
8779 | static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8780 | PyObject *resultobj; | |
8781 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8782 | PyObject * obj0 = 0 ; | |
8783 | char *kwnames[] = { | |
8784 | (char *) "self", NULL | |
8785 | }; | |
8786 | ||
8787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
8788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8789 | { | |
8790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8791 | (arg1)->Detach(); | |
8792 | ||
8793 | wxPyEndAllowThreads(__tstate); | |
8794 | if (PyErr_Occurred()) SWIG_fail; | |
8795 | } | |
8796 | Py_INCREF(Py_None); resultobj = Py_None; | |
8797 | return resultobj; | |
8798 | fail: | |
8799 | return NULL; | |
8800 | } | |
8801 | ||
8802 | ||
8803 | static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8804 | PyObject *resultobj; | |
8805 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8806 | wxInputStream *result; | |
8807 | PyObject * obj0 = 0 ; | |
8808 | char *kwnames[] = { | |
8809 | (char *) "self", NULL | |
8810 | }; | |
8811 | ||
8812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
8813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8814 | { | |
8815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8816 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
8817 | ||
8818 | wxPyEndAllowThreads(__tstate); | |
8819 | if (PyErr_Occurred()) SWIG_fail; | |
8820 | } | |
8821 | { | |
8822 | wxPyInputStream * _ptr = NULL; | |
8823 | ||
8824 | if (result) { | |
8825 | _ptr = new wxPyInputStream(result); | |
8826 | } | |
423f194a | 8827 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
8828 | } |
8829 | return resultobj; | |
8830 | fail: | |
8831 | return NULL; | |
8832 | } | |
8833 | ||
8834 | ||
8835 | static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8836 | PyObject *resultobj; | |
8837 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8838 | wxInputStream *result; | |
8839 | PyObject * obj0 = 0 ; | |
8840 | char *kwnames[] = { | |
8841 | (char *) "self", NULL | |
8842 | }; | |
8843 | ||
8844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
8845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8846 | { | |
8847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8848 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
8849 | ||
8850 | wxPyEndAllowThreads(__tstate); | |
8851 | if (PyErr_Occurred()) SWIG_fail; | |
8852 | } | |
8853 | { | |
8854 | wxPyInputStream * _ptr = NULL; | |
8855 | ||
8856 | if (result) { | |
8857 | _ptr = new wxPyInputStream(result); | |
8858 | } | |
423f194a | 8859 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
8860 | } |
8861 | return resultobj; | |
8862 | fail: | |
8863 | return NULL; | |
8864 | } | |
8865 | ||
8866 | ||
8867 | static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8868 | PyObject *resultobj; | |
8869 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8870 | wxOutputStream *result; | |
8871 | PyObject * obj0 = 0 ; | |
8872 | char *kwnames[] = { | |
8873 | (char *) "self", NULL | |
8874 | }; | |
8875 | ||
8876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
8877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8878 | { | |
8879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8880 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
8881 | ||
8882 | wxPyEndAllowThreads(__tstate); | |
8883 | if (PyErr_Occurred()) SWIG_fail; | |
8884 | } | |
8885 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxOutputStream, 0); | |
8886 | return resultobj; | |
8887 | fail: | |
8888 | return NULL; | |
8889 | } | |
8890 | ||
8891 | ||
8892 | static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8893 | PyObject *resultobj; | |
8894 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8895 | PyObject * obj0 = 0 ; | |
8896 | char *kwnames[] = { | |
8897 | (char *) "self", NULL | |
8898 | }; | |
8899 | ||
8900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
8901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8902 | { | |
8903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8904 | (arg1)->CloseOutput(); | |
8905 | ||
8906 | wxPyEndAllowThreads(__tstate); | |
8907 | if (PyErr_Occurred()) SWIG_fail; | |
8908 | } | |
8909 | Py_INCREF(Py_None); resultobj = Py_None; | |
8910 | return resultobj; | |
8911 | fail: | |
8912 | return NULL; | |
8913 | } | |
8914 | ||
8915 | ||
8916 | static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8917 | PyObject *resultobj; | |
8918 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8919 | bool result; | |
8920 | PyObject * obj0 = 0 ; | |
8921 | char *kwnames[] = { | |
8922 | (char *) "self", NULL | |
8923 | }; | |
8924 | ||
8925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
8926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8927 | { | |
8928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8929 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
8930 | ||
8931 | wxPyEndAllowThreads(__tstate); | |
8932 | if (PyErr_Occurred()) SWIG_fail; | |
8933 | } | |
02a34c4c | 8934 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8935 | return resultobj; |
8936 | fail: | |
8937 | return NULL; | |
8938 | } | |
8939 | ||
8940 | ||
8941 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8942 | PyObject *resultobj; | |
8943 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8944 | bool result; | |
8945 | PyObject * obj0 = 0 ; | |
8946 | char *kwnames[] = { | |
8947 | (char *) "self", NULL | |
8948 | }; | |
8949 | ||
8950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
8951 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8952 | { | |
8953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8954 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
8955 | ||
8956 | wxPyEndAllowThreads(__tstate); | |
8957 | if (PyErr_Occurred()) SWIG_fail; | |
8958 | } | |
02a34c4c | 8959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8960 | return resultobj; |
8961 | fail: | |
8962 | return NULL; | |
8963 | } | |
8964 | ||
8965 | ||
8966 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8967 | PyObject *resultobj; | |
8968 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8969 | bool result; | |
8970 | PyObject * obj0 = 0 ; | |
8971 | char *kwnames[] = { | |
8972 | (char *) "self", NULL | |
8973 | }; | |
8974 | ||
8975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
8976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8977 | { | |
8978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8979 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
8980 | ||
8981 | wxPyEndAllowThreads(__tstate); | |
8982 | if (PyErr_Occurred()) SWIG_fail; | |
8983 | } | |
02a34c4c | 8984 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8985 | return resultobj; |
8986 | fail: | |
8987 | return NULL; | |
8988 | } | |
8989 | ||
8990 | ||
8991 | static PyObject * Process_swigregister(PyObject *self, PyObject *args) { | |
8992 | PyObject *obj; | |
8993 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8994 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
8995 | Py_INCREF(obj); | |
8996 | return Py_BuildValue((char *)""); | |
8997 | } | |
8998 | static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8999 | PyObject *resultobj; | |
9000 | int arg1 = (int) 0 ; | |
9001 | int arg2 = (int) 0 ; | |
9002 | int arg3 = (int) 0 ; | |
9003 | wxProcessEvent *result; | |
8edf1c75 RD |
9004 | PyObject * obj0 = 0 ; |
9005 | PyObject * obj1 = 0 ; | |
9006 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9007 | char *kwnames[] = { |
9008 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
9009 | }; | |
9010 | ||
8edf1c75 RD |
9011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
9012 | if (obj0) { | |
9013 | { | |
9014 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9015 | if (PyErr_Occurred()) SWIG_fail; | |
9016 | } | |
9017 | } | |
9018 | if (obj1) { | |
9019 | { | |
9020 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9021 | if (PyErr_Occurred()) SWIG_fail; | |
9022 | } | |
9023 | } | |
9024 | if (obj2) { | |
9025 | { | |
9026 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9027 | if (PyErr_Occurred()) SWIG_fail; | |
9028 | } | |
9029 | } | |
d14a1e28 RD |
9030 | { |
9031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9032 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
9033 | ||
9034 | wxPyEndAllowThreads(__tstate); | |
9035 | if (PyErr_Occurred()) SWIG_fail; | |
9036 | } | |
9037 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxProcessEvent, 1); | |
9038 | return resultobj; | |
9039 | fail: | |
9040 | return NULL; | |
9041 | } | |
9042 | ||
9043 | ||
9044 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9045 | PyObject *resultobj; | |
9046 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9047 | int result; | |
9048 | PyObject * obj0 = 0 ; | |
9049 | char *kwnames[] = { | |
9050 | (char *) "self", NULL | |
9051 | }; | |
9052 | ||
9053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
9054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9055 | { | |
9056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9057 | result = (int)(arg1)->GetPid(); | |
9058 | ||
9059 | wxPyEndAllowThreads(__tstate); | |
9060 | if (PyErr_Occurred()) SWIG_fail; | |
9061 | } | |
8edf1c75 | 9062 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9063 | return resultobj; |
9064 | fail: | |
9065 | return NULL; | |
9066 | } | |
9067 | ||
9068 | ||
9069 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9070 | PyObject *resultobj; | |
9071 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9072 | int result; | |
9073 | PyObject * obj0 = 0 ; | |
9074 | char *kwnames[] = { | |
9075 | (char *) "self", NULL | |
9076 | }; | |
9077 | ||
9078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
9079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9080 | { | |
9081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9082 | result = (int)(arg1)->GetExitCode(); | |
9083 | ||
9084 | wxPyEndAllowThreads(__tstate); | |
9085 | if (PyErr_Occurred()) SWIG_fail; | |
9086 | } | |
8edf1c75 | 9087 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9088 | return resultobj; |
9089 | fail: | |
9090 | return NULL; | |
9091 | } | |
9092 | ||
9093 | ||
9094 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9095 | PyObject *resultobj; | |
9096 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9097 | int arg2 ; | |
9098 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9099 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9100 | char *kwnames[] = { |
9101 | (char *) "self",(char *) "m_pid", NULL | |
9102 | }; | |
9103 | ||
8edf1c75 | 9104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9106 | { |
9107 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9108 | if (PyErr_Occurred()) SWIG_fail; | |
9109 | } | |
d14a1e28 RD |
9110 | if (arg1) (arg1)->m_pid = arg2; |
9111 | ||
9112 | Py_INCREF(Py_None); resultobj = Py_None; | |
9113 | return resultobj; | |
9114 | fail: | |
9115 | return NULL; | |
9116 | } | |
9117 | ||
9118 | ||
9119 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9120 | PyObject *resultobj; | |
9121 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9122 | int result; | |
9123 | PyObject * obj0 = 0 ; | |
9124 | char *kwnames[] = { | |
9125 | (char *) "self", NULL | |
9126 | }; | |
9127 | ||
9128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
9129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9130 | result = (int) ((arg1)->m_pid); | |
9131 | ||
8edf1c75 | 9132 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9133 | return resultobj; |
9134 | fail: | |
9135 | return NULL; | |
9136 | } | |
9137 | ||
9138 | ||
9139 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9140 | PyObject *resultobj; | |
9141 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9142 | int arg2 ; | |
9143 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9144 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9145 | char *kwnames[] = { |
9146 | (char *) "self",(char *) "m_exitcode", NULL | |
9147 | }; | |
9148 | ||
8edf1c75 | 9149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9151 | { |
9152 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9153 | if (PyErr_Occurred()) SWIG_fail; | |
9154 | } | |
d14a1e28 RD |
9155 | if (arg1) (arg1)->m_exitcode = arg2; |
9156 | ||
9157 | Py_INCREF(Py_None); resultobj = Py_None; | |
9158 | return resultobj; | |
9159 | fail: | |
9160 | return NULL; | |
9161 | } | |
9162 | ||
9163 | ||
9164 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9165 | PyObject *resultobj; | |
9166 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9167 | int result; | |
9168 | PyObject * obj0 = 0 ; | |
9169 | char *kwnames[] = { | |
9170 | (char *) "self", NULL | |
9171 | }; | |
9172 | ||
9173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
9174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9175 | result = (int) ((arg1)->m_exitcode); | |
9176 | ||
8edf1c75 | 9177 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9178 | return resultobj; |
9179 | fail: | |
9180 | return NULL; | |
9181 | } | |
9182 | ||
9183 | ||
9184 | static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) { | |
9185 | PyObject *obj; | |
9186 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9187 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
9188 | Py_INCREF(obj); | |
9189 | return Py_BuildValue((char *)""); | |
9190 | } | |
9191 | static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9192 | PyObject *resultobj; | |
9193 | wxString *arg1 = 0 ; | |
9194 | int arg2 = (int) wxEXEC_ASYNC ; | |
9195 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
9196 | long result; | |
423f194a | 9197 | bool temp1 = False ; |
d14a1e28 | 9198 | PyObject * obj0 = 0 ; |
8edf1c75 | 9199 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9200 | PyObject * obj2 = 0 ; |
9201 | char *kwnames[] = { | |
9202 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
9203 | }; | |
9204 | ||
8edf1c75 | 9205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
9206 | { |
9207 | arg1 = wxString_in_helper(obj0); | |
9208 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9209 | temp1 = True; |
d14a1e28 | 9210 | } |
8edf1c75 RD |
9211 | if (obj1) { |
9212 | { | |
9213 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9214 | if (PyErr_Occurred()) SWIG_fail; | |
9215 | } | |
9216 | } | |
d14a1e28 RD |
9217 | if (obj2) { |
9218 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9219 | } | |
9220 | { | |
9221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9222 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
9223 | ||
9224 | wxPyEndAllowThreads(__tstate); | |
9225 | if (PyErr_Occurred()) SWIG_fail; | |
9226 | } | |
8edf1c75 | 9227 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
9228 | { |
9229 | if (temp1) | |
9230 | delete arg1; | |
9231 | } | |
9232 | return resultobj; | |
9233 | fail: | |
9234 | { | |
9235 | if (temp1) | |
9236 | delete arg1; | |
9237 | } | |
9238 | return NULL; | |
9239 | } | |
9240 | ||
9241 | ||
9242 | static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9243 | PyObject *resultobj; | |
9244 | int arg1 = (int) wxJOYSTICK1 ; | |
9245 | wxJoystick *result; | |
8edf1c75 | 9246 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9247 | char *kwnames[] = { |
9248 | (char *) "joystick", NULL | |
9249 | }; | |
9250 | ||
8edf1c75 RD |
9251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; |
9252 | if (obj0) { | |
9253 | { | |
9254 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
9255 | if (PyErr_Occurred()) SWIG_fail; | |
9256 | } | |
9257 | } | |
d14a1e28 RD |
9258 | { |
9259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9260 | result = (wxJoystick *)new wxJoystick(arg1); | |
9261 | ||
9262 | wxPyEndAllowThreads(__tstate); | |
9263 | if (PyErr_Occurred()) SWIG_fail; | |
9264 | } | |
9265 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJoystick, 1); | |
9266 | return resultobj; | |
9267 | fail: | |
9268 | return NULL; | |
9269 | } | |
9270 | ||
9271 | ||
9272 | static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9273 | PyObject *resultobj; | |
9274 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9275 | PyObject * obj0 = 0 ; | |
9276 | char *kwnames[] = { | |
9277 | (char *) "self", NULL | |
9278 | }; | |
9279 | ||
9280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
9281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9282 | { | |
9283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9284 | delete arg1; | |
9285 | ||
9286 | wxPyEndAllowThreads(__tstate); | |
9287 | if (PyErr_Occurred()) SWIG_fail; | |
9288 | } | |
9289 | Py_INCREF(Py_None); resultobj = Py_None; | |
9290 | return resultobj; | |
9291 | fail: | |
9292 | return NULL; | |
9293 | } | |
9294 | ||
9295 | ||
9296 | static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9297 | PyObject *resultobj; | |
9298 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9299 | wxPoint result; | |
9300 | PyObject * obj0 = 0 ; | |
9301 | char *kwnames[] = { | |
9302 | (char *) "self", NULL | |
9303 | }; | |
9304 | ||
9305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
9306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9307 | { | |
9308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9309 | result = (arg1)->GetPosition(); | |
9310 | ||
9311 | wxPyEndAllowThreads(__tstate); | |
9312 | if (PyErr_Occurred()) SWIG_fail; | |
9313 | } | |
9314 | { | |
9315 | wxPoint * resultptr; | |
9316 | resultptr = new wxPoint((wxPoint &) result); | |
9317 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
9318 | } | |
9319 | return resultobj; | |
9320 | fail: | |
9321 | return NULL; | |
9322 | } | |
9323 | ||
9324 | ||
9325 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9326 | PyObject *resultobj; | |
9327 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9328 | int result; | |
9329 | PyObject * obj0 = 0 ; | |
9330 | char *kwnames[] = { | |
9331 | (char *) "self", NULL | |
9332 | }; | |
9333 | ||
9334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
9335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9336 | { | |
9337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9338 | result = (int)(arg1)->GetZPosition(); | |
9339 | ||
9340 | wxPyEndAllowThreads(__tstate); | |
9341 | if (PyErr_Occurred()) SWIG_fail; | |
9342 | } | |
8edf1c75 | 9343 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9344 | return resultobj; |
9345 | fail: | |
9346 | return NULL; | |
9347 | } | |
9348 | ||
9349 | ||
9350 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9351 | PyObject *resultobj; | |
9352 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9353 | int result; | |
9354 | PyObject * obj0 = 0 ; | |
9355 | char *kwnames[] = { | |
9356 | (char *) "self", NULL | |
9357 | }; | |
9358 | ||
9359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
9360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9361 | { | |
9362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9363 | result = (int)(arg1)->GetButtonState(); | |
9364 | ||
9365 | wxPyEndAllowThreads(__tstate); | |
9366 | if (PyErr_Occurred()) SWIG_fail; | |
9367 | } | |
8edf1c75 | 9368 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9369 | return resultobj; |
9370 | fail: | |
9371 | return NULL; | |
9372 | } | |
9373 | ||
9374 | ||
9375 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9376 | PyObject *resultobj; | |
9377 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9378 | int result; | |
9379 | PyObject * obj0 = 0 ; | |
9380 | char *kwnames[] = { | |
9381 | (char *) "self", NULL | |
9382 | }; | |
9383 | ||
9384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
9385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9386 | { | |
9387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9388 | result = (int)(arg1)->GetPOVPosition(); | |
9389 | ||
9390 | wxPyEndAllowThreads(__tstate); | |
9391 | if (PyErr_Occurred()) SWIG_fail; | |
9392 | } | |
8edf1c75 | 9393 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9394 | return resultobj; |
9395 | fail: | |
9396 | return NULL; | |
9397 | } | |
9398 | ||
9399 | ||
9400 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9401 | PyObject *resultobj; | |
9402 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9403 | int result; | |
9404 | PyObject * obj0 = 0 ; | |
9405 | char *kwnames[] = { | |
9406 | (char *) "self", NULL | |
9407 | }; | |
9408 | ||
9409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
9410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9411 | { | |
9412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9413 | result = (int)(arg1)->GetPOVCTSPosition(); | |
9414 | ||
9415 | wxPyEndAllowThreads(__tstate); | |
9416 | if (PyErr_Occurred()) SWIG_fail; | |
9417 | } | |
8edf1c75 | 9418 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9419 | return resultobj; |
9420 | fail: | |
9421 | return NULL; | |
9422 | } | |
9423 | ||
9424 | ||
9425 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9426 | PyObject *resultobj; | |
9427 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9428 | int result; | |
9429 | PyObject * obj0 = 0 ; | |
9430 | char *kwnames[] = { | |
9431 | (char *) "self", NULL | |
9432 | }; | |
9433 | ||
9434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
9435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9436 | { | |
9437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9438 | result = (int)(arg1)->GetRudderPosition(); | |
9439 | ||
9440 | wxPyEndAllowThreads(__tstate); | |
9441 | if (PyErr_Occurred()) SWIG_fail; | |
9442 | } | |
8edf1c75 | 9443 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9444 | return resultobj; |
9445 | fail: | |
9446 | return NULL; | |
9447 | } | |
9448 | ||
9449 | ||
9450 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9451 | PyObject *resultobj; | |
9452 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9453 | int result; | |
9454 | PyObject * obj0 = 0 ; | |
9455 | char *kwnames[] = { | |
9456 | (char *) "self", NULL | |
9457 | }; | |
9458 | ||
9459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
9460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9461 | { | |
9462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9463 | result = (int)(arg1)->GetUPosition(); | |
9464 | ||
9465 | wxPyEndAllowThreads(__tstate); | |
9466 | if (PyErr_Occurred()) SWIG_fail; | |
9467 | } | |
8edf1c75 | 9468 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9469 | return resultobj; |
9470 | fail: | |
9471 | return NULL; | |
9472 | } | |
9473 | ||
9474 | ||
9475 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9476 | PyObject *resultobj; | |
9477 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9478 | int result; | |
9479 | PyObject * obj0 = 0 ; | |
9480 | char *kwnames[] = { | |
9481 | (char *) "self", NULL | |
9482 | }; | |
9483 | ||
9484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
9485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9486 | { | |
9487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9488 | result = (int)(arg1)->GetVPosition(); | |
9489 | ||
9490 | wxPyEndAllowThreads(__tstate); | |
9491 | if (PyErr_Occurred()) SWIG_fail; | |
9492 | } | |
8edf1c75 | 9493 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9494 | return resultobj; |
9495 | fail: | |
9496 | return NULL; | |
9497 | } | |
9498 | ||
9499 | ||
9500 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9501 | PyObject *resultobj; | |
9502 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9503 | int result; | |
9504 | PyObject * obj0 = 0 ; | |
9505 | char *kwnames[] = { | |
9506 | (char *) "self", NULL | |
9507 | }; | |
9508 | ||
9509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
9510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9511 | { | |
9512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9513 | result = (int)(arg1)->GetMovementThreshold(); | |
9514 | ||
9515 | wxPyEndAllowThreads(__tstate); | |
9516 | if (PyErr_Occurred()) SWIG_fail; | |
9517 | } | |
8edf1c75 | 9518 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9519 | return resultobj; |
9520 | fail: | |
9521 | return NULL; | |
9522 | } | |
9523 | ||
9524 | ||
9525 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9526 | PyObject *resultobj; | |
9527 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9528 | int arg2 ; | |
9529 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9530 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9531 | char *kwnames[] = { |
9532 | (char *) "self",(char *) "threshold", NULL | |
9533 | }; | |
9534 | ||
8edf1c75 | 9535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9537 | { |
9538 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9539 | if (PyErr_Occurred()) SWIG_fail; | |
9540 | } | |
d14a1e28 RD |
9541 | { |
9542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9543 | (arg1)->SetMovementThreshold(arg2); | |
9544 | ||
9545 | wxPyEndAllowThreads(__tstate); | |
9546 | if (PyErr_Occurred()) SWIG_fail; | |
9547 | } | |
9548 | Py_INCREF(Py_None); resultobj = Py_None; | |
9549 | return resultobj; | |
9550 | fail: | |
9551 | return NULL; | |
9552 | } | |
9553 | ||
9554 | ||
9555 | static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9556 | PyObject *resultobj; | |
9557 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9558 | bool result; | |
9559 | PyObject * obj0 = 0 ; | |
9560 | char *kwnames[] = { | |
9561 | (char *) "self", NULL | |
9562 | }; | |
9563 | ||
9564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
9565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9566 | { | |
9567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9568 | result = (bool)(arg1)->IsOk(); | |
9569 | ||
9570 | wxPyEndAllowThreads(__tstate); | |
9571 | if (PyErr_Occurred()) SWIG_fail; | |
9572 | } | |
02a34c4c | 9573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9574 | return resultobj; |
9575 | fail: | |
9576 | return NULL; | |
9577 | } | |
9578 | ||
9579 | ||
9580 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9581 | PyObject *resultobj; | |
9582 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9583 | int result; | |
9584 | PyObject * obj0 = 0 ; | |
9585 | char *kwnames[] = { | |
9586 | (char *) "self", NULL | |
9587 | }; | |
9588 | ||
9589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
9590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9591 | { | |
9592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9593 | result = (int)(arg1)->GetNumberJoysticks(); | |
9594 | ||
9595 | wxPyEndAllowThreads(__tstate); | |
9596 | if (PyErr_Occurred()) SWIG_fail; | |
9597 | } | |
8edf1c75 | 9598 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9599 | return resultobj; |
9600 | fail: | |
9601 | return NULL; | |
9602 | } | |
9603 | ||
9604 | ||
9605 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9606 | PyObject *resultobj; | |
9607 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9608 | int result; | |
9609 | PyObject * obj0 = 0 ; | |
9610 | char *kwnames[] = { | |
9611 | (char *) "self", NULL | |
9612 | }; | |
9613 | ||
9614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
9615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9616 | { | |
9617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9618 | result = (int)(arg1)->GetManufacturerId(); | |
9619 | ||
9620 | wxPyEndAllowThreads(__tstate); | |
9621 | if (PyErr_Occurred()) SWIG_fail; | |
9622 | } | |
8edf1c75 | 9623 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9624 | return resultobj; |
9625 | fail: | |
9626 | return NULL; | |
9627 | } | |
9628 | ||
9629 | ||
9630 | static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9631 | PyObject *resultobj; | |
9632 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9633 | int result; | |
9634 | PyObject * obj0 = 0 ; | |
9635 | char *kwnames[] = { | |
9636 | (char *) "self", NULL | |
9637 | }; | |
9638 | ||
9639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
9640 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9641 | { | |
9642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9643 | result = (int)(arg1)->GetProductId(); | |
9644 | ||
9645 | wxPyEndAllowThreads(__tstate); | |
9646 | if (PyErr_Occurred()) SWIG_fail; | |
9647 | } | |
8edf1c75 | 9648 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9649 | return resultobj; |
9650 | fail: | |
9651 | return NULL; | |
9652 | } | |
9653 | ||
9654 | ||
9655 | static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9656 | PyObject *resultobj; | |
9657 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9658 | wxString result; | |
9659 | PyObject * obj0 = 0 ; | |
9660 | char *kwnames[] = { | |
9661 | (char *) "self", NULL | |
9662 | }; | |
9663 | ||
9664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
9665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9666 | { | |
9667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9668 | result = (arg1)->GetProductName(); | |
9669 | ||
9670 | wxPyEndAllowThreads(__tstate); | |
9671 | if (PyErr_Occurred()) SWIG_fail; | |
9672 | } | |
9673 | { | |
9674 | #if wxUSE_UNICODE | |
9675 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9676 | #else | |
9677 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9678 | #endif | |
9679 | } | |
9680 | return resultobj; | |
9681 | fail: | |
9682 | return NULL; | |
9683 | } | |
9684 | ||
9685 | ||
9686 | static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9687 | PyObject *resultobj; | |
9688 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9689 | int result; | |
9690 | PyObject * obj0 = 0 ; | |
9691 | char *kwnames[] = { | |
9692 | (char *) "self", NULL | |
9693 | }; | |
9694 | ||
9695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
9696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9697 | { | |
9698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9699 | result = (int)(arg1)->GetXMin(); | |
9700 | ||
9701 | wxPyEndAllowThreads(__tstate); | |
9702 | if (PyErr_Occurred()) SWIG_fail; | |
9703 | } | |
8edf1c75 | 9704 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9705 | return resultobj; |
9706 | fail: | |
9707 | return NULL; | |
9708 | } | |
9709 | ||
9710 | ||
9711 | static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9712 | PyObject *resultobj; | |
9713 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9714 | int result; | |
9715 | PyObject * obj0 = 0 ; | |
9716 | char *kwnames[] = { | |
9717 | (char *) "self", NULL | |
9718 | }; | |
9719 | ||
9720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
9721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9722 | { | |
9723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9724 | result = (int)(arg1)->GetYMin(); | |
9725 | ||
9726 | wxPyEndAllowThreads(__tstate); | |
9727 | if (PyErr_Occurred()) SWIG_fail; | |
9728 | } | |
8edf1c75 | 9729 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9730 | return resultobj; |
9731 | fail: | |
9732 | return NULL; | |
9733 | } | |
9734 | ||
9735 | ||
9736 | static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9737 | PyObject *resultobj; | |
9738 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9739 | int result; | |
9740 | PyObject * obj0 = 0 ; | |
9741 | char *kwnames[] = { | |
9742 | (char *) "self", NULL | |
9743 | }; | |
9744 | ||
9745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
9746 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9747 | { | |
9748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9749 | result = (int)(arg1)->GetZMin(); | |
9750 | ||
9751 | wxPyEndAllowThreads(__tstate); | |
9752 | if (PyErr_Occurred()) SWIG_fail; | |
9753 | } | |
8edf1c75 | 9754 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9755 | return resultobj; |
9756 | fail: | |
9757 | return NULL; | |
9758 | } | |
9759 | ||
9760 | ||
9761 | static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9762 | PyObject *resultobj; | |
9763 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9764 | int result; | |
9765 | PyObject * obj0 = 0 ; | |
9766 | char *kwnames[] = { | |
9767 | (char *) "self", NULL | |
9768 | }; | |
9769 | ||
9770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
9771 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9772 | { | |
9773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9774 | result = (int)(arg1)->GetXMax(); | |
9775 | ||
9776 | wxPyEndAllowThreads(__tstate); | |
9777 | if (PyErr_Occurred()) SWIG_fail; | |
9778 | } | |
8edf1c75 | 9779 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9780 | return resultobj; |
9781 | fail: | |
9782 | return NULL; | |
9783 | } | |
9784 | ||
9785 | ||
9786 | static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9787 | PyObject *resultobj; | |
9788 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9789 | int result; | |
9790 | PyObject * obj0 = 0 ; | |
9791 | char *kwnames[] = { | |
9792 | (char *) "self", NULL | |
9793 | }; | |
9794 | ||
9795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
9796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9797 | { | |
9798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9799 | result = (int)(arg1)->GetYMax(); | |
9800 | ||
9801 | wxPyEndAllowThreads(__tstate); | |
9802 | if (PyErr_Occurred()) SWIG_fail; | |
9803 | } | |
8edf1c75 | 9804 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9805 | return resultobj; |
9806 | fail: | |
9807 | return NULL; | |
9808 | } | |
9809 | ||
9810 | ||
9811 | static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9812 | PyObject *resultobj; | |
9813 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9814 | int result; | |
9815 | PyObject * obj0 = 0 ; | |
9816 | char *kwnames[] = { | |
9817 | (char *) "self", NULL | |
9818 | }; | |
9819 | ||
9820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
9821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9822 | { | |
9823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9824 | result = (int)(arg1)->GetZMax(); | |
9825 | ||
9826 | wxPyEndAllowThreads(__tstate); | |
9827 | if (PyErr_Occurred()) SWIG_fail; | |
9828 | } | |
8edf1c75 | 9829 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9830 | return resultobj; |
9831 | fail: | |
9832 | return NULL; | |
9833 | } | |
9834 | ||
9835 | ||
9836 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9837 | PyObject *resultobj; | |
9838 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9839 | int result; | |
9840 | PyObject * obj0 = 0 ; | |
9841 | char *kwnames[] = { | |
9842 | (char *) "self", NULL | |
9843 | }; | |
9844 | ||
9845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
9846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9847 | { | |
9848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9849 | result = (int)(arg1)->GetNumberButtons(); | |
9850 | ||
9851 | wxPyEndAllowThreads(__tstate); | |
9852 | if (PyErr_Occurred()) SWIG_fail; | |
9853 | } | |
8edf1c75 | 9854 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9855 | return resultobj; |
9856 | fail: | |
9857 | return NULL; | |
9858 | } | |
9859 | ||
9860 | ||
9861 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9862 | PyObject *resultobj; | |
9863 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9864 | int result; | |
9865 | PyObject * obj0 = 0 ; | |
9866 | char *kwnames[] = { | |
9867 | (char *) "self", NULL | |
9868 | }; | |
9869 | ||
9870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
9871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9872 | { | |
9873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9874 | result = (int)(arg1)->GetNumberAxes(); | |
9875 | ||
9876 | wxPyEndAllowThreads(__tstate); | |
9877 | if (PyErr_Occurred()) SWIG_fail; | |
9878 | } | |
8edf1c75 | 9879 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9880 | return resultobj; |
9881 | fail: | |
9882 | return NULL; | |
9883 | } | |
9884 | ||
9885 | ||
9886 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9887 | PyObject *resultobj; | |
9888 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9889 | int result; | |
9890 | PyObject * obj0 = 0 ; | |
9891 | char *kwnames[] = { | |
9892 | (char *) "self", NULL | |
9893 | }; | |
9894 | ||
9895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
9896 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9897 | { | |
9898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9899 | result = (int)(arg1)->GetMaxButtons(); | |
9900 | ||
9901 | wxPyEndAllowThreads(__tstate); | |
9902 | if (PyErr_Occurred()) SWIG_fail; | |
9903 | } | |
8edf1c75 | 9904 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9905 | return resultobj; |
9906 | fail: | |
9907 | return NULL; | |
9908 | } | |
9909 | ||
9910 | ||
9911 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9912 | PyObject *resultobj; | |
9913 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9914 | int result; | |
9915 | PyObject * obj0 = 0 ; | |
9916 | char *kwnames[] = { | |
9917 | (char *) "self", NULL | |
9918 | }; | |
9919 | ||
9920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
9921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9922 | { | |
9923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9924 | result = (int)(arg1)->GetMaxAxes(); | |
9925 | ||
9926 | wxPyEndAllowThreads(__tstate); | |
9927 | if (PyErr_Occurred()) SWIG_fail; | |
9928 | } | |
8edf1c75 | 9929 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9930 | return resultobj; |
9931 | fail: | |
9932 | return NULL; | |
9933 | } | |
9934 | ||
9935 | ||
9936 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9937 | PyObject *resultobj; | |
9938 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9939 | int result; | |
9940 | PyObject * obj0 = 0 ; | |
9941 | char *kwnames[] = { | |
9942 | (char *) "self", NULL | |
9943 | }; | |
9944 | ||
9945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
9946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9947 | { | |
9948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9949 | result = (int)(arg1)->GetPollingMin(); | |
9950 | ||
9951 | wxPyEndAllowThreads(__tstate); | |
9952 | if (PyErr_Occurred()) SWIG_fail; | |
9953 | } | |
8edf1c75 | 9954 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9955 | return resultobj; |
9956 | fail: | |
9957 | return NULL; | |
9958 | } | |
9959 | ||
9960 | ||
9961 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9962 | PyObject *resultobj; | |
9963 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9964 | int result; | |
9965 | PyObject * obj0 = 0 ; | |
9966 | char *kwnames[] = { | |
9967 | (char *) "self", NULL | |
9968 | }; | |
9969 | ||
9970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
9971 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9972 | { | |
9973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9974 | result = (int)(arg1)->GetPollingMax(); | |
9975 | ||
9976 | wxPyEndAllowThreads(__tstate); | |
9977 | if (PyErr_Occurred()) SWIG_fail; | |
9978 | } | |
8edf1c75 | 9979 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9980 | return resultobj; |
9981 | fail: | |
9982 | return NULL; | |
9983 | } | |
9984 | ||
9985 | ||
9986 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9987 | PyObject *resultobj; | |
9988 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9989 | int result; | |
9990 | PyObject * obj0 = 0 ; | |
9991 | char *kwnames[] = { | |
9992 | (char *) "self", NULL | |
9993 | }; | |
9994 | ||
9995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
9996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9997 | { | |
9998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9999 | result = (int)(arg1)->GetRudderMin(); | |
10000 | ||
10001 | wxPyEndAllowThreads(__tstate); | |
10002 | if (PyErr_Occurred()) SWIG_fail; | |
10003 | } | |
8edf1c75 | 10004 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10005 | return resultobj; |
10006 | fail: | |
10007 | return NULL; | |
10008 | } | |
10009 | ||
10010 | ||
10011 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10012 | PyObject *resultobj; | |
10013 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10014 | int result; | |
10015 | PyObject * obj0 = 0 ; | |
10016 | char *kwnames[] = { | |
10017 | (char *) "self", NULL | |
10018 | }; | |
10019 | ||
10020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
10021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10022 | { | |
10023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10024 | result = (int)(arg1)->GetRudderMax(); | |
10025 | ||
10026 | wxPyEndAllowThreads(__tstate); | |
10027 | if (PyErr_Occurred()) SWIG_fail; | |
10028 | } | |
8edf1c75 | 10029 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10030 | return resultobj; |
10031 | fail: | |
10032 | return NULL; | |
10033 | } | |
10034 | ||
10035 | ||
10036 | static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10037 | PyObject *resultobj; | |
10038 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10039 | int result; | |
10040 | PyObject * obj0 = 0 ; | |
10041 | char *kwnames[] = { | |
10042 | (char *) "self", NULL | |
10043 | }; | |
10044 | ||
10045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
10046 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10047 | { | |
10048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10049 | result = (int)(arg1)->GetUMin(); | |
10050 | ||
10051 | wxPyEndAllowThreads(__tstate); | |
10052 | if (PyErr_Occurred()) SWIG_fail; | |
10053 | } | |
8edf1c75 | 10054 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10055 | return resultobj; |
10056 | fail: | |
10057 | return NULL; | |
10058 | } | |
10059 | ||
10060 | ||
10061 | static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10062 | PyObject *resultobj; | |
10063 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10064 | int result; | |
10065 | PyObject * obj0 = 0 ; | |
10066 | char *kwnames[] = { | |
10067 | (char *) "self", NULL | |
10068 | }; | |
10069 | ||
10070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
10071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10072 | { | |
10073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10074 | result = (int)(arg1)->GetUMax(); | |
10075 | ||
10076 | wxPyEndAllowThreads(__tstate); | |
10077 | if (PyErr_Occurred()) SWIG_fail; | |
10078 | } | |
8edf1c75 | 10079 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10080 | return resultobj; |
10081 | fail: | |
10082 | return NULL; | |
10083 | } | |
10084 | ||
10085 | ||
10086 | static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10087 | PyObject *resultobj; | |
10088 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10089 | int result; | |
10090 | PyObject * obj0 = 0 ; | |
10091 | char *kwnames[] = { | |
10092 | (char *) "self", NULL | |
10093 | }; | |
10094 | ||
10095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
10096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10097 | { | |
10098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10099 | result = (int)(arg1)->GetVMin(); | |
10100 | ||
10101 | wxPyEndAllowThreads(__tstate); | |
10102 | if (PyErr_Occurred()) SWIG_fail; | |
10103 | } | |
8edf1c75 | 10104 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10105 | return resultobj; |
10106 | fail: | |
10107 | return NULL; | |
10108 | } | |
10109 | ||
10110 | ||
10111 | static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10112 | PyObject *resultobj; | |
10113 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10114 | int result; | |
10115 | PyObject * obj0 = 0 ; | |
10116 | char *kwnames[] = { | |
10117 | (char *) "self", NULL | |
10118 | }; | |
10119 | ||
10120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
10121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10122 | { | |
10123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10124 | result = (int)(arg1)->GetVMax(); | |
10125 | ||
10126 | wxPyEndAllowThreads(__tstate); | |
10127 | if (PyErr_Occurred()) SWIG_fail; | |
10128 | } | |
8edf1c75 | 10129 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10130 | return resultobj; |
10131 | fail: | |
10132 | return NULL; | |
10133 | } | |
10134 | ||
10135 | ||
10136 | static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10137 | PyObject *resultobj; | |
10138 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10139 | bool result; | |
10140 | PyObject * obj0 = 0 ; | |
10141 | char *kwnames[] = { | |
10142 | (char *) "self", NULL | |
10143 | }; | |
10144 | ||
10145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
10146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10147 | { | |
10148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10149 | result = (bool)(arg1)->HasRudder(); | |
10150 | ||
10151 | wxPyEndAllowThreads(__tstate); | |
10152 | if (PyErr_Occurred()) SWIG_fail; | |
10153 | } | |
02a34c4c | 10154 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10155 | return resultobj; |
10156 | fail: | |
10157 | return NULL; | |
10158 | } | |
10159 | ||
10160 | ||
10161 | static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10162 | PyObject *resultobj; | |
10163 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10164 | bool result; | |
10165 | PyObject * obj0 = 0 ; | |
10166 | char *kwnames[] = { | |
10167 | (char *) "self", NULL | |
10168 | }; | |
10169 | ||
10170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
10171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10172 | { | |
10173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10174 | result = (bool)(arg1)->HasZ(); | |
10175 | ||
10176 | wxPyEndAllowThreads(__tstate); | |
10177 | if (PyErr_Occurred()) SWIG_fail; | |
10178 | } | |
02a34c4c | 10179 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10180 | return resultobj; |
10181 | fail: | |
10182 | return NULL; | |
10183 | } | |
10184 | ||
10185 | ||
10186 | static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10187 | PyObject *resultobj; | |
10188 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10189 | bool result; | |
10190 | PyObject * obj0 = 0 ; | |
10191 | char *kwnames[] = { | |
10192 | (char *) "self", NULL | |
10193 | }; | |
10194 | ||
10195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
10196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10197 | { | |
10198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10199 | result = (bool)(arg1)->HasU(); | |
10200 | ||
10201 | wxPyEndAllowThreads(__tstate); | |
10202 | if (PyErr_Occurred()) SWIG_fail; | |
10203 | } | |
02a34c4c | 10204 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10205 | return resultobj; |
10206 | fail: | |
10207 | return NULL; | |
10208 | } | |
10209 | ||
10210 | ||
10211 | static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10212 | PyObject *resultobj; | |
10213 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10214 | bool result; | |
10215 | PyObject * obj0 = 0 ; | |
10216 | char *kwnames[] = { | |
10217 | (char *) "self", NULL | |
10218 | }; | |
10219 | ||
10220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
10221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10222 | { | |
10223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10224 | result = (bool)(arg1)->HasV(); | |
10225 | ||
10226 | wxPyEndAllowThreads(__tstate); | |
10227 | if (PyErr_Occurred()) SWIG_fail; | |
10228 | } | |
02a34c4c | 10229 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10230 | return resultobj; |
10231 | fail: | |
10232 | return NULL; | |
10233 | } | |
10234 | ||
10235 | ||
10236 | static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10237 | PyObject *resultobj; | |
10238 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10239 | bool result; | |
10240 | PyObject * obj0 = 0 ; | |
10241 | char *kwnames[] = { | |
10242 | (char *) "self", NULL | |
10243 | }; | |
10244 | ||
10245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
10246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10247 | { | |
10248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10249 | result = (bool)(arg1)->HasPOV(); | |
10250 | ||
10251 | wxPyEndAllowThreads(__tstate); | |
10252 | if (PyErr_Occurred()) SWIG_fail; | |
10253 | } | |
02a34c4c | 10254 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10255 | return resultobj; |
10256 | fail: | |
10257 | return NULL; | |
10258 | } | |
10259 | ||
10260 | ||
10261 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10262 | PyObject *resultobj; | |
10263 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10264 | bool result; | |
10265 | PyObject * obj0 = 0 ; | |
10266 | char *kwnames[] = { | |
10267 | (char *) "self", NULL | |
10268 | }; | |
10269 | ||
10270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
10271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10272 | { | |
10273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10274 | result = (bool)(arg1)->HasPOV4Dir(); | |
10275 | ||
10276 | wxPyEndAllowThreads(__tstate); | |
10277 | if (PyErr_Occurred()) SWIG_fail; | |
10278 | } | |
02a34c4c | 10279 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10280 | return resultobj; |
10281 | fail: | |
10282 | return NULL; | |
10283 | } | |
10284 | ||
10285 | ||
10286 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10287 | PyObject *resultobj; | |
10288 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10289 | bool result; | |
10290 | PyObject * obj0 = 0 ; | |
10291 | char *kwnames[] = { | |
10292 | (char *) "self", NULL | |
10293 | }; | |
10294 | ||
10295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
10296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10297 | { | |
10298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10299 | result = (bool)(arg1)->HasPOVCTS(); | |
10300 | ||
10301 | wxPyEndAllowThreads(__tstate); | |
10302 | if (PyErr_Occurred()) SWIG_fail; | |
10303 | } | |
02a34c4c | 10304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10305 | return resultobj; |
10306 | fail: | |
10307 | return NULL; | |
10308 | } | |
10309 | ||
10310 | ||
10311 | static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10312 | PyObject *resultobj; | |
10313 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10314 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10315 | int arg3 = (int) 0 ; | |
10316 | bool result; | |
10317 | PyObject * obj0 = 0 ; | |
10318 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10319 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10320 | char *kwnames[] = { |
10321 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
10322 | }; | |
10323 | ||
8edf1c75 | 10324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
10325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10326 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
10327 | if (obj2) { |
10328 | { | |
10329 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10330 | if (PyErr_Occurred()) SWIG_fail; | |
10331 | } | |
10332 | } | |
d14a1e28 RD |
10333 | { |
10334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10335 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
10336 | ||
10337 | wxPyEndAllowThreads(__tstate); | |
10338 | if (PyErr_Occurred()) SWIG_fail; | |
10339 | } | |
02a34c4c | 10340 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10341 | return resultobj; |
10342 | fail: | |
10343 | return NULL; | |
10344 | } | |
10345 | ||
10346 | ||
10347 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10348 | PyObject *resultobj; | |
10349 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10350 | bool result; | |
10351 | PyObject * obj0 = 0 ; | |
10352 | char *kwnames[] = { | |
10353 | (char *) "self", NULL | |
10354 | }; | |
10355 | ||
10356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
10357 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10358 | { | |
10359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10360 | result = (bool)(arg1)->ReleaseCapture(); | |
10361 | ||
10362 | wxPyEndAllowThreads(__tstate); | |
10363 | if (PyErr_Occurred()) SWIG_fail; | |
10364 | } | |
02a34c4c | 10365 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10366 | return resultobj; |
10367 | fail: | |
10368 | return NULL; | |
10369 | } | |
10370 | ||
10371 | ||
10372 | static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) { | |
10373 | PyObject *obj; | |
10374 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10375 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
10376 | Py_INCREF(obj); | |
10377 | return Py_BuildValue((char *)""); | |
10378 | } | |
10379 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10380 | PyObject *resultobj; | |
10381 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10382 | wxPoint *arg2 = (wxPoint *) 0 ; | |
10383 | PyObject * obj0 = 0 ; | |
10384 | PyObject * obj1 = 0 ; | |
10385 | char *kwnames[] = { | |
10386 | (char *) "self",(char *) "m_pos", NULL | |
10387 | }; | |
10388 | ||
10389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
10390 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10391 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10392 | if (arg1) (arg1)->m_pos = *arg2; | |
10393 | ||
10394 | Py_INCREF(Py_None); resultobj = Py_None; | |
10395 | return resultobj; | |
10396 | fail: | |
10397 | return NULL; | |
10398 | } | |
10399 | ||
10400 | ||
10401 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10402 | PyObject *resultobj; | |
10403 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10404 | wxPoint *result; | |
10405 | PyObject * obj0 = 0 ; | |
10406 | char *kwnames[] = { | |
10407 | (char *) "self", NULL | |
10408 | }; | |
10409 | ||
10410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
10411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10412 | result = (wxPoint *)& ((arg1)->m_pos); | |
10413 | ||
10414 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
10415 | return resultobj; | |
10416 | fail: | |
10417 | return NULL; | |
10418 | } | |
10419 | ||
10420 | ||
10421 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10422 | PyObject *resultobj; | |
10423 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10424 | int arg2 ; | |
10425 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10426 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10427 | char *kwnames[] = { |
10428 | (char *) "self",(char *) "m_zPosition", NULL | |
10429 | }; | |
10430 | ||
8edf1c75 | 10431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10432 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10433 | { |
10434 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10435 | if (PyErr_Occurred()) SWIG_fail; | |
10436 | } | |
d14a1e28 RD |
10437 | if (arg1) (arg1)->m_zPosition = arg2; |
10438 | ||
10439 | Py_INCREF(Py_None); resultobj = Py_None; | |
10440 | return resultobj; | |
10441 | fail: | |
10442 | return NULL; | |
10443 | } | |
10444 | ||
10445 | ||
10446 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10447 | PyObject *resultobj; | |
10448 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10449 | int result; | |
10450 | PyObject * obj0 = 0 ; | |
10451 | char *kwnames[] = { | |
10452 | (char *) "self", NULL | |
10453 | }; | |
10454 | ||
10455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
10456 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10457 | result = (int) ((arg1)->m_zPosition); | |
10458 | ||
8edf1c75 | 10459 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10460 | return resultobj; |
10461 | fail: | |
10462 | return NULL; | |
10463 | } | |
10464 | ||
10465 | ||
10466 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10467 | PyObject *resultobj; | |
10468 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10469 | int arg2 ; | |
10470 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10471 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10472 | char *kwnames[] = { |
10473 | (char *) "self",(char *) "m_buttonChange", NULL | |
10474 | }; | |
10475 | ||
8edf1c75 | 10476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10478 | { |
10479 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10480 | if (PyErr_Occurred()) SWIG_fail; | |
10481 | } | |
d14a1e28 RD |
10482 | if (arg1) (arg1)->m_buttonChange = arg2; |
10483 | ||
10484 | Py_INCREF(Py_None); resultobj = Py_None; | |
10485 | return resultobj; | |
10486 | fail: | |
10487 | return NULL; | |
10488 | } | |
10489 | ||
10490 | ||
10491 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10492 | PyObject *resultobj; | |
10493 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10494 | int result; | |
10495 | PyObject * obj0 = 0 ; | |
10496 | char *kwnames[] = { | |
10497 | (char *) "self", NULL | |
10498 | }; | |
10499 | ||
10500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
10501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10502 | result = (int) ((arg1)->m_buttonChange); | |
10503 | ||
8edf1c75 | 10504 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10505 | return resultobj; |
10506 | fail: | |
10507 | return NULL; | |
10508 | } | |
10509 | ||
10510 | ||
10511 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10512 | PyObject *resultobj; | |
10513 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10514 | int arg2 ; | |
10515 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10516 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10517 | char *kwnames[] = { |
10518 | (char *) "self",(char *) "m_buttonState", NULL | |
10519 | }; | |
10520 | ||
8edf1c75 | 10521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10522 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10523 | { |
10524 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10525 | if (PyErr_Occurred()) SWIG_fail; | |
10526 | } | |
d14a1e28 RD |
10527 | if (arg1) (arg1)->m_buttonState = arg2; |
10528 | ||
10529 | Py_INCREF(Py_None); resultobj = Py_None; | |
10530 | return resultobj; | |
10531 | fail: | |
10532 | return NULL; | |
10533 | } | |
10534 | ||
10535 | ||
10536 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10537 | PyObject *resultobj; | |
10538 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10539 | int result; | |
10540 | PyObject * obj0 = 0 ; | |
10541 | char *kwnames[] = { | |
10542 | (char *) "self", NULL | |
10543 | }; | |
10544 | ||
10545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
10546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10547 | result = (int) ((arg1)->m_buttonState); | |
10548 | ||
8edf1c75 | 10549 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10550 | return resultobj; |
10551 | fail: | |
10552 | return NULL; | |
10553 | } | |
10554 | ||
10555 | ||
10556 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10557 | PyObject *resultobj; | |
10558 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10559 | int arg2 ; | |
10560 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10561 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10562 | char *kwnames[] = { |
10563 | (char *) "self",(char *) "m_joyStick", NULL | |
10564 | }; | |
10565 | ||
8edf1c75 | 10566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10567 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10568 | { |
10569 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10570 | if (PyErr_Occurred()) SWIG_fail; | |
10571 | } | |
d14a1e28 RD |
10572 | if (arg1) (arg1)->m_joyStick = arg2; |
10573 | ||
10574 | Py_INCREF(Py_None); resultobj = Py_None; | |
10575 | return resultobj; | |
10576 | fail: | |
10577 | return NULL; | |
10578 | } | |
10579 | ||
10580 | ||
10581 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10582 | PyObject *resultobj; | |
10583 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10584 | int result; | |
10585 | PyObject * obj0 = 0 ; | |
10586 | char *kwnames[] = { | |
10587 | (char *) "self", NULL | |
10588 | }; | |
10589 | ||
10590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
10591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10592 | result = (int) ((arg1)->m_joyStick); | |
10593 | ||
8edf1c75 | 10594 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10595 | return resultobj; |
10596 | fail: | |
10597 | return NULL; | |
10598 | } | |
10599 | ||
10600 | ||
10601 | static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10602 | PyObject *resultobj; | |
10603 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10604 | int arg2 = (int) 0 ; | |
10605 | int arg3 = (int) wxJOYSTICK1 ; | |
10606 | int arg4 = (int) 0 ; | |
10607 | wxJoystickEvent *result; | |
8edf1c75 RD |
10608 | PyObject * obj0 = 0 ; |
10609 | PyObject * obj1 = 0 ; | |
10610 | PyObject * obj2 = 0 ; | |
10611 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10612 | char *kwnames[] = { |
10613 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
10614 | }; | |
10615 | ||
8edf1c75 RD |
10616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
10617 | if (obj0) { | |
10618 | { | |
10619 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
10620 | if (PyErr_Occurred()) SWIG_fail; | |
10621 | } | |
10622 | } | |
10623 | if (obj1) { | |
10624 | { | |
10625 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10626 | if (PyErr_Occurred()) SWIG_fail; | |
10627 | } | |
10628 | } | |
10629 | if (obj2) { | |
10630 | { | |
10631 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10632 | if (PyErr_Occurred()) SWIG_fail; | |
10633 | } | |
10634 | } | |
10635 | if (obj3) { | |
10636 | { | |
10637 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
10638 | if (PyErr_Occurred()) SWIG_fail; | |
10639 | } | |
10640 | } | |
d14a1e28 RD |
10641 | { |
10642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10643 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
10644 | ||
10645 | wxPyEndAllowThreads(__tstate); | |
10646 | if (PyErr_Occurred()) SWIG_fail; | |
10647 | } | |
10648 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJoystickEvent, 1); | |
10649 | return resultobj; | |
10650 | fail: | |
10651 | return NULL; | |
10652 | } | |
10653 | ||
10654 | ||
10655 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10656 | PyObject *resultobj; | |
10657 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10658 | wxPoint result; | |
10659 | PyObject * obj0 = 0 ; | |
10660 | char *kwnames[] = { | |
10661 | (char *) "self", NULL | |
10662 | }; | |
10663 | ||
10664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
10665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10666 | { | |
10667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10668 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
10669 | ||
10670 | wxPyEndAllowThreads(__tstate); | |
10671 | if (PyErr_Occurred()) SWIG_fail; | |
10672 | } | |
10673 | { | |
10674 | wxPoint * resultptr; | |
10675 | resultptr = new wxPoint((wxPoint &) result); | |
10676 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
10677 | } | |
10678 | return resultobj; | |
10679 | fail: | |
10680 | return NULL; | |
10681 | } | |
10682 | ||
10683 | ||
10684 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10685 | PyObject *resultobj; | |
10686 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10687 | int result; | |
10688 | PyObject * obj0 = 0 ; | |
10689 | char *kwnames[] = { | |
10690 | (char *) "self", NULL | |
10691 | }; | |
10692 | ||
10693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
10694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10695 | { | |
10696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10697 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
10698 | ||
10699 | wxPyEndAllowThreads(__tstate); | |
10700 | if (PyErr_Occurred()) SWIG_fail; | |
10701 | } | |
8edf1c75 | 10702 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10703 | return resultobj; |
10704 | fail: | |
10705 | return NULL; | |
10706 | } | |
10707 | ||
10708 | ||
10709 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10710 | PyObject *resultobj; | |
10711 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10712 | int result; | |
10713 | PyObject * obj0 = 0 ; | |
10714 | char *kwnames[] = { | |
10715 | (char *) "self", NULL | |
10716 | }; | |
10717 | ||
10718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
10719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10720 | { | |
10721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10722 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
10723 | ||
10724 | wxPyEndAllowThreads(__tstate); | |
10725 | if (PyErr_Occurred()) SWIG_fail; | |
10726 | } | |
8edf1c75 | 10727 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10728 | return resultobj; |
10729 | fail: | |
10730 | return NULL; | |
10731 | } | |
10732 | ||
10733 | ||
10734 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10735 | PyObject *resultobj; | |
10736 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10737 | int result; | |
10738 | PyObject * obj0 = 0 ; | |
10739 | char *kwnames[] = { | |
10740 | (char *) "self", NULL | |
10741 | }; | |
10742 | ||
10743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
10744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10745 | { | |
10746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10747 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
10748 | ||
10749 | wxPyEndAllowThreads(__tstate); | |
10750 | if (PyErr_Occurred()) SWIG_fail; | |
10751 | } | |
8edf1c75 | 10752 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10753 | return resultobj; |
10754 | fail: | |
10755 | return NULL; | |
10756 | } | |
10757 | ||
10758 | ||
10759 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10760 | PyObject *resultobj; | |
10761 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10762 | int result; | |
10763 | PyObject * obj0 = 0 ; | |
10764 | char *kwnames[] = { | |
10765 | (char *) "self", NULL | |
10766 | }; | |
10767 | ||
10768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
10769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10770 | { | |
10771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10772 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
10773 | ||
10774 | wxPyEndAllowThreads(__tstate); | |
10775 | if (PyErr_Occurred()) SWIG_fail; | |
10776 | } | |
8edf1c75 | 10777 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10778 | return resultobj; |
10779 | fail: | |
10780 | return NULL; | |
10781 | } | |
10782 | ||
10783 | ||
10784 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10785 | PyObject *resultobj; | |
10786 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10787 | int arg2 ; | |
10788 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10789 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10790 | char *kwnames[] = { |
10791 | (char *) "self",(char *) "stick", NULL | |
10792 | }; | |
10793 | ||
8edf1c75 | 10794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10796 | { |
10797 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10798 | if (PyErr_Occurred()) SWIG_fail; | |
10799 | } | |
d14a1e28 RD |
10800 | { |
10801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10802 | (arg1)->SetJoystick(arg2); | |
10803 | ||
10804 | wxPyEndAllowThreads(__tstate); | |
10805 | if (PyErr_Occurred()) SWIG_fail; | |
10806 | } | |
10807 | Py_INCREF(Py_None); resultobj = Py_None; | |
10808 | return resultobj; | |
10809 | fail: | |
10810 | return NULL; | |
10811 | } | |
10812 | ||
10813 | ||
10814 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10815 | PyObject *resultobj; | |
10816 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10817 | int arg2 ; | |
10818 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10819 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10820 | char *kwnames[] = { |
10821 | (char *) "self",(char *) "state", NULL | |
10822 | }; | |
10823 | ||
8edf1c75 | 10824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10825 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10826 | { |
10827 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10828 | if (PyErr_Occurred()) SWIG_fail; | |
10829 | } | |
d14a1e28 RD |
10830 | { |
10831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10832 | (arg1)->SetButtonState(arg2); | |
10833 | ||
10834 | wxPyEndAllowThreads(__tstate); | |
10835 | if (PyErr_Occurred()) SWIG_fail; | |
10836 | } | |
10837 | Py_INCREF(Py_None); resultobj = Py_None; | |
10838 | return resultobj; | |
10839 | fail: | |
10840 | return NULL; | |
10841 | } | |
10842 | ||
10843 | ||
10844 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10845 | PyObject *resultobj; | |
10846 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10847 | int arg2 ; | |
10848 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10849 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10850 | char *kwnames[] = { |
10851 | (char *) "self",(char *) "change", NULL | |
10852 | }; | |
10853 | ||
8edf1c75 | 10854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10855 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10856 | { |
10857 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10858 | if (PyErr_Occurred()) SWIG_fail; | |
10859 | } | |
d14a1e28 RD |
10860 | { |
10861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10862 | (arg1)->SetButtonChange(arg2); | |
10863 | ||
10864 | wxPyEndAllowThreads(__tstate); | |
10865 | if (PyErr_Occurred()) SWIG_fail; | |
10866 | } | |
10867 | Py_INCREF(Py_None); resultobj = Py_None; | |
10868 | return resultobj; | |
10869 | fail: | |
10870 | return NULL; | |
10871 | } | |
10872 | ||
10873 | ||
10874 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10875 | PyObject *resultobj; | |
10876 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10877 | wxPoint *arg2 = 0 ; | |
10878 | wxPoint temp2 ; | |
10879 | PyObject * obj0 = 0 ; | |
10880 | PyObject * obj1 = 0 ; | |
10881 | char *kwnames[] = { | |
10882 | (char *) "self",(char *) "pos", NULL | |
10883 | }; | |
10884 | ||
10885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
10886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10887 | { | |
10888 | arg2 = &temp2; | |
10889 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10890 | } | |
10891 | { | |
10892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10893 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
10894 | ||
10895 | wxPyEndAllowThreads(__tstate); | |
10896 | if (PyErr_Occurred()) SWIG_fail; | |
10897 | } | |
10898 | Py_INCREF(Py_None); resultobj = Py_None; | |
10899 | return resultobj; | |
10900 | fail: | |
10901 | return NULL; | |
10902 | } | |
10903 | ||
10904 | ||
10905 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10906 | PyObject *resultobj; | |
10907 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10908 | int arg2 ; | |
10909 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10910 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10911 | char *kwnames[] = { |
10912 | (char *) "self",(char *) "zPos", NULL | |
10913 | }; | |
10914 | ||
8edf1c75 | 10915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10917 | { |
10918 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10919 | if (PyErr_Occurred()) SWIG_fail; | |
10920 | } | |
d14a1e28 RD |
10921 | { |
10922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10923 | (arg1)->SetZPosition(arg2); | |
10924 | ||
10925 | wxPyEndAllowThreads(__tstate); | |
10926 | if (PyErr_Occurred()) SWIG_fail; | |
10927 | } | |
10928 | Py_INCREF(Py_None); resultobj = Py_None; | |
10929 | return resultobj; | |
10930 | fail: | |
10931 | return NULL; | |
10932 | } | |
10933 | ||
10934 | ||
10935 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10936 | PyObject *resultobj; | |
10937 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10938 | bool result; | |
10939 | PyObject * obj0 = 0 ; | |
10940 | char *kwnames[] = { | |
10941 | (char *) "self", NULL | |
10942 | }; | |
10943 | ||
10944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
10945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10946 | { | |
10947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10948 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
10949 | ||
10950 | wxPyEndAllowThreads(__tstate); | |
10951 | if (PyErr_Occurred()) SWIG_fail; | |
10952 | } | |
02a34c4c | 10953 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10954 | return resultobj; |
10955 | fail: | |
10956 | return NULL; | |
10957 | } | |
10958 | ||
10959 | ||
10960 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10961 | PyObject *resultobj; | |
10962 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10963 | bool result; | |
10964 | PyObject * obj0 = 0 ; | |
10965 | char *kwnames[] = { | |
10966 | (char *) "self", NULL | |
10967 | }; | |
10968 | ||
10969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
10970 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10971 | { | |
10972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10973 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
10974 | ||
10975 | wxPyEndAllowThreads(__tstate); | |
10976 | if (PyErr_Occurred()) SWIG_fail; | |
10977 | } | |
02a34c4c | 10978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10979 | return resultobj; |
10980 | fail: | |
10981 | return NULL; | |
10982 | } | |
10983 | ||
10984 | ||
10985 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10986 | PyObject *resultobj; | |
10987 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10988 | bool result; | |
10989 | PyObject * obj0 = 0 ; | |
10990 | char *kwnames[] = { | |
10991 | (char *) "self", NULL | |
10992 | }; | |
10993 | ||
10994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
10995 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10996 | { | |
10997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10998 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
10999 | ||
11000 | wxPyEndAllowThreads(__tstate); | |
11001 | if (PyErr_Occurred()) SWIG_fail; | |
11002 | } | |
02a34c4c | 11003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11004 | return resultobj; |
11005 | fail: | |
11006 | return NULL; | |
11007 | } | |
11008 | ||
11009 | ||
11010 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11011 | PyObject *resultobj; | |
11012 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11013 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11014 | bool result; | |
11015 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11016 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11017 | char *kwnames[] = { |
11018 | (char *) "self",(char *) "but", NULL | |
11019 | }; | |
11020 | ||
8edf1c75 | 11021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11023 | if (obj1) { |
11024 | { | |
11025 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11026 | if (PyErr_Occurred()) SWIG_fail; | |
11027 | } | |
11028 | } | |
d14a1e28 RD |
11029 | { |
11030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11031 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
11032 | ||
11033 | wxPyEndAllowThreads(__tstate); | |
11034 | if (PyErr_Occurred()) SWIG_fail; | |
11035 | } | |
02a34c4c | 11036 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11037 | return resultobj; |
11038 | fail: | |
11039 | return NULL; | |
11040 | } | |
11041 | ||
11042 | ||
11043 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11044 | PyObject *resultobj; | |
11045 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11046 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11047 | bool result; | |
11048 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11049 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11050 | char *kwnames[] = { |
11051 | (char *) "self",(char *) "but", NULL | |
11052 | }; | |
11053 | ||
8edf1c75 | 11054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11055 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11056 | if (obj1) { |
11057 | { | |
11058 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11059 | if (PyErr_Occurred()) SWIG_fail; | |
11060 | } | |
11061 | } | |
d14a1e28 RD |
11062 | { |
11063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11064 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
11065 | ||
11066 | wxPyEndAllowThreads(__tstate); | |
11067 | if (PyErr_Occurred()) SWIG_fail; | |
11068 | } | |
02a34c4c | 11069 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11070 | return resultobj; |
11071 | fail: | |
11072 | return NULL; | |
11073 | } | |
11074 | ||
11075 | ||
11076 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11077 | PyObject *resultobj; | |
11078 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11079 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11080 | bool result; | |
11081 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11082 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11083 | char *kwnames[] = { |
11084 | (char *) "self",(char *) "but", NULL | |
11085 | }; | |
11086 | ||
8edf1c75 | 11087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11089 | if (obj1) { |
11090 | { | |
11091 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11092 | if (PyErr_Occurred()) SWIG_fail; | |
11093 | } | |
11094 | } | |
d14a1e28 RD |
11095 | { |
11096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11097 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
11098 | ||
11099 | wxPyEndAllowThreads(__tstate); | |
11100 | if (PyErr_Occurred()) SWIG_fail; | |
11101 | } | |
02a34c4c | 11102 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11103 | return resultobj; |
11104 | fail: | |
11105 | return NULL; | |
11106 | } | |
11107 | ||
11108 | ||
11109 | static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) { | |
11110 | PyObject *obj; | |
11111 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11112 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
11113 | Py_INCREF(obj); | |
11114 | return Py_BuildValue((char *)""); | |
11115 | } | |
02a34c4c RD |
11116 | static PyObject *_wrap_new_Sound__SWIG_0(PyObject *self, PyObject *args) { |
11117 | PyObject *resultobj; | |
11118 | wxSound *result; | |
11119 | ||
11120 | if(!PyArg_ParseTuple(args,(char *)":new_Sound")) goto fail; | |
11121 | { | |
11122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11123 | result = (wxSound *)new wxSound(); | |
11124 | ||
11125 | wxPyEndAllowThreads(__tstate); | |
11126 | if (PyErr_Occurred()) SWIG_fail; | |
11127 | } | |
11128 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSound, 1); | |
11129 | return resultobj; | |
11130 | fail: | |
11131 | return NULL; | |
11132 | } | |
11133 | ||
11134 | ||
11135 | static PyObject *_wrap_new_Sound__SWIG_1(PyObject *self, PyObject *args) { | |
d14a1e28 RD |
11136 | PyObject *resultobj; |
11137 | wxString *arg1 = 0 ; | |
02a34c4c RD |
11138 | bool arg2 = (bool) false ; |
11139 | wxSound *result; | |
423f194a | 11140 | bool temp1 = False ; |
d14a1e28 RD |
11141 | PyObject * obj0 = 0 ; |
11142 | PyObject * obj1 = 0 ; | |
d14a1e28 | 11143 | |
02a34c4c | 11144 | if(!PyArg_ParseTuple(args,(char *)"O|O:new_Sound",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
11145 | { |
11146 | arg1 = wxString_in_helper(obj0); | |
11147 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 11148 | temp1 = True; |
d14a1e28 RD |
11149 | } |
11150 | if (obj1) { | |
2dbef272 | 11151 | { |
8edf1c75 | 11152 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
11153 | if (PyErr_Occurred()) SWIG_fail; |
11154 | } | |
d14a1e28 RD |
11155 | } |
11156 | { | |
11157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 11158 | result = (wxSound *)new wxSound((wxString const &)*arg1,arg2); |
d14a1e28 RD |
11159 | |
11160 | wxPyEndAllowThreads(__tstate); | |
11161 | if (PyErr_Occurred()) SWIG_fail; | |
11162 | } | |
02a34c4c | 11163 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSound, 1); |
d14a1e28 RD |
11164 | { |
11165 | if (temp1) | |
11166 | delete arg1; | |
11167 | } | |
11168 | return resultobj; | |
11169 | fail: | |
11170 | { | |
11171 | if (temp1) | |
11172 | delete arg1; | |
11173 | } | |
11174 | return NULL; | |
11175 | } | |
11176 | ||
11177 | ||
02a34c4c | 11178 | static PyObject *_wrap_new_Sound__SWIG_2(PyObject *self, PyObject *args) { |
d14a1e28 | 11179 | PyObject *resultobj; |
02a34c4c RD |
11180 | int arg1 ; |
11181 | wxByte *arg2 = (wxByte *) 0 ; | |
11182 | wxSound *result; | |
d14a1e28 | 11183 | PyObject * obj0 = 0 ; |
02a34c4c | 11184 | PyObject * obj1 = 0 ; |
d14a1e28 | 11185 | |
02a34c4c | 11186 | if(!PyArg_ParseTuple(args,(char *)"OO:new_Sound",&obj0,&obj1)) goto fail; |
d14a1e28 | 11187 | { |
02a34c4c RD |
11188 | arg1 = (int) SWIG_PyObj_AsInt(obj0); |
11189 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 11190 | } |
02a34c4c | 11191 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxByte,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
11192 | { |
11193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 11194 | result = (wxSound *)new wxSound(arg1,(wxByte const *)arg2); |
d14a1e28 RD |
11195 | |
11196 | wxPyEndAllowThreads(__tstate); | |
11197 | if (PyErr_Occurred()) SWIG_fail; | |
11198 | } | |
02a34c4c | 11199 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSound, 1); |
d14a1e28 RD |
11200 | return resultobj; |
11201 | fail: | |
02a34c4c RD |
11202 | return NULL; |
11203 | } | |
11204 | ||
11205 | ||
11206 | static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args) { | |
11207 | int argc; | |
11208 | PyObject *argv[3]; | |
11209 | int ii; | |
11210 | ||
11211 | argc = PyObject_Length(args); | |
11212 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
11213 | argv[ii] = PyTuple_GetItem(args,ii); | |
11214 | } | |
11215 | if (argc == 0) { | |
11216 | return _wrap_new_Sound__SWIG_0(self,args); | |
d14a1e28 | 11217 | } |
02a34c4c RD |
11218 | if ((argc >= 1) && (argc <= 2)) { |
11219 | int _v; | |
11220 | { | |
11221 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
11222 | } | |
11223 | if (_v) { | |
11224 | if (argc <= 1) { | |
11225 | return _wrap_new_Sound__SWIG_1(self,args); | |
11226 | } | |
11227 | { | |
11228 | SWIG_PyObj_AsBool(argv[1]); | |
11229 | if (PyErr_Occurred()) { | |
11230 | _v = 0; | |
11231 | PyErr_Clear(); | |
11232 | } else { | |
11233 | _v = 1; | |
11234 | } | |
11235 | } | |
11236 | if (_v) { | |
11237 | return _wrap_new_Sound__SWIG_1(self,args); | |
11238 | } | |
11239 | } | |
11240 | } | |
11241 | if (argc == 2) { | |
11242 | int _v; | |
11243 | { | |
11244 | SWIG_PyObj_AsInt(argv[0]); | |
11245 | if (PyErr_Occurred()) { | |
11246 | _v = 0; | |
11247 | PyErr_Clear(); | |
11248 | } else { | |
11249 | _v = 1; | |
11250 | } | |
11251 | } | |
11252 | if (_v) { | |
11253 | { | |
11254 | void *ptr; | |
11255 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxByte, 0) == -1) { | |
11256 | _v = 0; | |
11257 | PyErr_Clear(); | |
11258 | } else { | |
11259 | _v = 1; | |
11260 | } | |
11261 | } | |
11262 | if (_v) { | |
11263 | return _wrap_new_Sound__SWIG_2(self,args); | |
11264 | } | |
11265 | } | |
11266 | } | |
11267 | ||
11268 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Sound'"); | |
d14a1e28 RD |
11269 | return NULL; |
11270 | } | |
11271 | ||
11272 | ||
02a34c4c | 11273 | static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11274 | PyObject *resultobj; |
02a34c4c | 11275 | wxSound *arg1 = (wxSound *) 0 ; |
d14a1e28 RD |
11276 | PyObject * obj0 = 0 ; |
11277 | char *kwnames[] = { | |
11278 | (char *) "self", NULL | |
11279 | }; | |
11280 | ||
02a34c4c RD |
11281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; |
11282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSound,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
11283 | { |
11284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11285 | delete arg1; | |
11286 | ||
11287 | wxPyEndAllowThreads(__tstate); | |
11288 | if (PyErr_Occurred()) SWIG_fail; | |
11289 | } | |
11290 | Py_INCREF(Py_None); resultobj = Py_None; | |
11291 | return resultobj; | |
11292 | fail: | |
11293 | return NULL; | |
11294 | } | |
11295 | ||
11296 | ||
02a34c4c | 11297 | static PyObject *_wrap_Sound_Create__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 | 11298 | PyObject *resultobj; |
02a34c4c RD |
11299 | wxSound *arg1 = (wxSound *) 0 ; |
11300 | wxString *arg2 = 0 ; | |
11301 | bool arg3 = (bool) false ; | |
d14a1e28 | 11302 | bool result; |
02a34c4c | 11303 | bool temp2 = False ; |
d14a1e28 | 11304 | PyObject * obj0 = 0 ; |
02a34c4c RD |
11305 | PyObject * obj1 = 0 ; |
11306 | PyObject * obj2 = 0 ; | |
d14a1e28 | 11307 | |
02a34c4c RD |
11308 | if(!PyArg_ParseTuple(args,(char *)"OO|O:Sound_Create",&obj0,&obj1,&obj2)) goto fail; |
11309 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSound,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11310 | { | |
11311 | arg2 = wxString_in_helper(obj1); | |
11312 | if (arg2 == NULL) SWIG_fail; | |
11313 | temp2 = True; | |
11314 | } | |
11315 | if (obj2) { | |
11316 | { | |
11317 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
11318 | if (PyErr_Occurred()) SWIG_fail; | |
11319 | } | |
11320 | } | |
d14a1e28 RD |
11321 | { |
11322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 11323 | result = (bool)(arg1)->Create((wxString const &)*arg2,arg3); |
d14a1e28 RD |
11324 | |
11325 | wxPyEndAllowThreads(__tstate); | |
11326 | if (PyErr_Occurred()) SWIG_fail; | |
11327 | } | |
02a34c4c RD |
11328 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
11329 | { | |
11330 | if (temp2) | |
11331 | delete arg2; | |
11332 | } | |
d14a1e28 RD |
11333 | return resultobj; |
11334 | fail: | |
02a34c4c RD |
11335 | { |
11336 | if (temp2) | |
11337 | delete arg2; | |
11338 | } | |
d14a1e28 RD |
11339 | return NULL; |
11340 | } | |
11341 | ||
11342 | ||
02a34c4c | 11343 | static PyObject *_wrap_Sound_Create__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 | 11344 | PyObject *resultobj; |
02a34c4c RD |
11345 | wxSound *arg1 = (wxSound *) 0 ; |
11346 | int arg2 ; | |
11347 | wxByte *arg3 = (wxByte *) 0 ; | |
d14a1e28 RD |
11348 | bool result; |
11349 | PyObject * obj0 = 0 ; | |
11350 | PyObject * obj1 = 0 ; | |
11351 | PyObject * obj2 = 0 ; | |
02a34c4c RD |
11352 | |
11353 | if(!PyArg_ParseTuple(args,(char *)"OOO:Sound_Create",&obj0,&obj1,&obj2)) goto fail; | |
11354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSound,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11355 | { | |
11356 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11357 | if (PyErr_Occurred()) SWIG_fail; | |
11358 | } | |
11359 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxByte,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11360 | { | |
11361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11362 | result = (bool)wxSound_Create__SWIG_1(arg1,arg2,(wxByte const *)arg3); | |
11363 | ||
11364 | wxPyEndAllowThreads(__tstate); | |
11365 | if (PyErr_Occurred()) SWIG_fail; | |
11366 | } | |
11367 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11368 | return resultobj; | |
11369 | fail: | |
11370 | return NULL; | |
11371 | } | |
11372 | ||
11373 | ||
11374 | static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args) { | |
11375 | int argc; | |
11376 | PyObject *argv[4]; | |
11377 | int ii; | |
11378 | ||
11379 | argc = PyObject_Length(args); | |
11380 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
11381 | argv[ii] = PyTuple_GetItem(args,ii); | |
11382 | } | |
11383 | if ((argc >= 2) && (argc <= 3)) { | |
11384 | int _v; | |
11385 | { | |
11386 | void *ptr; | |
11387 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxSound, 0) == -1) { | |
11388 | _v = 0; | |
11389 | PyErr_Clear(); | |
11390 | } else { | |
11391 | _v = 1; | |
11392 | } | |
11393 | } | |
11394 | if (_v) { | |
11395 | { | |
11396 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
11397 | } | |
11398 | if (_v) { | |
11399 | if (argc <= 2) { | |
11400 | return _wrap_Sound_Create__SWIG_0(self,args); | |
11401 | } | |
11402 | { | |
11403 | SWIG_PyObj_AsBool(argv[2]); | |
11404 | if (PyErr_Occurred()) { | |
11405 | _v = 0; | |
11406 | PyErr_Clear(); | |
11407 | } else { | |
11408 | _v = 1; | |
11409 | } | |
11410 | } | |
11411 | if (_v) { | |
11412 | return _wrap_Sound_Create__SWIG_0(self,args); | |
11413 | } | |
11414 | } | |
11415 | } | |
11416 | } | |
11417 | if (argc == 3) { | |
11418 | int _v; | |
11419 | { | |
11420 | void *ptr; | |
11421 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxSound, 0) == -1) { | |
11422 | _v = 0; | |
11423 | PyErr_Clear(); | |
11424 | } else { | |
11425 | _v = 1; | |
11426 | } | |
11427 | } | |
11428 | if (_v) { | |
11429 | { | |
11430 | SWIG_PyObj_AsInt(argv[1]); | |
11431 | if (PyErr_Occurred()) { | |
11432 | _v = 0; | |
11433 | PyErr_Clear(); | |
11434 | } else { | |
11435 | _v = 1; | |
11436 | } | |
11437 | } | |
11438 | if (_v) { | |
11439 | { | |
11440 | void *ptr; | |
11441 | if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxByte, 0) == -1) { | |
11442 | _v = 0; | |
11443 | PyErr_Clear(); | |
11444 | } else { | |
11445 | _v = 1; | |
11446 | } | |
11447 | } | |
11448 | if (_v) { | |
11449 | return _wrap_Sound_Create__SWIG_1(self,args); | |
11450 | } | |
11451 | } | |
11452 | } | |
11453 | } | |
11454 | ||
11455 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Sound_Create'"); | |
11456 | return NULL; | |
11457 | } | |
11458 | ||
11459 | ||
11460 | static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11461 | PyObject *resultobj; | |
11462 | wxSound *arg1 = (wxSound *) 0 ; | |
11463 | bool result; | |
11464 | PyObject * obj0 = 0 ; | |
d14a1e28 | 11465 | char *kwnames[] = { |
02a34c4c | 11466 | (char *) "self", NULL |
d14a1e28 RD |
11467 | }; |
11468 | ||
02a34c4c RD |
11469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; |
11470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSound,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11471 | { | |
11472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11473 | result = (bool)(arg1)->IsOk(); | |
11474 | ||
11475 | wxPyEndAllowThreads(__tstate); | |
11476 | if (PyErr_Occurred()) SWIG_fail; | |
11477 | } | |
11478 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11479 | return resultobj; | |
11480 | fail: | |
11481 | return NULL; | |
11482 | } | |
11483 | ||
11484 | ||
11485 | static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args) { | |
11486 | PyObject *resultobj; | |
11487 | wxSound *arg1 = (wxSound *) 0 ; | |
11488 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11489 | bool result; | |
11490 | PyObject * obj0 = 0 ; | |
11491 | PyObject * obj1 = 0 ; | |
11492 | ||
11493 | if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_Play",&obj0,&obj1)) goto fail; | |
11494 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSound,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 | 11495 | if (obj1) { |
2dbef272 | 11496 | { |
02a34c4c | 11497 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); |
2dbef272 RD |
11498 | if (PyErr_Occurred()) SWIG_fail; |
11499 | } | |
d14a1e28 | 11500 | } |
02a34c4c RD |
11501 | { |
11502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11503 | result = (bool)((wxSound const *)arg1)->Play(arg2); | |
11504 | ||
11505 | wxPyEndAllowThreads(__tstate); | |
11506 | if (PyErr_Occurred()) SWIG_fail; | |
11507 | } | |
11508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11509 | return resultobj; | |
11510 | fail: | |
11511 | return NULL; | |
11512 | } | |
11513 | ||
11514 | ||
11515 | static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args) { | |
11516 | PyObject *resultobj; | |
11517 | wxString *arg1 = 0 ; | |
11518 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11519 | bool result; | |
11520 | bool temp1 = False ; | |
11521 | PyObject * obj0 = 0 ; | |
11522 | PyObject * obj1 = 0 ; | |
11523 | ||
11524 | if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_PlaySound",&obj0,&obj1)) goto fail; | |
11525 | { | |
11526 | arg1 = wxString_in_helper(obj0); | |
11527 | if (arg1 == NULL) SWIG_fail; | |
11528 | temp1 = True; | |
11529 | } | |
11530 | if (obj1) { | |
2dbef272 | 11531 | { |
02a34c4c | 11532 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); |
2dbef272 RD |
11533 | if (PyErr_Occurred()) SWIG_fail; |
11534 | } | |
d14a1e28 RD |
11535 | } |
11536 | { | |
11537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
02a34c4c | 11538 | result = (bool)wxSound::Play((wxString const &)*arg1,arg2); |
d14a1e28 RD |
11539 | |
11540 | wxPyEndAllowThreads(__tstate); | |
11541 | if (PyErr_Occurred()) SWIG_fail; | |
11542 | } | |
02a34c4c RD |
11543 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
11544 | { | |
11545 | if (temp1) | |
11546 | delete arg1; | |
11547 | } | |
d14a1e28 RD |
11548 | return resultobj; |
11549 | fail: | |
02a34c4c RD |
11550 | { |
11551 | if (temp1) | |
11552 | delete arg1; | |
11553 | } | |
d14a1e28 RD |
11554 | return NULL; |
11555 | } | |
11556 | ||
11557 | ||
02a34c4c RD |
11558 | static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { |
11559 | PyObject *resultobj; | |
11560 | char *kwnames[] = { | |
11561 | NULL | |
11562 | }; | |
11563 | ||
11564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; | |
11565 | { | |
11566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11567 | Sound_Stop(); | |
11568 | ||
11569 | wxPyEndAllowThreads(__tstate); | |
11570 | if (PyErr_Occurred()) SWIG_fail; | |
11571 | } | |
11572 | Py_INCREF(Py_None); resultobj = Py_None; | |
11573 | return resultobj; | |
11574 | fail: | |
11575 | return NULL; | |
11576 | } | |
11577 | ||
11578 | ||
11579 | static PyObject * Sound_swigregister(PyObject *self, PyObject *args) { | |
d14a1e28 RD |
11580 | PyObject *obj; |
11581 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
02a34c4c | 11582 | SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); |
d14a1e28 RD |
11583 | Py_INCREF(obj); |
11584 | return Py_BuildValue((char *)""); | |
11585 | } | |
11586 | static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11587 | PyObject *resultobj; | |
11588 | wxString *arg1 = 0 ; | |
11589 | wxString *arg2 = 0 ; | |
11590 | wxString *arg3 = 0 ; | |
11591 | wxString *arg4 = 0 ; | |
11592 | wxFileTypeInfo *result; | |
423f194a RD |
11593 | bool temp1 = False ; |
11594 | bool temp2 = False ; | |
11595 | bool temp3 = False ; | |
11596 | bool temp4 = False ; | |
d14a1e28 RD |
11597 | PyObject * obj0 = 0 ; |
11598 | PyObject * obj1 = 0 ; | |
11599 | PyObject * obj2 = 0 ; | |
11600 | PyObject * obj3 = 0 ; | |
11601 | char *kwnames[] = { | |
11602 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
11603 | }; | |
11604 | ||
11605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11606 | { | |
11607 | arg1 = wxString_in_helper(obj0); | |
11608 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 11609 | temp1 = True; |
d14a1e28 RD |
11610 | } |
11611 | { | |
11612 | arg2 = wxString_in_helper(obj1); | |
11613 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11614 | temp2 = True; |
d14a1e28 RD |
11615 | } |
11616 | { | |
11617 | arg3 = wxString_in_helper(obj2); | |
11618 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11619 | temp3 = True; |
d14a1e28 RD |
11620 | } |
11621 | { | |
11622 | arg4 = wxString_in_helper(obj3); | |
11623 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 11624 | temp4 = True; |
d14a1e28 RD |
11625 | } |
11626 | { | |
11627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11628 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
11629 | ||
11630 | wxPyEndAllowThreads(__tstate); | |
11631 | if (PyErr_Occurred()) SWIG_fail; | |
11632 | } | |
11633 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
11634 | { | |
11635 | if (temp1) | |
11636 | delete arg1; | |
11637 | } | |
11638 | { | |
11639 | if (temp2) | |
11640 | delete arg2; | |
11641 | } | |
11642 | { | |
11643 | if (temp3) | |
11644 | delete arg3; | |
11645 | } | |
11646 | { | |
11647 | if (temp4) | |
11648 | delete arg4; | |
11649 | } | |
11650 | return resultobj; | |
11651 | fail: | |
11652 | { | |
11653 | if (temp1) | |
11654 | delete arg1; | |
11655 | } | |
11656 | { | |
11657 | if (temp2) | |
11658 | delete arg2; | |
11659 | } | |
11660 | { | |
11661 | if (temp3) | |
11662 | delete arg3; | |
11663 | } | |
11664 | { | |
11665 | if (temp4) | |
11666 | delete arg4; | |
11667 | } | |
11668 | return NULL; | |
11669 | } | |
11670 | ||
11671 | ||
11672 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11673 | PyObject *resultobj; | |
11674 | wxArrayString *arg1 = 0 ; | |
11675 | wxFileTypeInfo *result; | |
0ffb2aa6 | 11676 | bool temp1 = False ; |
d14a1e28 RD |
11677 | PyObject * obj0 = 0 ; |
11678 | char *kwnames[] = { | |
11679 | (char *) "sArray", NULL | |
11680 | }; | |
11681 | ||
11682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
11683 | { | |
11684 | if (! PySequence_Check(obj0)) { | |
11685 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11686 | SWIG_fail; | |
11687 | } | |
11688 | arg1 = new wxArrayString; | |
0ffb2aa6 | 11689 | temp1 = True; |
d14a1e28 RD |
11690 | int i, len=PySequence_Length(obj0); |
11691 | for (i=0; i<len; i++) { | |
11692 | PyObject* item = PySequence_GetItem(obj0, i); | |
11693 | #if wxUSE_UNICODE | |
11694 | PyObject* str = PyObject_Unicode(item); | |
11695 | #else | |
11696 | PyObject* str = PyObject_Str(item); | |
11697 | #endif | |
11698 | arg1->Add(Py2wxString(str)); | |
11699 | Py_DECREF(item); | |
11700 | Py_DECREF(str); | |
11701 | } | |
11702 | } | |
11703 | { | |
11704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11705 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
11706 | ||
11707 | wxPyEndAllowThreads(__tstate); | |
11708 | if (PyErr_Occurred()) SWIG_fail; | |
11709 | } | |
11710 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
11711 | { | |
0ffb2aa6 | 11712 | if (temp1) delete arg1; |
d14a1e28 RD |
11713 | } |
11714 | return resultobj; | |
11715 | fail: | |
11716 | { | |
0ffb2aa6 | 11717 | if (temp1) delete arg1; |
d14a1e28 RD |
11718 | } |
11719 | return NULL; | |
11720 | } | |
11721 | ||
11722 | ||
11723 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11724 | PyObject *resultobj; | |
11725 | wxFileTypeInfo *result; | |
11726 | char *kwnames[] = { | |
11727 | NULL | |
11728 | }; | |
11729 | ||
11730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
11731 | { | |
11732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11733 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
11734 | ||
11735 | wxPyEndAllowThreads(__tstate); | |
11736 | if (PyErr_Occurred()) SWIG_fail; | |
11737 | } | |
11738 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
11739 | return resultobj; | |
11740 | fail: | |
11741 | return NULL; | |
11742 | } | |
11743 | ||
11744 | ||
11745 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11746 | PyObject *resultobj; | |
11747 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11748 | bool result; | |
11749 | PyObject * obj0 = 0 ; | |
11750 | char *kwnames[] = { | |
11751 | (char *) "self", NULL | |
11752 | }; | |
11753 | ||
11754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
11755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11756 | { | |
11757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11758 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
11759 | ||
11760 | wxPyEndAllowThreads(__tstate); | |
11761 | if (PyErr_Occurred()) SWIG_fail; | |
11762 | } | |
02a34c4c | 11763 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11764 | return resultobj; |
11765 | fail: | |
11766 | return NULL; | |
11767 | } | |
11768 | ||
11769 | ||
11770 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11771 | PyObject *resultobj; | |
11772 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11773 | wxString *arg2 = 0 ; | |
11774 | int arg3 = (int) 0 ; | |
423f194a | 11775 | bool temp2 = False ; |
d14a1e28 RD |
11776 | PyObject * obj0 = 0 ; |
11777 | PyObject * obj1 = 0 ; | |
8edf1c75 | 11778 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11779 | char *kwnames[] = { |
11780 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
11781 | }; | |
11782 | ||
8edf1c75 | 11783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
11784 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11785 | { | |
11786 | arg2 = wxString_in_helper(obj1); | |
11787 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11788 | temp2 = True; |
d14a1e28 | 11789 | } |
8edf1c75 RD |
11790 | if (obj2) { |
11791 | { | |
11792 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11793 | if (PyErr_Occurred()) SWIG_fail; | |
11794 | } | |
11795 | } | |
d14a1e28 RD |
11796 | { |
11797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11798 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
11799 | ||
11800 | wxPyEndAllowThreads(__tstate); | |
11801 | if (PyErr_Occurred()) SWIG_fail; | |
11802 | } | |
11803 | Py_INCREF(Py_None); resultobj = Py_None; | |
11804 | { | |
11805 | if (temp2) | |
11806 | delete arg2; | |
11807 | } | |
11808 | return resultobj; | |
11809 | fail: | |
11810 | { | |
11811 | if (temp2) | |
11812 | delete arg2; | |
11813 | } | |
11814 | return NULL; | |
11815 | } | |
11816 | ||
11817 | ||
11818 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11819 | PyObject *resultobj; | |
11820 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11821 | wxString *arg2 = 0 ; | |
423f194a | 11822 | bool temp2 = False ; |
d14a1e28 RD |
11823 | PyObject * obj0 = 0 ; |
11824 | PyObject * obj1 = 0 ; | |
11825 | char *kwnames[] = { | |
11826 | (char *) "self",(char *) "shortDesc", NULL | |
11827 | }; | |
11828 | ||
11829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
11830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11831 | { | |
11832 | arg2 = wxString_in_helper(obj1); | |
11833 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11834 | temp2 = True; |
d14a1e28 RD |
11835 | } |
11836 | { | |
11837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11838 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
11839 | ||
11840 | wxPyEndAllowThreads(__tstate); | |
11841 | if (PyErr_Occurred()) SWIG_fail; | |
11842 | } | |
11843 | Py_INCREF(Py_None); resultobj = Py_None; | |
11844 | { | |
11845 | if (temp2) | |
11846 | delete arg2; | |
11847 | } | |
11848 | return resultobj; | |
11849 | fail: | |
11850 | { | |
11851 | if (temp2) | |
11852 | delete arg2; | |
11853 | } | |
11854 | return NULL; | |
11855 | } | |
11856 | ||
11857 | ||
11858 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11859 | PyObject *resultobj; | |
11860 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11861 | wxString *result; | |
11862 | PyObject * obj0 = 0 ; | |
11863 | char *kwnames[] = { | |
11864 | (char *) "self", NULL | |
11865 | }; | |
11866 | ||
11867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
11868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11869 | { | |
11870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11871 | { | |
11872 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
11873 | result = (wxString *) &_result_ref; | |
11874 | } | |
11875 | ||
11876 | wxPyEndAllowThreads(__tstate); | |
11877 | if (PyErr_Occurred()) SWIG_fail; | |
11878 | } | |
0f774bef RD |
11879 | { |
11880 | #if wxUSE_UNICODE | |
11881 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11882 | #else | |
11883 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11884 | #endif | |
11885 | } | |
d14a1e28 RD |
11886 | return resultobj; |
11887 | fail: | |
11888 | return NULL; | |
11889 | } | |
11890 | ||
11891 | ||
11892 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11893 | PyObject *resultobj; | |
11894 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11895 | wxString *result; | |
11896 | PyObject * obj0 = 0 ; | |
11897 | char *kwnames[] = { | |
11898 | (char *) "self", NULL | |
11899 | }; | |
11900 | ||
11901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
11902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11903 | { | |
11904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11905 | { | |
11906 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
11907 | result = (wxString *) &_result_ref; | |
11908 | } | |
11909 | ||
11910 | wxPyEndAllowThreads(__tstate); | |
11911 | if (PyErr_Occurred()) SWIG_fail; | |
11912 | } | |
0f774bef RD |
11913 | { |
11914 | #if wxUSE_UNICODE | |
11915 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11916 | #else | |
11917 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11918 | #endif | |
11919 | } | |
d14a1e28 RD |
11920 | return resultobj; |
11921 | fail: | |
11922 | return NULL; | |
11923 | } | |
11924 | ||
11925 | ||
11926 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11927 | PyObject *resultobj; | |
11928 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11929 | wxString *result; | |
11930 | PyObject * obj0 = 0 ; | |
11931 | char *kwnames[] = { | |
11932 | (char *) "self", NULL | |
11933 | }; | |
11934 | ||
11935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
11936 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11937 | { | |
11938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11939 | { | |
11940 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
11941 | result = (wxString *) &_result_ref; | |
11942 | } | |
11943 | ||
11944 | wxPyEndAllowThreads(__tstate); | |
11945 | if (PyErr_Occurred()) SWIG_fail; | |
11946 | } | |
0f774bef RD |
11947 | { |
11948 | #if wxUSE_UNICODE | |
11949 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11950 | #else | |
11951 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11952 | #endif | |
11953 | } | |
d14a1e28 RD |
11954 | return resultobj; |
11955 | fail: | |
11956 | return NULL; | |
11957 | } | |
11958 | ||
11959 | ||
11960 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11961 | PyObject *resultobj; | |
11962 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11963 | wxString *result; | |
11964 | PyObject * obj0 = 0 ; | |
11965 | char *kwnames[] = { | |
11966 | (char *) "self", NULL | |
11967 | }; | |
11968 | ||
11969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
11970 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11971 | { | |
11972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11973 | { | |
11974 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
11975 | result = (wxString *) &_result_ref; | |
11976 | } | |
11977 | ||
11978 | wxPyEndAllowThreads(__tstate); | |
11979 | if (PyErr_Occurred()) SWIG_fail; | |
11980 | } | |
0f774bef RD |
11981 | { |
11982 | #if wxUSE_UNICODE | |
11983 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11984 | #else | |
11985 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11986 | #endif | |
11987 | } | |
d14a1e28 RD |
11988 | return resultobj; |
11989 | fail: | |
11990 | return NULL; | |
11991 | } | |
11992 | ||
11993 | ||
11994 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11995 | PyObject *resultobj; | |
11996 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11997 | wxString *result; | |
11998 | PyObject * obj0 = 0 ; | |
11999 | char *kwnames[] = { | |
12000 | (char *) "self", NULL | |
12001 | }; | |
12002 | ||
12003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
12004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12005 | { | |
12006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12007 | { | |
12008 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
12009 | result = (wxString *) &_result_ref; | |
12010 | } | |
12011 | ||
12012 | wxPyEndAllowThreads(__tstate); | |
12013 | if (PyErr_Occurred()) SWIG_fail; | |
12014 | } | |
0f774bef RD |
12015 | { |
12016 | #if wxUSE_UNICODE | |
12017 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12018 | #else | |
12019 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12020 | #endif | |
12021 | } | |
d14a1e28 RD |
12022 | return resultobj; |
12023 | fail: | |
12024 | return NULL; | |
12025 | } | |
12026 | ||
12027 | ||
12028 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12029 | PyObject *resultobj; | |
12030 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12031 | wxArrayString *result; | |
12032 | PyObject * obj0 = 0 ; | |
12033 | char *kwnames[] = { | |
12034 | (char *) "self", NULL | |
12035 | }; | |
12036 | ||
12037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
12038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12039 | { | |
12040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12041 | { | |
12042 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
12043 | result = (wxArrayString *) &_result_ref; | |
12044 | } | |
12045 | ||
12046 | wxPyEndAllowThreads(__tstate); | |
12047 | if (PyErr_Occurred()) SWIG_fail; | |
12048 | } | |
12049 | { | |
12050 | resultobj = wxArrayString2PyList_helper(*result); | |
12051 | } | |
12052 | return resultobj; | |
12053 | fail: | |
12054 | return NULL; | |
12055 | } | |
12056 | ||
12057 | ||
12058 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12059 | PyObject *resultobj; | |
12060 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12061 | int result; | |
12062 | PyObject * obj0 = 0 ; | |
12063 | char *kwnames[] = { | |
12064 | (char *) "self", NULL | |
12065 | }; | |
12066 | ||
12067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
12068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12069 | { | |
12070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12071 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
12072 | ||
12073 | wxPyEndAllowThreads(__tstate); | |
12074 | if (PyErr_Occurred()) SWIG_fail; | |
12075 | } | |
8edf1c75 | 12076 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12077 | return resultobj; |
12078 | fail: | |
12079 | return NULL; | |
12080 | } | |
12081 | ||
12082 | ||
12083 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12084 | PyObject *resultobj; | |
12085 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12086 | wxString *result; | |
12087 | PyObject * obj0 = 0 ; | |
12088 | char *kwnames[] = { | |
12089 | (char *) "self", NULL | |
12090 | }; | |
12091 | ||
12092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
12093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12094 | { | |
12095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12096 | { | |
12097 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
12098 | result = (wxString *) &_result_ref; | |
12099 | } | |
12100 | ||
12101 | wxPyEndAllowThreads(__tstate); | |
12102 | if (PyErr_Occurred()) SWIG_fail; | |
12103 | } | |
0f774bef RD |
12104 | { |
12105 | #if wxUSE_UNICODE | |
12106 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12107 | #else | |
12108 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12109 | #endif | |
12110 | } | |
d14a1e28 RD |
12111 | return resultobj; |
12112 | fail: | |
12113 | return NULL; | |
12114 | } | |
12115 | ||
12116 | ||
12117 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12118 | PyObject *resultobj; | |
12119 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12120 | int result; | |
12121 | PyObject * obj0 = 0 ; | |
12122 | char *kwnames[] = { | |
12123 | (char *) "self", NULL | |
12124 | }; | |
12125 | ||
12126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
12127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12128 | { | |
12129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12130 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
12131 | ||
12132 | wxPyEndAllowThreads(__tstate); | |
12133 | if (PyErr_Occurred()) SWIG_fail; | |
12134 | } | |
8edf1c75 | 12135 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12136 | return resultobj; |
12137 | fail: | |
12138 | return NULL; | |
12139 | } | |
12140 | ||
12141 | ||
12142 | static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) { | |
12143 | PyObject *obj; | |
12144 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12145 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
12146 | Py_INCREF(obj); | |
12147 | return Py_BuildValue((char *)""); | |
12148 | } | |
12149 | static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12150 | PyObject *resultobj; | |
12151 | wxFileTypeInfo *arg1 = 0 ; | |
12152 | wxFileType *result; | |
12153 | PyObject * obj0 = 0 ; | |
12154 | char *kwnames[] = { | |
12155 | (char *) "ftInfo", NULL | |
12156 | }; | |
12157 | ||
12158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
12159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12160 | if (arg1 == NULL) { | |
12161 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12162 | } | |
12163 | { | |
12164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12165 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
12166 | ||
12167 | wxPyEndAllowThreads(__tstate); | |
12168 | if (PyErr_Occurred()) SWIG_fail; | |
12169 | } | |
12170 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
12171 | return resultobj; | |
12172 | fail: | |
12173 | return NULL; | |
12174 | } | |
12175 | ||
12176 | ||
12177 | static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12178 | PyObject *resultobj; | |
12179 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12180 | PyObject * obj0 = 0 ; | |
12181 | char *kwnames[] = { | |
12182 | (char *) "self", NULL | |
12183 | }; | |
12184 | ||
12185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
12186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12187 | { | |
12188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12189 | delete arg1; | |
12190 | ||
12191 | wxPyEndAllowThreads(__tstate); | |
12192 | if (PyErr_Occurred()) SWIG_fail; | |
12193 | } | |
12194 | Py_INCREF(Py_None); resultobj = Py_None; | |
12195 | return resultobj; | |
12196 | fail: | |
12197 | return NULL; | |
12198 | } | |
12199 | ||
12200 | ||
12201 | static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12202 | PyObject *resultobj; | |
12203 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12204 | PyObject *result; | |
12205 | PyObject * obj0 = 0 ; | |
12206 | char *kwnames[] = { | |
12207 | (char *) "self", NULL | |
12208 | }; | |
12209 | ||
12210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
12211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12212 | { | |
12213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12214 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
12215 | ||
12216 | wxPyEndAllowThreads(__tstate); | |
12217 | if (PyErr_Occurred()) SWIG_fail; | |
12218 | } | |
12219 | resultobj = result; | |
12220 | return resultobj; | |
12221 | fail: | |
12222 | return NULL; | |
12223 | } | |
12224 | ||
12225 | ||
12226 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12227 | PyObject *resultobj; | |
12228 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12229 | PyObject *result; | |
12230 | PyObject * obj0 = 0 ; | |
12231 | char *kwnames[] = { | |
12232 | (char *) "self", NULL | |
12233 | }; | |
12234 | ||
12235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
12236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12237 | { | |
12238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12239 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
12240 | ||
12241 | wxPyEndAllowThreads(__tstate); | |
12242 | if (PyErr_Occurred()) SWIG_fail; | |
12243 | } | |
12244 | resultobj = result; | |
12245 | return resultobj; | |
12246 | fail: | |
12247 | return NULL; | |
12248 | } | |
12249 | ||
12250 | ||
12251 | static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12252 | PyObject *resultobj; | |
12253 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12254 | PyObject *result; | |
12255 | PyObject * obj0 = 0 ; | |
12256 | char *kwnames[] = { | |
12257 | (char *) "self", NULL | |
12258 | }; | |
12259 | ||
12260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
12261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12262 | { | |
12263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12264 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
12265 | ||
12266 | wxPyEndAllowThreads(__tstate); | |
12267 | if (PyErr_Occurred()) SWIG_fail; | |
12268 | } | |
12269 | resultobj = result; | |
12270 | return resultobj; | |
12271 | fail: | |
12272 | return NULL; | |
12273 | } | |
12274 | ||
12275 | ||
12276 | static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12277 | PyObject *resultobj; | |
12278 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12279 | wxIcon *result; | |
12280 | PyObject * obj0 = 0 ; | |
12281 | char *kwnames[] = { | |
12282 | (char *) "self", NULL | |
12283 | }; | |
12284 | ||
12285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
12286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12287 | { | |
12288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12289 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
12290 | ||
12291 | wxPyEndAllowThreads(__tstate); | |
12292 | if (PyErr_Occurred()) SWIG_fail; | |
12293 | } | |
12294 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
12295 | return resultobj; | |
12296 | fail: | |
12297 | return NULL; | |
12298 | } | |
12299 | ||
12300 | ||
12301 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12302 | PyObject *resultobj; | |
12303 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12304 | PyObject *result; | |
12305 | PyObject * obj0 = 0 ; | |
12306 | char *kwnames[] = { | |
12307 | (char *) "self", NULL | |
12308 | }; | |
12309 | ||
12310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
12311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12312 | { | |
12313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12314 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
12315 | ||
12316 | wxPyEndAllowThreads(__tstate); | |
12317 | if (PyErr_Occurred()) SWIG_fail; | |
12318 | } | |
12319 | resultobj = result; | |
12320 | return resultobj; | |
12321 | fail: | |
12322 | return NULL; | |
12323 | } | |
12324 | ||
12325 | ||
12326 | static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12327 | PyObject *resultobj; | |
12328 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12329 | PyObject *result; | |
12330 | PyObject * obj0 = 0 ; | |
12331 | char *kwnames[] = { | |
12332 | (char *) "self", NULL | |
12333 | }; | |
12334 | ||
12335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
12336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12337 | { | |
12338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12339 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
12340 | ||
12341 | wxPyEndAllowThreads(__tstate); | |
12342 | if (PyErr_Occurred()) SWIG_fail; | |
12343 | } | |
12344 | resultobj = result; | |
12345 | return resultobj; | |
12346 | fail: | |
12347 | return NULL; | |
12348 | } | |
12349 | ||
12350 | ||
12351 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12352 | PyObject *resultobj; | |
12353 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12354 | wxString *arg2 = 0 ; | |
12355 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12356 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12357 | PyObject *result; | |
423f194a RD |
12358 | bool temp2 = False ; |
12359 | bool temp3 = False ; | |
d14a1e28 RD |
12360 | PyObject * obj0 = 0 ; |
12361 | PyObject * obj1 = 0 ; | |
12362 | PyObject * obj2 = 0 ; | |
12363 | char *kwnames[] = { | |
12364 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12365 | }; | |
12366 | ||
12367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12369 | { | |
12370 | arg2 = wxString_in_helper(obj1); | |
12371 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12372 | temp2 = True; |
d14a1e28 RD |
12373 | } |
12374 | if (obj2) { | |
12375 | { | |
12376 | arg3 = wxString_in_helper(obj2); | |
12377 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12378 | temp3 = True; |
d14a1e28 RD |
12379 | } |
12380 | } | |
12381 | { | |
12382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12383 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12384 | ||
12385 | wxPyEndAllowThreads(__tstate); | |
12386 | if (PyErr_Occurred()) SWIG_fail; | |
12387 | } | |
12388 | resultobj = result; | |
12389 | { | |
12390 | if (temp2) | |
12391 | delete arg2; | |
12392 | } | |
12393 | { | |
12394 | if (temp3) | |
12395 | delete arg3; | |
12396 | } | |
12397 | return resultobj; | |
12398 | fail: | |
12399 | { | |
12400 | if (temp2) | |
12401 | delete arg2; | |
12402 | } | |
12403 | { | |
12404 | if (temp3) | |
12405 | delete arg3; | |
12406 | } | |
12407 | return NULL; | |
12408 | } | |
12409 | ||
12410 | ||
12411 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12412 | PyObject *resultobj; | |
12413 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12414 | wxString *arg2 = 0 ; | |
12415 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12416 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12417 | PyObject *result; | |
423f194a RD |
12418 | bool temp2 = False ; |
12419 | bool temp3 = False ; | |
d14a1e28 RD |
12420 | PyObject * obj0 = 0 ; |
12421 | PyObject * obj1 = 0 ; | |
12422 | PyObject * obj2 = 0 ; | |
12423 | char *kwnames[] = { | |
12424 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12425 | }; | |
12426 | ||
12427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12428 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12429 | { | |
12430 | arg2 = wxString_in_helper(obj1); | |
12431 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12432 | temp2 = True; |
d14a1e28 RD |
12433 | } |
12434 | if (obj2) { | |
12435 | { | |
12436 | arg3 = wxString_in_helper(obj2); | |
12437 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12438 | temp3 = True; |
d14a1e28 RD |
12439 | } |
12440 | } | |
12441 | { | |
12442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12443 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12444 | ||
12445 | wxPyEndAllowThreads(__tstate); | |
12446 | if (PyErr_Occurred()) SWIG_fail; | |
12447 | } | |
12448 | resultobj = result; | |
12449 | { | |
12450 | if (temp2) | |
12451 | delete arg2; | |
12452 | } | |
12453 | { | |
12454 | if (temp3) | |
12455 | delete arg3; | |
12456 | } | |
12457 | return resultobj; | |
12458 | fail: | |
12459 | { | |
12460 | if (temp2) | |
12461 | delete arg2; | |
12462 | } | |
12463 | { | |
12464 | if (temp3) | |
12465 | delete arg3; | |
12466 | } | |
12467 | return NULL; | |
12468 | } | |
12469 | ||
12470 | ||
12471 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12472 | PyObject *resultobj; | |
12473 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12474 | wxString *arg2 = 0 ; | |
12475 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12476 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12477 | PyObject *result; | |
423f194a RD |
12478 | bool temp2 = False ; |
12479 | bool temp3 = False ; | |
d14a1e28 RD |
12480 | PyObject * obj0 = 0 ; |
12481 | PyObject * obj1 = 0 ; | |
12482 | PyObject * obj2 = 0 ; | |
12483 | char *kwnames[] = { | |
12484 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12485 | }; | |
12486 | ||
12487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12489 | { | |
12490 | arg2 = wxString_in_helper(obj1); | |
12491 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12492 | temp2 = True; |
d14a1e28 RD |
12493 | } |
12494 | if (obj2) { | |
12495 | { | |
12496 | arg3 = wxString_in_helper(obj2); | |
12497 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12498 | temp3 = True; |
d14a1e28 RD |
12499 | } |
12500 | } | |
12501 | { | |
12502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12503 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12504 | ||
12505 | wxPyEndAllowThreads(__tstate); | |
12506 | if (PyErr_Occurred()) SWIG_fail; | |
12507 | } | |
12508 | resultobj = result; | |
12509 | { | |
12510 | if (temp2) | |
12511 | delete arg2; | |
12512 | } | |
12513 | { | |
12514 | if (temp3) | |
12515 | delete arg3; | |
12516 | } | |
12517 | return resultobj; | |
12518 | fail: | |
12519 | { | |
12520 | if (temp2) | |
12521 | delete arg2; | |
12522 | } | |
12523 | { | |
12524 | if (temp3) | |
12525 | delete arg3; | |
12526 | } | |
12527 | return NULL; | |
12528 | } | |
12529 | ||
12530 | ||
12531 | static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12532 | PyObject *resultobj; | |
12533 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12534 | wxString *arg2 = 0 ; | |
12535 | wxString *arg3 = 0 ; | |
423f194a | 12536 | bool arg4 = (bool) True ; |
d14a1e28 | 12537 | bool result; |
423f194a RD |
12538 | bool temp2 = False ; |
12539 | bool temp3 = False ; | |
d14a1e28 RD |
12540 | PyObject * obj0 = 0 ; |
12541 | PyObject * obj1 = 0 ; | |
12542 | PyObject * obj2 = 0 ; | |
12543 | PyObject * obj3 = 0 ; | |
12544 | char *kwnames[] = { | |
12545 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
12546 | }; | |
12547 | ||
12548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12550 | { | |
12551 | arg2 = wxString_in_helper(obj1); | |
12552 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12553 | temp2 = True; |
d14a1e28 RD |
12554 | } |
12555 | { | |
12556 | arg3 = wxString_in_helper(obj2); | |
12557 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12558 | temp3 = True; |
d14a1e28 RD |
12559 | } |
12560 | if (obj3) { | |
2dbef272 | 12561 | { |
8edf1c75 | 12562 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
2dbef272 RD |
12563 | if (PyErr_Occurred()) SWIG_fail; |
12564 | } | |
d14a1e28 RD |
12565 | } |
12566 | { | |
12567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12568 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
12569 | ||
12570 | wxPyEndAllowThreads(__tstate); | |
12571 | if (PyErr_Occurred()) SWIG_fail; | |
12572 | } | |
02a34c4c | 12573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12574 | { |
12575 | if (temp2) | |
12576 | delete arg2; | |
12577 | } | |
12578 | { | |
12579 | if (temp3) | |
12580 | delete arg3; | |
12581 | } | |
12582 | return resultobj; | |
12583 | fail: | |
12584 | { | |
12585 | if (temp2) | |
12586 | delete arg2; | |
12587 | } | |
12588 | { | |
12589 | if (temp3) | |
12590 | delete arg3; | |
12591 | } | |
12592 | return NULL; | |
12593 | } | |
12594 | ||
12595 | ||
12596 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12597 | PyObject *resultobj; | |
12598 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12599 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
12600 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
12601 | int arg3 = (int) 0 ; | |
12602 | bool result; | |
423f194a | 12603 | bool temp2 = False ; |
d14a1e28 RD |
12604 | PyObject * obj0 = 0 ; |
12605 | PyObject * obj1 = 0 ; | |
8edf1c75 | 12606 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12607 | char *kwnames[] = { |
12608 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
12609 | }; | |
12610 | ||
8edf1c75 | 12611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
12612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12613 | if (obj1) { | |
12614 | { | |
12615 | arg2 = wxString_in_helper(obj1); | |
12616 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12617 | temp2 = True; |
d14a1e28 RD |
12618 | } |
12619 | } | |
8edf1c75 RD |
12620 | if (obj2) { |
12621 | { | |
12622 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12623 | if (PyErr_Occurred()) SWIG_fail; | |
12624 | } | |
12625 | } | |
d14a1e28 RD |
12626 | { |
12627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12628 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
12629 | ||
12630 | wxPyEndAllowThreads(__tstate); | |
12631 | if (PyErr_Occurred()) SWIG_fail; | |
12632 | } | |
02a34c4c | 12633 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12634 | { |
12635 | if (temp2) | |
12636 | delete arg2; | |
12637 | } | |
12638 | return resultobj; | |
12639 | fail: | |
12640 | { | |
12641 | if (temp2) | |
12642 | delete arg2; | |
12643 | } | |
12644 | return NULL; | |
12645 | } | |
12646 | ||
12647 | ||
12648 | static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12649 | PyObject *resultobj; | |
12650 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12651 | bool result; | |
12652 | PyObject * obj0 = 0 ; | |
12653 | char *kwnames[] = { | |
12654 | (char *) "self", NULL | |
12655 | }; | |
12656 | ||
12657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
12658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12659 | { | |
12660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12661 | result = (bool)(arg1)->Unassociate(); | |
12662 | ||
12663 | wxPyEndAllowThreads(__tstate); | |
12664 | if (PyErr_Occurred()) SWIG_fail; | |
12665 | } | |
02a34c4c | 12666 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12667 | return resultobj; |
12668 | fail: | |
12669 | return NULL; | |
12670 | } | |
12671 | ||
12672 | ||
12673 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12674 | PyObject *resultobj; | |
12675 | wxString *arg1 = 0 ; | |
12676 | wxString *arg2 = 0 ; | |
12677 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12678 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12679 | wxString result; | |
423f194a RD |
12680 | bool temp1 = False ; |
12681 | bool temp2 = False ; | |
12682 | bool temp3 = False ; | |
d14a1e28 RD |
12683 | PyObject * obj0 = 0 ; |
12684 | PyObject * obj1 = 0 ; | |
12685 | PyObject * obj2 = 0 ; | |
12686 | char *kwnames[] = { | |
12687 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
12688 | }; | |
12689 | ||
12690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12691 | { | |
12692 | arg1 = wxString_in_helper(obj0); | |
12693 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 12694 | temp1 = True; |
d14a1e28 RD |
12695 | } |
12696 | { | |
12697 | arg2 = wxString_in_helper(obj1); | |
12698 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12699 | temp2 = True; |
d14a1e28 RD |
12700 | } |
12701 | if (obj2) { | |
12702 | { | |
12703 | arg3 = wxString_in_helper(obj2); | |
12704 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12705 | temp3 = True; |
d14a1e28 RD |
12706 | } |
12707 | } | |
12708 | { | |
12709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12710 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12711 | ||
12712 | wxPyEndAllowThreads(__tstate); | |
12713 | if (PyErr_Occurred()) SWIG_fail; | |
12714 | } | |
12715 | { | |
12716 | #if wxUSE_UNICODE | |
12717 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12718 | #else | |
12719 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12720 | #endif | |
12721 | } | |
12722 | { | |
12723 | if (temp1) | |
12724 | delete arg1; | |
12725 | } | |
12726 | { | |
12727 | if (temp2) | |
12728 | delete arg2; | |
12729 | } | |
12730 | { | |
12731 | if (temp3) | |
12732 | delete arg3; | |
12733 | } | |
12734 | return resultobj; | |
12735 | fail: | |
12736 | { | |
12737 | if (temp1) | |
12738 | delete arg1; | |
12739 | } | |
12740 | { | |
12741 | if (temp2) | |
12742 | delete arg2; | |
12743 | } | |
12744 | { | |
12745 | if (temp3) | |
12746 | delete arg3; | |
12747 | } | |
12748 | return NULL; | |
12749 | } | |
12750 | ||
12751 | ||
12752 | static PyObject * FileType_swigregister(PyObject *self, PyObject *args) { | |
12753 | PyObject *obj; | |
12754 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12755 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
12756 | Py_INCREF(obj); | |
12757 | return Py_BuildValue((char *)""); | |
12758 | } | |
8edf1c75 | 12759 | static int _wrap_TheMimeTypesManager_set(PyObject *) { |
d14a1e28 RD |
12760 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); |
12761 | return 1; | |
12762 | } | |
12763 | ||
12764 | ||
12765 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
12766 | PyObject *pyobj; | |
12767 | ||
12768 | pyobj = SWIG_NewPointerObj((void *) wxTheMimeTypesManager, SWIGTYPE_p_wxMimeTypesManager, 0); | |
12769 | return pyobj; | |
12770 | } | |
12771 | ||
12772 | ||
12773 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12774 | PyObject *resultobj; | |
12775 | wxString *arg1 = 0 ; | |
12776 | wxString *arg2 = 0 ; | |
12777 | bool result; | |
423f194a RD |
12778 | bool temp1 = False ; |
12779 | bool temp2 = False ; | |
d14a1e28 RD |
12780 | PyObject * obj0 = 0 ; |
12781 | PyObject * obj1 = 0 ; | |
12782 | char *kwnames[] = { | |
12783 | (char *) "mimeType",(char *) "wildcard", NULL | |
12784 | }; | |
12785 | ||
12786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
12787 | { | |
12788 | arg1 = wxString_in_helper(obj0); | |
12789 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 12790 | temp1 = True; |
d14a1e28 RD |
12791 | } |
12792 | { | |
12793 | arg2 = wxString_in_helper(obj1); | |
12794 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12795 | temp2 = True; |
d14a1e28 RD |
12796 | } |
12797 | { | |
12798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12799 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
12800 | ||
12801 | wxPyEndAllowThreads(__tstate); | |
12802 | if (PyErr_Occurred()) SWIG_fail; | |
12803 | } | |
02a34c4c | 12804 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12805 | { |
12806 | if (temp1) | |
12807 | delete arg1; | |
12808 | } | |
12809 | { | |
12810 | if (temp2) | |
12811 | delete arg2; | |
12812 | } | |
12813 | return resultobj; | |
12814 | fail: | |
12815 | { | |
12816 | if (temp1) | |
12817 | delete arg1; | |
12818 | } | |
12819 | { | |
12820 | if (temp2) | |
12821 | delete arg2; | |
12822 | } | |
12823 | return NULL; | |
12824 | } | |
12825 | ||
12826 | ||
12827 | static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12828 | PyObject *resultobj; | |
12829 | wxMimeTypesManager *result; | |
12830 | char *kwnames[] = { | |
12831 | NULL | |
12832 | }; | |
12833 | ||
12834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
12835 | { | |
12836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12837 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
12838 | ||
12839 | wxPyEndAllowThreads(__tstate); | |
12840 | if (PyErr_Occurred()) SWIG_fail; | |
12841 | } | |
12842 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMimeTypesManager, 1); | |
12843 | return resultobj; | |
12844 | fail: | |
12845 | return NULL; | |
12846 | } | |
12847 | ||
12848 | ||
12849 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12850 | PyObject *resultobj; | |
12851 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12852 | int arg2 = (int) wxMAILCAP_ALL ; | |
12853 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12854 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
423f194a | 12855 | bool temp3 = False ; |
d14a1e28 | 12856 | PyObject * obj0 = 0 ; |
8edf1c75 | 12857 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12858 | PyObject * obj2 = 0 ; |
12859 | char *kwnames[] = { | |
12860 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
12861 | }; | |
12862 | ||
8edf1c75 | 12863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12865 | if (obj1) { |
12866 | { | |
12867 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12868 | if (PyErr_Occurred()) SWIG_fail; | |
12869 | } | |
12870 | } | |
d14a1e28 RD |
12871 | if (obj2) { |
12872 | { | |
12873 | arg3 = wxString_in_helper(obj2); | |
12874 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12875 | temp3 = True; |
d14a1e28 RD |
12876 | } |
12877 | } | |
12878 | { | |
12879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12880 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
12881 | ||
12882 | wxPyEndAllowThreads(__tstate); | |
12883 | if (PyErr_Occurred()) SWIG_fail; | |
12884 | } | |
12885 | Py_INCREF(Py_None); resultobj = Py_None; | |
12886 | { | |
12887 | if (temp3) | |
12888 | delete arg3; | |
12889 | } | |
12890 | return resultobj; | |
12891 | fail: | |
12892 | { | |
12893 | if (temp3) | |
12894 | delete arg3; | |
12895 | } | |
12896 | return NULL; | |
12897 | } | |
12898 | ||
12899 | ||
12900 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12901 | PyObject *resultobj; | |
12902 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12903 | PyObject * obj0 = 0 ; | |
12904 | char *kwnames[] = { | |
12905 | (char *) "self", NULL | |
12906 | }; | |
12907 | ||
12908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
12909 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12910 | { | |
12911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12912 | (arg1)->ClearData(); | |
12913 | ||
12914 | wxPyEndAllowThreads(__tstate); | |
12915 | if (PyErr_Occurred()) SWIG_fail; | |
12916 | } | |
12917 | Py_INCREF(Py_None); resultobj = Py_None; | |
12918 | return resultobj; | |
12919 | fail: | |
12920 | return NULL; | |
12921 | } | |
12922 | ||
12923 | ||
12924 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12925 | PyObject *resultobj; | |
12926 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12927 | wxString *arg2 = 0 ; | |
12928 | wxFileType *result; | |
423f194a | 12929 | bool temp2 = False ; |
d14a1e28 RD |
12930 | PyObject * obj0 = 0 ; |
12931 | PyObject * obj1 = 0 ; | |
12932 | char *kwnames[] = { | |
12933 | (char *) "self",(char *) "ext", NULL | |
12934 | }; | |
12935 | ||
12936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
12937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12938 | { | |
12939 | arg2 = wxString_in_helper(obj1); | |
12940 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12941 | temp2 = True; |
d14a1e28 RD |
12942 | } |
12943 | { | |
12944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12945 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
12946 | ||
12947 | wxPyEndAllowThreads(__tstate); | |
12948 | if (PyErr_Occurred()) SWIG_fail; | |
12949 | } | |
12950 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
12951 | { | |
12952 | if (temp2) | |
12953 | delete arg2; | |
12954 | } | |
12955 | return resultobj; | |
12956 | fail: | |
12957 | { | |
12958 | if (temp2) | |
12959 | delete arg2; | |
12960 | } | |
12961 | return NULL; | |
12962 | } | |
12963 | ||
12964 | ||
12965 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12966 | PyObject *resultobj; | |
12967 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12968 | wxString *arg2 = 0 ; | |
12969 | wxFileType *result; | |
423f194a | 12970 | bool temp2 = False ; |
d14a1e28 RD |
12971 | PyObject * obj0 = 0 ; |
12972 | PyObject * obj1 = 0 ; | |
12973 | char *kwnames[] = { | |
12974 | (char *) "self",(char *) "mimeType", NULL | |
12975 | }; | |
12976 | ||
12977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
12978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12979 | { | |
12980 | arg2 = wxString_in_helper(obj1); | |
12981 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12982 | temp2 = True; |
d14a1e28 RD |
12983 | } |
12984 | { | |
12985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12986 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
12987 | ||
12988 | wxPyEndAllowThreads(__tstate); | |
12989 | if (PyErr_Occurred()) SWIG_fail; | |
12990 | } | |
12991 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
12992 | { | |
12993 | if (temp2) | |
12994 | delete arg2; | |
12995 | } | |
12996 | return resultobj; | |
12997 | fail: | |
12998 | { | |
12999 | if (temp2) | |
13000 | delete arg2; | |
13001 | } | |
13002 | return NULL; | |
13003 | } | |
13004 | ||
13005 | ||
13006 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13007 | PyObject *resultobj; | |
13008 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13009 | wxString *arg2 = 0 ; | |
423f194a | 13010 | bool arg3 = (bool) False ; |
d14a1e28 | 13011 | bool result; |
423f194a | 13012 | bool temp2 = False ; |
d14a1e28 RD |
13013 | PyObject * obj0 = 0 ; |
13014 | PyObject * obj1 = 0 ; | |
13015 | PyObject * obj2 = 0 ; | |
13016 | char *kwnames[] = { | |
13017 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
13018 | }; | |
13019 | ||
13020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13022 | { | |
13023 | arg2 = wxString_in_helper(obj1); | |
13024 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13025 | temp2 = True; |
d14a1e28 RD |
13026 | } |
13027 | if (obj2) { | |
2dbef272 | 13028 | { |
8edf1c75 | 13029 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
13030 | if (PyErr_Occurred()) SWIG_fail; |
13031 | } | |
d14a1e28 RD |
13032 | } |
13033 | { | |
13034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13035 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
13036 | ||
13037 | wxPyEndAllowThreads(__tstate); | |
13038 | if (PyErr_Occurred()) SWIG_fail; | |
13039 | } | |
02a34c4c | 13040 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13041 | { |
13042 | if (temp2) | |
13043 | delete arg2; | |
13044 | } | |
13045 | return resultobj; | |
13046 | fail: | |
13047 | { | |
13048 | if (temp2) | |
13049 | delete arg2; | |
13050 | } | |
13051 | return NULL; | |
13052 | } | |
13053 | ||
13054 | ||
13055 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13056 | PyObject *resultobj; | |
13057 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13058 | wxString *arg2 = 0 ; | |
13059 | bool result; | |
423f194a | 13060 | bool temp2 = False ; |
d14a1e28 RD |
13061 | PyObject * obj0 = 0 ; |
13062 | PyObject * obj1 = 0 ; | |
13063 | char *kwnames[] = { | |
13064 | (char *) "self",(char *) "filename", NULL | |
13065 | }; | |
13066 | ||
13067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
13068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13069 | { | |
13070 | arg2 = wxString_in_helper(obj1); | |
13071 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13072 | temp2 = True; |
d14a1e28 RD |
13073 | } |
13074 | { | |
13075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13076 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
13077 | ||
13078 | wxPyEndAllowThreads(__tstate); | |
13079 | if (PyErr_Occurred()) SWIG_fail; | |
13080 | } | |
02a34c4c | 13081 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13082 | { |
13083 | if (temp2) | |
13084 | delete arg2; | |
13085 | } | |
13086 | return resultobj; | |
13087 | fail: | |
13088 | { | |
13089 | if (temp2) | |
13090 | delete arg2; | |
13091 | } | |
13092 | return NULL; | |
13093 | } | |
13094 | ||
13095 | ||
13096 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13097 | PyObject *resultobj; | |
13098 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13099 | PyObject *result; | |
13100 | PyObject * obj0 = 0 ; | |
13101 | char *kwnames[] = { | |
13102 | (char *) "self", NULL | |
13103 | }; | |
13104 | ||
13105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
13106 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13107 | { | |
13108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13109 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
13110 | ||
13111 | wxPyEndAllowThreads(__tstate); | |
13112 | if (PyErr_Occurred()) SWIG_fail; | |
13113 | } | |
13114 | resultobj = result; | |
13115 | return resultobj; | |
13116 | fail: | |
13117 | return NULL; | |
13118 | } | |
13119 | ||
13120 | ||
13121 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13122 | PyObject *resultobj; | |
13123 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13124 | wxFileTypeInfo *arg2 = 0 ; | |
13125 | PyObject * obj0 = 0 ; | |
13126 | PyObject * obj1 = 0 ; | |
13127 | char *kwnames[] = { | |
13128 | (char *) "self",(char *) "ft", NULL | |
13129 | }; | |
13130 | ||
13131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
13132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13133 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13134 | if (arg2 == NULL) { | |
13135 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13136 | } | |
13137 | { | |
13138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13139 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
13140 | ||
13141 | wxPyEndAllowThreads(__tstate); | |
13142 | if (PyErr_Occurred()) SWIG_fail; | |
13143 | } | |
13144 | Py_INCREF(Py_None); resultobj = Py_None; | |
13145 | return resultobj; | |
13146 | fail: | |
13147 | return NULL; | |
13148 | } | |
13149 | ||
13150 | ||
13151 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13152 | PyObject *resultobj; | |
13153 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13154 | wxFileTypeInfo *arg2 = 0 ; | |
13155 | wxFileType *result; | |
13156 | PyObject * obj0 = 0 ; | |
13157 | PyObject * obj1 = 0 ; | |
13158 | char *kwnames[] = { | |
13159 | (char *) "self",(char *) "ftInfo", NULL | |
13160 | }; | |
13161 | ||
13162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
13163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13164 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13165 | if (arg2 == NULL) { | |
13166 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13167 | } | |
13168 | { | |
13169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13170 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
13171 | ||
13172 | wxPyEndAllowThreads(__tstate); | |
13173 | if (PyErr_Occurred()) SWIG_fail; | |
13174 | } | |
13175 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
13176 | return resultobj; | |
13177 | fail: | |
13178 | return NULL; | |
13179 | } | |
13180 | ||
13181 | ||
13182 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13183 | PyObject *resultobj; | |
13184 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13185 | wxFileType *arg2 = (wxFileType *) 0 ; | |
13186 | bool result; | |
13187 | PyObject * obj0 = 0 ; | |
13188 | PyObject * obj1 = 0 ; | |
13189 | char *kwnames[] = { | |
13190 | (char *) "self",(char *) "ft", NULL | |
13191 | }; | |
13192 | ||
13193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
13194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13195 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13196 | { | |
13197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13198 | result = (bool)(arg1)->Unassociate(arg2); | |
13199 | ||
13200 | wxPyEndAllowThreads(__tstate); | |
13201 | if (PyErr_Occurred()) SWIG_fail; | |
13202 | } | |
02a34c4c | 13203 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13204 | return resultobj; |
13205 | fail: | |
13206 | return NULL; | |
13207 | } | |
13208 | ||
13209 | ||
13210 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13211 | PyObject *resultobj; | |
13212 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13213 | PyObject * obj0 = 0 ; | |
13214 | char *kwnames[] = { | |
13215 | (char *) "self", NULL | |
13216 | }; | |
13217 | ||
13218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
13219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13220 | { | |
13221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13222 | delete arg1; | |
13223 | ||
13224 | wxPyEndAllowThreads(__tstate); | |
13225 | if (PyErr_Occurred()) SWIG_fail; | |
13226 | } | |
13227 | Py_INCREF(Py_None); resultobj = Py_None; | |
13228 | return resultobj; | |
13229 | fail: | |
13230 | return NULL; | |
13231 | } | |
13232 | ||
13233 | ||
13234 | static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) { | |
13235 | PyObject *obj; | |
13236 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13237 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
13238 | Py_INCREF(obj); | |
13239 | return Py_BuildValue((char *)""); | |
13240 | } | |
8edf1c75 | 13241 | static int _wrap_ART_TOOLBAR_set(PyObject *) { |
d14a1e28 RD |
13242 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); |
13243 | return 1; | |
13244 | } | |
13245 | ||
13246 | ||
13247 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
13248 | PyObject *pyobj; | |
13249 | ||
13250 | { | |
13251 | #if wxUSE_UNICODE | |
13252 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13253 | #else | |
13254 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13255 | #endif | |
13256 | } | |
13257 | return pyobj; | |
13258 | } | |
13259 | ||
13260 | ||
8edf1c75 | 13261 | static int _wrap_ART_MENU_set(PyObject *) { |
d14a1e28 RD |
13262 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); |
13263 | return 1; | |
13264 | } | |
13265 | ||
13266 | ||
13267 | static PyObject *_wrap_ART_MENU_get() { | |
13268 | PyObject *pyobj; | |
13269 | ||
13270 | { | |
13271 | #if wxUSE_UNICODE | |
13272 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13273 | #else | |
13274 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13275 | #endif | |
13276 | } | |
13277 | return pyobj; | |
13278 | } | |
13279 | ||
13280 | ||
8edf1c75 | 13281 | static int _wrap_ART_FRAME_ICON_set(PyObject *) { |
d14a1e28 RD |
13282 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); |
13283 | return 1; | |
13284 | } | |
13285 | ||
13286 | ||
13287 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
13288 | PyObject *pyobj; | |
13289 | ||
13290 | { | |
13291 | #if wxUSE_UNICODE | |
13292 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13293 | #else | |
13294 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13295 | #endif | |
13296 | } | |
13297 | return pyobj; | |
13298 | } | |
13299 | ||
13300 | ||
8edf1c75 | 13301 | static int _wrap_ART_CMN_DIALOG_set(PyObject *) { |
d14a1e28 RD |
13302 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); |
13303 | return 1; | |
13304 | } | |
13305 | ||
13306 | ||
13307 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
13308 | PyObject *pyobj; | |
13309 | ||
13310 | { | |
13311 | #if wxUSE_UNICODE | |
13312 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13313 | #else | |
13314 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13315 | #endif | |
13316 | } | |
13317 | return pyobj; | |
13318 | } | |
13319 | ||
13320 | ||
8edf1c75 | 13321 | static int _wrap_ART_HELP_BROWSER_set(PyObject *) { |
d14a1e28 RD |
13322 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); |
13323 | return 1; | |
13324 | } | |
13325 | ||
13326 | ||
13327 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
13328 | PyObject *pyobj; | |
13329 | ||
13330 | { | |
13331 | #if wxUSE_UNICODE | |
13332 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13333 | #else | |
13334 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13335 | #endif | |
13336 | } | |
13337 | return pyobj; | |
13338 | } | |
13339 | ||
13340 | ||
8edf1c75 | 13341 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *) { |
d14a1e28 RD |
13342 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); |
13343 | return 1; | |
13344 | } | |
13345 | ||
13346 | ||
13347 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
13348 | PyObject *pyobj; | |
13349 | ||
13350 | { | |
13351 | #if wxUSE_UNICODE | |
13352 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13353 | #else | |
13354 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13355 | #endif | |
13356 | } | |
13357 | return pyobj; | |
13358 | } | |
13359 | ||
13360 | ||
8edf1c75 | 13361 | static int _wrap_ART_OTHER_set(PyObject *) { |
d14a1e28 RD |
13362 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); |
13363 | return 1; | |
13364 | } | |
13365 | ||
13366 | ||
13367 | static PyObject *_wrap_ART_OTHER_get() { | |
13368 | PyObject *pyobj; | |
13369 | ||
13370 | { | |
13371 | #if wxUSE_UNICODE | |
13372 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13373 | #else | |
13374 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13375 | #endif | |
13376 | } | |
13377 | return pyobj; | |
13378 | } | |
13379 | ||
13380 | ||
8edf1c75 | 13381 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *) { |
d14a1e28 RD |
13382 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); |
13383 | return 1; | |
13384 | } | |
13385 | ||
13386 | ||
13387 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
13388 | PyObject *pyobj; | |
13389 | ||
13390 | { | |
13391 | #if wxUSE_UNICODE | |
13392 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13393 | #else | |
13394 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13395 | #endif | |
13396 | } | |
13397 | return pyobj; | |
13398 | } | |
13399 | ||
13400 | ||
8edf1c75 | 13401 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *) { |
d14a1e28 RD |
13402 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); |
13403 | return 1; | |
13404 | } | |
13405 | ||
13406 | ||
13407 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
13408 | PyObject *pyobj; | |
13409 | ||
13410 | { | |
13411 | #if wxUSE_UNICODE | |
13412 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13413 | #else | |
13414 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13415 | #endif | |
13416 | } | |
13417 | return pyobj; | |
13418 | } | |
13419 | ||
13420 | ||
8edf1c75 | 13421 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *) { |
d14a1e28 RD |
13422 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); |
13423 | return 1; | |
13424 | } | |
13425 | ||
13426 | ||
13427 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
13428 | PyObject *pyobj; | |
13429 | ||
13430 | { | |
13431 | #if wxUSE_UNICODE | |
13432 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13433 | #else | |
13434 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13435 | #endif | |
13436 | } | |
13437 | return pyobj; | |
13438 | } | |
13439 | ||
13440 | ||
8edf1c75 | 13441 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *) { |
d14a1e28 RD |
13442 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); |
13443 | return 1; | |
13444 | } | |
13445 | ||
13446 | ||
13447 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
13448 | PyObject *pyobj; | |
13449 | ||
13450 | { | |
13451 | #if wxUSE_UNICODE | |
13452 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13453 | #else | |
13454 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13455 | #endif | |
13456 | } | |
13457 | return pyobj; | |
13458 | } | |
13459 | ||
13460 | ||
8edf1c75 | 13461 | static int _wrap_ART_HELP_BOOK_set(PyObject *) { |
d14a1e28 RD |
13462 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); |
13463 | return 1; | |
13464 | } | |
13465 | ||
13466 | ||
13467 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
13468 | PyObject *pyobj; | |
13469 | ||
13470 | { | |
13471 | #if wxUSE_UNICODE | |
13472 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13473 | #else | |
13474 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13475 | #endif | |
13476 | } | |
13477 | return pyobj; | |
13478 | } | |
13479 | ||
13480 | ||
8edf1c75 | 13481 | static int _wrap_ART_HELP_FOLDER_set(PyObject *) { |
d14a1e28 RD |
13482 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); |
13483 | return 1; | |
13484 | } | |
13485 | ||
13486 | ||
13487 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
13488 | PyObject *pyobj; | |
13489 | ||
13490 | { | |
13491 | #if wxUSE_UNICODE | |
13492 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13493 | #else | |
13494 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13495 | #endif | |
13496 | } | |
13497 | return pyobj; | |
13498 | } | |
13499 | ||
13500 | ||
8edf1c75 | 13501 | static int _wrap_ART_HELP_PAGE_set(PyObject *) { |
d14a1e28 RD |
13502 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); |
13503 | return 1; | |
13504 | } | |
13505 | ||
13506 | ||
13507 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
13508 | PyObject *pyobj; | |
13509 | ||
13510 | { | |
13511 | #if wxUSE_UNICODE | |
13512 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13513 | #else | |
13514 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13515 | #endif | |
13516 | } | |
13517 | return pyobj; | |
13518 | } | |
13519 | ||
13520 | ||
8edf1c75 | 13521 | static int _wrap_ART_GO_BACK_set(PyObject *) { |
d14a1e28 RD |
13522 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); |
13523 | return 1; | |
13524 | } | |
13525 | ||
13526 | ||
13527 | static PyObject *_wrap_ART_GO_BACK_get() { | |
13528 | PyObject *pyobj; | |
13529 | ||
13530 | { | |
13531 | #if wxUSE_UNICODE | |
13532 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13533 | #else | |
13534 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13535 | #endif | |
13536 | } | |
13537 | return pyobj; | |
13538 | } | |
13539 | ||
13540 | ||
8edf1c75 | 13541 | static int _wrap_ART_GO_FORWARD_set(PyObject *) { |
d14a1e28 RD |
13542 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); |
13543 | return 1; | |
13544 | } | |
13545 | ||
13546 | ||
13547 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
13548 | PyObject *pyobj; | |
13549 | ||
13550 | { | |
13551 | #if wxUSE_UNICODE | |
13552 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13553 | #else | |
13554 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13555 | #endif | |
13556 | } | |
13557 | return pyobj; | |
13558 | } | |
13559 | ||
13560 | ||
8edf1c75 | 13561 | static int _wrap_ART_GO_UP_set(PyObject *) { |
d14a1e28 RD |
13562 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); |
13563 | return 1; | |
13564 | } | |
13565 | ||
13566 | ||
13567 | static PyObject *_wrap_ART_GO_UP_get() { | |
13568 | PyObject *pyobj; | |
13569 | ||
13570 | { | |
13571 | #if wxUSE_UNICODE | |
13572 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13573 | #else | |
13574 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13575 | #endif | |
13576 | } | |
13577 | return pyobj; | |
13578 | } | |
13579 | ||
13580 | ||
8edf1c75 | 13581 | static int _wrap_ART_GO_DOWN_set(PyObject *) { |
d14a1e28 RD |
13582 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); |
13583 | return 1; | |
13584 | } | |
13585 | ||
13586 | ||
13587 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
13588 | PyObject *pyobj; | |
13589 | ||
13590 | { | |
13591 | #if wxUSE_UNICODE | |
13592 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13593 | #else | |
13594 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13595 | #endif | |
13596 | } | |
13597 | return pyobj; | |
13598 | } | |
13599 | ||
13600 | ||
8edf1c75 | 13601 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *) { |
d14a1e28 RD |
13602 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); |
13603 | return 1; | |
13604 | } | |
13605 | ||
13606 | ||
13607 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
13608 | PyObject *pyobj; | |
13609 | ||
13610 | { | |
13611 | #if wxUSE_UNICODE | |
13612 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13613 | #else | |
13614 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13615 | #endif | |
13616 | } | |
13617 | return pyobj; | |
13618 | } | |
13619 | ||
13620 | ||
8edf1c75 | 13621 | static int _wrap_ART_GO_HOME_set(PyObject *) { |
d14a1e28 RD |
13622 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); |
13623 | return 1; | |
13624 | } | |
13625 | ||
13626 | ||
13627 | static PyObject *_wrap_ART_GO_HOME_get() { | |
13628 | PyObject *pyobj; | |
13629 | ||
13630 | { | |
13631 | #if wxUSE_UNICODE | |
13632 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13633 | #else | |
13634 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13635 | #endif | |
13636 | } | |
13637 | return pyobj; | |
13638 | } | |
13639 | ||
13640 | ||
8edf1c75 | 13641 | static int _wrap_ART_FILE_OPEN_set(PyObject *) { |
d14a1e28 RD |
13642 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); |
13643 | return 1; | |
13644 | } | |
13645 | ||
13646 | ||
13647 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
13648 | PyObject *pyobj; | |
13649 | ||
13650 | { | |
13651 | #if wxUSE_UNICODE | |
13652 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
13653 | #else | |
13654 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
13655 | #endif | |
13656 | } | |
13657 | return pyobj; | |
13658 | } | |
13659 | ||
13660 | ||
8edf1c75 | 13661 | static int _wrap_ART_PRINT_set(PyObject *) { |
d14a1e28 RD |
13662 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); |
13663 | return 1; | |
13664 | } | |
13665 | ||
13666 | ||
13667 | static PyObject *_wrap_ART_PRINT_get() { | |
13668 | PyObject *pyobj; | |
13669 | ||
13670 | { | |
13671 | #if wxUSE_UNICODE | |
13672 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
13673 | #else | |
13674 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
13675 | #endif | |
13676 | } | |
13677 | return pyobj; | |
13678 | } | |
13679 | ||
13680 | ||
8edf1c75 | 13681 | static int _wrap_ART_HELP_set(PyObject *) { |
d14a1e28 RD |
13682 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); |
13683 | return 1; | |
13684 | } | |
13685 | ||
13686 | ||
13687 | static PyObject *_wrap_ART_HELP_get() { | |
13688 | PyObject *pyobj; | |
13689 | ||
13690 | { | |
13691 | #if wxUSE_UNICODE | |
13692 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
13693 | #else | |
13694 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
13695 | #endif | |
13696 | } | |
13697 | return pyobj; | |
13698 | } | |
13699 | ||
13700 | ||
8edf1c75 | 13701 | static int _wrap_ART_TIP_set(PyObject *) { |
d14a1e28 RD |
13702 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); |
13703 | return 1; | |
13704 | } | |
13705 | ||
13706 | ||
13707 | static PyObject *_wrap_ART_TIP_get() { | |
13708 | PyObject *pyobj; | |
13709 | ||
13710 | { | |
13711 | #if wxUSE_UNICODE | |
13712 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
13713 | #else | |
13714 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
13715 | #endif | |
13716 | } | |
13717 | return pyobj; | |
13718 | } | |
13719 | ||
13720 | ||
8edf1c75 | 13721 | static int _wrap_ART_REPORT_VIEW_set(PyObject *) { |
d14a1e28 RD |
13722 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); |
13723 | return 1; | |
13724 | } | |
13725 | ||
13726 | ||
13727 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
13728 | PyObject *pyobj; | |
13729 | ||
13730 | { | |
13731 | #if wxUSE_UNICODE | |
13732 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
13733 | #else | |
13734 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
13735 | #endif | |
13736 | } | |
13737 | return pyobj; | |
13738 | } | |
13739 | ||
13740 | ||
8edf1c75 | 13741 | static int _wrap_ART_LIST_VIEW_set(PyObject *) { |
d14a1e28 RD |
13742 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); |
13743 | return 1; | |
13744 | } | |
13745 | ||
13746 | ||
13747 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
13748 | PyObject *pyobj; | |
13749 | ||
13750 | { | |
13751 | #if wxUSE_UNICODE | |
13752 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
13753 | #else | |
13754 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
13755 | #endif | |
13756 | } | |
13757 | return pyobj; | |
13758 | } | |
13759 | ||
13760 | ||
8edf1c75 | 13761 | static int _wrap_ART_NEW_DIR_set(PyObject *) { |
d14a1e28 RD |
13762 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); |
13763 | return 1; | |
13764 | } | |
13765 | ||
13766 | ||
13767 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
13768 | PyObject *pyobj; | |
13769 | ||
13770 | { | |
13771 | #if wxUSE_UNICODE | |
13772 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
13773 | #else | |
13774 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
13775 | #endif | |
13776 | } | |
13777 | return pyobj; | |
13778 | } | |
13779 | ||
13780 | ||
8edf1c75 | 13781 | static int _wrap_ART_FOLDER_set(PyObject *) { |
d14a1e28 RD |
13782 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); |
13783 | return 1; | |
13784 | } | |
13785 | ||
13786 | ||
13787 | static PyObject *_wrap_ART_FOLDER_get() { | |
13788 | PyObject *pyobj; | |
13789 | ||
13790 | { | |
13791 | #if wxUSE_UNICODE | |
13792 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
13793 | #else | |
13794 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
13795 | #endif | |
13796 | } | |
13797 | return pyobj; | |
13798 | } | |
13799 | ||
13800 | ||
8edf1c75 | 13801 | static int _wrap_ART_GO_DIR_UP_set(PyObject *) { |
d14a1e28 RD |
13802 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); |
13803 | return 1; | |
13804 | } | |
13805 | ||
13806 | ||
13807 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
13808 | PyObject *pyobj; | |
13809 | ||
13810 | { | |
13811 | #if wxUSE_UNICODE | |
13812 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
13813 | #else | |
13814 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
13815 | #endif | |
13816 | } | |
13817 | return pyobj; | |
13818 | } | |
13819 | ||
13820 | ||
8edf1c75 | 13821 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *) { |
d14a1e28 RD |
13822 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); |
13823 | return 1; | |
13824 | } | |
13825 | ||
13826 | ||
13827 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
13828 | PyObject *pyobj; | |
13829 | ||
13830 | { | |
13831 | #if wxUSE_UNICODE | |
13832 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
13833 | #else | |
13834 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
13835 | #endif | |
13836 | } | |
13837 | return pyobj; | |
13838 | } | |
13839 | ||
13840 | ||
8edf1c75 | 13841 | static int _wrap_ART_NORMAL_FILE_set(PyObject *) { |
d14a1e28 RD |
13842 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); |
13843 | return 1; | |
13844 | } | |
13845 | ||
13846 | ||
13847 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
13848 | PyObject *pyobj; | |
13849 | ||
13850 | { | |
13851 | #if wxUSE_UNICODE | |
13852 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
13853 | #else | |
13854 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
13855 | #endif | |
13856 | } | |
13857 | return pyobj; | |
13858 | } | |
13859 | ||
13860 | ||
8edf1c75 | 13861 | static int _wrap_ART_TICK_MARK_set(PyObject *) { |
d14a1e28 RD |
13862 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); |
13863 | return 1; | |
13864 | } | |
13865 | ||
13866 | ||
13867 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
13868 | PyObject *pyobj; | |
13869 | ||
13870 | { | |
13871 | #if wxUSE_UNICODE | |
13872 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
13873 | #else | |
13874 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
13875 | #endif | |
13876 | } | |
13877 | return pyobj; | |
13878 | } | |
13879 | ||
13880 | ||
8edf1c75 | 13881 | static int _wrap_ART_CROSS_MARK_set(PyObject *) { |
d14a1e28 RD |
13882 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); |
13883 | return 1; | |
13884 | } | |
13885 | ||
13886 | ||
13887 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
13888 | PyObject *pyobj; | |
13889 | ||
13890 | { | |
13891 | #if wxUSE_UNICODE | |
13892 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
13893 | #else | |
13894 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
13895 | #endif | |
13896 | } | |
13897 | return pyobj; | |
13898 | } | |
13899 | ||
13900 | ||
8edf1c75 | 13901 | static int _wrap_ART_ERROR_set(PyObject *) { |
d14a1e28 RD |
13902 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); |
13903 | return 1; | |
13904 | } | |
13905 | ||
13906 | ||
13907 | static PyObject *_wrap_ART_ERROR_get() { | |
13908 | PyObject *pyobj; | |
13909 | ||
13910 | { | |
13911 | #if wxUSE_UNICODE | |
13912 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
13913 | #else | |
13914 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
13915 | #endif | |
13916 | } | |
13917 | return pyobj; | |
13918 | } | |
13919 | ||
13920 | ||
8edf1c75 | 13921 | static int _wrap_ART_QUESTION_set(PyObject *) { |
d14a1e28 RD |
13922 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); |
13923 | return 1; | |
13924 | } | |
13925 | ||
13926 | ||
13927 | static PyObject *_wrap_ART_QUESTION_get() { | |
13928 | PyObject *pyobj; | |
13929 | ||
13930 | { | |
13931 | #if wxUSE_UNICODE | |
13932 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
13933 | #else | |
13934 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
13935 | #endif | |
13936 | } | |
13937 | return pyobj; | |
13938 | } | |
13939 | ||
13940 | ||
8edf1c75 | 13941 | static int _wrap_ART_WARNING_set(PyObject *) { |
d14a1e28 RD |
13942 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); |
13943 | return 1; | |
13944 | } | |
13945 | ||
13946 | ||
13947 | static PyObject *_wrap_ART_WARNING_get() { | |
13948 | PyObject *pyobj; | |
13949 | ||
13950 | { | |
13951 | #if wxUSE_UNICODE | |
13952 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
13953 | #else | |
13954 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
13955 | #endif | |
13956 | } | |
13957 | return pyobj; | |
13958 | } | |
13959 | ||
13960 | ||
8edf1c75 | 13961 | static int _wrap_ART_INFORMATION_set(PyObject *) { |
d14a1e28 RD |
13962 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); |
13963 | return 1; | |
13964 | } | |
13965 | ||
13966 | ||
13967 | static PyObject *_wrap_ART_INFORMATION_get() { | |
13968 | PyObject *pyobj; | |
13969 | ||
13970 | { | |
13971 | #if wxUSE_UNICODE | |
13972 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
13973 | #else | |
13974 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
13975 | #endif | |
13976 | } | |
13977 | return pyobj; | |
13978 | } | |
13979 | ||
13980 | ||
8edf1c75 | 13981 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *) { |
d14a1e28 RD |
13982 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); |
13983 | return 1; | |
13984 | } | |
13985 | ||
13986 | ||
13987 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
13988 | PyObject *pyobj; | |
13989 | ||
13990 | { | |
13991 | #if wxUSE_UNICODE | |
13992 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
13993 | #else | |
13994 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
13995 | #endif | |
13996 | } | |
13997 | return pyobj; | |
13998 | } | |
13999 | ||
14000 | ||
14001 | static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14002 | PyObject *resultobj; | |
14003 | wxPyArtProvider *result; | |
14004 | char *kwnames[] = { | |
14005 | NULL | |
14006 | }; | |
14007 | ||
14008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
14009 | { | |
14010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14011 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
14012 | ||
14013 | wxPyEndAllowThreads(__tstate); | |
14014 | if (PyErr_Occurred()) SWIG_fail; | |
14015 | } | |
14016 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyArtProvider, 1); | |
14017 | return resultobj; | |
14018 | fail: | |
14019 | return NULL; | |
14020 | } | |
14021 | ||
14022 | ||
d14a1e28 RD |
14023 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
14024 | PyObject *resultobj; | |
14025 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14026 | PyObject *arg2 = (PyObject *) 0 ; | |
14027 | PyObject *arg3 = (PyObject *) 0 ; | |
14028 | PyObject * obj0 = 0 ; | |
14029 | PyObject * obj1 = 0 ; | |
14030 | PyObject * obj2 = 0 ; | |
14031 | char *kwnames[] = { | |
14032 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14033 | }; | |
14034 | ||
14035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14037 | arg2 = obj1; | |
14038 | arg3 = obj2; | |
14039 | { | |
14040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14041 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14042 | ||
14043 | wxPyEndAllowThreads(__tstate); | |
14044 | if (PyErr_Occurred()) SWIG_fail; | |
14045 | } | |
14046 | Py_INCREF(Py_None); resultobj = Py_None; | |
14047 | return resultobj; | |
14048 | fail: | |
14049 | return NULL; | |
14050 | } | |
14051 | ||
14052 | ||
14053 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14054 | PyObject *resultobj; | |
14055 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14056 | PyObject * obj0 = 0 ; | |
14057 | char *kwnames[] = { | |
14058 | (char *) "provider", NULL | |
14059 | }; | |
14060 | ||
14061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
14062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14063 | { | |
14064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14065 | wxPyArtProvider::PushProvider(arg1); | |
14066 | ||
14067 | wxPyEndAllowThreads(__tstate); | |
14068 | if (PyErr_Occurred()) SWIG_fail; | |
14069 | } | |
14070 | Py_INCREF(Py_None); resultobj = Py_None; | |
14071 | return resultobj; | |
14072 | fail: | |
14073 | return NULL; | |
14074 | } | |
14075 | ||
14076 | ||
14077 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14078 | PyObject *resultobj; | |
14079 | bool result; | |
14080 | char *kwnames[] = { | |
14081 | NULL | |
14082 | }; | |
14083 | ||
14084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
14085 | { | |
14086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14087 | result = (bool)wxPyArtProvider::PopProvider(); | |
14088 | ||
14089 | wxPyEndAllowThreads(__tstate); | |
14090 | if (PyErr_Occurred()) SWIG_fail; | |
14091 | } | |
02a34c4c | 14092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14093 | return resultobj; |
14094 | fail: | |
14095 | return NULL; | |
14096 | } | |
14097 | ||
14098 | ||
14099 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14100 | PyObject *resultobj; | |
14101 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14102 | bool result; | |
14103 | PyObject * obj0 = 0 ; | |
14104 | char *kwnames[] = { | |
14105 | (char *) "provider", NULL | |
14106 | }; | |
14107 | ||
14108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
14109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14110 | { | |
14111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14112 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
14113 | ||
14114 | wxPyEndAllowThreads(__tstate); | |
14115 | if (PyErr_Occurred()) SWIG_fail; | |
14116 | } | |
02a34c4c | 14117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14118 | return resultobj; |
14119 | fail: | |
14120 | return NULL; | |
14121 | } | |
14122 | ||
14123 | ||
14124 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14125 | PyObject *resultobj; | |
14126 | wxString *arg1 = 0 ; | |
14127 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14128 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14129 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14130 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14131 | wxBitmap result; | |
423f194a RD |
14132 | bool temp1 = False ; |
14133 | bool temp2 = False ; | |
d14a1e28 RD |
14134 | wxSize temp3 ; |
14135 | PyObject * obj0 = 0 ; | |
14136 | PyObject * obj1 = 0 ; | |
14137 | PyObject * obj2 = 0 ; | |
14138 | char *kwnames[] = { | |
14139 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14140 | }; | |
14141 | ||
14142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14143 | { | |
14144 | arg1 = wxString_in_helper(obj0); | |
14145 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 14146 | temp1 = True; |
d14a1e28 RD |
14147 | } |
14148 | if (obj1) { | |
14149 | { | |
14150 | arg2 = wxString_in_helper(obj1); | |
14151 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14152 | temp2 = True; |
d14a1e28 RD |
14153 | } |
14154 | } | |
14155 | if (obj2) { | |
14156 | { | |
14157 | arg3 = &temp3; | |
14158 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14159 | } | |
14160 | } | |
14161 | { | |
14162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14163 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14164 | ||
14165 | wxPyEndAllowThreads(__tstate); | |
14166 | if (PyErr_Occurred()) SWIG_fail; | |
14167 | } | |
14168 | { | |
14169 | wxBitmap * resultptr; | |
14170 | resultptr = new wxBitmap((wxBitmap &) result); | |
14171 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
14172 | } | |
14173 | { | |
14174 | if (temp1) | |
14175 | delete arg1; | |
14176 | } | |
14177 | { | |
14178 | if (temp2) | |
14179 | delete arg2; | |
14180 | } | |
14181 | return resultobj; | |
14182 | fail: | |
14183 | { | |
14184 | if (temp1) | |
14185 | delete arg1; | |
14186 | } | |
14187 | { | |
14188 | if (temp2) | |
14189 | delete arg2; | |
14190 | } | |
14191 | return NULL; | |
14192 | } | |
14193 | ||
14194 | ||
14195 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14196 | PyObject *resultobj; | |
14197 | wxString *arg1 = 0 ; | |
14198 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14199 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14200 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14201 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14202 | wxIcon result; | |
423f194a RD |
14203 | bool temp1 = False ; |
14204 | bool temp2 = False ; | |
d14a1e28 RD |
14205 | wxSize temp3 ; |
14206 | PyObject * obj0 = 0 ; | |
14207 | PyObject * obj1 = 0 ; | |
14208 | PyObject * obj2 = 0 ; | |
14209 | char *kwnames[] = { | |
14210 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14211 | }; | |
14212 | ||
14213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14214 | { | |
14215 | arg1 = wxString_in_helper(obj0); | |
14216 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 14217 | temp1 = True; |
d14a1e28 RD |
14218 | } |
14219 | if (obj1) { | |
14220 | { | |
14221 | arg2 = wxString_in_helper(obj1); | |
14222 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14223 | temp2 = True; |
d14a1e28 RD |
14224 | } |
14225 | } | |
14226 | if (obj2) { | |
14227 | { | |
14228 | arg3 = &temp3; | |
14229 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14230 | } | |
14231 | } | |
14232 | { | |
14233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14234 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14235 | ||
14236 | wxPyEndAllowThreads(__tstate); | |
14237 | if (PyErr_Occurred()) SWIG_fail; | |
14238 | } | |
14239 | { | |
14240 | wxIcon * resultptr; | |
14241 | resultptr = new wxIcon((wxIcon &) result); | |
14242 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxIcon, 1); | |
14243 | } | |
14244 | { | |
14245 | if (temp1) | |
14246 | delete arg1; | |
14247 | } | |
14248 | { | |
14249 | if (temp2) | |
14250 | delete arg2; | |
14251 | } | |
14252 | return resultobj; | |
14253 | fail: | |
14254 | { | |
14255 | if (temp1) | |
14256 | delete arg1; | |
14257 | } | |
14258 | { | |
14259 | if (temp2) | |
14260 | delete arg2; | |
14261 | } | |
14262 | return NULL; | |
14263 | } | |
14264 | ||
14265 | ||
41f1cec7 RD |
14266 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
14267 | PyObject *resultobj; | |
14268 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14269 | PyObject * obj0 = 0 ; | |
14270 | char *kwnames[] = { | |
14271 | (char *) "self", NULL | |
14272 | }; | |
14273 | ||
14274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
14275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14276 | { | |
14277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14278 | wxPyArtProvider_Destroy(arg1); | |
14279 | ||
14280 | wxPyEndAllowThreads(__tstate); | |
14281 | if (PyErr_Occurred()) SWIG_fail; | |
14282 | } | |
14283 | Py_INCREF(Py_None); resultobj = Py_None; | |
14284 | return resultobj; | |
14285 | fail: | |
14286 | return NULL; | |
14287 | } | |
14288 | ||
14289 | ||
d14a1e28 RD |
14290 | static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) { |
14291 | PyObject *obj; | |
14292 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14293 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
14294 | Py_INCREF(obj); | |
14295 | return Py_BuildValue((char *)""); | |
14296 | } | |
14297 | static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14298 | PyObject *resultobj; | |
14299 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14300 | PyObject * obj0 = 0 ; | |
14301 | char *kwnames[] = { | |
14302 | (char *) "self", NULL | |
14303 | }; | |
14304 | ||
14305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
14306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14307 | { | |
14308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14309 | delete arg1; | |
14310 | ||
14311 | wxPyEndAllowThreads(__tstate); | |
14312 | if (PyErr_Occurred()) SWIG_fail; | |
14313 | } | |
14314 | Py_INCREF(Py_None); resultobj = Py_None; | |
14315 | return resultobj; | |
14316 | fail: | |
14317 | return NULL; | |
14318 | } | |
14319 | ||
14320 | ||
14321 | static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14322 | PyObject *resultobj; | |
14323 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14324 | wxConfigBase *result; | |
14325 | PyObject * obj0 = 0 ; | |
14326 | char *kwnames[] = { | |
14327 | (char *) "pConfig", NULL | |
14328 | }; | |
14329 | ||
14330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
14331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14332 | { | |
14333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14334 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
14335 | ||
14336 | wxPyEndAllowThreads(__tstate); | |
14337 | if (PyErr_Occurred()) SWIG_fail; | |
14338 | } | |
14339 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
14340 | return resultobj; | |
14341 | fail: | |
14342 | return NULL; | |
14343 | } | |
14344 | ||
14345 | ||
14346 | static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14347 | PyObject *resultobj; | |
423f194a | 14348 | bool arg1 = (bool) True ; |
d14a1e28 RD |
14349 | wxConfigBase *result; |
14350 | PyObject * obj0 = 0 ; | |
14351 | char *kwnames[] = { | |
14352 | (char *) "createOnDemand", NULL | |
14353 | }; | |
14354 | ||
14355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
14356 | if (obj0) { | |
2dbef272 | 14357 | { |
8edf1c75 | 14358 | arg1 = (bool) SWIG_PyObj_AsBool(obj0); |
2dbef272 RD |
14359 | if (PyErr_Occurred()) SWIG_fail; |
14360 | } | |
d14a1e28 RD |
14361 | } |
14362 | { | |
14363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14364 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
14365 | ||
14366 | wxPyEndAllowThreads(__tstate); | |
14367 | if (PyErr_Occurred()) SWIG_fail; | |
14368 | } | |
14369 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
14370 | return resultobj; | |
14371 | fail: | |
14372 | return NULL; | |
14373 | } | |
14374 | ||
14375 | ||
14376 | static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14377 | PyObject *resultobj; | |
14378 | wxConfigBase *result; | |
14379 | char *kwnames[] = { | |
14380 | NULL | |
14381 | }; | |
14382 | ||
14383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
14384 | { | |
14385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14386 | result = (wxConfigBase *)wxConfigBase::Create(); | |
14387 | ||
14388 | wxPyEndAllowThreads(__tstate); | |
14389 | if (PyErr_Occurred()) SWIG_fail; | |
14390 | } | |
14391 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
14392 | return resultobj; | |
14393 | fail: | |
14394 | return NULL; | |
14395 | } | |
14396 | ||
14397 | ||
14398 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14399 | PyObject *resultobj; | |
14400 | char *kwnames[] = { | |
14401 | NULL | |
14402 | }; | |
14403 | ||
14404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
14405 | { | |
14406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14407 | wxConfigBase::DontCreateOnDemand(); | |
14408 | ||
14409 | wxPyEndAllowThreads(__tstate); | |
14410 | if (PyErr_Occurred()) SWIG_fail; | |
14411 | } | |
14412 | Py_INCREF(Py_None); resultobj = Py_None; | |
14413 | return resultobj; | |
14414 | fail: | |
14415 | return NULL; | |
14416 | } | |
14417 | ||
14418 | ||
14419 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14420 | PyObject *resultobj; | |
14421 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14422 | wxString *arg2 = 0 ; | |
423f194a | 14423 | bool temp2 = False ; |
d14a1e28 RD |
14424 | PyObject * obj0 = 0 ; |
14425 | PyObject * obj1 = 0 ; | |
14426 | char *kwnames[] = { | |
14427 | (char *) "self",(char *) "strPath", NULL | |
14428 | }; | |
14429 | ||
14430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
14431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14432 | { | |
14433 | arg2 = wxString_in_helper(obj1); | |
14434 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14435 | temp2 = True; |
d14a1e28 RD |
14436 | } |
14437 | { | |
14438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14439 | (arg1)->SetPath((wxString const &)*arg2); | |
14440 | ||
14441 | wxPyEndAllowThreads(__tstate); | |
14442 | if (PyErr_Occurred()) SWIG_fail; | |
14443 | } | |
14444 | Py_INCREF(Py_None); resultobj = Py_None; | |
14445 | { | |
14446 | if (temp2) | |
14447 | delete arg2; | |
14448 | } | |
14449 | return resultobj; | |
14450 | fail: | |
14451 | { | |
14452 | if (temp2) | |
14453 | delete arg2; | |
14454 | } | |
14455 | return NULL; | |
14456 | } | |
14457 | ||
14458 | ||
14459 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14460 | PyObject *resultobj; | |
14461 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14462 | wxString *result; | |
14463 | PyObject * obj0 = 0 ; | |
14464 | char *kwnames[] = { | |
14465 | (char *) "self", NULL | |
14466 | }; | |
14467 | ||
14468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
14469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14470 | { | |
14471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14472 | { | |
14473 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
14474 | result = (wxString *) &_result_ref; | |
14475 | } | |
14476 | ||
14477 | wxPyEndAllowThreads(__tstate); | |
14478 | if (PyErr_Occurred()) SWIG_fail; | |
14479 | } | |
0f774bef RD |
14480 | { |
14481 | #if wxUSE_UNICODE | |
14482 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14483 | #else | |
14484 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14485 | #endif | |
14486 | } | |
d14a1e28 RD |
14487 | return resultobj; |
14488 | fail: | |
14489 | return NULL; | |
14490 | } | |
14491 | ||
14492 | ||
14493 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14494 | PyObject *resultobj; | |
14495 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14496 | PyObject *result; | |
14497 | PyObject * obj0 = 0 ; | |
14498 | char *kwnames[] = { | |
14499 | (char *) "self", NULL | |
14500 | }; | |
14501 | ||
14502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
14503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14504 | { | |
14505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14506 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
14507 | ||
14508 | wxPyEndAllowThreads(__tstate); | |
14509 | if (PyErr_Occurred()) SWIG_fail; | |
14510 | } | |
14511 | resultobj = result; | |
14512 | return resultobj; | |
14513 | fail: | |
14514 | return NULL; | |
14515 | } | |
14516 | ||
14517 | ||
14518 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14519 | PyObject *resultobj; | |
14520 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14521 | long arg2 ; | |
14522 | PyObject *result; | |
14523 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14524 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14525 | char *kwnames[] = { |
14526 | (char *) "self",(char *) "index", NULL | |
14527 | }; | |
14528 | ||
8edf1c75 | 14529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14531 | { |
14532 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
14533 | if (PyErr_Occurred()) SWIG_fail; | |
14534 | } | |
d14a1e28 RD |
14535 | { |
14536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14537 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
14538 | ||
14539 | wxPyEndAllowThreads(__tstate); | |
14540 | if (PyErr_Occurred()) SWIG_fail; | |
14541 | } | |
14542 | resultobj = result; | |
14543 | return resultobj; | |
14544 | fail: | |
14545 | return NULL; | |
14546 | } | |
14547 | ||
14548 | ||
14549 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14550 | PyObject *resultobj; | |
14551 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14552 | PyObject *result; | |
14553 | PyObject * obj0 = 0 ; | |
14554 | char *kwnames[] = { | |
14555 | (char *) "self", NULL | |
14556 | }; | |
14557 | ||
14558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
14559 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14560 | { | |
14561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14562 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
14563 | ||
14564 | wxPyEndAllowThreads(__tstate); | |
14565 | if (PyErr_Occurred()) SWIG_fail; | |
14566 | } | |
14567 | resultobj = result; | |
14568 | return resultobj; | |
14569 | fail: | |
14570 | return NULL; | |
14571 | } | |
14572 | ||
14573 | ||
14574 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14575 | PyObject *resultobj; | |
14576 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14577 | long arg2 ; | |
14578 | PyObject *result; | |
14579 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14580 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14581 | char *kwnames[] = { |
14582 | (char *) "self",(char *) "index", NULL | |
14583 | }; | |
14584 | ||
8edf1c75 | 14585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14587 | { |
14588 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
14589 | if (PyErr_Occurred()) SWIG_fail; | |
14590 | } | |
d14a1e28 RD |
14591 | { |
14592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14593 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
14594 | ||
14595 | wxPyEndAllowThreads(__tstate); | |
14596 | if (PyErr_Occurred()) SWIG_fail; | |
14597 | } | |
14598 | resultobj = result; | |
14599 | return resultobj; | |
14600 | fail: | |
14601 | return NULL; | |
14602 | } | |
14603 | ||
14604 | ||
14605 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14606 | PyObject *resultobj; | |
14607 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 14608 | bool arg2 = (bool) False ; |
d14a1e28 RD |
14609 | size_t result; |
14610 | PyObject * obj0 = 0 ; | |
14611 | PyObject * obj1 = 0 ; | |
14612 | char *kwnames[] = { | |
14613 | (char *) "self",(char *) "bRecursive", NULL | |
14614 | }; | |
14615 | ||
14616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
14617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14618 | if (obj1) { | |
2dbef272 | 14619 | { |
8edf1c75 | 14620 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
14621 | if (PyErr_Occurred()) SWIG_fail; |
14622 | } | |
d14a1e28 RD |
14623 | } |
14624 | { | |
14625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14626 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
14627 | ||
14628 | wxPyEndAllowThreads(__tstate); | |
14629 | if (PyErr_Occurred()) SWIG_fail; | |
14630 | } | |
8edf1c75 | 14631 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
14632 | return resultobj; |
14633 | fail: | |
14634 | return NULL; | |
14635 | } | |
14636 | ||
14637 | ||
14638 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14639 | PyObject *resultobj; | |
14640 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 14641 | bool arg2 = (bool) False ; |
d14a1e28 RD |
14642 | size_t result; |
14643 | PyObject * obj0 = 0 ; | |
14644 | PyObject * obj1 = 0 ; | |
14645 | char *kwnames[] = { | |
14646 | (char *) "self",(char *) "bRecursive", NULL | |
14647 | }; | |
14648 | ||
14649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
14650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14651 | if (obj1) { | |
2dbef272 | 14652 | { |
8edf1c75 | 14653 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
14654 | if (PyErr_Occurred()) SWIG_fail; |
14655 | } | |
d14a1e28 RD |
14656 | } |
14657 | { | |
14658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14659 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
14660 | ||
14661 | wxPyEndAllowThreads(__tstate); | |
14662 | if (PyErr_Occurred()) SWIG_fail; | |
14663 | } | |
8edf1c75 | 14664 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
14665 | return resultobj; |
14666 | fail: | |
14667 | return NULL; | |
14668 | } | |
14669 | ||
14670 | ||
14671 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14672 | PyObject *resultobj; | |
14673 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14674 | wxString *arg2 = 0 ; | |
14675 | bool result; | |
423f194a | 14676 | bool temp2 = False ; |
d14a1e28 RD |
14677 | PyObject * obj0 = 0 ; |
14678 | PyObject * obj1 = 0 ; | |
14679 | char *kwnames[] = { | |
14680 | (char *) "self",(char *) "strName", NULL | |
14681 | }; | |
14682 | ||
14683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
14684 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14685 | { | |
14686 | arg2 = wxString_in_helper(obj1); | |
14687 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14688 | temp2 = True; |
d14a1e28 RD |
14689 | } |
14690 | { | |
14691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14692 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
14693 | ||
14694 | wxPyEndAllowThreads(__tstate); | |
14695 | if (PyErr_Occurred()) SWIG_fail; | |
14696 | } | |
02a34c4c | 14697 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14698 | { |
14699 | if (temp2) | |
14700 | delete arg2; | |
14701 | } | |
14702 | return resultobj; | |
14703 | fail: | |
14704 | { | |
14705 | if (temp2) | |
14706 | delete arg2; | |
14707 | } | |
14708 | return NULL; | |
14709 | } | |
14710 | ||
14711 | ||
14712 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14713 | PyObject *resultobj; | |
14714 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14715 | wxString *arg2 = 0 ; | |
14716 | bool result; | |
423f194a | 14717 | bool temp2 = False ; |
d14a1e28 RD |
14718 | PyObject * obj0 = 0 ; |
14719 | PyObject * obj1 = 0 ; | |
14720 | char *kwnames[] = { | |
14721 | (char *) "self",(char *) "strName", NULL | |
14722 | }; | |
14723 | ||
14724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
14725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14726 | { | |
14727 | arg2 = wxString_in_helper(obj1); | |
14728 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14729 | temp2 = True; |
d14a1e28 RD |
14730 | } |
14731 | { | |
14732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14733 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
14734 | ||
14735 | wxPyEndAllowThreads(__tstate); | |
14736 | if (PyErr_Occurred()) SWIG_fail; | |
14737 | } | |
02a34c4c | 14738 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14739 | { |
14740 | if (temp2) | |
14741 | delete arg2; | |
14742 | } | |
14743 | return resultobj; | |
14744 | fail: | |
14745 | { | |
14746 | if (temp2) | |
14747 | delete arg2; | |
14748 | } | |
14749 | return NULL; | |
14750 | } | |
14751 | ||
14752 | ||
14753 | static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14754 | PyObject *resultobj; | |
14755 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14756 | wxString *arg2 = 0 ; | |
14757 | bool result; | |
423f194a | 14758 | bool temp2 = False ; |
d14a1e28 RD |
14759 | PyObject * obj0 = 0 ; |
14760 | PyObject * obj1 = 0 ; | |
14761 | char *kwnames[] = { | |
14762 | (char *) "self",(char *) "strName", NULL | |
14763 | }; | |
14764 | ||
14765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
14766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14767 | { | |
14768 | arg2 = wxString_in_helper(obj1); | |
14769 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14770 | temp2 = True; |
d14a1e28 RD |
14771 | } |
14772 | { | |
14773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14774 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
14775 | ||
14776 | wxPyEndAllowThreads(__tstate); | |
14777 | if (PyErr_Occurred()) SWIG_fail; | |
14778 | } | |
02a34c4c | 14779 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14780 | { |
14781 | if (temp2) | |
14782 | delete arg2; | |
14783 | } | |
14784 | return resultobj; | |
14785 | fail: | |
14786 | { | |
14787 | if (temp2) | |
14788 | delete arg2; | |
14789 | } | |
14790 | return NULL; | |
14791 | } | |
14792 | ||
14793 | ||
14794 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14795 | PyObject *resultobj; | |
14796 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14797 | wxString *arg2 = 0 ; | |
14798 | int result; | |
423f194a | 14799 | bool temp2 = False ; |
d14a1e28 RD |
14800 | PyObject * obj0 = 0 ; |
14801 | PyObject * obj1 = 0 ; | |
14802 | char *kwnames[] = { | |
14803 | (char *) "self",(char *) "name", NULL | |
14804 | }; | |
14805 | ||
14806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
14807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14808 | { | |
14809 | arg2 = wxString_in_helper(obj1); | |
14810 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14811 | temp2 = True; |
d14a1e28 RD |
14812 | } |
14813 | { | |
14814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14815 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
14816 | ||
14817 | wxPyEndAllowThreads(__tstate); | |
14818 | if (PyErr_Occurred()) SWIG_fail; | |
14819 | } | |
8edf1c75 | 14820 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14821 | { |
14822 | if (temp2) | |
14823 | delete arg2; | |
14824 | } | |
14825 | return resultobj; | |
14826 | fail: | |
14827 | { | |
14828 | if (temp2) | |
14829 | delete arg2; | |
14830 | } | |
14831 | return NULL; | |
14832 | } | |
14833 | ||
14834 | ||
14835 | static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14836 | PyObject *resultobj; | |
14837 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14838 | wxString *arg2 = 0 ; | |
14839 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14840 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14841 | wxString result; | |
423f194a RD |
14842 | bool temp2 = False ; |
14843 | bool temp3 = False ; | |
d14a1e28 RD |
14844 | PyObject * obj0 = 0 ; |
14845 | PyObject * obj1 = 0 ; | |
14846 | PyObject * obj2 = 0 ; | |
14847 | char *kwnames[] = { | |
14848 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
14849 | }; | |
14850 | ||
14851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14853 | { | |
14854 | arg2 = wxString_in_helper(obj1); | |
14855 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14856 | temp2 = True; |
d14a1e28 RD |
14857 | } |
14858 | if (obj2) { | |
14859 | { | |
14860 | arg3 = wxString_in_helper(obj2); | |
14861 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 14862 | temp3 = True; |
d14a1e28 RD |
14863 | } |
14864 | } | |
14865 | { | |
14866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14867 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
14868 | ||
14869 | wxPyEndAllowThreads(__tstate); | |
14870 | if (PyErr_Occurred()) SWIG_fail; | |
14871 | } | |
14872 | { | |
14873 | #if wxUSE_UNICODE | |
14874 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14875 | #else | |
14876 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14877 | #endif | |
14878 | } | |
14879 | { | |
14880 | if (temp2) | |
14881 | delete arg2; | |
14882 | } | |
14883 | { | |
14884 | if (temp3) | |
14885 | delete arg3; | |
14886 | } | |
14887 | return resultobj; | |
14888 | fail: | |
14889 | { | |
14890 | if (temp2) | |
14891 | delete arg2; | |
14892 | } | |
14893 | { | |
14894 | if (temp3) | |
14895 | delete arg3; | |
14896 | } | |
14897 | return NULL; | |
14898 | } | |
14899 | ||
14900 | ||
14901 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14902 | PyObject *resultobj; | |
14903 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14904 | wxString *arg2 = 0 ; | |
14905 | long arg3 = (long) 0 ; | |
14906 | long result; | |
423f194a | 14907 | bool temp2 = False ; |
d14a1e28 RD |
14908 | PyObject * obj0 = 0 ; |
14909 | PyObject * obj1 = 0 ; | |
8edf1c75 | 14910 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14911 | char *kwnames[] = { |
14912 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
14913 | }; | |
14914 | ||
8edf1c75 | 14915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
14916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14917 | { | |
14918 | arg2 = wxString_in_helper(obj1); | |
14919 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14920 | temp2 = True; |
d14a1e28 | 14921 | } |
8edf1c75 RD |
14922 | if (obj2) { |
14923 | { | |
14924 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
14925 | if (PyErr_Occurred()) SWIG_fail; | |
14926 | } | |
14927 | } | |
d14a1e28 RD |
14928 | { |
14929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14930 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
14931 | ||
14932 | wxPyEndAllowThreads(__tstate); | |
14933 | if (PyErr_Occurred()) SWIG_fail; | |
14934 | } | |
8edf1c75 | 14935 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
14936 | { |
14937 | if (temp2) | |
14938 | delete arg2; | |
14939 | } | |
14940 | return resultobj; | |
14941 | fail: | |
14942 | { | |
14943 | if (temp2) | |
14944 | delete arg2; | |
14945 | } | |
14946 | return NULL; | |
14947 | } | |
14948 | ||
14949 | ||
14950 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14951 | PyObject *resultobj; | |
14952 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14953 | wxString *arg2 = 0 ; | |
14954 | double arg3 = (double) 0.0 ; | |
14955 | double result; | |
423f194a | 14956 | bool temp2 = False ; |
d14a1e28 RD |
14957 | PyObject * obj0 = 0 ; |
14958 | PyObject * obj1 = 0 ; | |
8edf1c75 | 14959 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14960 | char *kwnames[] = { |
14961 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
14962 | }; | |
14963 | ||
8edf1c75 | 14964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
14965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14966 | { | |
14967 | arg2 = wxString_in_helper(obj1); | |
14968 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14969 | temp2 = True; |
d14a1e28 | 14970 | } |
8edf1c75 RD |
14971 | if (obj2) { |
14972 | { | |
14973 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
14974 | if (PyErr_Occurred()) SWIG_fail; | |
14975 | } | |
14976 | } | |
d14a1e28 RD |
14977 | { |
14978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14979 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
14980 | ||
14981 | wxPyEndAllowThreads(__tstate); | |
14982 | if (PyErr_Occurred()) SWIG_fail; | |
14983 | } | |
8edf1c75 | 14984 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
14985 | { |
14986 | if (temp2) | |
14987 | delete arg2; | |
14988 | } | |
14989 | return resultobj; | |
14990 | fail: | |
14991 | { | |
14992 | if (temp2) | |
14993 | delete arg2; | |
14994 | } | |
14995 | return NULL; | |
14996 | } | |
14997 | ||
14998 | ||
14999 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15000 | PyObject *resultobj; | |
15001 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15002 | wxString *arg2 = 0 ; | |
423f194a | 15003 | bool arg3 = (bool) False ; |
d14a1e28 | 15004 | bool result; |
423f194a | 15005 | bool temp2 = False ; |
d14a1e28 RD |
15006 | PyObject * obj0 = 0 ; |
15007 | PyObject * obj1 = 0 ; | |
15008 | PyObject * obj2 = 0 ; | |
15009 | char *kwnames[] = { | |
15010 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15011 | }; | |
15012 | ||
15013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15015 | { | |
15016 | arg2 = wxString_in_helper(obj1); | |
15017 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15018 | temp2 = True; |
d14a1e28 RD |
15019 | } |
15020 | if (obj2) { | |
2dbef272 | 15021 | { |
8edf1c75 | 15022 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
15023 | if (PyErr_Occurred()) SWIG_fail; |
15024 | } | |
d14a1e28 RD |
15025 | } |
15026 | { | |
15027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15028 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
15029 | ||
15030 | wxPyEndAllowThreads(__tstate); | |
15031 | if (PyErr_Occurred()) SWIG_fail; | |
15032 | } | |
02a34c4c | 15033 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15034 | { |
15035 | if (temp2) | |
15036 | delete arg2; | |
15037 | } | |
15038 | return resultobj; | |
15039 | fail: | |
15040 | { | |
15041 | if (temp2) | |
15042 | delete arg2; | |
15043 | } | |
15044 | return NULL; | |
15045 | } | |
15046 | ||
15047 | ||
15048 | static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15049 | PyObject *resultobj; | |
15050 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15051 | wxString *arg2 = 0 ; | |
15052 | wxString *arg3 = 0 ; | |
15053 | bool result; | |
423f194a RD |
15054 | bool temp2 = False ; |
15055 | bool temp3 = False ; | |
d14a1e28 RD |
15056 | PyObject * obj0 = 0 ; |
15057 | PyObject * obj1 = 0 ; | |
15058 | PyObject * obj2 = 0 ; | |
15059 | char *kwnames[] = { | |
15060 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15061 | }; | |
15062 | ||
15063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15065 | { | |
15066 | arg2 = wxString_in_helper(obj1); | |
15067 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15068 | temp2 = True; |
d14a1e28 RD |
15069 | } |
15070 | { | |
15071 | arg3 = wxString_in_helper(obj2); | |
15072 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 15073 | temp3 = True; |
d14a1e28 RD |
15074 | } |
15075 | { | |
15076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15077 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
15078 | ||
15079 | wxPyEndAllowThreads(__tstate); | |
15080 | if (PyErr_Occurred()) SWIG_fail; | |
15081 | } | |
02a34c4c | 15082 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15083 | { |
15084 | if (temp2) | |
15085 | delete arg2; | |
15086 | } | |
15087 | { | |
15088 | if (temp3) | |
15089 | delete arg3; | |
15090 | } | |
15091 | return resultobj; | |
15092 | fail: | |
15093 | { | |
15094 | if (temp2) | |
15095 | delete arg2; | |
15096 | } | |
15097 | { | |
15098 | if (temp3) | |
15099 | delete arg3; | |
15100 | } | |
15101 | return NULL; | |
15102 | } | |
15103 | ||
15104 | ||
15105 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15106 | PyObject *resultobj; | |
15107 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15108 | wxString *arg2 = 0 ; | |
15109 | long arg3 ; | |
15110 | bool result; | |
423f194a | 15111 | bool temp2 = False ; |
d14a1e28 RD |
15112 | PyObject * obj0 = 0 ; |
15113 | PyObject * obj1 = 0 ; | |
8edf1c75 | 15114 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15115 | char *kwnames[] = { |
15116 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15117 | }; | |
15118 | ||
8edf1c75 | 15119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
15120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15121 | { | |
15122 | arg2 = wxString_in_helper(obj1); | |
15123 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15124 | temp2 = True; |
d14a1e28 | 15125 | } |
8edf1c75 RD |
15126 | { |
15127 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
15128 | if (PyErr_Occurred()) SWIG_fail; | |
15129 | } | |
d14a1e28 RD |
15130 | { |
15131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15132 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15133 | ||
15134 | wxPyEndAllowThreads(__tstate); | |
15135 | if (PyErr_Occurred()) SWIG_fail; | |
15136 | } | |
02a34c4c | 15137 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15138 | { |
15139 | if (temp2) | |
15140 | delete arg2; | |
15141 | } | |
15142 | return resultobj; | |
15143 | fail: | |
15144 | { | |
15145 | if (temp2) | |
15146 | delete arg2; | |
15147 | } | |
15148 | return NULL; | |
15149 | } | |
15150 | ||
15151 | ||
15152 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15153 | PyObject *resultobj; | |
15154 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15155 | wxString *arg2 = 0 ; | |
15156 | double arg3 ; | |
15157 | bool result; | |
423f194a | 15158 | bool temp2 = False ; |
d14a1e28 RD |
15159 | PyObject * obj0 = 0 ; |
15160 | PyObject * obj1 = 0 ; | |
8edf1c75 | 15161 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15162 | char *kwnames[] = { |
15163 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15164 | }; | |
15165 | ||
8edf1c75 | 15166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
15167 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15168 | { | |
15169 | arg2 = wxString_in_helper(obj1); | |
15170 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15171 | temp2 = True; |
d14a1e28 | 15172 | } |
8edf1c75 RD |
15173 | { |
15174 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
15175 | if (PyErr_Occurred()) SWIG_fail; | |
15176 | } | |
d14a1e28 RD |
15177 | { |
15178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15179 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15180 | ||
15181 | wxPyEndAllowThreads(__tstate); | |
15182 | if (PyErr_Occurred()) SWIG_fail; | |
15183 | } | |
02a34c4c | 15184 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15185 | { |
15186 | if (temp2) | |
15187 | delete arg2; | |
15188 | } | |
15189 | return resultobj; | |
15190 | fail: | |
15191 | { | |
15192 | if (temp2) | |
15193 | delete arg2; | |
15194 | } | |
15195 | return NULL; | |
15196 | } | |
15197 | ||
15198 | ||
15199 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15200 | PyObject *resultobj; | |
15201 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15202 | wxString *arg2 = 0 ; | |
15203 | bool arg3 ; | |
15204 | bool result; | |
423f194a | 15205 | bool temp2 = False ; |
d14a1e28 RD |
15206 | PyObject * obj0 = 0 ; |
15207 | PyObject * obj1 = 0 ; | |
15208 | PyObject * obj2 = 0 ; | |
15209 | char *kwnames[] = { | |
15210 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15211 | }; | |
15212 | ||
15213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15215 | { | |
15216 | arg2 = wxString_in_helper(obj1); | |
15217 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15218 | temp2 = True; |
d14a1e28 | 15219 | } |
2dbef272 | 15220 | { |
8edf1c75 | 15221 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
15222 | if (PyErr_Occurred()) SWIG_fail; |
15223 | } | |
d14a1e28 RD |
15224 | { |
15225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15226 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15227 | ||
15228 | wxPyEndAllowThreads(__tstate); | |
15229 | if (PyErr_Occurred()) SWIG_fail; | |
15230 | } | |
02a34c4c | 15231 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15232 | { |
15233 | if (temp2) | |
15234 | delete arg2; | |
15235 | } | |
15236 | return resultobj; | |
15237 | fail: | |
15238 | { | |
15239 | if (temp2) | |
15240 | delete arg2; | |
15241 | } | |
15242 | return NULL; | |
15243 | } | |
15244 | ||
15245 | ||
15246 | static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15247 | PyObject *resultobj; | |
15248 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 15249 | bool arg2 = (bool) False ; |
d14a1e28 RD |
15250 | bool result; |
15251 | PyObject * obj0 = 0 ; | |
15252 | PyObject * obj1 = 0 ; | |
15253 | char *kwnames[] = { | |
15254 | (char *) "self",(char *) "bCurrentOnly", NULL | |
15255 | }; | |
15256 | ||
15257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
15258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15259 | if (obj1) { | |
2dbef272 | 15260 | { |
8edf1c75 | 15261 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
15262 | if (PyErr_Occurred()) SWIG_fail; |
15263 | } | |
d14a1e28 RD |
15264 | } |
15265 | { | |
15266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15267 | result = (bool)(arg1)->Flush(arg2); | |
15268 | ||
15269 | wxPyEndAllowThreads(__tstate); | |
15270 | if (PyErr_Occurred()) SWIG_fail; | |
15271 | } | |
02a34c4c | 15272 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15273 | return resultobj; |
15274 | fail: | |
15275 | return NULL; | |
15276 | } | |
15277 | ||
15278 | ||
15279 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15280 | PyObject *resultobj; | |
15281 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15282 | wxString *arg2 = 0 ; | |
15283 | wxString *arg3 = 0 ; | |
15284 | bool result; | |
423f194a RD |
15285 | bool temp2 = False ; |
15286 | bool temp3 = False ; | |
d14a1e28 RD |
15287 | PyObject * obj0 = 0 ; |
15288 | PyObject * obj1 = 0 ; | |
15289 | PyObject * obj2 = 0 ; | |
15290 | char *kwnames[] = { | |
15291 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15292 | }; | |
15293 | ||
15294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15296 | { | |
15297 | arg2 = wxString_in_helper(obj1); | |
15298 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15299 | temp2 = True; |
d14a1e28 RD |
15300 | } |
15301 | { | |
15302 | arg3 = wxString_in_helper(obj2); | |
15303 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 15304 | temp3 = True; |
d14a1e28 RD |
15305 | } |
15306 | { | |
15307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15308 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
15309 | ||
15310 | wxPyEndAllowThreads(__tstate); | |
15311 | if (PyErr_Occurred()) SWIG_fail; | |
15312 | } | |
02a34c4c | 15313 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15314 | { |
15315 | if (temp2) | |
15316 | delete arg2; | |
15317 | } | |
15318 | { | |
15319 | if (temp3) | |
15320 | delete arg3; | |
15321 | } | |
15322 | return resultobj; | |
15323 | fail: | |
15324 | { | |
15325 | if (temp2) | |
15326 | delete arg2; | |
15327 | } | |
15328 | { | |
15329 | if (temp3) | |
15330 | delete arg3; | |
15331 | } | |
15332 | return NULL; | |
15333 | } | |
15334 | ||
15335 | ||
15336 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15337 | PyObject *resultobj; | |
15338 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15339 | wxString *arg2 = 0 ; | |
15340 | wxString *arg3 = 0 ; | |
15341 | bool result; | |
423f194a RD |
15342 | bool temp2 = False ; |
15343 | bool temp3 = False ; | |
d14a1e28 RD |
15344 | PyObject * obj0 = 0 ; |
15345 | PyObject * obj1 = 0 ; | |
15346 | PyObject * obj2 = 0 ; | |
15347 | char *kwnames[] = { | |
15348 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15349 | }; | |
15350 | ||
15351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15353 | { | |
15354 | arg2 = wxString_in_helper(obj1); | |
15355 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15356 | temp2 = True; |
d14a1e28 RD |
15357 | } |
15358 | { | |
15359 | arg3 = wxString_in_helper(obj2); | |
15360 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 15361 | temp3 = True; |
d14a1e28 RD |
15362 | } |
15363 | { | |
15364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15365 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
15366 | ||
15367 | wxPyEndAllowThreads(__tstate); | |
15368 | if (PyErr_Occurred()) SWIG_fail; | |
15369 | } | |
02a34c4c | 15370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15371 | { |
15372 | if (temp2) | |
15373 | delete arg2; | |
15374 | } | |
15375 | { | |
15376 | if (temp3) | |
15377 | delete arg3; | |
15378 | } | |
15379 | return resultobj; | |
15380 | fail: | |
15381 | { | |
15382 | if (temp2) | |
15383 | delete arg2; | |
15384 | } | |
15385 | { | |
15386 | if (temp3) | |
15387 | delete arg3; | |
15388 | } | |
15389 | return NULL; | |
15390 | } | |
15391 | ||
15392 | ||
15393 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15394 | PyObject *resultobj; | |
15395 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15396 | wxString *arg2 = 0 ; | |
423f194a | 15397 | bool arg3 = (bool) True ; |
d14a1e28 | 15398 | bool result; |
423f194a | 15399 | bool temp2 = False ; |
d14a1e28 RD |
15400 | PyObject * obj0 = 0 ; |
15401 | PyObject * obj1 = 0 ; | |
15402 | PyObject * obj2 = 0 ; | |
15403 | char *kwnames[] = { | |
15404 | (char *) "self",(char *) "key",(char *) "bDeleteGroupIfEmpty", NULL | |
15405 | }; | |
15406 | ||
15407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15409 | { | |
15410 | arg2 = wxString_in_helper(obj1); | |
15411 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15412 | temp2 = True; |
d14a1e28 RD |
15413 | } |
15414 | if (obj2) { | |
2dbef272 | 15415 | { |
8edf1c75 | 15416 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
15417 | if (PyErr_Occurred()) SWIG_fail; |
15418 | } | |
d14a1e28 RD |
15419 | } |
15420 | { | |
15421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15422 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
15423 | ||
15424 | wxPyEndAllowThreads(__tstate); | |
15425 | if (PyErr_Occurred()) SWIG_fail; | |
15426 | } | |
02a34c4c | 15427 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15428 | { |
15429 | if (temp2) | |
15430 | delete arg2; | |
15431 | } | |
15432 | return resultobj; | |
15433 | fail: | |
15434 | { | |
15435 | if (temp2) | |
15436 | delete arg2; | |
15437 | } | |
15438 | return NULL; | |
15439 | } | |
15440 | ||
15441 | ||
15442 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15443 | PyObject *resultobj; | |
15444 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15445 | wxString *arg2 = 0 ; | |
15446 | bool result; | |
423f194a | 15447 | bool temp2 = False ; |
d14a1e28 RD |
15448 | PyObject * obj0 = 0 ; |
15449 | PyObject * obj1 = 0 ; | |
15450 | char *kwnames[] = { | |
15451 | (char *) "self",(char *) "key", NULL | |
15452 | }; | |
15453 | ||
15454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
15455 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15456 | { | |
15457 | arg2 = wxString_in_helper(obj1); | |
15458 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15459 | temp2 = True; |
d14a1e28 RD |
15460 | } |
15461 | { | |
15462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15463 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
15464 | ||
15465 | wxPyEndAllowThreads(__tstate); | |
15466 | if (PyErr_Occurred()) SWIG_fail; | |
15467 | } | |
02a34c4c | 15468 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15469 | { |
15470 | if (temp2) | |
15471 | delete arg2; | |
15472 | } | |
15473 | return resultobj; | |
15474 | fail: | |
15475 | { | |
15476 | if (temp2) | |
15477 | delete arg2; | |
15478 | } | |
15479 | return NULL; | |
15480 | } | |
15481 | ||
15482 | ||
15483 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15484 | PyObject *resultobj; | |
15485 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15486 | bool result; | |
15487 | PyObject * obj0 = 0 ; | |
15488 | char *kwnames[] = { | |
15489 | (char *) "self", NULL | |
15490 | }; | |
15491 | ||
15492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
15493 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15494 | { | |
15495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15496 | result = (bool)(arg1)->DeleteAll(); | |
15497 | ||
15498 | wxPyEndAllowThreads(__tstate); | |
15499 | if (PyErr_Occurred()) SWIG_fail; | |
15500 | } | |
02a34c4c | 15501 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15502 | return resultobj; |
15503 | fail: | |
15504 | return NULL; | |
15505 | } | |
15506 | ||
15507 | ||
15508 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15509 | PyObject *resultobj; | |
15510 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15511 | bool result; | |
15512 | PyObject * obj0 = 0 ; | |
15513 | char *kwnames[] = { | |
15514 | (char *) "self", NULL | |
15515 | }; | |
15516 | ||
15517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; | |
15518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15519 | { | |
15520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15521 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); | |
15522 | ||
15523 | wxPyEndAllowThreads(__tstate); | |
15524 | if (PyErr_Occurred()) SWIG_fail; | |
15525 | } | |
02a34c4c | 15526 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15527 | return resultobj; |
15528 | fail: | |
15529 | return NULL; | |
15530 | } | |
15531 | ||
15532 | ||
15533 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15534 | PyObject *resultobj; | |
15535 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 15536 | bool arg2 = (bool) True ; |
d14a1e28 RD |
15537 | PyObject * obj0 = 0 ; |
15538 | PyObject * obj1 = 0 ; | |
15539 | char *kwnames[] = { | |
15540 | (char *) "self",(char *) "bDoIt", NULL | |
15541 | }; | |
15542 | ||
15543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
15544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15545 | if (obj1) { | |
2dbef272 | 15546 | { |
8edf1c75 | 15547 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
15548 | if (PyErr_Occurred()) SWIG_fail; |
15549 | } | |
d14a1e28 RD |
15550 | } |
15551 | { | |
15552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15553 | (arg1)->SetExpandEnvVars(arg2); | |
15554 | ||
15555 | wxPyEndAllowThreads(__tstate); | |
15556 | if (PyErr_Occurred()) SWIG_fail; | |
15557 | } | |
15558 | Py_INCREF(Py_None); resultobj = Py_None; | |
15559 | return resultobj; | |
15560 | fail: | |
15561 | return NULL; | |
15562 | } | |
15563 | ||
15564 | ||
15565 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15566 | PyObject *resultobj; | |
15567 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 15568 | bool arg2 = (bool) True ; |
d14a1e28 RD |
15569 | PyObject * obj0 = 0 ; |
15570 | PyObject * obj1 = 0 ; | |
15571 | char *kwnames[] = { | |
15572 | (char *) "self",(char *) "bDoIt", NULL | |
15573 | }; | |
15574 | ||
15575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
15576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15577 | if (obj1) { | |
2dbef272 | 15578 | { |
8edf1c75 | 15579 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
15580 | if (PyErr_Occurred()) SWIG_fail; |
15581 | } | |
d14a1e28 RD |
15582 | } |
15583 | { | |
15584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15585 | (arg1)->SetRecordDefaults(arg2); | |
15586 | ||
15587 | wxPyEndAllowThreads(__tstate); | |
15588 | if (PyErr_Occurred()) SWIG_fail; | |
15589 | } | |
15590 | Py_INCREF(Py_None); resultobj = Py_None; | |
15591 | return resultobj; | |
15592 | fail: | |
15593 | return NULL; | |
15594 | } | |
15595 | ||
15596 | ||
15597 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15598 | PyObject *resultobj; | |
15599 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15600 | bool result; | |
15601 | PyObject * obj0 = 0 ; | |
15602 | char *kwnames[] = { | |
15603 | (char *) "self", NULL | |
15604 | }; | |
15605 | ||
15606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
15607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15608 | { | |
15609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15610 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
15611 | ||
15612 | wxPyEndAllowThreads(__tstate); | |
15613 | if (PyErr_Occurred()) SWIG_fail; | |
15614 | } | |
02a34c4c | 15615 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15616 | return resultobj; |
15617 | fail: | |
15618 | return NULL; | |
15619 | } | |
15620 | ||
15621 | ||
15622 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15623 | PyObject *resultobj; | |
15624 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15625 | wxString *arg2 = 0 ; | |
15626 | wxString result; | |
423f194a | 15627 | bool temp2 = False ; |
d14a1e28 RD |
15628 | PyObject * obj0 = 0 ; |
15629 | PyObject * obj1 = 0 ; | |
15630 | char *kwnames[] = { | |
15631 | (char *) "self",(char *) "str", NULL | |
15632 | }; | |
15633 | ||
15634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
15635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15636 | { | |
15637 | arg2 = wxString_in_helper(obj1); | |
15638 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15639 | temp2 = True; |
d14a1e28 RD |
15640 | } |
15641 | { | |
15642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15643 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
15644 | ||
15645 | wxPyEndAllowThreads(__tstate); | |
15646 | if (PyErr_Occurred()) SWIG_fail; | |
15647 | } | |
15648 | { | |
15649 | #if wxUSE_UNICODE | |
15650 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15651 | #else | |
15652 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15653 | #endif | |
15654 | } | |
15655 | { | |
15656 | if (temp2) | |
15657 | delete arg2; | |
15658 | } | |
15659 | return resultobj; | |
15660 | fail: | |
15661 | { | |
15662 | if (temp2) | |
15663 | delete arg2; | |
15664 | } | |
15665 | return NULL; | |
15666 | } | |
15667 | ||
15668 | ||
15669 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15670 | PyObject *resultobj; | |
15671 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15672 | wxString result; | |
15673 | PyObject * obj0 = 0 ; | |
15674 | char *kwnames[] = { | |
15675 | (char *) "self", NULL | |
15676 | }; | |
15677 | ||
15678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
15679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15680 | { | |
15681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15682 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
15683 | ||
15684 | wxPyEndAllowThreads(__tstate); | |
15685 | if (PyErr_Occurred()) SWIG_fail; | |
15686 | } | |
15687 | { | |
15688 | #if wxUSE_UNICODE | |
15689 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15690 | #else | |
15691 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15692 | #endif | |
15693 | } | |
15694 | return resultobj; | |
15695 | fail: | |
15696 | return NULL; | |
15697 | } | |
15698 | ||
15699 | ||
15700 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15701 | PyObject *resultobj; | |
15702 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15703 | wxString result; | |
15704 | PyObject * obj0 = 0 ; | |
15705 | char *kwnames[] = { | |
15706 | (char *) "self", NULL | |
15707 | }; | |
15708 | ||
15709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
15710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15711 | { | |
15712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15713 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
15714 | ||
15715 | wxPyEndAllowThreads(__tstate); | |
15716 | if (PyErr_Occurred()) SWIG_fail; | |
15717 | } | |
15718 | { | |
15719 | #if wxUSE_UNICODE | |
15720 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15721 | #else | |
15722 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15723 | #endif | |
15724 | } | |
15725 | return resultobj; | |
15726 | fail: | |
15727 | return NULL; | |
15728 | } | |
15729 | ||
15730 | ||
15731 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15732 | PyObject *resultobj; | |
15733 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15734 | wxString *arg2 = 0 ; | |
423f194a | 15735 | bool temp2 = False ; |
d14a1e28 RD |
15736 | PyObject * obj0 = 0 ; |
15737 | PyObject * obj1 = 0 ; | |
15738 | char *kwnames[] = { | |
15739 | (char *) "self",(char *) "appName", NULL | |
15740 | }; | |
15741 | ||
15742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
15743 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15744 | { | |
15745 | arg2 = wxString_in_helper(obj1); | |
15746 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15747 | temp2 = True; |
d14a1e28 RD |
15748 | } |
15749 | { | |
15750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15751 | (arg1)->SetAppName((wxString const &)*arg2); | |
15752 | ||
15753 | wxPyEndAllowThreads(__tstate); | |
15754 | if (PyErr_Occurred()) SWIG_fail; | |
15755 | } | |
15756 | Py_INCREF(Py_None); resultobj = Py_None; | |
15757 | { | |
15758 | if (temp2) | |
15759 | delete arg2; | |
15760 | } | |
15761 | return resultobj; | |
15762 | fail: | |
15763 | { | |
15764 | if (temp2) | |
15765 | delete arg2; | |
15766 | } | |
15767 | return NULL; | |
15768 | } | |
15769 | ||
15770 | ||
15771 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15772 | PyObject *resultobj; | |
15773 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15774 | wxString *arg2 = 0 ; | |
423f194a | 15775 | bool temp2 = False ; |
d14a1e28 RD |
15776 | PyObject * obj0 = 0 ; |
15777 | PyObject * obj1 = 0 ; | |
15778 | char *kwnames[] = { | |
15779 | (char *) "self",(char *) "vendorName", NULL | |
15780 | }; | |
15781 | ||
15782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
15783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15784 | { | |
15785 | arg2 = wxString_in_helper(obj1); | |
15786 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15787 | temp2 = True; |
d14a1e28 RD |
15788 | } |
15789 | { | |
15790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15791 | (arg1)->SetVendorName((wxString const &)*arg2); | |
15792 | ||
15793 | wxPyEndAllowThreads(__tstate); | |
15794 | if (PyErr_Occurred()) SWIG_fail; | |
15795 | } | |
15796 | Py_INCREF(Py_None); resultobj = Py_None; | |
15797 | { | |
15798 | if (temp2) | |
15799 | delete arg2; | |
15800 | } | |
15801 | return resultobj; | |
15802 | fail: | |
15803 | { | |
15804 | if (temp2) | |
15805 | delete arg2; | |
15806 | } | |
15807 | return NULL; | |
15808 | } | |
15809 | ||
15810 | ||
15811 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15812 | PyObject *resultobj; | |
15813 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15814 | long arg2 ; | |
15815 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15816 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15817 | char *kwnames[] = { |
15818 | (char *) "self",(char *) "style", NULL | |
15819 | }; | |
15820 | ||
8edf1c75 | 15821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15823 | { |
15824 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
15825 | if (PyErr_Occurred()) SWIG_fail; | |
15826 | } | |
d14a1e28 RD |
15827 | { |
15828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15829 | (arg1)->SetStyle(arg2); | |
15830 | ||
15831 | wxPyEndAllowThreads(__tstate); | |
15832 | if (PyErr_Occurred()) SWIG_fail; | |
15833 | } | |
15834 | Py_INCREF(Py_None); resultobj = Py_None; | |
15835 | return resultobj; | |
15836 | fail: | |
15837 | return NULL; | |
15838 | } | |
15839 | ||
15840 | ||
15841 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15842 | PyObject *resultobj; | |
15843 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15844 | long result; | |
15845 | PyObject * obj0 = 0 ; | |
15846 | char *kwnames[] = { | |
15847 | (char *) "self", NULL | |
15848 | }; | |
15849 | ||
15850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
15851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15852 | { | |
15853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15854 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
15855 | ||
15856 | wxPyEndAllowThreads(__tstate); | |
15857 | if (PyErr_Occurred()) SWIG_fail; | |
15858 | } | |
8edf1c75 | 15859 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
15860 | return resultobj; |
15861 | fail: | |
15862 | return NULL; | |
15863 | } | |
15864 | ||
15865 | ||
15866 | static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) { | |
15867 | PyObject *obj; | |
15868 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15869 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
15870 | Py_INCREF(obj); | |
15871 | return Py_BuildValue((char *)""); | |
15872 | } | |
15873 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15874 | PyObject *resultobj; | |
15875 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15876 | wxString *arg2 = 0 ; | |
15877 | wxConfigPathChanger *result; | |
423f194a | 15878 | bool temp2 = False ; |
d14a1e28 RD |
15879 | PyObject * obj0 = 0 ; |
15880 | PyObject * obj1 = 0 ; | |
15881 | char *kwnames[] = { | |
15882 | (char *) "pContainer",(char *) "strEntry", NULL | |
15883 | }; | |
15884 | ||
15885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
15886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15887 | { | |
15888 | arg2 = wxString_in_helper(obj1); | |
15889 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15890 | temp2 = True; |
d14a1e28 RD |
15891 | } |
15892 | { | |
15893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15894 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
15895 | ||
15896 | wxPyEndAllowThreads(__tstate); | |
15897 | if (PyErr_Occurred()) SWIG_fail; | |
15898 | } | |
15899 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigPathChanger, 1); | |
15900 | { | |
15901 | if (temp2) | |
15902 | delete arg2; | |
15903 | } | |
15904 | return resultobj; | |
15905 | fail: | |
15906 | { | |
15907 | if (temp2) | |
15908 | delete arg2; | |
15909 | } | |
15910 | return NULL; | |
15911 | } | |
15912 | ||
15913 | ||
15914 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15915 | PyObject *resultobj; | |
15916 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
15917 | PyObject * obj0 = 0 ; | |
15918 | char *kwnames[] = { | |
15919 | (char *) "self", NULL | |
15920 | }; | |
15921 | ||
15922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
15923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigPathChanger,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15924 | { | |
15925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15926 | delete arg1; | |
15927 | ||
15928 | wxPyEndAllowThreads(__tstate); | |
15929 | if (PyErr_Occurred()) SWIG_fail; | |
15930 | } | |
15931 | Py_INCREF(Py_None); resultobj = Py_None; | |
15932 | return resultobj; | |
15933 | fail: | |
15934 | return NULL; | |
15935 | } | |
15936 | ||
15937 | ||
15938 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15939 | PyObject *resultobj; | |
15940 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
15941 | wxString *result; | |
15942 | PyObject * obj0 = 0 ; | |
15943 | char *kwnames[] = { | |
15944 | (char *) "self", NULL | |
15945 | }; | |
15946 | ||
15947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
15948 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigPathChanger,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15949 | { | |
15950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15951 | { | |
15952 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
15953 | result = (wxString *) &_result_ref; | |
15954 | } | |
15955 | ||
15956 | wxPyEndAllowThreads(__tstate); | |
15957 | if (PyErr_Occurred()) SWIG_fail; | |
15958 | } | |
0f774bef RD |
15959 | { |
15960 | #if wxUSE_UNICODE | |
15961 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
15962 | #else | |
15963 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
15964 | #endif | |
15965 | } | |
d14a1e28 RD |
15966 | return resultobj; |
15967 | fail: | |
15968 | return NULL; | |
15969 | } | |
15970 | ||
15971 | ||
15972 | static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) { | |
15973 | PyObject *obj; | |
15974 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15975 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
15976 | Py_INCREF(obj); | |
15977 | return Py_BuildValue((char *)""); | |
15978 | } | |
15979 | static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15980 | PyObject *resultobj; | |
15981 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15982 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15983 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
15984 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
15985 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15986 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15987 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15988 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15989 | long arg5 = (long) 0 ; | |
15990 | wxConfig *result; | |
423f194a RD |
15991 | bool temp1 = False ; |
15992 | bool temp2 = False ; | |
15993 | bool temp3 = False ; | |
15994 | bool temp4 = False ; | |
d14a1e28 RD |
15995 | PyObject * obj0 = 0 ; |
15996 | PyObject * obj1 = 0 ; | |
15997 | PyObject * obj2 = 0 ; | |
15998 | PyObject * obj3 = 0 ; | |
8edf1c75 | 15999 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
16000 | char *kwnames[] = { |
16001 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16002 | }; | |
16003 | ||
8edf1c75 | 16004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
16005 | if (obj0) { |
16006 | { | |
16007 | arg1 = wxString_in_helper(obj0); | |
16008 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 16009 | temp1 = True; |
d14a1e28 RD |
16010 | } |
16011 | } | |
16012 | if (obj1) { | |
16013 | { | |
16014 | arg2 = wxString_in_helper(obj1); | |
16015 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 16016 | temp2 = True; |
d14a1e28 RD |
16017 | } |
16018 | } | |
16019 | if (obj2) { | |
16020 | { | |
16021 | arg3 = wxString_in_helper(obj2); | |
16022 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16023 | temp3 = True; |
d14a1e28 RD |
16024 | } |
16025 | } | |
16026 | if (obj3) { | |
16027 | { | |
16028 | arg4 = wxString_in_helper(obj3); | |
16029 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 16030 | temp4 = True; |
d14a1e28 RD |
16031 | } |
16032 | } | |
8edf1c75 RD |
16033 | if (obj4) { |
16034 | { | |
16035 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
16036 | if (PyErr_Occurred()) SWIG_fail; | |
16037 | } | |
16038 | } | |
d14a1e28 RD |
16039 | { |
16040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16041 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16042 | ||
16043 | wxPyEndAllowThreads(__tstate); | |
16044 | if (PyErr_Occurred()) SWIG_fail; | |
16045 | } | |
16046 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfig, 1); | |
16047 | { | |
16048 | if (temp1) | |
16049 | delete arg1; | |
16050 | } | |
16051 | { | |
16052 | if (temp2) | |
16053 | delete arg2; | |
16054 | } | |
16055 | { | |
16056 | if (temp3) | |
16057 | delete arg3; | |
16058 | } | |
16059 | { | |
16060 | if (temp4) | |
16061 | delete arg4; | |
16062 | } | |
16063 | return resultobj; | |
16064 | fail: | |
16065 | { | |
16066 | if (temp1) | |
16067 | delete arg1; | |
16068 | } | |
16069 | { | |
16070 | if (temp2) | |
16071 | delete arg2; | |
16072 | } | |
16073 | { | |
16074 | if (temp3) | |
16075 | delete arg3; | |
16076 | } | |
16077 | { | |
16078 | if (temp4) | |
16079 | delete arg4; | |
16080 | } | |
16081 | return NULL; | |
16082 | } | |
16083 | ||
16084 | ||
16085 | static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16086 | PyObject *resultobj; | |
16087 | wxConfig *arg1 = (wxConfig *) 0 ; | |
16088 | PyObject * obj0 = 0 ; | |
16089 | char *kwnames[] = { | |
16090 | (char *) "self", NULL | |
16091 | }; | |
16092 | ||
16093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
16094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16095 | { | |
16096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16097 | delete arg1; | |
16098 | ||
16099 | wxPyEndAllowThreads(__tstate); | |
16100 | if (PyErr_Occurred()) SWIG_fail; | |
16101 | } | |
16102 | Py_INCREF(Py_None); resultobj = Py_None; | |
16103 | return resultobj; | |
16104 | fail: | |
16105 | return NULL; | |
16106 | } | |
16107 | ||
16108 | ||
16109 | static PyObject * Config_swigregister(PyObject *self, PyObject *args) { | |
16110 | PyObject *obj; | |
16111 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16112 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
16113 | Py_INCREF(obj); | |
16114 | return Py_BuildValue((char *)""); | |
16115 | } | |
16116 | static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16117 | PyObject *resultobj; | |
16118 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16119 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16120 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16121 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16122 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16123 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16124 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16125 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16126 | long arg5 = (long) 0 ; | |
16127 | wxFileConfig *result; | |
423f194a RD |
16128 | bool temp1 = False ; |
16129 | bool temp2 = False ; | |
16130 | bool temp3 = False ; | |
16131 | bool temp4 = False ; | |
d14a1e28 RD |
16132 | PyObject * obj0 = 0 ; |
16133 | PyObject * obj1 = 0 ; | |
16134 | PyObject * obj2 = 0 ; | |
16135 | PyObject * obj3 = 0 ; | |
8edf1c75 | 16136 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
16137 | char *kwnames[] = { |
16138 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16139 | }; | |
16140 | ||
8edf1c75 | 16141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
16142 | if (obj0) { |
16143 | { | |
16144 | arg1 = wxString_in_helper(obj0); | |
16145 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 16146 | temp1 = True; |
d14a1e28 RD |
16147 | } |
16148 | } | |
16149 | if (obj1) { | |
16150 | { | |
16151 | arg2 = wxString_in_helper(obj1); | |
16152 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 16153 | temp2 = True; |
d14a1e28 RD |
16154 | } |
16155 | } | |
16156 | if (obj2) { | |
16157 | { | |
16158 | arg3 = wxString_in_helper(obj2); | |
16159 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16160 | temp3 = True; |
d14a1e28 RD |
16161 | } |
16162 | } | |
16163 | if (obj3) { | |
16164 | { | |
16165 | arg4 = wxString_in_helper(obj3); | |
16166 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 16167 | temp4 = True; |
d14a1e28 RD |
16168 | } |
16169 | } | |
8edf1c75 RD |
16170 | if (obj4) { |
16171 | { | |
16172 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
16173 | if (PyErr_Occurred()) SWIG_fail; | |
16174 | } | |
16175 | } | |
d14a1e28 RD |
16176 | { |
16177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16178 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16179 | ||
16180 | wxPyEndAllowThreads(__tstate); | |
16181 | if (PyErr_Occurred()) SWIG_fail; | |
16182 | } | |
16183 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileConfig, 1); | |
16184 | { | |
16185 | if (temp1) | |
16186 | delete arg1; | |
16187 | } | |
16188 | { | |
16189 | if (temp2) | |
16190 | delete arg2; | |
16191 | } | |
16192 | { | |
16193 | if (temp3) | |
16194 | delete arg3; | |
16195 | } | |
16196 | { | |
16197 | if (temp4) | |
16198 | delete arg4; | |
16199 | } | |
16200 | return resultobj; | |
16201 | fail: | |
16202 | { | |
16203 | if (temp1) | |
16204 | delete arg1; | |
16205 | } | |
16206 | { | |
16207 | if (temp2) | |
16208 | delete arg2; | |
16209 | } | |
16210 | { | |
16211 | if (temp3) | |
16212 | delete arg3; | |
16213 | } | |
16214 | { | |
16215 | if (temp4) | |
16216 | delete arg4; | |
16217 | } | |
16218 | return NULL; | |
16219 | } | |
16220 | ||
16221 | ||
16222 | static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16223 | PyObject *resultobj; | |
16224 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
16225 | PyObject * obj0 = 0 ; | |
16226 | char *kwnames[] = { | |
16227 | (char *) "self", NULL | |
16228 | }; | |
16229 | ||
16230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
16231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16232 | { | |
16233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16234 | delete arg1; | |
16235 | ||
16236 | wxPyEndAllowThreads(__tstate); | |
16237 | if (PyErr_Occurred()) SWIG_fail; | |
16238 | } | |
16239 | Py_INCREF(Py_None); resultobj = Py_None; | |
16240 | return resultobj; | |
16241 | fail: | |
16242 | return NULL; | |
16243 | } | |
16244 | ||
16245 | ||
16246 | static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) { | |
16247 | PyObject *obj; | |
16248 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16249 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
16250 | Py_INCREF(obj); | |
16251 | return Py_BuildValue((char *)""); | |
16252 | } | |
16253 | static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16254 | PyObject *resultobj; | |
16255 | wxString *arg1 = 0 ; | |
16256 | wxString result; | |
423f194a | 16257 | bool temp1 = False ; |
d14a1e28 RD |
16258 | PyObject * obj0 = 0 ; |
16259 | char *kwnames[] = { | |
16260 | (char *) "sz", NULL | |
16261 | }; | |
16262 | ||
16263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
16264 | { | |
16265 | arg1 = wxString_in_helper(obj0); | |
16266 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 16267 | temp1 = True; |
d14a1e28 RD |
16268 | } |
16269 | { | |
16270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16271 | result = wxExpandEnvVars((wxString const &)*arg1); | |
16272 | ||
16273 | wxPyEndAllowThreads(__tstate); | |
16274 | if (PyErr_Occurred()) SWIG_fail; | |
16275 | } | |
16276 | { | |
16277 | #if wxUSE_UNICODE | |
16278 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16279 | #else | |
16280 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16281 | #endif | |
16282 | } | |
16283 | { | |
16284 | if (temp1) | |
16285 | delete arg1; | |
16286 | } | |
16287 | return resultobj; | |
16288 | fail: | |
16289 | { | |
16290 | if (temp1) | |
16291 | delete arg1; | |
16292 | } | |
16293 | return NULL; | |
16294 | } | |
16295 | ||
16296 | ||
8edf1c75 | 16297 | static int _wrap_DateFormatStr_set(PyObject *) { |
cbd72d4f RD |
16298 | PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); |
16299 | return 1; | |
16300 | } | |
16301 | ||
16302 | ||
16303 | static PyObject *_wrap_DateFormatStr_get() { | |
16304 | PyObject *pyobj; | |
16305 | ||
16306 | { | |
16307 | #if wxUSE_UNICODE | |
16308 | pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16309 | #else | |
16310 | pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16311 | #endif | |
16312 | } | |
16313 | return pyobj; | |
16314 | } | |
16315 | ||
16316 | ||
8edf1c75 | 16317 | static int _wrap_TimeSpanFormatStr_set(PyObject *) { |
cbd72d4f RD |
16318 | PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); |
16319 | return 1; | |
16320 | } | |
16321 | ||
16322 | ||
16323 | static PyObject *_wrap_TimeSpanFormatStr_get() { | |
16324 | PyObject *pyobj; | |
16325 | ||
16326 | { | |
16327 | #if wxUSE_UNICODE | |
16328 | pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16329 | #else | |
16330 | pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16331 | #endif | |
16332 | } | |
16333 | return pyobj; | |
16334 | } | |
16335 | ||
16336 | ||
d14a1e28 RD |
16337 | static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { |
16338 | PyObject *resultobj; | |
16339 | int arg1 ; | |
8edf1c75 | 16340 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16341 | char *kwnames[] = { |
16342 | (char *) "country", NULL | |
16343 | }; | |
16344 | ||
8edf1c75 RD |
16345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; |
16346 | { | |
16347 | arg1 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj0); | |
16348 | if (PyErr_Occurred()) SWIG_fail; | |
16349 | } | |
d14a1e28 RD |
16350 | { |
16351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16352 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
16353 | ||
16354 | wxPyEndAllowThreads(__tstate); | |
16355 | if (PyErr_Occurred()) SWIG_fail; | |
16356 | } | |
16357 | Py_INCREF(Py_None); resultobj = Py_None; | |
16358 | return resultobj; | |
16359 | fail: | |
16360 | return NULL; | |
16361 | } | |
16362 | ||
16363 | ||
16364 | static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16365 | PyObject *resultobj; | |
16366 | int result; | |
16367 | char *kwnames[] = { | |
16368 | NULL | |
16369 | }; | |
16370 | ||
16371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
16372 | { | |
16373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16374 | result = (int)wxDateTime::GetCountry(); | |
16375 | ||
16376 | wxPyEndAllowThreads(__tstate); | |
16377 | if (PyErr_Occurred()) SWIG_fail; | |
16378 | } | |
8edf1c75 | 16379 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16380 | return resultobj; |
16381 | fail: | |
16382 | return NULL; | |
16383 | } | |
16384 | ||
16385 | ||
16386 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16387 | PyObject *resultobj; | |
16388 | int arg1 = (int) wxDateTime::Country_Default ; | |
16389 | bool result; | |
8edf1c75 | 16390 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16391 | char *kwnames[] = { |
16392 | (char *) "country", NULL | |
16393 | }; | |
16394 | ||
8edf1c75 RD |
16395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; |
16396 | if (obj0) { | |
16397 | { | |
16398 | arg1 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj0); | |
16399 | if (PyErr_Occurred()) SWIG_fail; | |
16400 | } | |
16401 | } | |
d14a1e28 RD |
16402 | { |
16403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16404 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
16405 | ||
16406 | wxPyEndAllowThreads(__tstate); | |
16407 | if (PyErr_Occurred()) SWIG_fail; | |
16408 | } | |
02a34c4c | 16409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16410 | return resultobj; |
16411 | fail: | |
16412 | return NULL; | |
16413 | } | |
16414 | ||
16415 | ||
16416 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16417 | PyObject *resultobj; | |
16418 | int arg1 = (int) wxDateTime::Gregorian ; | |
16419 | int result; | |
8edf1c75 | 16420 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16421 | char *kwnames[] = { |
16422 | (char *) "cal", NULL | |
16423 | }; | |
16424 | ||
8edf1c75 RD |
16425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; |
16426 | if (obj0) { | |
16427 | { | |
16428 | arg1 = (wxDateTime::Calendar) SWIG_PyObj_AsInt(obj0); | |
16429 | if (PyErr_Occurred()) SWIG_fail; | |
16430 | } | |
16431 | } | |
d14a1e28 RD |
16432 | { |
16433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16434 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
16435 | ||
16436 | wxPyEndAllowThreads(__tstate); | |
16437 | if (PyErr_Occurred()) SWIG_fail; | |
16438 | } | |
8edf1c75 | 16439 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16440 | return resultobj; |
16441 | fail: | |
16442 | return NULL; | |
16443 | } | |
16444 | ||
16445 | ||
16446 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16447 | PyObject *resultobj; | |
16448 | int arg1 ; | |
16449 | int result; | |
8edf1c75 | 16450 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16451 | char *kwnames[] = { |
16452 | (char *) "year", NULL | |
16453 | }; | |
16454 | ||
8edf1c75 RD |
16455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; |
16456 | { | |
16457 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16458 | if (PyErr_Occurred()) SWIG_fail; | |
16459 | } | |
d14a1e28 RD |
16460 | { |
16461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16462 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
16463 | ||
16464 | wxPyEndAllowThreads(__tstate); | |
16465 | if (PyErr_Occurred()) SWIG_fail; | |
16466 | } | |
8edf1c75 | 16467 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16468 | return resultobj; |
16469 | fail: | |
16470 | return NULL; | |
16471 | } | |
16472 | ||
16473 | ||
16474 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16475 | PyObject *resultobj; | |
16476 | int arg1 = (int) wxDateTime::Gregorian ; | |
16477 | int result; | |
8edf1c75 | 16478 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16479 | char *kwnames[] = { |
16480 | (char *) "cal", NULL | |
16481 | }; | |
16482 | ||
8edf1c75 RD |
16483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; |
16484 | if (obj0) { | |
16485 | { | |
16486 | arg1 = (wxDateTime::Calendar) SWIG_PyObj_AsInt(obj0); | |
16487 | if (PyErr_Occurred()) SWIG_fail; | |
16488 | } | |
16489 | } | |
d14a1e28 RD |
16490 | { |
16491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16492 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
16493 | ||
16494 | wxPyEndAllowThreads(__tstate); | |
16495 | if (PyErr_Occurred()) SWIG_fail; | |
16496 | } | |
8edf1c75 | 16497 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16498 | return resultobj; |
16499 | fail: | |
16500 | return NULL; | |
16501 | } | |
16502 | ||
16503 | ||
16504 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16505 | PyObject *resultobj; | |
16506 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16507 | int arg2 = (int) wxDateTime::Gregorian ; | |
16508 | bool result; | |
8edf1c75 RD |
16509 | PyObject * obj0 = 0 ; |
16510 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16511 | char *kwnames[] = { |
16512 | (char *) "year",(char *) "cal", NULL | |
16513 | }; | |
16514 | ||
8edf1c75 RD |
16515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; |
16516 | if (obj0) { | |
16517 | { | |
16518 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16519 | if (PyErr_Occurred()) SWIG_fail; | |
16520 | } | |
16521 | } | |
16522 | if (obj1) { | |
16523 | { | |
16524 | arg2 = (wxDateTime::Calendar) SWIG_PyObj_AsInt(obj1); | |
16525 | if (PyErr_Occurred()) SWIG_fail; | |
16526 | } | |
16527 | } | |
d14a1e28 RD |
16528 | { |
16529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16530 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
16531 | ||
16532 | wxPyEndAllowThreads(__tstate); | |
16533 | if (PyErr_Occurred()) SWIG_fail; | |
16534 | } | |
02a34c4c | 16535 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16536 | return resultobj; |
16537 | fail: | |
16538 | return NULL; | |
16539 | } | |
16540 | ||
16541 | ||
16542 | static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16543 | PyObject *resultobj; | |
16544 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16545 | int result; | |
8edf1c75 | 16546 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16547 | char *kwnames[] = { |
16548 | (char *) "year", NULL | |
16549 | }; | |
16550 | ||
8edf1c75 RD |
16551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; |
16552 | if (obj0) { | |
16553 | { | |
16554 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16555 | if (PyErr_Occurred()) SWIG_fail; | |
16556 | } | |
16557 | } | |
d14a1e28 RD |
16558 | { |
16559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16560 | result = (int)wxDateTime::GetCentury(arg1); | |
16561 | ||
16562 | wxPyEndAllowThreads(__tstate); | |
16563 | if (PyErr_Occurred()) SWIG_fail; | |
16564 | } | |
8edf1c75 | 16565 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16566 | return resultobj; |
16567 | fail: | |
16568 | return NULL; | |
16569 | } | |
16570 | ||
16571 | ||
16572 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16573 | PyObject *resultobj; | |
16574 | int arg1 ; | |
16575 | int arg2 = (int) wxDateTime::Gregorian ; | |
44127b65 | 16576 | int result; |
8edf1c75 RD |
16577 | PyObject * obj0 = 0 ; |
16578 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16579 | char *kwnames[] = { |
16580 | (char *) "year",(char *) "cal", NULL | |
16581 | }; | |
16582 | ||
8edf1c75 RD |
16583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; |
16584 | { | |
16585 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16586 | if (PyErr_Occurred()) SWIG_fail; | |
16587 | } | |
16588 | if (obj1) { | |
16589 | { | |
16590 | arg2 = (wxDateTime::Calendar) SWIG_PyObj_AsInt(obj1); | |
16591 | if (PyErr_Occurred()) SWIG_fail; | |
16592 | } | |
16593 | } | |
d14a1e28 RD |
16594 | { |
16595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 16596 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); |
d14a1e28 RD |
16597 | |
16598 | wxPyEndAllowThreads(__tstate); | |
16599 | if (PyErr_Occurred()) SWIG_fail; | |
16600 | } | |
8edf1c75 | 16601 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16602 | return resultobj; |
16603 | fail: | |
16604 | return NULL; | |
16605 | } | |
16606 | ||
16607 | ||
16608 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16609 | PyObject *resultobj; | |
16610 | int arg1 ; | |
16611 | int arg2 = (int) wxDateTime::Inv_Year ; | |
16612 | int arg3 = (int) wxDateTime::Gregorian ; | |
44127b65 | 16613 | int result; |
8edf1c75 RD |
16614 | PyObject * obj0 = 0 ; |
16615 | PyObject * obj1 = 0 ; | |
16616 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16617 | char *kwnames[] = { |
16618 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
16619 | }; | |
16620 | ||
8edf1c75 RD |
16621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16622 | { | |
16623 | arg1 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj0); | |
16624 | if (PyErr_Occurred()) SWIG_fail; | |
16625 | } | |
16626 | if (obj1) { | |
16627 | { | |
16628 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16629 | if (PyErr_Occurred()) SWIG_fail; | |
16630 | } | |
16631 | } | |
16632 | if (obj2) { | |
16633 | { | |
16634 | arg3 = (wxDateTime::Calendar) SWIG_PyObj_AsInt(obj2); | |
16635 | if (PyErr_Occurred()) SWIG_fail; | |
16636 | } | |
16637 | } | |
d14a1e28 RD |
16638 | { |
16639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 16640 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); |
d14a1e28 RD |
16641 | |
16642 | wxPyEndAllowThreads(__tstate); | |
16643 | if (PyErr_Occurred()) SWIG_fail; | |
16644 | } | |
8edf1c75 | 16645 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16646 | return resultobj; |
16647 | fail: | |
16648 | return NULL; | |
16649 | } | |
16650 | ||
16651 | ||
16652 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16653 | PyObject *resultobj; | |
16654 | int arg1 ; | |
16655 | int arg2 = (int) wxDateTime::Name_Full ; | |
16656 | wxString result; | |
8edf1c75 RD |
16657 | PyObject * obj0 = 0 ; |
16658 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16659 | char *kwnames[] = { |
16660 | (char *) "month",(char *) "flags", NULL | |
16661 | }; | |
16662 | ||
8edf1c75 RD |
16663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; |
16664 | { | |
16665 | arg1 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj0); | |
16666 | if (PyErr_Occurred()) SWIG_fail; | |
16667 | } | |
16668 | if (obj1) { | |
16669 | { | |
16670 | arg2 = (wxDateTime::NameFlags) SWIG_PyObj_AsInt(obj1); | |
16671 | if (PyErr_Occurred()) SWIG_fail; | |
16672 | } | |
16673 | } | |
d14a1e28 RD |
16674 | { |
16675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16676 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
16677 | ||
16678 | wxPyEndAllowThreads(__tstate); | |
16679 | if (PyErr_Occurred()) SWIG_fail; | |
16680 | } | |
16681 | { | |
16682 | #if wxUSE_UNICODE | |
16683 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16684 | #else | |
16685 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16686 | #endif | |
16687 | } | |
16688 | return resultobj; | |
16689 | fail: | |
16690 | return NULL; | |
16691 | } | |
16692 | ||
16693 | ||
16694 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16695 | PyObject *resultobj; | |
16696 | int arg1 ; | |
16697 | int arg2 = (int) wxDateTime::Name_Full ; | |
16698 | wxString result; | |
8edf1c75 RD |
16699 | PyObject * obj0 = 0 ; |
16700 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16701 | char *kwnames[] = { |
16702 | (char *) "weekday",(char *) "flags", NULL | |
16703 | }; | |
16704 | ||
8edf1c75 RD |
16705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; |
16706 | { | |
16707 | arg1 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj0); | |
16708 | if (PyErr_Occurred()) SWIG_fail; | |
16709 | } | |
16710 | if (obj1) { | |
16711 | { | |
16712 | arg2 = (wxDateTime::NameFlags) SWIG_PyObj_AsInt(obj1); | |
16713 | if (PyErr_Occurred()) SWIG_fail; | |
16714 | } | |
16715 | } | |
d14a1e28 RD |
16716 | { |
16717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16718 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
16719 | ||
16720 | wxPyEndAllowThreads(__tstate); | |
16721 | if (PyErr_Occurred()) SWIG_fail; | |
16722 | } | |
16723 | { | |
16724 | #if wxUSE_UNICODE | |
16725 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16726 | #else | |
16727 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16728 | #endif | |
16729 | } | |
16730 | return resultobj; | |
16731 | fail: | |
16732 | return NULL; | |
16733 | } | |
16734 | ||
16735 | ||
16736 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16737 | PyObject *resultobj; | |
16738 | wxString *arg1 = (wxString *) 0 ; | |
16739 | wxString *arg2 = (wxString *) 0 ; | |
dae0faa6 RD |
16740 | bool temp1 = False ; |
16741 | bool temp2 = False ; | |
d14a1e28 RD |
16742 | PyObject * obj0 = 0 ; |
16743 | PyObject * obj1 = 0 ; | |
16744 | char *kwnames[] = { | |
16745 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
16746 | }; | |
16747 | ||
16748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
dae0faa6 RD |
16749 | { |
16750 | arg1 = wxString_in_helper(obj0); | |
16751 | if (arg1 == NULL) SWIG_fail; | |
16752 | temp1 = True; | |
16753 | } | |
16754 | { | |
16755 | arg2 = wxString_in_helper(obj1); | |
16756 | if (arg2 == NULL) SWIG_fail; | |
16757 | temp2 = True; | |
16758 | } | |
d14a1e28 RD |
16759 | { |
16760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16761 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
16762 | ||
16763 | wxPyEndAllowThreads(__tstate); | |
16764 | if (PyErr_Occurred()) SWIG_fail; | |
16765 | } | |
16766 | Py_INCREF(Py_None); resultobj = Py_None; | |
dae0faa6 RD |
16767 | { |
16768 | if (temp1) | |
16769 | delete arg1; | |
16770 | } | |
16771 | { | |
16772 | if (temp2) | |
16773 | delete arg2; | |
16774 | } | |
d14a1e28 RD |
16775 | return resultobj; |
16776 | fail: | |
dae0faa6 RD |
16777 | { |
16778 | if (temp1) | |
16779 | delete arg1; | |
16780 | } | |
16781 | { | |
16782 | if (temp2) | |
16783 | delete arg2; | |
16784 | } | |
d14a1e28 RD |
16785 | return NULL; |
16786 | } | |
16787 | ||
16788 | ||
16789 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16790 | PyObject *resultobj; | |
16791 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16792 | int arg2 = (int) wxDateTime::Country_Default ; | |
16793 | bool result; | |
8edf1c75 RD |
16794 | PyObject * obj0 = 0 ; |
16795 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16796 | char *kwnames[] = { |
16797 | (char *) "year",(char *) "country", NULL | |
16798 | }; | |
16799 | ||
8edf1c75 RD |
16800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; |
16801 | if (obj0) { | |
16802 | { | |
16803 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16804 | if (PyErr_Occurred()) SWIG_fail; | |
16805 | } | |
16806 | } | |
16807 | if (obj1) { | |
16808 | { | |
16809 | arg2 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj1); | |
16810 | if (PyErr_Occurred()) SWIG_fail; | |
16811 | } | |
16812 | } | |
d14a1e28 RD |
16813 | { |
16814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16815 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
16816 | ||
16817 | wxPyEndAllowThreads(__tstate); | |
16818 | if (PyErr_Occurred()) SWIG_fail; | |
16819 | } | |
02a34c4c | 16820 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16821 | return resultobj; |
16822 | fail: | |
16823 | return NULL; | |
16824 | } | |
16825 | ||
16826 | ||
16827 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16828 | PyObject *resultobj; | |
16829 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16830 | int arg2 = (int) wxDateTime::Country_Default ; | |
16831 | wxDateTime result; | |
8edf1c75 RD |
16832 | PyObject * obj0 = 0 ; |
16833 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16834 | char *kwnames[] = { |
16835 | (char *) "year",(char *) "country", NULL | |
16836 | }; | |
16837 | ||
8edf1c75 RD |
16838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; |
16839 | if (obj0) { | |
16840 | { | |
16841 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16842 | if (PyErr_Occurred()) SWIG_fail; | |
16843 | } | |
16844 | } | |
16845 | if (obj1) { | |
16846 | { | |
16847 | arg2 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj1); | |
16848 | if (PyErr_Occurred()) SWIG_fail; | |
16849 | } | |
16850 | } | |
d14a1e28 RD |
16851 | { |
16852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16853 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
16854 | ||
16855 | wxPyEndAllowThreads(__tstate); | |
16856 | if (PyErr_Occurred()) SWIG_fail; | |
16857 | } | |
16858 | { | |
16859 | wxDateTime * resultptr; | |
16860 | resultptr = new wxDateTime((wxDateTime &) result); | |
16861 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16862 | } | |
16863 | return resultobj; | |
16864 | fail: | |
16865 | return NULL; | |
16866 | } | |
16867 | ||
16868 | ||
16869 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16870 | PyObject *resultobj; | |
16871 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16872 | int arg2 = (int) wxDateTime::Country_Default ; | |
16873 | wxDateTime result; | |
8edf1c75 RD |
16874 | PyObject * obj0 = 0 ; |
16875 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16876 | char *kwnames[] = { |
16877 | (char *) "year",(char *) "country", NULL | |
16878 | }; | |
16879 | ||
8edf1c75 RD |
16880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; |
16881 | if (obj0) { | |
16882 | { | |
16883 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16884 | if (PyErr_Occurred()) SWIG_fail; | |
16885 | } | |
16886 | } | |
16887 | if (obj1) { | |
16888 | { | |
16889 | arg2 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj1); | |
16890 | if (PyErr_Occurred()) SWIG_fail; | |
16891 | } | |
16892 | } | |
d14a1e28 RD |
16893 | { |
16894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16895 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
16896 | ||
16897 | wxPyEndAllowThreads(__tstate); | |
16898 | if (PyErr_Occurred()) SWIG_fail; | |
16899 | } | |
16900 | { | |
16901 | wxDateTime * resultptr; | |
16902 | resultptr = new wxDateTime((wxDateTime &) result); | |
16903 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16904 | } | |
16905 | return resultobj; | |
16906 | fail: | |
16907 | return NULL; | |
16908 | } | |
16909 | ||
16910 | ||
16911 | static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16912 | PyObject *resultobj; | |
16913 | wxDateTime result; | |
16914 | char *kwnames[] = { | |
16915 | NULL | |
16916 | }; | |
16917 | ||
16918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
16919 | { | |
16920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16921 | result = wxDateTime::Now(); | |
16922 | ||
16923 | wxPyEndAllowThreads(__tstate); | |
16924 | if (PyErr_Occurred()) SWIG_fail; | |
16925 | } | |
16926 | { | |
16927 | wxDateTime * resultptr; | |
16928 | resultptr = new wxDateTime((wxDateTime &) result); | |
16929 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16930 | } | |
16931 | return resultobj; | |
16932 | fail: | |
16933 | return NULL; | |
16934 | } | |
16935 | ||
16936 | ||
16937 | static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16938 | PyObject *resultobj; | |
16939 | wxDateTime result; | |
16940 | char *kwnames[] = { | |
16941 | NULL | |
16942 | }; | |
16943 | ||
16944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
16945 | { | |
16946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16947 | result = wxDateTime::UNow(); | |
16948 | ||
16949 | wxPyEndAllowThreads(__tstate); | |
16950 | if (PyErr_Occurred()) SWIG_fail; | |
16951 | } | |
16952 | { | |
16953 | wxDateTime * resultptr; | |
16954 | resultptr = new wxDateTime((wxDateTime &) result); | |
16955 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16956 | } | |
16957 | return resultobj; | |
16958 | fail: | |
16959 | return NULL; | |
16960 | } | |
16961 | ||
16962 | ||
16963 | static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16964 | PyObject *resultobj; | |
16965 | wxDateTime result; | |
16966 | char *kwnames[] = { | |
16967 | NULL | |
16968 | }; | |
16969 | ||
16970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
16971 | { | |
16972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16973 | result = wxDateTime::Today(); | |
16974 | ||
16975 | wxPyEndAllowThreads(__tstate); | |
16976 | if (PyErr_Occurred()) SWIG_fail; | |
16977 | } | |
16978 | { | |
16979 | wxDateTime * resultptr; | |
16980 | resultptr = new wxDateTime((wxDateTime &) result); | |
16981 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16982 | } | |
16983 | return resultobj; | |
16984 | fail: | |
16985 | return NULL; | |
16986 | } | |
16987 | ||
16988 | ||
16989 | static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16990 | PyObject *resultobj; | |
16991 | wxDateTime *result; | |
16992 | char *kwnames[] = { | |
16993 | NULL | |
16994 | }; | |
16995 | ||
16996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
16997 | { | |
16998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16999 | result = (wxDateTime *)new wxDateTime(); | |
17000 | ||
17001 | wxPyEndAllowThreads(__tstate); | |
17002 | if (PyErr_Occurred()) SWIG_fail; | |
17003 | } | |
17004 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
17005 | return resultobj; | |
17006 | fail: | |
17007 | return NULL; | |
17008 | } | |
17009 | ||
17010 | ||
17011 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17012 | PyObject *resultobj; | |
17013 | time_t arg1 ; | |
17014 | wxDateTime *result; | |
17015 | PyObject * obj0 = 0 ; | |
17016 | char *kwnames[] = { | |
17017 | (char *) "timet", NULL | |
17018 | }; | |
17019 | ||
17020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
2dbef272 | 17021 | { |
8edf1c75 | 17022 | arg1 = (time_t) SWIG_PyObj_AsUnsignedInt(obj0); |
2dbef272 RD |
17023 | if (PyErr_Occurred()) SWIG_fail; |
17024 | } | |
d14a1e28 RD |
17025 | { |
17026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17027 | result = (wxDateTime *)new wxDateTime(arg1); | |
17028 | ||
17029 | wxPyEndAllowThreads(__tstate); | |
17030 | if (PyErr_Occurred()) SWIG_fail; | |
17031 | } | |
17032 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
17033 | return resultobj; | |
17034 | fail: | |
17035 | return NULL; | |
17036 | } | |
17037 | ||
17038 | ||
17039 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17040 | PyObject *resultobj; | |
17041 | double arg1 ; | |
17042 | wxDateTime *result; | |
8edf1c75 | 17043 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17044 | char *kwnames[] = { |
17045 | (char *) "jdn", NULL | |
17046 | }; | |
17047 | ||
8edf1c75 RD |
17048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; |
17049 | { | |
17050 | arg1 = (double) SWIG_PyObj_AsDouble(obj0); | |
17051 | if (PyErr_Occurred()) SWIG_fail; | |
17052 | } | |
d14a1e28 RD |
17053 | { |
17054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17055 | result = (wxDateTime *)new wxDateTime(arg1); | |
17056 | ||
17057 | wxPyEndAllowThreads(__tstate); | |
17058 | if (PyErr_Occurred()) SWIG_fail; | |
17059 | } | |
17060 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
17061 | return resultobj; | |
17062 | fail: | |
17063 | return NULL; | |
17064 | } | |
17065 | ||
17066 | ||
17067 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17068 | PyObject *resultobj; | |
44127b65 RD |
17069 | int arg1 ; |
17070 | int arg2 = (int) 0 ; | |
17071 | int arg3 = (int) 0 ; | |
17072 | int arg4 = (int) 0 ; | |
d14a1e28 | 17073 | wxDateTime *result; |
8edf1c75 RD |
17074 | PyObject * obj0 = 0 ; |
17075 | PyObject * obj1 = 0 ; | |
17076 | PyObject * obj2 = 0 ; | |
17077 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
17078 | char *kwnames[] = { |
17079 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17080 | }; | |
17081 | ||
8edf1c75 RD |
17082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
17083 | { | |
17084 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
17085 | if (PyErr_Occurred()) SWIG_fail; | |
17086 | } | |
17087 | if (obj1) { | |
17088 | { | |
17089 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17090 | if (PyErr_Occurred()) SWIG_fail; | |
17091 | } | |
17092 | } | |
17093 | if (obj2) { | |
17094 | { | |
17095 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17096 | if (PyErr_Occurred()) SWIG_fail; | |
17097 | } | |
17098 | } | |
17099 | if (obj3) { | |
17100 | { | |
17101 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17102 | if (PyErr_Occurred()) SWIG_fail; | |
17103 | } | |
17104 | } | |
d14a1e28 RD |
17105 | { |
17106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17107 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
17108 | ||
17109 | wxPyEndAllowThreads(__tstate); | |
17110 | if (PyErr_Occurred()) SWIG_fail; | |
17111 | } | |
17112 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
17113 | return resultobj; | |
17114 | fail: | |
17115 | return NULL; | |
17116 | } | |
17117 | ||
17118 | ||
17119 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17120 | PyObject *resultobj; | |
44127b65 | 17121 | int arg1 ; |
d14a1e28 RD |
17122 | int arg2 = (int) wxDateTime::Inv_Month ; |
17123 | int arg3 = (int) wxDateTime::Inv_Year ; | |
44127b65 RD |
17124 | int arg4 = (int) 0 ; |
17125 | int arg5 = (int) 0 ; | |
17126 | int arg6 = (int) 0 ; | |
17127 | int arg7 = (int) 0 ; | |
d14a1e28 | 17128 | wxDateTime *result; |
8edf1c75 RD |
17129 | PyObject * obj0 = 0 ; |
17130 | PyObject * obj1 = 0 ; | |
17131 | PyObject * obj2 = 0 ; | |
17132 | PyObject * obj3 = 0 ; | |
17133 | PyObject * obj4 = 0 ; | |
17134 | PyObject * obj5 = 0 ; | |
17135 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
17136 | char *kwnames[] = { |
17137 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17138 | }; | |
17139 | ||
8edf1c75 RD |
17140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
17141 | { | |
17142 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
17143 | if (PyErr_Occurred()) SWIG_fail; | |
17144 | } | |
17145 | if (obj1) { | |
17146 | { | |
17147 | arg2 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj1); | |
17148 | if (PyErr_Occurred()) SWIG_fail; | |
17149 | } | |
17150 | } | |
17151 | if (obj2) { | |
17152 | { | |
17153 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17154 | if (PyErr_Occurred()) SWIG_fail; | |
17155 | } | |
17156 | } | |
17157 | if (obj3) { | |
17158 | { | |
17159 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17160 | if (PyErr_Occurred()) SWIG_fail; | |
17161 | } | |
17162 | } | |
17163 | if (obj4) { | |
17164 | { | |
17165 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
17166 | if (PyErr_Occurred()) SWIG_fail; | |
17167 | } | |
17168 | } | |
17169 | if (obj5) { | |
17170 | { | |
17171 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
17172 | if (PyErr_Occurred()) SWIG_fail; | |
17173 | } | |
17174 | } | |
17175 | if (obj6) { | |
17176 | { | |
17177 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
17178 | if (PyErr_Occurred()) SWIG_fail; | |
17179 | } | |
17180 | } | |
d14a1e28 RD |
17181 | { |
17182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17183 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
17184 | ||
17185 | wxPyEndAllowThreads(__tstate); | |
17186 | if (PyErr_Occurred()) SWIG_fail; | |
17187 | } | |
17188 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
17189 | return resultobj; | |
17190 | fail: | |
17191 | return NULL; | |
17192 | } | |
17193 | ||
17194 | ||
17195 | static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17196 | PyObject *resultobj; | |
17197 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17198 | PyObject * obj0 = 0 ; | |
17199 | char *kwnames[] = { | |
17200 | (char *) "self", NULL | |
17201 | }; | |
17202 | ||
17203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
17204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17205 | { | |
17206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17207 | delete arg1; | |
17208 | ||
17209 | wxPyEndAllowThreads(__tstate); | |
17210 | if (PyErr_Occurred()) SWIG_fail; | |
17211 | } | |
17212 | Py_INCREF(Py_None); resultobj = Py_None; | |
17213 | return resultobj; | |
17214 | fail: | |
17215 | return NULL; | |
17216 | } | |
17217 | ||
17218 | ||
17219 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17220 | PyObject *resultobj; | |
17221 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17222 | wxDateTime *result; | |
17223 | PyObject * obj0 = 0 ; | |
17224 | char *kwnames[] = { | |
17225 | (char *) "self", NULL | |
17226 | }; | |
17227 | ||
17228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
17229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17230 | { | |
17231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17232 | { | |
17233 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
17234 | result = (wxDateTime *) &_result_ref; | |
17235 | } | |
17236 | ||
17237 | wxPyEndAllowThreads(__tstate); | |
17238 | if (PyErr_Occurred()) SWIG_fail; | |
17239 | } | |
17240 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17241 | return resultobj; | |
17242 | fail: | |
17243 | return NULL; | |
17244 | } | |
17245 | ||
17246 | ||
17247 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17248 | PyObject *resultobj; | |
17249 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17250 | time_t arg2 ; | |
17251 | wxDateTime *result; | |
17252 | PyObject * obj0 = 0 ; | |
17253 | PyObject * obj1 = 0 ; | |
17254 | char *kwnames[] = { | |
17255 | (char *) "self",(char *) "timet", NULL | |
17256 | }; | |
17257 | ||
17258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
17259 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2dbef272 | 17260 | { |
8edf1c75 | 17261 | arg2 = (time_t) SWIG_PyObj_AsUnsignedInt(obj1); |
2dbef272 RD |
17262 | if (PyErr_Occurred()) SWIG_fail; |
17263 | } | |
d14a1e28 RD |
17264 | { |
17265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17266 | { | |
17267 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17268 | result = (wxDateTime *) &_result_ref; | |
17269 | } | |
17270 | ||
17271 | wxPyEndAllowThreads(__tstate); | |
17272 | if (PyErr_Occurred()) SWIG_fail; | |
17273 | } | |
17274 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17275 | return resultobj; | |
17276 | fail: | |
17277 | return NULL; | |
17278 | } | |
17279 | ||
17280 | ||
17281 | static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17282 | PyObject *resultobj; | |
17283 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17284 | double arg2 ; | |
17285 | wxDateTime *result; | |
17286 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17287 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17288 | char *kwnames[] = { |
17289 | (char *) "self",(char *) "jdn", NULL | |
17290 | }; | |
17291 | ||
8edf1c75 | 17292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17294 | { |
17295 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
17296 | if (PyErr_Occurred()) SWIG_fail; | |
17297 | } | |
d14a1e28 RD |
17298 | { |
17299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17300 | { | |
17301 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17302 | result = (wxDateTime *) &_result_ref; | |
17303 | } | |
17304 | ||
17305 | wxPyEndAllowThreads(__tstate); | |
17306 | if (PyErr_Occurred()) SWIG_fail; | |
17307 | } | |
17308 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17309 | return resultobj; | |
17310 | fail: | |
17311 | return NULL; | |
17312 | } | |
17313 | ||
17314 | ||
17315 | static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17316 | PyObject *resultobj; | |
17317 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 RD |
17318 | int arg2 ; |
17319 | int arg3 = (int) 0 ; | |
17320 | int arg4 = (int) 0 ; | |
17321 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
17322 | wxDateTime *result; |
17323 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17324 | PyObject * obj1 = 0 ; |
17325 | PyObject * obj2 = 0 ; | |
17326 | PyObject * obj3 = 0 ; | |
17327 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
17328 | char *kwnames[] = { |
17329 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17330 | }; | |
17331 | ||
8edf1c75 | 17332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 17333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17334 | { |
17335 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17336 | if (PyErr_Occurred()) SWIG_fail; | |
17337 | } | |
17338 | if (obj2) { | |
17339 | { | |
17340 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17341 | if (PyErr_Occurred()) SWIG_fail; | |
17342 | } | |
17343 | } | |
17344 | if (obj3) { | |
17345 | { | |
17346 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17347 | if (PyErr_Occurred()) SWIG_fail; | |
17348 | } | |
17349 | } | |
17350 | if (obj4) { | |
17351 | { | |
17352 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
17353 | if (PyErr_Occurred()) SWIG_fail; | |
17354 | } | |
17355 | } | |
d14a1e28 RD |
17356 | { |
17357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17358 | { | |
17359 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
17360 | result = (wxDateTime *) &_result_ref; | |
17361 | } | |
17362 | ||
17363 | wxPyEndAllowThreads(__tstate); | |
17364 | if (PyErr_Occurred()) SWIG_fail; | |
17365 | } | |
17366 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17367 | return resultobj; | |
17368 | fail: | |
17369 | return NULL; | |
17370 | } | |
17371 | ||
17372 | ||
17373 | static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17374 | PyObject *resultobj; | |
17375 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 17376 | int arg2 ; |
d14a1e28 RD |
17377 | int arg3 = (int) wxDateTime::Inv_Month ; |
17378 | int arg4 = (int) wxDateTime::Inv_Year ; | |
44127b65 RD |
17379 | int arg5 = (int) 0 ; |
17380 | int arg6 = (int) 0 ; | |
17381 | int arg7 = (int) 0 ; | |
17382 | int arg8 = (int) 0 ; | |
d14a1e28 RD |
17383 | wxDateTime *result; |
17384 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17385 | PyObject * obj1 = 0 ; |
17386 | PyObject * obj2 = 0 ; | |
17387 | PyObject * obj3 = 0 ; | |
17388 | PyObject * obj4 = 0 ; | |
17389 | PyObject * obj5 = 0 ; | |
17390 | PyObject * obj6 = 0 ; | |
17391 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
17392 | char *kwnames[] = { |
17393 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17394 | }; | |
17395 | ||
8edf1c75 | 17396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 17397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17398 | { |
17399 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17400 | if (PyErr_Occurred()) SWIG_fail; | |
17401 | } | |
17402 | if (obj2) { | |
17403 | { | |
17404 | arg3 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj2); | |
17405 | if (PyErr_Occurred()) SWIG_fail; | |
17406 | } | |
17407 | } | |
17408 | if (obj3) { | |
17409 | { | |
17410 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
17411 | if (PyErr_Occurred()) SWIG_fail; | |
17412 | } | |
17413 | } | |
17414 | if (obj4) { | |
17415 | { | |
17416 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
17417 | if (PyErr_Occurred()) SWIG_fail; | |
17418 | } | |
17419 | } | |
17420 | if (obj5) { | |
17421 | { | |
17422 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
17423 | if (PyErr_Occurred()) SWIG_fail; | |
17424 | } | |
17425 | } | |
17426 | if (obj6) { | |
17427 | { | |
17428 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
17429 | if (PyErr_Occurred()) SWIG_fail; | |
17430 | } | |
17431 | } | |
17432 | if (obj7) { | |
17433 | { | |
17434 | arg8 = (int) SWIG_PyObj_AsInt(obj7); | |
17435 | if (PyErr_Occurred()) SWIG_fail; | |
17436 | } | |
17437 | } | |
d14a1e28 RD |
17438 | { |
17439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17440 | { | |
17441 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
17442 | result = (wxDateTime *) &_result_ref; | |
17443 | } | |
17444 | ||
17445 | wxPyEndAllowThreads(__tstate); | |
17446 | if (PyErr_Occurred()) SWIG_fail; | |
17447 | } | |
17448 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17449 | return resultobj; | |
17450 | fail: | |
17451 | return NULL; | |
17452 | } | |
17453 | ||
17454 | ||
17455 | static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17456 | PyObject *resultobj; | |
17457 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17458 | wxDateTime *result; | |
17459 | PyObject * obj0 = 0 ; | |
17460 | char *kwnames[] = { | |
17461 | (char *) "self", NULL | |
17462 | }; | |
17463 | ||
17464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
17465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17466 | { | |
17467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17468 | { | |
17469 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
17470 | result = (wxDateTime *) &_result_ref; | |
17471 | } | |
17472 | ||
17473 | wxPyEndAllowThreads(__tstate); | |
17474 | if (PyErr_Occurred()) SWIG_fail; | |
17475 | } | |
17476 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17477 | return resultobj; | |
17478 | fail: | |
17479 | return NULL; | |
17480 | } | |
17481 | ||
17482 | ||
17483 | static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17484 | PyObject *resultobj; | |
17485 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17486 | int arg2 ; | |
17487 | wxDateTime *result; | |
17488 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17489 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17490 | char *kwnames[] = { |
17491 | (char *) "self",(char *) "year", NULL | |
17492 | }; | |
17493 | ||
8edf1c75 | 17494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17496 | { |
17497 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17498 | if (PyErr_Occurred()) SWIG_fail; | |
17499 | } | |
d14a1e28 RD |
17500 | { |
17501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17502 | { | |
17503 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
17504 | result = (wxDateTime *) &_result_ref; | |
17505 | } | |
17506 | ||
17507 | wxPyEndAllowThreads(__tstate); | |
17508 | if (PyErr_Occurred()) SWIG_fail; | |
17509 | } | |
17510 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17511 | return resultobj; | |
17512 | fail: | |
17513 | return NULL; | |
17514 | } | |
17515 | ||
17516 | ||
17517 | static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17518 | PyObject *resultobj; | |
17519 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17520 | int arg2 ; | |
17521 | wxDateTime *result; | |
17522 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17523 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17524 | char *kwnames[] = { |
17525 | (char *) "self",(char *) "month", NULL | |
17526 | }; | |
17527 | ||
8edf1c75 | 17528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17529 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17530 | { |
17531 | arg2 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj1); | |
17532 | if (PyErr_Occurred()) SWIG_fail; | |
17533 | } | |
d14a1e28 RD |
17534 | { |
17535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17536 | { | |
17537 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
17538 | result = (wxDateTime *) &_result_ref; | |
17539 | } | |
17540 | ||
17541 | wxPyEndAllowThreads(__tstate); | |
17542 | if (PyErr_Occurred()) SWIG_fail; | |
17543 | } | |
17544 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17545 | return resultobj; | |
17546 | fail: | |
17547 | return NULL; | |
17548 | } | |
17549 | ||
17550 | ||
17551 | static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17552 | PyObject *resultobj; | |
17553 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 17554 | int arg2 ; |
d14a1e28 RD |
17555 | wxDateTime *result; |
17556 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17557 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17558 | char *kwnames[] = { |
17559 | (char *) "self",(char *) "day", NULL | |
17560 | }; | |
17561 | ||
8edf1c75 | 17562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17564 | { |
17565 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17566 | if (PyErr_Occurred()) SWIG_fail; | |
17567 | } | |
d14a1e28 RD |
17568 | { |
17569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17570 | { | |
17571 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
17572 | result = (wxDateTime *) &_result_ref; | |
17573 | } | |
17574 | ||
17575 | wxPyEndAllowThreads(__tstate); | |
17576 | if (PyErr_Occurred()) SWIG_fail; | |
17577 | } | |
17578 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17579 | return resultobj; | |
17580 | fail: | |
17581 | return NULL; | |
17582 | } | |
17583 | ||
17584 | ||
17585 | static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17586 | PyObject *resultobj; | |
17587 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 17588 | int arg2 ; |
d14a1e28 RD |
17589 | wxDateTime *result; |
17590 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17591 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17592 | char *kwnames[] = { |
17593 | (char *) "self",(char *) "hour", NULL | |
17594 | }; | |
17595 | ||
8edf1c75 | 17596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17598 | { |
17599 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17600 | if (PyErr_Occurred()) SWIG_fail; | |
17601 | } | |
d14a1e28 RD |
17602 | { |
17603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17604 | { | |
17605 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
17606 | result = (wxDateTime *) &_result_ref; | |
17607 | } | |
17608 | ||
17609 | wxPyEndAllowThreads(__tstate); | |
17610 | if (PyErr_Occurred()) SWIG_fail; | |
17611 | } | |
17612 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17613 | return resultobj; | |
17614 | fail: | |
17615 | return NULL; | |
17616 | } | |
17617 | ||
17618 | ||
17619 | static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17620 | PyObject *resultobj; | |
17621 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 17622 | int arg2 ; |
d14a1e28 RD |
17623 | wxDateTime *result; |
17624 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17625 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17626 | char *kwnames[] = { |
17627 | (char *) "self",(char *) "minute", NULL | |
17628 | }; | |
17629 | ||
8edf1c75 | 17630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17631 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17632 | { |
17633 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17634 | if (PyErr_Occurred()) SWIG_fail; | |
17635 | } | |
d14a1e28 RD |
17636 | { |
17637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17638 | { | |
17639 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
17640 | result = (wxDateTime *) &_result_ref; | |
17641 | } | |
17642 | ||
17643 | wxPyEndAllowThreads(__tstate); | |
17644 | if (PyErr_Occurred()) SWIG_fail; | |
17645 | } | |
17646 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17647 | return resultobj; | |
17648 | fail: | |
17649 | return NULL; | |
17650 | } | |
17651 | ||
17652 | ||
17653 | static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17654 | PyObject *resultobj; | |
17655 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 17656 | int arg2 ; |
d14a1e28 RD |
17657 | wxDateTime *result; |
17658 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17659 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17660 | char *kwnames[] = { |
17661 | (char *) "self",(char *) "second", NULL | |
17662 | }; | |
17663 | ||
8edf1c75 | 17664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17666 | { |
17667 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17668 | if (PyErr_Occurred()) SWIG_fail; | |
17669 | } | |
d14a1e28 RD |
17670 | { |
17671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17672 | { | |
17673 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
17674 | result = (wxDateTime *) &_result_ref; | |
17675 | } | |
17676 | ||
17677 | wxPyEndAllowThreads(__tstate); | |
17678 | if (PyErr_Occurred()) SWIG_fail; | |
17679 | } | |
17680 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17681 | return resultobj; | |
17682 | fail: | |
17683 | return NULL; | |
17684 | } | |
17685 | ||
17686 | ||
17687 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17688 | PyObject *resultobj; | |
17689 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 17690 | int arg2 ; |
d14a1e28 RD |
17691 | wxDateTime *result; |
17692 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17693 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17694 | char *kwnames[] = { |
17695 | (char *) "self",(char *) "millisecond", NULL | |
17696 | }; | |
17697 | ||
8edf1c75 | 17698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17700 | { |
17701 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17702 | if (PyErr_Occurred()) SWIG_fail; | |
17703 | } | |
d14a1e28 RD |
17704 | { |
17705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17706 | { | |
17707 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
17708 | result = (wxDateTime *) &_result_ref; | |
17709 | } | |
17710 | ||
17711 | wxPyEndAllowThreads(__tstate); | |
17712 | if (PyErr_Occurred()) SWIG_fail; | |
17713 | } | |
17714 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17715 | return resultobj; | |
17716 | fail: | |
17717 | return NULL; | |
17718 | } | |
17719 | ||
17720 | ||
17721 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17722 | PyObject *resultobj; | |
17723 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17724 | int arg2 ; | |
17725 | int arg3 = (int) wxDateTime::Monday_First ; | |
17726 | wxDateTime *result; | |
17727 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17728 | PyObject * obj1 = 0 ; |
17729 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17730 | char *kwnames[] = { |
17731 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
17732 | }; | |
17733 | ||
8edf1c75 | 17734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 17735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17736 | { |
17737 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
17738 | if (PyErr_Occurred()) SWIG_fail; | |
17739 | } | |
17740 | if (obj2) { | |
17741 | { | |
17742 | arg3 = (wxDateTime::WeekFlags) SWIG_PyObj_AsInt(obj2); | |
17743 | if (PyErr_Occurred()) SWIG_fail; | |
17744 | } | |
17745 | } | |
d14a1e28 RD |
17746 | { |
17747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17748 | { | |
17749 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
17750 | result = (wxDateTime *) &_result_ref; | |
17751 | } | |
17752 | ||
17753 | wxPyEndAllowThreads(__tstate); | |
17754 | if (PyErr_Occurred()) SWIG_fail; | |
17755 | } | |
17756 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17757 | return resultobj; | |
17758 | fail: | |
17759 | return NULL; | |
17760 | } | |
17761 | ||
17762 | ||
17763 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17764 | PyObject *resultobj; | |
17765 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17766 | int arg2 ; | |
17767 | int arg3 = (int) wxDateTime::Monday_First ; | |
17768 | wxDateTime result; | |
17769 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17770 | PyObject * obj1 = 0 ; |
17771 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17772 | char *kwnames[] = { |
17773 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
17774 | }; | |
17775 | ||
8edf1c75 | 17776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 17777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17778 | { |
17779 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
17780 | if (PyErr_Occurred()) SWIG_fail; | |
17781 | } | |
17782 | if (obj2) { | |
17783 | { | |
17784 | arg3 = (wxDateTime::WeekFlags) SWIG_PyObj_AsInt(obj2); | |
17785 | if (PyErr_Occurred()) SWIG_fail; | |
17786 | } | |
17787 | } | |
d14a1e28 RD |
17788 | { |
17789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17790 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
17791 | ||
17792 | wxPyEndAllowThreads(__tstate); | |
17793 | if (PyErr_Occurred()) SWIG_fail; | |
17794 | } | |
17795 | { | |
17796 | wxDateTime * resultptr; | |
17797 | resultptr = new wxDateTime((wxDateTime &) result); | |
17798 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
17799 | } | |
17800 | return resultobj; | |
17801 | fail: | |
17802 | return NULL; | |
17803 | } | |
17804 | ||
17805 | ||
17806 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17807 | PyObject *resultobj; | |
17808 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17809 | int arg2 ; | |
17810 | wxDateTime *result; | |
17811 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17812 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17813 | char *kwnames[] = { |
17814 | (char *) "self",(char *) "weekday", NULL | |
17815 | }; | |
17816 | ||
8edf1c75 | 17817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17819 | { |
17820 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
17821 | if (PyErr_Occurred()) SWIG_fail; | |
17822 | } | |
d14a1e28 RD |
17823 | { |
17824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17825 | { | |
17826 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
17827 | result = (wxDateTime *) &_result_ref; | |
17828 | } | |
17829 | ||
17830 | wxPyEndAllowThreads(__tstate); | |
17831 | if (PyErr_Occurred()) SWIG_fail; | |
17832 | } | |
17833 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17834 | return resultobj; | |
17835 | fail: | |
17836 | return NULL; | |
17837 | } | |
17838 | ||
17839 | ||
17840 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17841 | PyObject *resultobj; | |
17842 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17843 | int arg2 ; | |
17844 | wxDateTime result; | |
17845 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17846 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17847 | char *kwnames[] = { |
17848 | (char *) "self",(char *) "weekday", NULL | |
17849 | }; | |
17850 | ||
8edf1c75 | 17851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17853 | { |
17854 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
17855 | if (PyErr_Occurred()) SWIG_fail; | |
17856 | } | |
d14a1e28 RD |
17857 | { |
17858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17859 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
17860 | ||
17861 | wxPyEndAllowThreads(__tstate); | |
17862 | if (PyErr_Occurred()) SWIG_fail; | |
17863 | } | |
17864 | { | |
17865 | wxDateTime * resultptr; | |
17866 | resultptr = new wxDateTime((wxDateTime &) result); | |
17867 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
17868 | } | |
17869 | return resultobj; | |
17870 | fail: | |
17871 | return NULL; | |
17872 | } | |
17873 | ||
17874 | ||
17875 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17876 | PyObject *resultobj; | |
17877 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17878 | int arg2 ; | |
17879 | wxDateTime *result; | |
17880 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17881 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17882 | char *kwnames[] = { |
17883 | (char *) "self",(char *) "weekday", NULL | |
17884 | }; | |
17885 | ||
8edf1c75 | 17886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17888 | { |
17889 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
17890 | if (PyErr_Occurred()) SWIG_fail; | |
17891 | } | |
d14a1e28 RD |
17892 | { |
17893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17894 | { | |
17895 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
17896 | result = (wxDateTime *) &_result_ref; | |
17897 | } | |
17898 | ||
17899 | wxPyEndAllowThreads(__tstate); | |
17900 | if (PyErr_Occurred()) SWIG_fail; | |
17901 | } | |
17902 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17903 | return resultobj; | |
17904 | fail: | |
17905 | return NULL; | |
17906 | } | |
17907 | ||
17908 | ||
17909 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17910 | PyObject *resultobj; | |
17911 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17912 | int arg2 ; | |
17913 | wxDateTime result; | |
17914 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17915 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17916 | char *kwnames[] = { |
17917 | (char *) "self",(char *) "weekday", NULL | |
17918 | }; | |
17919 | ||
8edf1c75 | 17920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17922 | { |
17923 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
17924 | if (PyErr_Occurred()) SWIG_fail; | |
17925 | } | |
d14a1e28 RD |
17926 | { |
17927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17928 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
17929 | ||
17930 | wxPyEndAllowThreads(__tstate); | |
17931 | if (PyErr_Occurred()) SWIG_fail; | |
17932 | } | |
17933 | { | |
17934 | wxDateTime * resultptr; | |
17935 | resultptr = new wxDateTime((wxDateTime &) result); | |
17936 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
17937 | } | |
17938 | return resultobj; | |
17939 | fail: | |
17940 | return NULL; | |
17941 | } | |
17942 | ||
17943 | ||
17944 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17945 | PyObject *resultobj; | |
17946 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17947 | int arg2 ; | |
17948 | int arg3 = (int) 1 ; | |
17949 | int arg4 = (int) wxDateTime::Inv_Month ; | |
17950 | int arg5 = (int) wxDateTime::Inv_Year ; | |
17951 | bool result; | |
17952 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17953 | PyObject * obj1 = 0 ; |
17954 | PyObject * obj2 = 0 ; | |
17955 | PyObject * obj3 = 0 ; | |
17956 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
17957 | char *kwnames[] = { |
17958 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
17959 | }; | |
17960 | ||
8edf1c75 | 17961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 17962 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17963 | { |
17964 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
17965 | if (PyErr_Occurred()) SWIG_fail; | |
17966 | } | |
17967 | if (obj2) { | |
17968 | { | |
17969 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
17970 | if (PyErr_Occurred()) SWIG_fail; | |
17971 | } | |
17972 | } | |
17973 | if (obj3) { | |
17974 | { | |
17975 | arg4 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj3); | |
17976 | if (PyErr_Occurred()) SWIG_fail; | |
17977 | } | |
17978 | } | |
17979 | if (obj4) { | |
17980 | { | |
17981 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
17982 | if (PyErr_Occurred()) SWIG_fail; | |
17983 | } | |
17984 | } | |
d14a1e28 RD |
17985 | { |
17986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17987 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
17988 | ||
17989 | wxPyEndAllowThreads(__tstate); | |
17990 | if (PyErr_Occurred()) SWIG_fail; | |
17991 | } | |
02a34c4c | 17992 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17993 | return resultobj; |
17994 | fail: | |
17995 | return NULL; | |
17996 | } | |
17997 | ||
17998 | ||
17999 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18000 | PyObject *resultobj; | |
18001 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18002 | int arg2 ; | |
18003 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18004 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18005 | bool result; | |
18006 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
18007 | PyObject * obj1 = 0 ; |
18008 | PyObject * obj2 = 0 ; | |
18009 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18010 | char *kwnames[] = { |
18011 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18012 | }; | |
18013 | ||
8edf1c75 | 18014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 18015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18016 | { |
18017 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
18018 | if (PyErr_Occurred()) SWIG_fail; | |
18019 | } | |
18020 | if (obj2) { | |
18021 | { | |
18022 | arg3 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj2); | |
18023 | if (PyErr_Occurred()) SWIG_fail; | |
18024 | } | |
18025 | } | |
18026 | if (obj3) { | |
18027 | { | |
18028 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
18029 | if (PyErr_Occurred()) SWIG_fail; | |
18030 | } | |
18031 | } | |
d14a1e28 RD |
18032 | { |
18033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18034 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18035 | ||
18036 | wxPyEndAllowThreads(__tstate); | |
18037 | if (PyErr_Occurred()) SWIG_fail; | |
18038 | } | |
02a34c4c | 18039 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18040 | return resultobj; |
18041 | fail: | |
18042 | return NULL; | |
18043 | } | |
18044 | ||
18045 | ||
18046 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18047 | PyObject *resultobj; | |
18048 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18049 | int arg2 ; | |
18050 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18051 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18052 | wxDateTime result; | |
18053 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
18054 | PyObject * obj1 = 0 ; |
18055 | PyObject * obj2 = 0 ; | |
18056 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18057 | char *kwnames[] = { |
18058 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18059 | }; | |
18060 | ||
8edf1c75 | 18061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 18062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18063 | { |
18064 | arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1); | |
18065 | if (PyErr_Occurred()) SWIG_fail; | |
18066 | } | |
18067 | if (obj2) { | |
18068 | { | |
18069 | arg3 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj2); | |
18070 | if (PyErr_Occurred()) SWIG_fail; | |
18071 | } | |
18072 | } | |
18073 | if (obj3) { | |
18074 | { | |
18075 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
18076 | if (PyErr_Occurred()) SWIG_fail; | |
18077 | } | |
18078 | } | |
d14a1e28 RD |
18079 | { |
18080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18081 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18082 | ||
18083 | wxPyEndAllowThreads(__tstate); | |
18084 | if (PyErr_Occurred()) SWIG_fail; | |
18085 | } | |
18086 | { | |
18087 | wxDateTime * resultptr; | |
18088 | resultptr = new wxDateTime((wxDateTime &) result); | |
18089 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18090 | } | |
18091 | return resultobj; | |
18092 | fail: | |
18093 | return NULL; | |
18094 | } | |
18095 | ||
18096 | ||
18097 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18098 | PyObject *resultobj; | |
18099 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 18100 | int arg2 ; |
d14a1e28 RD |
18101 | int arg3 = (int) wxDateTime::Mon ; |
18102 | int arg4 = (int) wxDateTime::Monday_First ; | |
18103 | bool result; | |
18104 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
18105 | PyObject * obj1 = 0 ; |
18106 | PyObject * obj2 = 0 ; | |
18107 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18108 | char *kwnames[] = { |
18109 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18110 | }; | |
18111 | ||
8edf1c75 | 18112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 18113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18114 | { |
18115 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18116 | if (PyErr_Occurred()) SWIG_fail; | |
18117 | } | |
18118 | if (obj2) { | |
18119 | { | |
18120 | arg3 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj2); | |
18121 | if (PyErr_Occurred()) SWIG_fail; | |
18122 | } | |
18123 | } | |
18124 | if (obj3) { | |
18125 | { | |
18126 | arg4 = (wxDateTime::WeekFlags) SWIG_PyObj_AsInt(obj3); | |
18127 | if (PyErr_Occurred()) SWIG_fail; | |
18128 | } | |
18129 | } | |
d14a1e28 RD |
18130 | { |
18131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18132 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18133 | ||
18134 | wxPyEndAllowThreads(__tstate); | |
18135 | if (PyErr_Occurred()) SWIG_fail; | |
18136 | } | |
02a34c4c | 18137 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18138 | return resultobj; |
18139 | fail: | |
18140 | return NULL; | |
18141 | } | |
18142 | ||
18143 | ||
18144 | static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18145 | PyObject *resultobj; | |
18146 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 18147 | int arg2 ; |
d14a1e28 RD |
18148 | int arg3 = (int) wxDateTime::Mon ; |
18149 | int arg4 = (int) wxDateTime::Monday_First ; | |
18150 | wxDateTime result; | |
18151 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
18152 | PyObject * obj1 = 0 ; |
18153 | PyObject * obj2 = 0 ; | |
18154 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18155 | char *kwnames[] = { |
18156 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18157 | }; | |
18158 | ||
8edf1c75 | 18159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 18160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18161 | { |
18162 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18163 | if (PyErr_Occurred()) SWIG_fail; | |
18164 | } | |
18165 | if (obj2) { | |
18166 | { | |
18167 | arg3 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj2); | |
18168 | if (PyErr_Occurred()) SWIG_fail; | |
18169 | } | |
18170 | } | |
18171 | if (obj3) { | |
18172 | { | |
18173 | arg4 = (wxDateTime::WeekFlags) SWIG_PyObj_AsInt(obj3); | |
18174 | if (PyErr_Occurred()) SWIG_fail; | |
18175 | } | |
18176 | } | |
d14a1e28 RD |
18177 | { |
18178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18179 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18180 | ||
18181 | wxPyEndAllowThreads(__tstate); | |
18182 | if (PyErr_Occurred()) SWIG_fail; | |
18183 | } | |
18184 | { | |
18185 | wxDateTime * resultptr; | |
18186 | resultptr = new wxDateTime((wxDateTime &) result); | |
18187 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18188 | } | |
18189 | return resultobj; | |
18190 | fail: | |
18191 | return NULL; | |
18192 | } | |
18193 | ||
18194 | ||
18195 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18196 | PyObject *resultobj; | |
18197 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18198 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18199 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18200 | wxDateTime *result; | |
18201 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
18202 | PyObject * obj1 = 0 ; |
18203 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18204 | char *kwnames[] = { |
18205 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18206 | }; | |
18207 | ||
8edf1c75 | 18208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 18209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18210 | if (obj1) { |
18211 | { | |
18212 | arg2 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj1); | |
18213 | if (PyErr_Occurred()) SWIG_fail; | |
18214 | } | |
18215 | } | |
18216 | if (obj2) { | |
18217 | { | |
18218 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
18219 | if (PyErr_Occurred()) SWIG_fail; | |
18220 | } | |
18221 | } | |
d14a1e28 RD |
18222 | { |
18223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18224 | { | |
18225 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18226 | result = (wxDateTime *) &_result_ref; | |
18227 | } | |
18228 | ||
18229 | wxPyEndAllowThreads(__tstate); | |
18230 | if (PyErr_Occurred()) SWIG_fail; | |
18231 | } | |
18232 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18233 | return resultobj; | |
18234 | fail: | |
18235 | return NULL; | |
18236 | } | |
18237 | ||
18238 | ||
18239 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18240 | PyObject *resultobj; | |
18241 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18242 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18243 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18244 | wxDateTime result; | |
18245 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
18246 | PyObject * obj1 = 0 ; |
18247 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18248 | char *kwnames[] = { |
18249 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18250 | }; | |
18251 | ||
8edf1c75 | 18252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 18253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18254 | if (obj1) { |
18255 | { | |
18256 | arg2 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj1); | |
18257 | if (PyErr_Occurred()) SWIG_fail; | |
18258 | } | |
18259 | } | |
18260 | if (obj2) { | |
18261 | { | |
18262 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
18263 | if (PyErr_Occurred()) SWIG_fail; | |
18264 | } | |
18265 | } | |
d14a1e28 RD |
18266 | { |
18267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18268 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18269 | ||
18270 | wxPyEndAllowThreads(__tstate); | |
18271 | if (PyErr_Occurred()) SWIG_fail; | |
18272 | } | |
18273 | { | |
18274 | wxDateTime * resultptr; | |
18275 | resultptr = new wxDateTime((wxDateTime &) result); | |
18276 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18277 | } | |
18278 | return resultobj; | |
18279 | fail: | |
18280 | return NULL; | |
18281 | } | |
18282 | ||
18283 | ||
18284 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18285 | PyObject *resultobj; | |
18286 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 18287 | int arg2 ; |
d14a1e28 RD |
18288 | wxDateTime *result; |
18289 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18290 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18291 | char *kwnames[] = { |
18292 | (char *) "self",(char *) "yday", NULL | |
18293 | }; | |
18294 | ||
8edf1c75 | 18295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18297 | { |
18298 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18299 | if (PyErr_Occurred()) SWIG_fail; | |
18300 | } | |
d14a1e28 RD |
18301 | { |
18302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18303 | { | |
18304 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
18305 | result = (wxDateTime *) &_result_ref; | |
18306 | } | |
18307 | ||
18308 | wxPyEndAllowThreads(__tstate); | |
18309 | if (PyErr_Occurred()) SWIG_fail; | |
18310 | } | |
18311 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18312 | return resultobj; | |
18313 | fail: | |
18314 | return NULL; | |
18315 | } | |
18316 | ||
18317 | ||
18318 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18319 | PyObject *resultobj; | |
18320 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 18321 | int arg2 ; |
d14a1e28 RD |
18322 | wxDateTime result; |
18323 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18324 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18325 | char *kwnames[] = { |
18326 | (char *) "self",(char *) "yday", NULL | |
18327 | }; | |
18328 | ||
8edf1c75 | 18329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18331 | { |
18332 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18333 | if (PyErr_Occurred()) SWIG_fail; | |
18334 | } | |
d14a1e28 RD |
18335 | { |
18336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18337 | result = (arg1)->GetYearDay(arg2); | |
18338 | ||
18339 | wxPyEndAllowThreads(__tstate); | |
18340 | if (PyErr_Occurred()) SWIG_fail; | |
18341 | } | |
18342 | { | |
18343 | wxDateTime * resultptr; | |
18344 | resultptr = new wxDateTime((wxDateTime &) result); | |
18345 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18346 | } | |
18347 | return resultobj; | |
18348 | fail: | |
18349 | return NULL; | |
18350 | } | |
18351 | ||
18352 | ||
18353 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18354 | PyObject *resultobj; | |
18355 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18356 | double result; | |
18357 | PyObject * obj0 = 0 ; | |
18358 | char *kwnames[] = { | |
18359 | (char *) "self", NULL | |
18360 | }; | |
18361 | ||
18362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
18363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18364 | { | |
18365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18366 | result = (double)(arg1)->GetJulianDayNumber(); | |
18367 | ||
18368 | wxPyEndAllowThreads(__tstate); | |
18369 | if (PyErr_Occurred()) SWIG_fail; | |
18370 | } | |
8edf1c75 | 18371 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
18372 | return resultobj; |
18373 | fail: | |
18374 | return NULL; | |
18375 | } | |
18376 | ||
18377 | ||
18378 | static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18379 | PyObject *resultobj; | |
18380 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18381 | double result; | |
18382 | PyObject * obj0 = 0 ; | |
18383 | char *kwnames[] = { | |
18384 | (char *) "self", NULL | |
18385 | }; | |
18386 | ||
18387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
18388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18389 | { | |
18390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18391 | result = (double)(arg1)->GetJDN(); | |
18392 | ||
18393 | wxPyEndAllowThreads(__tstate); | |
18394 | if (PyErr_Occurred()) SWIG_fail; | |
18395 | } | |
8edf1c75 | 18396 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
18397 | return resultobj; |
18398 | fail: | |
18399 | return NULL; | |
18400 | } | |
18401 | ||
18402 | ||
18403 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18404 | PyObject *resultobj; | |
18405 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18406 | double result; | |
18407 | PyObject * obj0 = 0 ; | |
18408 | char *kwnames[] = { | |
18409 | (char *) "self", NULL | |
18410 | }; | |
18411 | ||
18412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
18413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18414 | { | |
18415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18416 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
18417 | ||
18418 | wxPyEndAllowThreads(__tstate); | |
18419 | if (PyErr_Occurred()) SWIG_fail; | |
18420 | } | |
8edf1c75 | 18421 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
18422 | return resultobj; |
18423 | fail: | |
18424 | return NULL; | |
18425 | } | |
18426 | ||
18427 | ||
18428 | static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18429 | PyObject *resultobj; | |
18430 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18431 | double result; | |
18432 | PyObject * obj0 = 0 ; | |
18433 | char *kwnames[] = { | |
18434 | (char *) "self", NULL | |
18435 | }; | |
18436 | ||
18437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
18438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18439 | { | |
18440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18441 | result = (double)(arg1)->GetMJD(); | |
18442 | ||
18443 | wxPyEndAllowThreads(__tstate); | |
18444 | if (PyErr_Occurred()) SWIG_fail; | |
18445 | } | |
8edf1c75 | 18446 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
18447 | return resultobj; |
18448 | fail: | |
18449 | return NULL; | |
18450 | } | |
18451 | ||
18452 | ||
18453 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18454 | PyObject *resultobj; | |
18455 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18456 | double result; | |
18457 | PyObject * obj0 = 0 ; | |
18458 | char *kwnames[] = { | |
18459 | (char *) "self", NULL | |
18460 | }; | |
18461 | ||
18462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
18463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18464 | { | |
18465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18466 | result = (double)(arg1)->GetRataDie(); | |
18467 | ||
18468 | wxPyEndAllowThreads(__tstate); | |
18469 | if (PyErr_Occurred()) SWIG_fail; | |
18470 | } | |
8edf1c75 | 18471 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
18472 | return resultobj; |
18473 | fail: | |
18474 | return NULL; | |
18475 | } | |
18476 | ||
18477 | ||
18478 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18479 | PyObject *resultobj; | |
18480 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18481 | wxDateTime::TimeZone *arg2 = 0 ; | |
423f194a | 18482 | bool arg3 = (bool) False ; |
d14a1e28 | 18483 | wxDateTime result; |
44127b65 | 18484 | bool temp2 = False ; |
d14a1e28 RD |
18485 | PyObject * obj0 = 0 ; |
18486 | PyObject * obj1 = 0 ; | |
18487 | PyObject * obj2 = 0 ; | |
18488 | char *kwnames[] = { | |
18489 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18490 | }; | |
18491 | ||
18492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18493 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18494 | { | |
18495 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 18496 | temp2 = True; |
d14a1e28 RD |
18497 | } |
18498 | if (obj2) { | |
2dbef272 | 18499 | { |
8edf1c75 | 18500 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
18501 | if (PyErr_Occurred()) SWIG_fail; |
18502 | } | |
d14a1e28 RD |
18503 | } |
18504 | { | |
18505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18506 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18507 | ||
18508 | wxPyEndAllowThreads(__tstate); | |
18509 | if (PyErr_Occurred()) SWIG_fail; | |
18510 | } | |
18511 | { | |
18512 | wxDateTime * resultptr; | |
18513 | resultptr = new wxDateTime((wxDateTime &) result); | |
18514 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18515 | } | |
18516 | { | |
44127b65 | 18517 | if (temp2) delete arg2; |
d14a1e28 RD |
18518 | } |
18519 | return resultobj; | |
18520 | fail: | |
18521 | { | |
44127b65 | 18522 | if (temp2) delete arg2; |
d14a1e28 RD |
18523 | } |
18524 | return NULL; | |
18525 | } | |
18526 | ||
18527 | ||
18528 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18529 | PyObject *resultobj; | |
18530 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18531 | wxDateTime::TimeZone *arg2 = 0 ; | |
423f194a | 18532 | bool arg3 = (bool) False ; |
d14a1e28 | 18533 | wxDateTime *result; |
44127b65 | 18534 | bool temp2 = False ; |
d14a1e28 RD |
18535 | PyObject * obj0 = 0 ; |
18536 | PyObject * obj1 = 0 ; | |
18537 | PyObject * obj2 = 0 ; | |
18538 | char *kwnames[] = { | |
18539 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18540 | }; | |
18541 | ||
18542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18544 | { | |
18545 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 18546 | temp2 = True; |
d14a1e28 RD |
18547 | } |
18548 | if (obj2) { | |
2dbef272 | 18549 | { |
8edf1c75 | 18550 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
2dbef272 RD |
18551 | if (PyErr_Occurred()) SWIG_fail; |
18552 | } | |
d14a1e28 RD |
18553 | } |
18554 | { | |
18555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18556 | { | |
18557 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18558 | result = (wxDateTime *) &_result_ref; | |
18559 | } | |
18560 | ||
18561 | wxPyEndAllowThreads(__tstate); | |
18562 | if (PyErr_Occurred()) SWIG_fail; | |
18563 | } | |
18564 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18565 | { | |
44127b65 | 18566 | if (temp2) delete arg2; |
d14a1e28 RD |
18567 | } |
18568 | return resultobj; | |
18569 | fail: | |
18570 | { | |
44127b65 | 18571 | if (temp2) delete arg2; |
d14a1e28 RD |
18572 | } |
18573 | return NULL; | |
18574 | } | |
18575 | ||
18576 | ||
18577 | static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18578 | PyObject *resultobj; | |
18579 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
423f194a | 18580 | bool arg2 = (bool) False ; |
d14a1e28 RD |
18581 | wxDateTime result; |
18582 | PyObject * obj0 = 0 ; | |
18583 | PyObject * obj1 = 0 ; | |
18584 | char *kwnames[] = { | |
18585 | (char *) "self",(char *) "noDST", NULL | |
18586 | }; | |
18587 | ||
18588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
18589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18590 | if (obj1) { | |
2dbef272 | 18591 | { |
8edf1c75 | 18592 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
18593 | if (PyErr_Occurred()) SWIG_fail; |
18594 | } | |
d14a1e28 RD |
18595 | } |
18596 | { | |
18597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18598 | result = (arg1)->ToGMT(arg2); | |
18599 | ||
18600 | wxPyEndAllowThreads(__tstate); | |
18601 | if (PyErr_Occurred()) SWIG_fail; | |
18602 | } | |
18603 | { | |
18604 | wxDateTime * resultptr; | |
18605 | resultptr = new wxDateTime((wxDateTime &) result); | |
18606 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18607 | } | |
18608 | return resultobj; | |
18609 | fail: | |
18610 | return NULL; | |
18611 | } | |
18612 | ||
18613 | ||
18614 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18615 | PyObject *resultobj; | |
18616 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
423f194a | 18617 | bool arg2 = (bool) False ; |
d14a1e28 RD |
18618 | wxDateTime *result; |
18619 | PyObject * obj0 = 0 ; | |
18620 | PyObject * obj1 = 0 ; | |
18621 | char *kwnames[] = { | |
18622 | (char *) "self",(char *) "noDST", NULL | |
18623 | }; | |
18624 | ||
18625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
18626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18627 | if (obj1) { | |
2dbef272 | 18628 | { |
8edf1c75 | 18629 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
18630 | if (PyErr_Occurred()) SWIG_fail; |
18631 | } | |
d14a1e28 RD |
18632 | } |
18633 | { | |
18634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18635 | { | |
18636 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
18637 | result = (wxDateTime *) &_result_ref; | |
18638 | } | |
18639 | ||
18640 | wxPyEndAllowThreads(__tstate); | |
18641 | if (PyErr_Occurred()) SWIG_fail; | |
18642 | } | |
18643 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18644 | return resultobj; | |
18645 | fail: | |
18646 | return NULL; | |
18647 | } | |
18648 | ||
18649 | ||
18650 | static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18651 | PyObject *resultobj; | |
18652 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18653 | int arg2 = (int) wxDateTime::Country_Default ; | |
18654 | int result; | |
18655 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18656 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18657 | char *kwnames[] = { |
18658 | (char *) "self",(char *) "country", NULL | |
18659 | }; | |
18660 | ||
8edf1c75 | 18661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18663 | if (obj1) { |
18664 | { | |
18665 | arg2 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj1); | |
18666 | if (PyErr_Occurred()) SWIG_fail; | |
18667 | } | |
18668 | } | |
d14a1e28 RD |
18669 | { |
18670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18671 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
18672 | ||
18673 | wxPyEndAllowThreads(__tstate); | |
18674 | if (PyErr_Occurred()) SWIG_fail; | |
18675 | } | |
8edf1c75 | 18676 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18677 | return resultobj; |
18678 | fail: | |
18679 | return NULL; | |
18680 | } | |
18681 | ||
18682 | ||
18683 | static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18684 | PyObject *resultobj; | |
18685 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18686 | bool result; | |
18687 | PyObject * obj0 = 0 ; | |
18688 | char *kwnames[] = { | |
18689 | (char *) "self", NULL | |
18690 | }; | |
18691 | ||
18692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
18693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18694 | { | |
18695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18696 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
18697 | ||
18698 | wxPyEndAllowThreads(__tstate); | |
18699 | if (PyErr_Occurred()) SWIG_fail; | |
18700 | } | |
02a34c4c | 18701 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18702 | return resultobj; |
18703 | fail: | |
18704 | return NULL; | |
18705 | } | |
18706 | ||
18707 | ||
18708 | static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18709 | PyObject *resultobj; | |
18710 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18711 | time_t result; | |
18712 | PyObject * obj0 = 0 ; | |
18713 | char *kwnames[] = { | |
18714 | (char *) "self", NULL | |
18715 | }; | |
18716 | ||
18717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
18718 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18719 | { | |
18720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18721 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
18722 | ||
18723 | wxPyEndAllowThreads(__tstate); | |
18724 | if (PyErr_Occurred()) SWIG_fail; | |
18725 | } | |
8edf1c75 | 18726 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
18727 | return resultobj; |
18728 | fail: | |
18729 | return NULL; | |
18730 | } | |
18731 | ||
18732 | ||
18733 | static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18734 | PyObject *resultobj; | |
18735 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18736 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18737 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18738 | int result; | |
44127b65 | 18739 | bool temp2 = False ; |
d14a1e28 RD |
18740 | PyObject * obj0 = 0 ; |
18741 | PyObject * obj1 = 0 ; | |
18742 | char *kwnames[] = { | |
18743 | (char *) "self",(char *) "tz", NULL | |
18744 | }; | |
18745 | ||
18746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
18747 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18748 | if (obj1) { | |
18749 | { | |
18750 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 18751 | temp2 = True; |
d14a1e28 RD |
18752 | } |
18753 | } | |
18754 | { | |
18755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18756 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
18757 | ||
18758 | wxPyEndAllowThreads(__tstate); | |
18759 | if (PyErr_Occurred()) SWIG_fail; | |
18760 | } | |
8edf1c75 | 18761 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 | 18762 | { |
44127b65 | 18763 | if (temp2) delete arg2; |
d14a1e28 RD |
18764 | } |
18765 | return resultobj; | |
18766 | fail: | |
18767 | { | |
44127b65 | 18768 | if (temp2) delete arg2; |
d14a1e28 RD |
18769 | } |
18770 | return NULL; | |
18771 | } | |
18772 | ||
18773 | ||
18774 | static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18775 | PyObject *resultobj; | |
18776 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18777 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18778 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18779 | int result; | |
44127b65 | 18780 | bool temp2 = False ; |
d14a1e28 RD |
18781 | PyObject * obj0 = 0 ; |
18782 | PyObject * obj1 = 0 ; | |
18783 | char *kwnames[] = { | |
18784 | (char *) "self",(char *) "tz", NULL | |
18785 | }; | |
18786 | ||
18787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
18788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18789 | if (obj1) { | |
18790 | { | |
18791 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 18792 | temp2 = True; |
d14a1e28 RD |
18793 | } |
18794 | } | |
18795 | { | |
18796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18797 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
18798 | ||
18799 | wxPyEndAllowThreads(__tstate); | |
18800 | if (PyErr_Occurred()) SWIG_fail; | |
18801 | } | |
8edf1c75 | 18802 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 | 18803 | { |
44127b65 | 18804 | if (temp2) delete arg2; |
d14a1e28 RD |
18805 | } |
18806 | return resultobj; | |
18807 | fail: | |
18808 | { | |
44127b65 | 18809 | if (temp2) delete arg2; |
d14a1e28 RD |
18810 | } |
18811 | return NULL; | |
18812 | } | |
18813 | ||
18814 | ||
18815 | static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18816 | PyObject *resultobj; | |
18817 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18818 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18819 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
18820 | int result; |
18821 | bool temp2 = False ; | |
d14a1e28 RD |
18822 | PyObject * obj0 = 0 ; |
18823 | PyObject * obj1 = 0 ; | |
18824 | char *kwnames[] = { | |
18825 | (char *) "self",(char *) "tz", NULL | |
18826 | }; | |
18827 | ||
18828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
18829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18830 | if (obj1) { | |
18831 | { | |
18832 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 18833 | temp2 = True; |
d14a1e28 RD |
18834 | } |
18835 | } | |
18836 | { | |
18837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 18838 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
18839 | |
18840 | wxPyEndAllowThreads(__tstate); | |
18841 | if (PyErr_Occurred()) SWIG_fail; | |
18842 | } | |
8edf1c75 | 18843 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 | 18844 | { |
44127b65 | 18845 | if (temp2) delete arg2; |
d14a1e28 RD |
18846 | } |
18847 | return resultobj; | |
18848 | fail: | |
18849 | { | |
44127b65 | 18850 | if (temp2) delete arg2; |
d14a1e28 RD |
18851 | } |
18852 | return NULL; | |
18853 | } | |
18854 | ||
18855 | ||
18856 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18857 | PyObject *resultobj; | |
18858 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18859 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18860 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18861 | int result; | |
44127b65 | 18862 | bool temp2 = False ; |
d14a1e28 RD |
18863 | PyObject * obj0 = 0 ; |
18864 | PyObject * obj1 = 0 ; | |
18865 | char *kwnames[] = { | |
18866 | (char *) "self",(char *) "tz", NULL | |
18867 | }; | |
18868 | ||
18869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18870 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18871 | if (obj1) { | |
18872 | { | |
18873 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 18874 | temp2 = True; |
d14a1e28 RD |
18875 | } |
18876 | } | |
18877 | { | |
18878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18879 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
18880 | ||
18881 | wxPyEndAllowThreads(__tstate); | |
18882 | if (PyErr_Occurred()) SWIG_fail; | |
18883 | } | |
8edf1c75 | 18884 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 | 18885 | { |
44127b65 | 18886 | if (temp2) delete arg2; |
d14a1e28 RD |
18887 | } |
18888 | return resultobj; | |
18889 | fail: | |
18890 | { | |
44127b65 | 18891 | if (temp2) delete arg2; |
d14a1e28 RD |
18892 | } |
18893 | return NULL; | |
18894 | } | |
18895 | ||
18896 | ||
18897 | static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18898 | PyObject *resultobj; | |
18899 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18900 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18901 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
18902 | int result; |
18903 | bool temp2 = False ; | |
d14a1e28 RD |
18904 | PyObject * obj0 = 0 ; |
18905 | PyObject * obj1 = 0 ; | |
18906 | char *kwnames[] = { | |
18907 | (char *) "self",(char *) "tz", NULL | |
18908 | }; | |
18909 | ||
18910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
18911 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18912 | if (obj1) { | |
18913 | { | |
18914 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 18915 | temp2 = True; |
d14a1e28 RD |
18916 | } |
18917 | } | |
18918 | { | |
18919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 18920 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
18921 | |
18922 | wxPyEndAllowThreads(__tstate); | |
18923 | if (PyErr_Occurred()) SWIG_fail; | |
18924 | } | |
8edf1c75 | 18925 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 | 18926 | { |
44127b65 | 18927 | if (temp2) delete arg2; |
d14a1e28 RD |
18928 | } |
18929 | return resultobj; | |
18930 | fail: | |
18931 | { | |
44127b65 | 18932 | if (temp2) delete arg2; |
d14a1e28 RD |
18933 | } |
18934 | return NULL; | |
18935 | } | |
18936 | ||
18937 | ||
18938 | static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18939 | PyObject *resultobj; | |
18940 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18941 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18942 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
18943 | int result; |
18944 | bool temp2 = False ; | |
d14a1e28 RD |
18945 | PyObject * obj0 = 0 ; |
18946 | PyObject * obj1 = 0 ; | |
18947 | char *kwnames[] = { | |
18948 | (char *) "self",(char *) "tz", NULL | |
18949 | }; | |
18950 | ||
18951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
18952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18953 | if (obj1) { | |
18954 | { | |
18955 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 18956 | temp2 = True; |
d14a1e28 RD |
18957 | } |
18958 | } | |
18959 | { | |
18960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 18961 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
18962 | |
18963 | wxPyEndAllowThreads(__tstate); | |
18964 | if (PyErr_Occurred()) SWIG_fail; | |
18965 | } | |
8edf1c75 | 18966 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 | 18967 | { |
44127b65 | 18968 | if (temp2) delete arg2; |
d14a1e28 RD |
18969 | } |
18970 | return resultobj; | |
18971 | fail: | |
18972 | { | |
44127b65 | 18973 | if (temp2) delete arg2; |
d14a1e28 RD |
18974 | } |
18975 | return NULL; | |
18976 | } | |
18977 | ||
18978 | ||
18979 | static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18980 | PyObject *resultobj; | |
18981 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18982 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18983 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
18984 | int result; |
18985 | bool temp2 = False ; | |
d14a1e28 RD |
18986 | PyObject * obj0 = 0 ; |
18987 | PyObject * obj1 = 0 ; | |
18988 | char *kwnames[] = { | |
18989 | (char *) "self",(char *) "tz", NULL | |
18990 | }; | |
18991 | ||
18992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
18993 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18994 | if (obj1) { | |
18995 | { | |
18996 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 18997 | temp2 = True; |
d14a1e28 RD |
18998 | } |
18999 | } | |
19000 | { | |
19001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 19002 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19003 | |
19004 | wxPyEndAllowThreads(__tstate); | |
19005 | if (PyErr_Occurred()) SWIG_fail; | |
19006 | } | |
8edf1c75 | 19007 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 | 19008 | { |
44127b65 | 19009 | if (temp2) delete arg2; |
d14a1e28 RD |
19010 | } |
19011 | return resultobj; | |
19012 | fail: | |
19013 | { | |
44127b65 | 19014 | if (temp2) delete arg2; |
d14a1e28 RD |
19015 | } |
19016 | return NULL; | |
19017 | } | |
19018 | ||
19019 | ||
19020 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19021 | PyObject *resultobj; | |
19022 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19023 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19024 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
19025 | int result; |
19026 | bool temp2 = False ; | |
d14a1e28 RD |
19027 | PyObject * obj0 = 0 ; |
19028 | PyObject * obj1 = 0 ; | |
19029 | char *kwnames[] = { | |
19030 | (char *) "self",(char *) "tz", NULL | |
19031 | }; | |
19032 | ||
19033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
19034 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19035 | if (obj1) { | |
19036 | { | |
19037 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 19038 | temp2 = True; |
d14a1e28 RD |
19039 | } |
19040 | } | |
19041 | { | |
19042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 19043 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19044 | |
19045 | wxPyEndAllowThreads(__tstate); | |
19046 | if (PyErr_Occurred()) SWIG_fail; | |
19047 | } | |
8edf1c75 | 19048 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 | 19049 | { |
44127b65 | 19050 | if (temp2) delete arg2; |
d14a1e28 RD |
19051 | } |
19052 | return resultobj; | |
19053 | fail: | |
19054 | { | |
44127b65 | 19055 | if (temp2) delete arg2; |
d14a1e28 RD |
19056 | } |
19057 | return NULL; | |
19058 | } | |
19059 | ||
19060 | ||
19061 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19062 | PyObject *resultobj; | |
19063 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19064 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19065 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
19066 | int result; |
19067 | bool temp2 = False ; | |
d14a1e28 RD |
19068 | PyObject * obj0 = 0 ; |
19069 | PyObject * obj1 = 0 ; | |
19070 | char *kwnames[] = { | |
19071 | (char *) "self",(char *) "tz", NULL | |
19072 | }; | |
19073 | ||
19074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
19075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19076 | if (obj1) { | |
19077 | { | |
19078 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 19079 | temp2 = True; |
d14a1e28 RD |
19080 | } |
19081 | } | |
19082 | { | |
19083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 19084 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19085 | |
19086 | wxPyEndAllowThreads(__tstate); | |
19087 | if (PyErr_Occurred()) SWIG_fail; | |
19088 | } | |
8edf1c75 | 19089 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 | 19090 | { |
44127b65 | 19091 | if (temp2) delete arg2; |
d14a1e28 RD |
19092 | } |
19093 | return resultobj; | |
19094 | fail: | |
19095 | { | |
44127b65 | 19096 | if (temp2) delete arg2; |
d14a1e28 RD |
19097 | } |
19098 | return NULL; | |
19099 | } | |
19100 | ||
19101 | ||
19102 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19103 | PyObject *resultobj; | |
19104 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19105 | int arg2 = (int) wxDateTime::Monday_First ; | |
19106 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19107 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
44127b65 RD |
19108 | int result; |
19109 | bool temp3 = False ; | |
d14a1e28 | 19110 | PyObject * obj0 = 0 ; |
8edf1c75 | 19111 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19112 | PyObject * obj2 = 0 ; |
19113 | char *kwnames[] = { | |
19114 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19115 | }; | |
19116 | ||
8edf1c75 | 19117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 19118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19119 | if (obj1) { |
19120 | { | |
19121 | arg2 = (wxDateTime::WeekFlags) SWIG_PyObj_AsInt(obj1); | |
19122 | if (PyErr_Occurred()) SWIG_fail; | |
19123 | } | |
19124 | } | |
d14a1e28 RD |
19125 | if (obj2) { |
19126 | { | |
19127 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
44127b65 | 19128 | temp3 = True; |
d14a1e28 RD |
19129 | } |
19130 | } | |
19131 | { | |
19132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 19133 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
19134 | |
19135 | wxPyEndAllowThreads(__tstate); | |
19136 | if (PyErr_Occurred()) SWIG_fail; | |
19137 | } | |
8edf1c75 | 19138 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 | 19139 | { |
44127b65 | 19140 | if (temp3) delete arg3; |
d14a1e28 RD |
19141 | } |
19142 | return resultobj; | |
19143 | fail: | |
19144 | { | |
44127b65 | 19145 | if (temp3) delete arg3; |
d14a1e28 RD |
19146 | } |
19147 | return NULL; | |
19148 | } | |
19149 | ||
19150 | ||
19151 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19152 | PyObject *resultobj; | |
19153 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19154 | int arg2 = (int) wxDateTime::Monday_First ; | |
19155 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19156 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
44127b65 RD |
19157 | int result; |
19158 | bool temp3 = False ; | |
d14a1e28 | 19159 | PyObject * obj0 = 0 ; |
8edf1c75 | 19160 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19161 | PyObject * obj2 = 0 ; |
19162 | char *kwnames[] = { | |
19163 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19164 | }; | |
19165 | ||
8edf1c75 | 19166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 19167 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19168 | if (obj1) { |
19169 | { | |
19170 | arg2 = (wxDateTime::WeekFlags) SWIG_PyObj_AsInt(obj1); | |
19171 | if (PyErr_Occurred()) SWIG_fail; | |
19172 | } | |
19173 | } | |
d14a1e28 RD |
19174 | if (obj2) { |
19175 | { | |
19176 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
44127b65 | 19177 | temp3 = True; |
d14a1e28 RD |
19178 | } |
19179 | } | |
19180 | { | |
19181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 19182 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
19183 | |
19184 | wxPyEndAllowThreads(__tstate); | |
19185 | if (PyErr_Occurred()) SWIG_fail; | |
19186 | } | |
8edf1c75 | 19187 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 | 19188 | { |
44127b65 | 19189 | if (temp3) delete arg3; |
d14a1e28 RD |
19190 | } |
19191 | return resultobj; | |
19192 | fail: | |
19193 | { | |
44127b65 | 19194 | if (temp3) delete arg3; |
d14a1e28 RD |
19195 | } |
19196 | return NULL; | |
19197 | } | |
19198 | ||
19199 | ||
19200 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19201 | PyObject *resultobj; | |
19202 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19203 | int arg2 = (int) wxDateTime::Country_Default ; | |
19204 | bool result; | |
19205 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19206 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19207 | char *kwnames[] = { |
19208 | (char *) "self",(char *) "country", NULL | |
19209 | }; | |
19210 | ||
8edf1c75 | 19211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19213 | if (obj1) { |
19214 | { | |
19215 | arg2 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj1); | |
19216 | if (PyErr_Occurred()) SWIG_fail; | |
19217 | } | |
19218 | } | |
d14a1e28 RD |
19219 | { |
19220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19221 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
19222 | ||
19223 | wxPyEndAllowThreads(__tstate); | |
19224 | if (PyErr_Occurred()) SWIG_fail; | |
19225 | } | |
02a34c4c | 19226 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19227 | return resultobj; |
19228 | fail: | |
19229 | return NULL; | |
19230 | } | |
19231 | ||
19232 | ||
19233 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19234 | PyObject *resultobj; | |
19235 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19236 | wxDateTime *arg2 = 0 ; | |
19237 | bool result; | |
19238 | PyObject * obj0 = 0 ; | |
19239 | PyObject * obj1 = 0 ; | |
19240 | char *kwnames[] = { | |
19241 | (char *) "self",(char *) "datetime", NULL | |
19242 | }; | |
19243 | ||
19244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
19245 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19246 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19247 | if (arg2 == NULL) { | |
19248 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19249 | } | |
19250 | { | |
19251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19252 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
19253 | ||
19254 | wxPyEndAllowThreads(__tstate); | |
19255 | if (PyErr_Occurred()) SWIG_fail; | |
19256 | } | |
02a34c4c | 19257 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19258 | return resultobj; |
19259 | fail: | |
19260 | return NULL; | |
19261 | } | |
19262 | ||
19263 | ||
19264 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19265 | PyObject *resultobj; | |
19266 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19267 | wxDateTime *arg2 = 0 ; | |
19268 | bool result; | |
19269 | PyObject * obj0 = 0 ; | |
19270 | PyObject * obj1 = 0 ; | |
19271 | char *kwnames[] = { | |
19272 | (char *) "self",(char *) "datetime", NULL | |
19273 | }; | |
19274 | ||
19275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
19276 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19277 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19278 | if (arg2 == NULL) { | |
19279 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19280 | } | |
19281 | { | |
19282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19283 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
19284 | ||
19285 | wxPyEndAllowThreads(__tstate); | |
19286 | if (PyErr_Occurred()) SWIG_fail; | |
19287 | } | |
02a34c4c | 19288 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19289 | return resultobj; |
19290 | fail: | |
19291 | return NULL; | |
19292 | } | |
19293 | ||
19294 | ||
19295 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19296 | PyObject *resultobj; | |
19297 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19298 | wxDateTime *arg2 = 0 ; | |
19299 | bool result; | |
19300 | PyObject * obj0 = 0 ; | |
19301 | PyObject * obj1 = 0 ; | |
19302 | char *kwnames[] = { | |
19303 | (char *) "self",(char *) "datetime", NULL | |
19304 | }; | |
19305 | ||
19306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
19307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19308 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19309 | if (arg2 == NULL) { | |
19310 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19311 | } | |
19312 | { | |
19313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19314 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
19315 | ||
19316 | wxPyEndAllowThreads(__tstate); | |
19317 | if (PyErr_Occurred()) SWIG_fail; | |
19318 | } | |
02a34c4c | 19319 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19320 | return resultobj; |
19321 | fail: | |
19322 | return NULL; | |
19323 | } | |
19324 | ||
19325 | ||
19326 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19327 | PyObject *resultobj; | |
19328 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19329 | wxDateTime *arg2 = 0 ; | |
19330 | wxDateTime *arg3 = 0 ; | |
19331 | bool result; | |
19332 | PyObject * obj0 = 0 ; | |
19333 | PyObject * obj1 = 0 ; | |
19334 | PyObject * obj2 = 0 ; | |
19335 | char *kwnames[] = { | |
19336 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19337 | }; | |
19338 | ||
19339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19341 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19342 | if (arg2 == NULL) { | |
19343 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19344 | } | |
19345 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19346 | if (arg3 == NULL) { | |
19347 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19348 | } | |
19349 | { | |
19350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19351 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19352 | ||
19353 | wxPyEndAllowThreads(__tstate); | |
19354 | if (PyErr_Occurred()) SWIG_fail; | |
19355 | } | |
02a34c4c | 19356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19357 | return resultobj; |
19358 | fail: | |
19359 | return NULL; | |
19360 | } | |
19361 | ||
19362 | ||
19363 | static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19364 | PyObject *resultobj; | |
19365 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19366 | wxDateTime *arg2 = 0 ; | |
19367 | wxDateTime *arg3 = 0 ; | |
19368 | bool result; | |
19369 | PyObject * obj0 = 0 ; | |
19370 | PyObject * obj1 = 0 ; | |
19371 | PyObject * obj2 = 0 ; | |
19372 | char *kwnames[] = { | |
19373 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19374 | }; | |
19375 | ||
19376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19378 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19379 | if (arg2 == NULL) { | |
19380 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19381 | } | |
19382 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19383 | if (arg3 == NULL) { | |
19384 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19385 | } | |
19386 | { | |
19387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19388 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19389 | ||
19390 | wxPyEndAllowThreads(__tstate); | |
19391 | if (PyErr_Occurred()) SWIG_fail; | |
19392 | } | |
02a34c4c | 19393 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19394 | return resultobj; |
19395 | fail: | |
19396 | return NULL; | |
19397 | } | |
19398 | ||
19399 | ||
19400 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19401 | PyObject *resultobj; | |
19402 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19403 | wxDateTime *arg2 = 0 ; | |
19404 | bool result; | |
19405 | PyObject * obj0 = 0 ; | |
19406 | PyObject * obj1 = 0 ; | |
19407 | char *kwnames[] = { | |
19408 | (char *) "self",(char *) "dt", NULL | |
19409 | }; | |
19410 | ||
19411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
19412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19413 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19414 | if (arg2 == NULL) { | |
19415 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19416 | } | |
19417 | { | |
19418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19419 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
19420 | ||
19421 | wxPyEndAllowThreads(__tstate); | |
19422 | if (PyErr_Occurred()) SWIG_fail; | |
19423 | } | |
02a34c4c | 19424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19425 | return resultobj; |
19426 | fail: | |
19427 | return NULL; | |
19428 | } | |
19429 | ||
19430 | ||
19431 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19432 | PyObject *resultobj; | |
19433 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19434 | wxDateTime *arg2 = 0 ; | |
19435 | bool result; | |
19436 | PyObject * obj0 = 0 ; | |
19437 | PyObject * obj1 = 0 ; | |
19438 | char *kwnames[] = { | |
19439 | (char *) "self",(char *) "dt", NULL | |
19440 | }; | |
19441 | ||
19442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
19443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19444 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19445 | if (arg2 == NULL) { | |
19446 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19447 | } | |
19448 | { | |
19449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19450 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
19451 | ||
19452 | wxPyEndAllowThreads(__tstate); | |
19453 | if (PyErr_Occurred()) SWIG_fail; | |
19454 | } | |
02a34c4c | 19455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19456 | return resultobj; |
19457 | fail: | |
19458 | return NULL; | |
19459 | } | |
19460 | ||
19461 | ||
19462 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19463 | PyObject *resultobj; | |
19464 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19465 | wxDateTime *arg2 = 0 ; | |
19466 | wxTimeSpan *arg3 = 0 ; | |
19467 | bool result; | |
19468 | PyObject * obj0 = 0 ; | |
19469 | PyObject * obj1 = 0 ; | |
19470 | PyObject * obj2 = 0 ; | |
19471 | char *kwnames[] = { | |
19472 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
19473 | }; | |
19474 | ||
19475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19477 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19478 | if (arg2 == NULL) { | |
19479 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19480 | } | |
19481 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19482 | if (arg3 == NULL) { | |
19483 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19484 | } | |
19485 | { | |
19486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19487 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
19488 | ||
19489 | wxPyEndAllowThreads(__tstate); | |
19490 | if (PyErr_Occurred()) SWIG_fail; | |
19491 | } | |
02a34c4c | 19492 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19493 | return resultobj; |
19494 | fail: | |
19495 | return NULL; | |
19496 | } | |
19497 | ||
19498 | ||
19499 | static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19500 | PyObject *resultobj; | |
19501 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19502 | wxTimeSpan *arg2 = 0 ; | |
19503 | wxDateTime *result; | |
19504 | PyObject * obj0 = 0 ; | |
19505 | PyObject * obj1 = 0 ; | |
19506 | char *kwnames[] = { | |
19507 | (char *) "self",(char *) "diff", NULL | |
19508 | }; | |
19509 | ||
19510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
19511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19512 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19513 | if (arg2 == NULL) { | |
19514 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19515 | } | |
19516 | { | |
19517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19518 | { | |
19519 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
19520 | result = (wxDateTime *) &_result_ref; | |
19521 | } | |
19522 | ||
19523 | wxPyEndAllowThreads(__tstate); | |
19524 | if (PyErr_Occurred()) SWIG_fail; | |
19525 | } | |
19526 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
19527 | return resultobj; | |
19528 | fail: | |
19529 | return NULL; | |
19530 | } | |
19531 | ||
19532 | ||
19533 | static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19534 | PyObject *resultobj; | |
19535 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19536 | wxDateSpan *arg2 = 0 ; | |
19537 | wxDateTime *result; | |
19538 | PyObject * obj0 = 0 ; | |
19539 | PyObject * obj1 = 0 ; | |
19540 | char *kwnames[] = { | |
19541 | (char *) "self",(char *) "diff", NULL | |
19542 | }; | |
19543 | ||
19544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
19545 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19546 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19547 | if (arg2 == NULL) { | |
19548 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19549 | } | |
19550 | { | |
19551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19552 | { | |
19553 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
19554 | result = (wxDateTime *) &_result_ref; | |
19555 | } | |
19556 | ||
19557 | wxPyEndAllowThreads(__tstate); | |
19558 | if (PyErr_Occurred()) SWIG_fail; | |
19559 | } | |
19560 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
19561 | return resultobj; | |
19562 | fail: | |
19563 | return NULL; | |
19564 | } | |
19565 | ||
19566 | ||
19567 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19568 | PyObject *resultobj; | |
19569 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19570 | wxTimeSpan *arg2 = 0 ; | |
19571 | wxDateTime *result; | |
19572 | PyObject * obj0 = 0 ; | |
19573 | PyObject * obj1 = 0 ; | |
19574 | char *kwnames[] = { | |
19575 | (char *) "self",(char *) "diff", NULL | |
19576 | }; | |
19577 | ||
19578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
19579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19580 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19581 | if (arg2 == NULL) { | |
19582 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19583 | } | |
19584 | { | |
19585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19586 | { | |
19587 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
19588 | result = (wxDateTime *) &_result_ref; | |
19589 | } | |
19590 | ||
19591 | wxPyEndAllowThreads(__tstate); | |
19592 | if (PyErr_Occurred()) SWIG_fail; | |
19593 | } | |
19594 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
19595 | return resultobj; | |
19596 | fail: | |
19597 | return NULL; | |
19598 | } | |
19599 | ||
19600 | ||
19601 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19602 | PyObject *resultobj; | |
19603 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19604 | wxDateSpan *arg2 = 0 ; | |
19605 | wxDateTime *result; | |
19606 | PyObject * obj0 = 0 ; | |
19607 | PyObject * obj1 = 0 ; | |
19608 | char *kwnames[] = { | |
19609 | (char *) "self",(char *) "diff", NULL | |
19610 | }; | |
19611 | ||
19612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
19613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19614 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19615 | if (arg2 == NULL) { | |
19616 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19617 | } | |
19618 | { | |
19619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19620 | { | |
19621 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
19622 | result = (wxDateTime *) &_result_ref; | |
19623 | } | |
19624 | ||
19625 | wxPyEndAllowThreads(__tstate); | |
19626 | if (PyErr_Occurred()) SWIG_fail; | |
19627 | } | |
19628 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
19629 | return resultobj; | |
19630 | fail: | |
19631 | return NULL; | |
19632 | } | |
19633 | ||
19634 | ||
19635 | static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19636 | PyObject *resultobj; | |
19637 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19638 | wxDateTime *arg2 = 0 ; | |
19639 | wxTimeSpan result; | |
19640 | PyObject * obj0 = 0 ; | |
19641 | PyObject * obj1 = 0 ; | |
19642 | char *kwnames[] = { | |
19643 | (char *) "self",(char *) "dt", NULL | |
19644 | }; | |
19645 | ||
19646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
19647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19648 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19649 | if (arg2 == NULL) { | |
19650 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19651 | } | |
19652 | { | |
19653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19654 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
19655 | ||
19656 | wxPyEndAllowThreads(__tstate); | |
19657 | if (PyErr_Occurred()) SWIG_fail; | |
19658 | } | |
19659 | { | |
19660 | wxTimeSpan * resultptr; | |
19661 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19662 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19663 | } | |
19664 | return resultobj; | |
19665 | fail: | |
19666 | return NULL; | |
19667 | } | |
19668 | ||
19669 | ||
19670 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) { | |
19671 | PyObject *resultobj; | |
19672 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19673 | wxTimeSpan *arg2 = 0 ; | |
19674 | wxDateTime *result; | |
19675 | PyObject * obj0 = 0 ; | |
19676 | PyObject * obj1 = 0 ; | |
19677 | ||
19678 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
19679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19680 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19681 | if (arg2 == NULL) { | |
19682 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19683 | } | |
19684 | { | |
19685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19686 | { | |
19687 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
19688 | result = (wxDateTime *) &_result_ref; | |
19689 | } | |
19690 | ||
19691 | wxPyEndAllowThreads(__tstate); | |
19692 | if (PyErr_Occurred()) SWIG_fail; | |
19693 | } | |
19694 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
19695 | return resultobj; | |
19696 | fail: | |
19697 | return NULL; | |
19698 | } | |
19699 | ||
19700 | ||
19701 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) { | |
19702 | PyObject *resultobj; | |
19703 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19704 | wxDateSpan *arg2 = 0 ; | |
19705 | wxDateTime *result; | |
19706 | PyObject * obj0 = 0 ; | |
19707 | PyObject * obj1 = 0 ; | |
19708 | ||
19709 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
19710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19711 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19712 | if (arg2 == NULL) { | |
19713 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19714 | } | |
19715 | { | |
19716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19717 | { | |
19718 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
19719 | result = (wxDateTime *) &_result_ref; | |
19720 | } | |
19721 | ||
19722 | wxPyEndAllowThreads(__tstate); | |
19723 | if (PyErr_Occurred()) SWIG_fail; | |
19724 | } | |
19725 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
19726 | return resultobj; | |
19727 | fail: | |
19728 | return NULL; | |
19729 | } | |
19730 | ||
19731 | ||
19732 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
19733 | int argc; | |
19734 | PyObject *argv[3]; | |
19735 | int ii; | |
19736 | ||
19737 | argc = PyObject_Length(args); | |
19738 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
19739 | argv[ii] = PyTuple_GetItem(args,ii); | |
19740 | } | |
19741 | if (argc == 2) { | |
19742 | int _v; | |
19743 | { | |
19744 | void *ptr; | |
19745 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
19746 | _v = 0; | |
19747 | PyErr_Clear(); | |
19748 | } else { | |
19749 | _v = 1; | |
19750 | } | |
19751 | } | |
19752 | if (_v) { | |
19753 | { | |
19754 | void *ptr; | |
19755 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
19756 | _v = 0; | |
19757 | PyErr_Clear(); | |
19758 | } else { | |
19759 | _v = 1; | |
19760 | } | |
19761 | } | |
19762 | if (_v) { | |
19763 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
19764 | } | |
19765 | } | |
19766 | } | |
19767 | if (argc == 2) { | |
19768 | int _v; | |
19769 | { | |
19770 | void *ptr; | |
19771 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
19772 | _v = 0; | |
19773 | PyErr_Clear(); | |
19774 | } else { | |
19775 | _v = 1; | |
19776 | } | |
19777 | } | |
19778 | if (_v) { | |
19779 | { | |
19780 | void *ptr; | |
19781 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
19782 | _v = 0; | |
19783 | PyErr_Clear(); | |
19784 | } else { | |
19785 | _v = 1; | |
19786 | } | |
19787 | } | |
19788 | if (_v) { | |
19789 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
19790 | } | |
19791 | } | |
19792 | } | |
19793 | ||
19794 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
19795 | return NULL; | |
19796 | } | |
19797 | ||
19798 | ||
19799 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) { | |
19800 | PyObject *resultobj; | |
19801 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19802 | wxTimeSpan *arg2 = 0 ; | |
19803 | wxDateTime *result; | |
19804 | PyObject * obj0 = 0 ; | |
19805 | PyObject * obj1 = 0 ; | |
19806 | ||
19807 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
19808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19809 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19810 | if (arg2 == NULL) { | |
19811 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19812 | } | |
19813 | { | |
19814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19815 | { | |
19816 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
19817 | result = (wxDateTime *) &_result_ref; | |
19818 | } | |
19819 | ||
19820 | wxPyEndAllowThreads(__tstate); | |
19821 | if (PyErr_Occurred()) SWIG_fail; | |
19822 | } | |
19823 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
19824 | return resultobj; | |
19825 | fail: | |
19826 | return NULL; | |
19827 | } | |
19828 | ||
19829 | ||
19830 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) { | |
19831 | PyObject *resultobj; | |
19832 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19833 | wxDateSpan *arg2 = 0 ; | |
19834 | wxDateTime *result; | |
19835 | PyObject * obj0 = 0 ; | |
19836 | PyObject * obj1 = 0 ; | |
19837 | ||
19838 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
19839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19840 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19841 | if (arg2 == NULL) { | |
19842 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19843 | } | |
19844 | { | |
19845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19846 | { | |
19847 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
19848 | result = (wxDateTime *) &_result_ref; | |
19849 | } | |
19850 | ||
19851 | wxPyEndAllowThreads(__tstate); | |
19852 | if (PyErr_Occurred()) SWIG_fail; | |
19853 | } | |
19854 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
19855 | return resultobj; | |
19856 | fail: | |
19857 | return NULL; | |
19858 | } | |
19859 | ||
19860 | ||
19861 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
19862 | int argc; | |
19863 | PyObject *argv[3]; | |
19864 | int ii; | |
19865 | ||
19866 | argc = PyObject_Length(args); | |
19867 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
19868 | argv[ii] = PyTuple_GetItem(args,ii); | |
19869 | } | |
19870 | if (argc == 2) { | |
19871 | int _v; | |
19872 | { | |
19873 | void *ptr; | |
19874 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
19875 | _v = 0; | |
19876 | PyErr_Clear(); | |
19877 | } else { | |
19878 | _v = 1; | |
19879 | } | |
19880 | } | |
19881 | if (_v) { | |
19882 | { | |
19883 | void *ptr; | |
19884 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
19885 | _v = 0; | |
19886 | PyErr_Clear(); | |
19887 | } else { | |
19888 | _v = 1; | |
19889 | } | |
19890 | } | |
19891 | if (_v) { | |
19892 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
19893 | } | |
19894 | } | |
19895 | } | |
19896 | if (argc == 2) { | |
19897 | int _v; | |
19898 | { | |
19899 | void *ptr; | |
19900 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
19901 | _v = 0; | |
19902 | PyErr_Clear(); | |
19903 | } else { | |
19904 | _v = 1; | |
19905 | } | |
19906 | } | |
19907 | if (_v) { | |
19908 | { | |
19909 | void *ptr; | |
19910 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
19911 | _v = 0; | |
19912 | PyErr_Clear(); | |
19913 | } else { | |
19914 | _v = 1; | |
19915 | } | |
19916 | } | |
19917 | if (_v) { | |
19918 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
19919 | } | |
19920 | } | |
19921 | } | |
19922 | ||
19923 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
19924 | return NULL; | |
19925 | } | |
19926 | ||
19927 | ||
19928 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) { | |
19929 | PyObject *resultobj; | |
19930 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19931 | wxTimeSpan *arg2 = 0 ; | |
19932 | wxDateTime result; | |
19933 | PyObject * obj0 = 0 ; | |
19934 | PyObject * obj1 = 0 ; | |
19935 | ||
19936 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
19937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19938 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19939 | if (arg2 == NULL) { | |
19940 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19941 | } | |
19942 | { | |
19943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19944 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
19945 | ||
19946 | wxPyEndAllowThreads(__tstate); | |
19947 | if (PyErr_Occurred()) SWIG_fail; | |
19948 | } | |
19949 | { | |
19950 | wxDateTime * resultptr; | |
19951 | resultptr = new wxDateTime((wxDateTime &) result); | |
19952 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
19953 | } | |
19954 | return resultobj; | |
19955 | fail: | |
19956 | return NULL; | |
19957 | } | |
19958 | ||
19959 | ||
19960 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) { | |
19961 | PyObject *resultobj; | |
19962 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19963 | wxDateSpan *arg2 = 0 ; | |
19964 | wxDateTime result; | |
19965 | PyObject * obj0 = 0 ; | |
19966 | PyObject * obj1 = 0 ; | |
19967 | ||
19968 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
19969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19970 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19971 | if (arg2 == NULL) { | |
19972 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19973 | } | |
19974 | { | |
19975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19976 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
19977 | ||
19978 | wxPyEndAllowThreads(__tstate); | |
19979 | if (PyErr_Occurred()) SWIG_fail; | |
19980 | } | |
19981 | { | |
19982 | wxDateTime * resultptr; | |
19983 | resultptr = new wxDateTime((wxDateTime &) result); | |
19984 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
19985 | } | |
19986 | return resultobj; | |
19987 | fail: | |
19988 | return NULL; | |
19989 | } | |
19990 | ||
19991 | ||
19992 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
19993 | int argc; | |
19994 | PyObject *argv[3]; | |
19995 | int ii; | |
19996 | ||
19997 | argc = PyObject_Length(args); | |
19998 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
19999 | argv[ii] = PyTuple_GetItem(args,ii); | |
20000 | } | |
20001 | if (argc == 2) { | |
20002 | int _v; | |
20003 | { | |
20004 | void *ptr; | |
20005 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20006 | _v = 0; | |
20007 | PyErr_Clear(); | |
20008 | } else { | |
20009 | _v = 1; | |
20010 | } | |
20011 | } | |
20012 | if (_v) { | |
20013 | { | |
20014 | void *ptr; | |
20015 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20016 | _v = 0; | |
20017 | PyErr_Clear(); | |
20018 | } else { | |
20019 | _v = 1; | |
20020 | } | |
20021 | } | |
20022 | if (_v) { | |
20023 | return _wrap_DateTime___add____SWIG_0(self,args); | |
20024 | } | |
20025 | } | |
20026 | } | |
20027 | if (argc == 2) { | |
20028 | int _v; | |
20029 | { | |
20030 | void *ptr; | |
20031 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20032 | _v = 0; | |
20033 | PyErr_Clear(); | |
20034 | } else { | |
20035 | _v = 1; | |
20036 | } | |
20037 | } | |
20038 | if (_v) { | |
20039 | { | |
20040 | void *ptr; | |
20041 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20042 | _v = 0; | |
20043 | PyErr_Clear(); | |
20044 | } else { | |
20045 | _v = 1; | |
20046 | } | |
20047 | } | |
20048 | if (_v) { | |
20049 | return _wrap_DateTime___add____SWIG_1(self,args); | |
20050 | } | |
20051 | } | |
20052 | } | |
20053 | ||
20054 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
20055 | return NULL; | |
20056 | } | |
20057 | ||
20058 | ||
20059 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) { | |
20060 | PyObject *resultobj; | |
20061 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20062 | wxDateTime *arg2 = 0 ; | |
20063 | wxTimeSpan result; | |
20064 | PyObject * obj0 = 0 ; | |
20065 | PyObject * obj1 = 0 ; | |
20066 | ||
20067 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20069 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20070 | if (arg2 == NULL) { | |
20071 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20072 | } | |
20073 | { | |
20074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20075 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
20076 | ||
20077 | wxPyEndAllowThreads(__tstate); | |
20078 | if (PyErr_Occurred()) SWIG_fail; | |
20079 | } | |
20080 | { | |
20081 | wxTimeSpan * resultptr; | |
20082 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20083 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20084 | } | |
20085 | return resultobj; | |
20086 | fail: | |
20087 | return NULL; | |
20088 | } | |
20089 | ||
20090 | ||
20091 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) { | |
20092 | PyObject *resultobj; | |
20093 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20094 | wxTimeSpan *arg2 = 0 ; | |
20095 | wxDateTime result; | |
20096 | PyObject * obj0 = 0 ; | |
20097 | PyObject * obj1 = 0 ; | |
20098 | ||
20099 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20101 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20102 | if (arg2 == NULL) { | |
20103 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20104 | } | |
20105 | { | |
20106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20107 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
20108 | ||
20109 | wxPyEndAllowThreads(__tstate); | |
20110 | if (PyErr_Occurred()) SWIG_fail; | |
20111 | } | |
20112 | { | |
20113 | wxDateTime * resultptr; | |
20114 | resultptr = new wxDateTime((wxDateTime &) result); | |
20115 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
20116 | } | |
20117 | return resultobj; | |
20118 | fail: | |
20119 | return NULL; | |
20120 | } | |
20121 | ||
20122 | ||
20123 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) { | |
20124 | PyObject *resultobj; | |
20125 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20126 | wxDateSpan *arg2 = 0 ; | |
20127 | wxDateTime result; | |
20128 | PyObject * obj0 = 0 ; | |
20129 | PyObject * obj1 = 0 ; | |
20130 | ||
20131 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20133 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20134 | if (arg2 == NULL) { | |
20135 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20136 | } | |
20137 | { | |
20138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20139 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
20140 | ||
20141 | wxPyEndAllowThreads(__tstate); | |
20142 | if (PyErr_Occurred()) SWIG_fail; | |
20143 | } | |
20144 | { | |
20145 | wxDateTime * resultptr; | |
20146 | resultptr = new wxDateTime((wxDateTime &) result); | |
20147 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
20148 | } | |
20149 | return resultobj; | |
20150 | fail: | |
20151 | return NULL; | |
20152 | } | |
20153 | ||
20154 | ||
20155 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
20156 | int argc; | |
20157 | PyObject *argv[3]; | |
20158 | int ii; | |
20159 | ||
20160 | argc = PyObject_Length(args); | |
20161 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20162 | argv[ii] = PyTuple_GetItem(args,ii); | |
20163 | } | |
20164 | if (argc == 2) { | |
20165 | int _v; | |
20166 | { | |
20167 | void *ptr; | |
20168 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20169 | _v = 0; | |
20170 | PyErr_Clear(); | |
20171 | } else { | |
20172 | _v = 1; | |
20173 | } | |
20174 | } | |
20175 | if (_v) { | |
20176 | { | |
20177 | void *ptr; | |
20178 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20179 | _v = 0; | |
20180 | PyErr_Clear(); | |
20181 | } else { | |
20182 | _v = 1; | |
20183 | } | |
20184 | } | |
20185 | if (_v) { | |
20186 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
20187 | } | |
20188 | } | |
20189 | } | |
20190 | if (argc == 2) { | |
20191 | int _v; | |
20192 | { | |
20193 | void *ptr; | |
20194 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20195 | _v = 0; | |
20196 | PyErr_Clear(); | |
20197 | } else { | |
20198 | _v = 1; | |
20199 | } | |
20200 | } | |
20201 | if (_v) { | |
20202 | { | |
20203 | void *ptr; | |
20204 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20205 | _v = 0; | |
20206 | PyErr_Clear(); | |
20207 | } else { | |
20208 | _v = 1; | |
20209 | } | |
20210 | } | |
20211 | if (_v) { | |
20212 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
20213 | } | |
20214 | } | |
20215 | } | |
20216 | if (argc == 2) { | |
20217 | int _v; | |
20218 | { | |
20219 | void *ptr; | |
20220 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20221 | _v = 0; | |
20222 | PyErr_Clear(); | |
20223 | } else { | |
20224 | _v = 1; | |
20225 | } | |
20226 | } | |
20227 | if (_v) { | |
20228 | { | |
20229 | void *ptr; | |
20230 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20231 | _v = 0; | |
20232 | PyErr_Clear(); | |
20233 | } else { | |
20234 | _v = 1; | |
20235 | } | |
20236 | } | |
20237 | if (_v) { | |
20238 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
20239 | } | |
20240 | } | |
20241 | } | |
20242 | ||
20243 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
20244 | return NULL; | |
20245 | } | |
20246 | ||
20247 | ||
20248 | static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) { | |
20249 | PyObject *resultobj; | |
20250 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20251 | wxDateTime *arg2 = 0 ; | |
20252 | bool result; | |
20253 | PyObject * obj0 = 0 ; | |
20254 | PyObject * obj1 = 0 ; | |
20255 | ||
20256 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
20257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20258 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20259 | if (arg2 == NULL) { | |
20260 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20261 | } | |
20262 | { | |
20263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20264 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const &)*arg2); | |
20265 | ||
20266 | wxPyEndAllowThreads(__tstate); | |
20267 | if (PyErr_Occurred()) SWIG_fail; | |
20268 | } | |
02a34c4c | 20269 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20270 | return resultobj; |
20271 | fail: | |
20272 | return NULL; | |
20273 | } | |
20274 | ||
20275 | ||
20276 | static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) { | |
20277 | PyObject *resultobj; | |
20278 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20279 | wxDateTime *arg2 = 0 ; | |
20280 | bool result; | |
20281 | PyObject * obj0 = 0 ; | |
20282 | PyObject * obj1 = 0 ; | |
20283 | ||
20284 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
20285 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20286 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20287 | if (arg2 == NULL) { | |
20288 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20289 | } | |
20290 | { | |
20291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20292 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const &)*arg2); | |
20293 | ||
20294 | wxPyEndAllowThreads(__tstate); | |
20295 | if (PyErr_Occurred()) SWIG_fail; | |
20296 | } | |
02a34c4c | 20297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20298 | return resultobj; |
20299 | fail: | |
20300 | return NULL; | |
20301 | } | |
20302 | ||
20303 | ||
20304 | static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) { | |
20305 | PyObject *resultobj; | |
20306 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20307 | wxDateTime *arg2 = 0 ; | |
20308 | bool result; | |
20309 | PyObject * obj0 = 0 ; | |
20310 | PyObject * obj1 = 0 ; | |
20311 | ||
20312 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
20313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20314 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20315 | if (arg2 == NULL) { | |
20316 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20317 | } | |
20318 | { | |
20319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20320 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const &)*arg2); | |
20321 | ||
20322 | wxPyEndAllowThreads(__tstate); | |
20323 | if (PyErr_Occurred()) SWIG_fail; | |
20324 | } | |
02a34c4c | 20325 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20326 | return resultobj; |
20327 | fail: | |
20328 | return NULL; | |
20329 | } | |
20330 | ||
20331 | ||
20332 | static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) { | |
20333 | PyObject *resultobj; | |
20334 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20335 | wxDateTime *arg2 = 0 ; | |
20336 | bool result; | |
20337 | PyObject * obj0 = 0 ; | |
20338 | PyObject * obj1 = 0 ; | |
20339 | ||
20340 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
20341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20342 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20343 | if (arg2 == NULL) { | |
20344 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20345 | } | |
20346 | { | |
20347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20348 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const &)*arg2); | |
20349 | ||
20350 | wxPyEndAllowThreads(__tstate); | |
20351 | if (PyErr_Occurred()) SWIG_fail; | |
20352 | } | |
02a34c4c | 20353 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20354 | return resultobj; |
20355 | fail: | |
20356 | return NULL; | |
20357 | } | |
20358 | ||
20359 | ||
20360 | static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) { | |
20361 | PyObject *resultobj; | |
20362 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20363 | wxDateTime *arg2 = 0 ; | |
20364 | bool result; | |
20365 | PyObject * obj0 = 0 ; | |
20366 | PyObject * obj1 = 0 ; | |
20367 | ||
20368 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
20369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20370 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20371 | if (arg2 == NULL) { | |
20372 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20373 | } | |
20374 | { | |
20375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20376 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const &)*arg2); | |
20377 | ||
20378 | wxPyEndAllowThreads(__tstate); | |
20379 | if (PyErr_Occurred()) SWIG_fail; | |
20380 | } | |
02a34c4c | 20381 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20382 | return resultobj; |
20383 | fail: | |
20384 | return NULL; | |
20385 | } | |
20386 | ||
20387 | ||
20388 | static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) { | |
20389 | PyObject *resultobj; | |
20390 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20391 | wxDateTime *arg2 = 0 ; | |
20392 | bool result; | |
20393 | PyObject * obj0 = 0 ; | |
20394 | PyObject * obj1 = 0 ; | |
20395 | ||
20396 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
20397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20398 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20399 | if (arg2 == NULL) { | |
20400 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20401 | } | |
20402 | { | |
20403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20404 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const &)*arg2); | |
20405 | ||
20406 | wxPyEndAllowThreads(__tstate); | |
20407 | if (PyErr_Occurred()) SWIG_fail; | |
20408 | } | |
02a34c4c | 20409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20410 | return resultobj; |
20411 | fail: | |
20412 | return NULL; | |
20413 | } | |
20414 | ||
20415 | ||
20416 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20417 | PyObject *resultobj; | |
20418 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20419 | wxString *arg2 = 0 ; | |
20420 | int result; | |
423f194a | 20421 | bool temp2 = False ; |
d14a1e28 RD |
20422 | PyObject * obj0 = 0 ; |
20423 | PyObject * obj1 = 0 ; | |
20424 | char *kwnames[] = { | |
20425 | (char *) "self",(char *) "date", NULL | |
20426 | }; | |
20427 | ||
20428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
20429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20430 | { | |
20431 | arg2 = wxString_in_helper(obj1); | |
20432 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 20433 | temp2 = True; |
d14a1e28 RD |
20434 | } |
20435 | { | |
20436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20437 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
20438 | ||
20439 | wxPyEndAllowThreads(__tstate); | |
20440 | if (PyErr_Occurred()) SWIG_fail; | |
20441 | } | |
8edf1c75 | 20442 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20443 | { |
20444 | if (temp2) | |
20445 | delete arg2; | |
20446 | } | |
20447 | return resultobj; | |
20448 | fail: | |
20449 | { | |
20450 | if (temp2) | |
20451 | delete arg2; | |
20452 | } | |
20453 | return NULL; | |
20454 | } | |
20455 | ||
20456 | ||
20457 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20458 | PyObject *resultobj; | |
20459 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20460 | wxString *arg2 = 0 ; | |
20461 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
20462 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
20463 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
20464 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
20465 | int result; | |
423f194a RD |
20466 | bool temp2 = False ; |
20467 | bool temp3 = False ; | |
d14a1e28 RD |
20468 | PyObject * obj0 = 0 ; |
20469 | PyObject * obj1 = 0 ; | |
20470 | PyObject * obj2 = 0 ; | |
20471 | PyObject * obj3 = 0 ; | |
20472 | char *kwnames[] = { | |
20473 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
20474 | }; | |
20475 | ||
20476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
20477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20478 | { | |
20479 | arg2 = wxString_in_helper(obj1); | |
20480 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 20481 | temp2 = True; |
d14a1e28 RD |
20482 | } |
20483 | if (obj2) { | |
20484 | { | |
20485 | arg3 = wxString_in_helper(obj2); | |
20486 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 20487 | temp3 = True; |
d14a1e28 RD |
20488 | } |
20489 | } | |
20490 | if (obj3) { | |
20491 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20492 | if (arg4 == NULL) { | |
20493 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20494 | } | |
20495 | } | |
20496 | { | |
20497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20498 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
20499 | ||
20500 | wxPyEndAllowThreads(__tstate); | |
20501 | if (PyErr_Occurred()) SWIG_fail; | |
20502 | } | |
8edf1c75 | 20503 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20504 | { |
20505 | if (temp2) | |
20506 | delete arg2; | |
20507 | } | |
20508 | { | |
20509 | if (temp3) | |
20510 | delete arg3; | |
20511 | } | |
20512 | return resultobj; | |
20513 | fail: | |
20514 | { | |
20515 | if (temp2) | |
20516 | delete arg2; | |
20517 | } | |
20518 | { | |
20519 | if (temp3) | |
20520 | delete arg3; | |
20521 | } | |
20522 | return NULL; | |
20523 | } | |
20524 | ||
20525 | ||
20526 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20527 | PyObject *resultobj; | |
20528 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20529 | wxString *arg2 = 0 ; | |
20530 | int result; | |
423f194a | 20531 | bool temp2 = False ; |
d14a1e28 RD |
20532 | PyObject * obj0 = 0 ; |
20533 | PyObject * obj1 = 0 ; | |
20534 | char *kwnames[] = { | |
20535 | (char *) "self",(char *) "datetime", NULL | |
20536 | }; | |
20537 | ||
20538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
20539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20540 | { | |
20541 | arg2 = wxString_in_helper(obj1); | |
20542 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 20543 | temp2 = True; |
d14a1e28 RD |
20544 | } |
20545 | { | |
20546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20547 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
20548 | ||
20549 | wxPyEndAllowThreads(__tstate); | |
20550 | if (PyErr_Occurred()) SWIG_fail; | |
20551 | } | |
8edf1c75 | 20552 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20553 | { |
20554 | if (temp2) | |
20555 | delete arg2; | |
20556 | } | |
20557 | return resultobj; | |
20558 | fail: | |
20559 | { | |
20560 | if (temp2) | |
20561 | delete arg2; | |
20562 | } | |
20563 | return NULL; | |
20564 | } | |
20565 | ||
20566 | ||
20567 | static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20568 | PyObject *resultobj; | |
20569 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20570 | wxString *arg2 = 0 ; | |
20571 | int result; | |
423f194a | 20572 | bool temp2 = False ; |
d14a1e28 RD |
20573 | PyObject * obj0 = 0 ; |
20574 | PyObject * obj1 = 0 ; | |
20575 | char *kwnames[] = { | |
20576 | (char *) "self",(char *) "date", NULL | |
20577 | }; | |
20578 | ||
20579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
20580 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20581 | { | |
20582 | arg2 = wxString_in_helper(obj1); | |
20583 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 20584 | temp2 = True; |
d14a1e28 RD |
20585 | } |
20586 | { | |
20587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20588 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
20589 | ||
20590 | wxPyEndAllowThreads(__tstate); | |
20591 | if (PyErr_Occurred()) SWIG_fail; | |
20592 | } | |
8edf1c75 | 20593 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20594 | { |
20595 | if (temp2) | |
20596 | delete arg2; | |
20597 | } | |
20598 | return resultobj; | |
20599 | fail: | |
20600 | { | |
20601 | if (temp2) | |
20602 | delete arg2; | |
20603 | } | |
20604 | return NULL; | |
20605 | } | |
20606 | ||
20607 | ||
20608 | static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20609 | PyObject *resultobj; | |
20610 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20611 | wxString *arg2 = 0 ; | |
20612 | int result; | |
423f194a | 20613 | bool temp2 = False ; |
d14a1e28 RD |
20614 | PyObject * obj0 = 0 ; |
20615 | PyObject * obj1 = 0 ; | |
20616 | char *kwnames[] = { | |
20617 | (char *) "self",(char *) "time", NULL | |
20618 | }; | |
20619 | ||
20620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
20621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20622 | { | |
20623 | arg2 = wxString_in_helper(obj1); | |
20624 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 20625 | temp2 = True; |
d14a1e28 RD |
20626 | } |
20627 | { | |
20628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20629 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
20630 | ||
20631 | wxPyEndAllowThreads(__tstate); | |
20632 | if (PyErr_Occurred()) SWIG_fail; | |
20633 | } | |
8edf1c75 | 20634 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20635 | { |
20636 | if (temp2) | |
20637 | delete arg2; | |
20638 | } | |
20639 | return resultobj; | |
20640 | fail: | |
20641 | { | |
20642 | if (temp2) | |
20643 | delete arg2; | |
20644 | } | |
20645 | return NULL; | |
20646 | } | |
20647 | ||
20648 | ||
20649 | static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20650 | PyObject *resultobj; | |
20651 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20652 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
20653 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
20654 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
20655 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
20656 | wxString result; | |
423f194a | 20657 | bool temp2 = False ; |
44127b65 | 20658 | bool temp3 = False ; |
d14a1e28 RD |
20659 | PyObject * obj0 = 0 ; |
20660 | PyObject * obj1 = 0 ; | |
20661 | PyObject * obj2 = 0 ; | |
20662 | char *kwnames[] = { | |
20663 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
20664 | }; | |
20665 | ||
20666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20668 | if (obj1) { | |
20669 | { | |
20670 | arg2 = wxString_in_helper(obj1); | |
20671 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 20672 | temp2 = True; |
d14a1e28 RD |
20673 | } |
20674 | } | |
20675 | if (obj2) { | |
20676 | { | |
20677 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
44127b65 | 20678 | temp3 = True; |
d14a1e28 RD |
20679 | } |
20680 | } | |
20681 | { | |
20682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20683 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
20684 | ||
20685 | wxPyEndAllowThreads(__tstate); | |
20686 | if (PyErr_Occurred()) SWIG_fail; | |
20687 | } | |
20688 | { | |
20689 | #if wxUSE_UNICODE | |
20690 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20691 | #else | |
20692 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20693 | #endif | |
20694 | } | |
20695 | { | |
20696 | if (temp2) | |
20697 | delete arg2; | |
20698 | } | |
20699 | { | |
44127b65 | 20700 | if (temp3) delete arg3; |
d14a1e28 RD |
20701 | } |
20702 | return resultobj; | |
20703 | fail: | |
20704 | { | |
20705 | if (temp2) | |
20706 | delete arg2; | |
20707 | } | |
20708 | { | |
44127b65 | 20709 | if (temp3) delete arg3; |
d14a1e28 RD |
20710 | } |
20711 | return NULL; | |
20712 | } | |
20713 | ||
20714 | ||
20715 | static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20716 | PyObject *resultobj; | |
20717 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20718 | wxString result; | |
20719 | PyObject * obj0 = 0 ; | |
20720 | char *kwnames[] = { | |
20721 | (char *) "self", NULL | |
20722 | }; | |
20723 | ||
20724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
20725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20726 | { | |
20727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20728 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
20729 | ||
20730 | wxPyEndAllowThreads(__tstate); | |
20731 | if (PyErr_Occurred()) SWIG_fail; | |
20732 | } | |
20733 | { | |
20734 | #if wxUSE_UNICODE | |
20735 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20736 | #else | |
20737 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20738 | #endif | |
20739 | } | |
20740 | return resultobj; | |
20741 | fail: | |
20742 | return NULL; | |
20743 | } | |
20744 | ||
20745 | ||
20746 | static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20747 | PyObject *resultobj; | |
20748 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20749 | wxString result; | |
20750 | PyObject * obj0 = 0 ; | |
20751 | char *kwnames[] = { | |
20752 | (char *) "self", NULL | |
20753 | }; | |
20754 | ||
20755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
20756 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20757 | { | |
20758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20759 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
20760 | ||
20761 | wxPyEndAllowThreads(__tstate); | |
20762 | if (PyErr_Occurred()) SWIG_fail; | |
20763 | } | |
20764 | { | |
20765 | #if wxUSE_UNICODE | |
20766 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20767 | #else | |
20768 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20769 | #endif | |
20770 | } | |
20771 | return resultobj; | |
20772 | fail: | |
20773 | return NULL; | |
20774 | } | |
20775 | ||
20776 | ||
20777 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20778 | PyObject *resultobj; | |
20779 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20780 | wxString result; | |
20781 | PyObject * obj0 = 0 ; | |
20782 | char *kwnames[] = { | |
20783 | (char *) "self", NULL | |
20784 | }; | |
20785 | ||
20786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
20787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20788 | { | |
20789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20790 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
20791 | ||
20792 | wxPyEndAllowThreads(__tstate); | |
20793 | if (PyErr_Occurred()) SWIG_fail; | |
20794 | } | |
20795 | { | |
20796 | #if wxUSE_UNICODE | |
20797 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20798 | #else | |
20799 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20800 | #endif | |
20801 | } | |
20802 | return resultobj; | |
20803 | fail: | |
20804 | return NULL; | |
20805 | } | |
20806 | ||
20807 | ||
20808 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20809 | PyObject *resultobj; | |
20810 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20811 | wxString result; | |
20812 | PyObject * obj0 = 0 ; | |
20813 | char *kwnames[] = { | |
20814 | (char *) "self", NULL | |
20815 | }; | |
20816 | ||
20817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
20818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20819 | { | |
20820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20821 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
20822 | ||
20823 | wxPyEndAllowThreads(__tstate); | |
20824 | if (PyErr_Occurred()) SWIG_fail; | |
20825 | } | |
20826 | { | |
20827 | #if wxUSE_UNICODE | |
20828 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20829 | #else | |
20830 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20831 | #endif | |
20832 | } | |
20833 | return resultobj; | |
20834 | fail: | |
20835 | return NULL; | |
20836 | } | |
20837 | ||
20838 | ||
20839 | static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) { | |
20840 | PyObject *obj; | |
20841 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20842 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
20843 | Py_INCREF(obj); | |
20844 | return Py_BuildValue((char *)""); | |
20845 | } | |
20846 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20847 | PyObject *resultobj; | |
20848 | long arg1 ; | |
20849 | wxTimeSpan result; | |
8edf1c75 | 20850 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20851 | char *kwnames[] = { |
20852 | (char *) "sec", NULL | |
20853 | }; | |
20854 | ||
8edf1c75 RD |
20855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; |
20856 | { | |
20857 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
20858 | if (PyErr_Occurred()) SWIG_fail; | |
20859 | } | |
d14a1e28 RD |
20860 | { |
20861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20862 | result = wxTimeSpan::Seconds(arg1); | |
20863 | ||
20864 | wxPyEndAllowThreads(__tstate); | |
20865 | if (PyErr_Occurred()) SWIG_fail; | |
20866 | } | |
20867 | { | |
20868 | wxTimeSpan * resultptr; | |
20869 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20870 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20871 | } | |
20872 | return resultobj; | |
20873 | fail: | |
20874 | return NULL; | |
20875 | } | |
20876 | ||
20877 | ||
20878 | static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20879 | PyObject *resultobj; | |
20880 | wxTimeSpan result; | |
20881 | char *kwnames[] = { | |
20882 | NULL | |
20883 | }; | |
20884 | ||
20885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
20886 | { | |
20887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20888 | result = wxTimeSpan::Second(); | |
20889 | ||
20890 | wxPyEndAllowThreads(__tstate); | |
20891 | if (PyErr_Occurred()) SWIG_fail; | |
20892 | } | |
20893 | { | |
20894 | wxTimeSpan * resultptr; | |
20895 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20896 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20897 | } | |
20898 | return resultobj; | |
20899 | fail: | |
20900 | return NULL; | |
20901 | } | |
20902 | ||
20903 | ||
20904 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20905 | PyObject *resultobj; | |
20906 | long arg1 ; | |
20907 | wxTimeSpan result; | |
8edf1c75 | 20908 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20909 | char *kwnames[] = { |
20910 | (char *) "min", NULL | |
20911 | }; | |
20912 | ||
8edf1c75 RD |
20913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; |
20914 | { | |
20915 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
20916 | if (PyErr_Occurred()) SWIG_fail; | |
20917 | } | |
d14a1e28 RD |
20918 | { |
20919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20920 | result = wxTimeSpan::Minutes(arg1); | |
20921 | ||
20922 | wxPyEndAllowThreads(__tstate); | |
20923 | if (PyErr_Occurred()) SWIG_fail; | |
20924 | } | |
20925 | { | |
20926 | wxTimeSpan * resultptr; | |
20927 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20928 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20929 | } | |
20930 | return resultobj; | |
20931 | fail: | |
20932 | return NULL; | |
20933 | } | |
20934 | ||
20935 | ||
20936 | static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20937 | PyObject *resultobj; | |
20938 | wxTimeSpan result; | |
20939 | char *kwnames[] = { | |
20940 | NULL | |
20941 | }; | |
20942 | ||
20943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
20944 | { | |
20945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20946 | result = wxTimeSpan::Minute(); | |
20947 | ||
20948 | wxPyEndAllowThreads(__tstate); | |
20949 | if (PyErr_Occurred()) SWIG_fail; | |
20950 | } | |
20951 | { | |
20952 | wxTimeSpan * resultptr; | |
20953 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20954 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20955 | } | |
20956 | return resultobj; | |
20957 | fail: | |
20958 | return NULL; | |
20959 | } | |
20960 | ||
20961 | ||
20962 | static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20963 | PyObject *resultobj; | |
20964 | long arg1 ; | |
20965 | wxTimeSpan result; | |
8edf1c75 | 20966 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20967 | char *kwnames[] = { |
20968 | (char *) "hours", NULL | |
20969 | }; | |
20970 | ||
8edf1c75 RD |
20971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; |
20972 | { | |
20973 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
20974 | if (PyErr_Occurred()) SWIG_fail; | |
20975 | } | |
d14a1e28 RD |
20976 | { |
20977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20978 | result = wxTimeSpan::Hours(arg1); | |
20979 | ||
20980 | wxPyEndAllowThreads(__tstate); | |
20981 | if (PyErr_Occurred()) SWIG_fail; | |
20982 | } | |
20983 | { | |
20984 | wxTimeSpan * resultptr; | |
20985 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20986 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
20987 | } | |
20988 | return resultobj; | |
20989 | fail: | |
20990 | return NULL; | |
20991 | } | |
20992 | ||
20993 | ||
20994 | static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20995 | PyObject *resultobj; | |
20996 | wxTimeSpan result; | |
20997 | char *kwnames[] = { | |
20998 | NULL | |
20999 | }; | |
21000 | ||
21001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
21002 | { | |
21003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21004 | result = wxTimeSpan::Hour(); | |
21005 | ||
21006 | wxPyEndAllowThreads(__tstate); | |
21007 | if (PyErr_Occurred()) SWIG_fail; | |
21008 | } | |
21009 | { | |
21010 | wxTimeSpan * resultptr; | |
21011 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21012 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21013 | } | |
21014 | return resultobj; | |
21015 | fail: | |
21016 | return NULL; | |
21017 | } | |
21018 | ||
21019 | ||
21020 | static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21021 | PyObject *resultobj; | |
21022 | long arg1 ; | |
21023 | wxTimeSpan result; | |
8edf1c75 | 21024 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21025 | char *kwnames[] = { |
21026 | (char *) "days", NULL | |
21027 | }; | |
21028 | ||
8edf1c75 RD |
21029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; |
21030 | { | |
21031 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
21032 | if (PyErr_Occurred()) SWIG_fail; | |
21033 | } | |
d14a1e28 RD |
21034 | { |
21035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21036 | result = wxTimeSpan::Days(arg1); | |
21037 | ||
21038 | wxPyEndAllowThreads(__tstate); | |
21039 | if (PyErr_Occurred()) SWIG_fail; | |
21040 | } | |
21041 | { | |
21042 | wxTimeSpan * resultptr; | |
21043 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21044 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21045 | } | |
21046 | return resultobj; | |
21047 | fail: | |
21048 | return NULL; | |
21049 | } | |
21050 | ||
21051 | ||
21052 | static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21053 | PyObject *resultobj; | |
21054 | wxTimeSpan result; | |
21055 | char *kwnames[] = { | |
21056 | NULL | |
21057 | }; | |
21058 | ||
21059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
21060 | { | |
21061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21062 | result = wxTimeSpan::Day(); | |
21063 | ||
21064 | wxPyEndAllowThreads(__tstate); | |
21065 | if (PyErr_Occurred()) SWIG_fail; | |
21066 | } | |
21067 | { | |
21068 | wxTimeSpan * resultptr; | |
21069 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21070 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21071 | } | |
21072 | return resultobj; | |
21073 | fail: | |
21074 | return NULL; | |
21075 | } | |
21076 | ||
21077 | ||
21078 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21079 | PyObject *resultobj; | |
21080 | long arg1 ; | |
21081 | wxTimeSpan result; | |
8edf1c75 | 21082 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21083 | char *kwnames[] = { |
21084 | (char *) "days", NULL | |
21085 | }; | |
21086 | ||
8edf1c75 RD |
21087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; |
21088 | { | |
21089 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
21090 | if (PyErr_Occurred()) SWIG_fail; | |
21091 | } | |
d14a1e28 RD |
21092 | { |
21093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21094 | result = wxTimeSpan::Weeks(arg1); | |
21095 | ||
21096 | wxPyEndAllowThreads(__tstate); | |
21097 | if (PyErr_Occurred()) SWIG_fail; | |
21098 | } | |
21099 | { | |
21100 | wxTimeSpan * resultptr; | |
21101 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21102 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21103 | } | |
21104 | return resultobj; | |
21105 | fail: | |
21106 | return NULL; | |
21107 | } | |
21108 | ||
21109 | ||
21110 | static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21111 | PyObject *resultobj; | |
21112 | wxTimeSpan result; | |
21113 | char *kwnames[] = { | |
21114 | NULL | |
21115 | }; | |
21116 | ||
21117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
21118 | { | |
21119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21120 | result = wxTimeSpan::Week(); | |
21121 | ||
21122 | wxPyEndAllowThreads(__tstate); | |
21123 | if (PyErr_Occurred()) SWIG_fail; | |
21124 | } | |
21125 | { | |
21126 | wxTimeSpan * resultptr; | |
21127 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21128 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21129 | } | |
21130 | return resultobj; | |
21131 | fail: | |
21132 | return NULL; | |
21133 | } | |
21134 | ||
21135 | ||
21136 | static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21137 | PyObject *resultobj; | |
21138 | long arg1 = (long) 0 ; | |
21139 | long arg2 = (long) 0 ; | |
21140 | long arg3 = (long) 0 ; | |
21141 | long arg4 = (long) 0 ; | |
21142 | wxTimeSpan *result; | |
8edf1c75 RD |
21143 | PyObject * obj0 = 0 ; |
21144 | PyObject * obj1 = 0 ; | |
21145 | PyObject * obj2 = 0 ; | |
21146 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21147 | char *kwnames[] = { |
21148 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
21149 | }; | |
21150 | ||
8edf1c75 RD |
21151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
21152 | if (obj0) { | |
21153 | { | |
21154 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
21155 | if (PyErr_Occurred()) SWIG_fail; | |
21156 | } | |
21157 | } | |
21158 | if (obj1) { | |
21159 | { | |
21160 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21161 | if (PyErr_Occurred()) SWIG_fail; | |
21162 | } | |
21163 | } | |
21164 | if (obj2) { | |
21165 | { | |
21166 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
21167 | if (PyErr_Occurred()) SWIG_fail; | |
21168 | } | |
21169 | } | |
21170 | if (obj3) { | |
21171 | { | |
21172 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
21173 | if (PyErr_Occurred()) SWIG_fail; | |
21174 | } | |
21175 | } | |
d14a1e28 RD |
21176 | { |
21177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21178 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
21179 | ||
21180 | wxPyEndAllowThreads(__tstate); | |
21181 | if (PyErr_Occurred()) SWIG_fail; | |
21182 | } | |
21183 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 1); | |
21184 | return resultobj; | |
21185 | fail: | |
21186 | return NULL; | |
21187 | } | |
21188 | ||
21189 | ||
21190 | static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21191 | PyObject *resultobj; | |
21192 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21193 | PyObject * obj0 = 0 ; | |
21194 | char *kwnames[] = { | |
21195 | (char *) "self", NULL | |
21196 | }; | |
21197 | ||
21198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
21199 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21200 | { | |
21201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21202 | delete arg1; | |
21203 | ||
21204 | wxPyEndAllowThreads(__tstate); | |
21205 | if (PyErr_Occurred()) SWIG_fail; | |
21206 | } | |
21207 | Py_INCREF(Py_None); resultobj = Py_None; | |
21208 | return resultobj; | |
21209 | fail: | |
21210 | return NULL; | |
21211 | } | |
21212 | ||
21213 | ||
21214 | static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21215 | PyObject *resultobj; | |
21216 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21217 | wxTimeSpan *arg2 = 0 ; | |
21218 | wxTimeSpan *result; | |
21219 | PyObject * obj0 = 0 ; | |
21220 | PyObject * obj1 = 0 ; | |
21221 | char *kwnames[] = { | |
21222 | (char *) "self",(char *) "diff", NULL | |
21223 | }; | |
21224 | ||
21225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
21226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21227 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21228 | if (arg2 == NULL) { | |
21229 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21230 | } | |
21231 | { | |
21232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21233 | { | |
21234 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
21235 | result = (wxTimeSpan *) &_result_ref; | |
21236 | } | |
21237 | ||
21238 | wxPyEndAllowThreads(__tstate); | |
21239 | if (PyErr_Occurred()) SWIG_fail; | |
21240 | } | |
21241 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
21242 | return resultobj; | |
21243 | fail: | |
21244 | return NULL; | |
21245 | } | |
21246 | ||
21247 | ||
21248 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21249 | PyObject *resultobj; | |
21250 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21251 | wxTimeSpan *arg2 = 0 ; | |
21252 | wxTimeSpan *result; | |
21253 | PyObject * obj0 = 0 ; | |
21254 | PyObject * obj1 = 0 ; | |
21255 | char *kwnames[] = { | |
21256 | (char *) "self",(char *) "diff", NULL | |
21257 | }; | |
21258 | ||
21259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
21260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21261 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21262 | if (arg2 == NULL) { | |
21263 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21264 | } | |
21265 | { | |
21266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21267 | { | |
21268 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
21269 | result = (wxTimeSpan *) &_result_ref; | |
21270 | } | |
21271 | ||
21272 | wxPyEndAllowThreads(__tstate); | |
21273 | if (PyErr_Occurred()) SWIG_fail; | |
21274 | } | |
21275 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
21276 | return resultobj; | |
21277 | fail: | |
21278 | return NULL; | |
21279 | } | |
21280 | ||
21281 | ||
21282 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21283 | PyObject *resultobj; | |
21284 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21285 | int arg2 ; | |
21286 | wxTimeSpan *result; | |
21287 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21288 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21289 | char *kwnames[] = { |
21290 | (char *) "self",(char *) "n", NULL | |
21291 | }; | |
21292 | ||
8edf1c75 | 21293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21295 | { |
21296 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21297 | if (PyErr_Occurred()) SWIG_fail; | |
21298 | } | |
d14a1e28 RD |
21299 | { |
21300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21301 | { | |
21302 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
21303 | result = (wxTimeSpan *) &_result_ref; | |
21304 | } | |
21305 | ||
21306 | wxPyEndAllowThreads(__tstate); | |
21307 | if (PyErr_Occurred()) SWIG_fail; | |
21308 | } | |
21309 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
21310 | return resultobj; | |
21311 | fail: | |
21312 | return NULL; | |
21313 | } | |
21314 | ||
21315 | ||
21316 | static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21317 | PyObject *resultobj; | |
21318 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21319 | wxTimeSpan *result; | |
21320 | PyObject * obj0 = 0 ; | |
21321 | char *kwnames[] = { | |
21322 | (char *) "self", NULL | |
21323 | }; | |
21324 | ||
21325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
21326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21327 | { | |
21328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21329 | { | |
21330 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
21331 | result = (wxTimeSpan *) &_result_ref; | |
21332 | } | |
21333 | ||
21334 | wxPyEndAllowThreads(__tstate); | |
21335 | if (PyErr_Occurred()) SWIG_fail; | |
21336 | } | |
21337 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
21338 | return resultobj; | |
21339 | fail: | |
21340 | return NULL; | |
21341 | } | |
21342 | ||
21343 | ||
21344 | static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21345 | PyObject *resultobj; | |
21346 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21347 | wxTimeSpan result; | |
21348 | PyObject * obj0 = 0 ; | |
21349 | char *kwnames[] = { | |
21350 | (char *) "self", NULL | |
21351 | }; | |
21352 | ||
21353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
21354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21355 | { | |
21356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21357 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
21358 | ||
21359 | wxPyEndAllowThreads(__tstate); | |
21360 | if (PyErr_Occurred()) SWIG_fail; | |
21361 | } | |
21362 | { | |
21363 | wxTimeSpan * resultptr; | |
21364 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21365 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21366 | } | |
21367 | return resultobj; | |
21368 | fail: | |
21369 | return NULL; | |
21370 | } | |
21371 | ||
21372 | ||
21373 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21374 | PyObject *resultobj; | |
21375 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21376 | wxTimeSpan *arg2 = 0 ; | |
21377 | wxTimeSpan *result; | |
21378 | PyObject * obj0 = 0 ; | |
21379 | PyObject * obj1 = 0 ; | |
21380 | char *kwnames[] = { | |
21381 | (char *) "self",(char *) "diff", NULL | |
21382 | }; | |
21383 | ||
21384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
21385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21386 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21387 | if (arg2 == NULL) { | |
21388 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21389 | } | |
21390 | { | |
21391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21392 | { | |
21393 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
21394 | result = (wxTimeSpan *) &_result_ref; | |
21395 | } | |
21396 | ||
21397 | wxPyEndAllowThreads(__tstate); | |
21398 | if (PyErr_Occurred()) SWIG_fail; | |
21399 | } | |
21400 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
21401 | return resultobj; | |
21402 | fail: | |
21403 | return NULL; | |
21404 | } | |
21405 | ||
21406 | ||
21407 | static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21408 | PyObject *resultobj; | |
21409 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21410 | wxTimeSpan *arg2 = 0 ; | |
21411 | wxTimeSpan *result; | |
21412 | PyObject * obj0 = 0 ; | |
21413 | PyObject * obj1 = 0 ; | |
21414 | char *kwnames[] = { | |
21415 | (char *) "self",(char *) "diff", NULL | |
21416 | }; | |
21417 | ||
21418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
21419 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21420 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21421 | if (arg2 == NULL) { | |
21422 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21423 | } | |
21424 | { | |
21425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21426 | { | |
21427 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
21428 | result = (wxTimeSpan *) &_result_ref; | |
21429 | } | |
21430 | ||
21431 | wxPyEndAllowThreads(__tstate); | |
21432 | if (PyErr_Occurred()) SWIG_fail; | |
21433 | } | |
21434 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
21435 | return resultobj; | |
21436 | fail: | |
21437 | return NULL; | |
21438 | } | |
21439 | ||
21440 | ||
21441 | static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21442 | PyObject *resultobj; | |
21443 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21444 | int arg2 ; | |
21445 | wxTimeSpan *result; | |
21446 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21447 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21448 | char *kwnames[] = { |
21449 | (char *) "self",(char *) "n", NULL | |
21450 | }; | |
21451 | ||
8edf1c75 | 21452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21454 | { |
21455 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21456 | if (PyErr_Occurred()) SWIG_fail; | |
21457 | } | |
d14a1e28 RD |
21458 | { |
21459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21460 | { | |
21461 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
21462 | result = (wxTimeSpan *) &_result_ref; | |
21463 | } | |
21464 | ||
21465 | wxPyEndAllowThreads(__tstate); | |
21466 | if (PyErr_Occurred()) SWIG_fail; | |
21467 | } | |
21468 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
21469 | return resultobj; | |
21470 | fail: | |
21471 | return NULL; | |
21472 | } | |
21473 | ||
21474 | ||
21475 | static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21476 | PyObject *resultobj; | |
21477 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21478 | wxTimeSpan *result; | |
21479 | PyObject * obj0 = 0 ; | |
21480 | char *kwnames[] = { | |
21481 | (char *) "self", NULL | |
21482 | }; | |
21483 | ||
21484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
21485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21486 | { | |
21487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21488 | { | |
21489 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
21490 | result = (wxTimeSpan *) &_result_ref; | |
21491 | } | |
21492 | ||
21493 | wxPyEndAllowThreads(__tstate); | |
21494 | if (PyErr_Occurred()) SWIG_fail; | |
21495 | } | |
21496 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
21497 | return resultobj; | |
21498 | fail: | |
21499 | return NULL; | |
21500 | } | |
21501 | ||
21502 | ||
21503 | static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21504 | PyObject *resultobj; | |
21505 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21506 | wxTimeSpan *arg2 = 0 ; | |
21507 | wxTimeSpan result; | |
21508 | PyObject * obj0 = 0 ; | |
21509 | PyObject * obj1 = 0 ; | |
21510 | char *kwnames[] = { | |
21511 | (char *) "self",(char *) "other", NULL | |
21512 | }; | |
21513 | ||
21514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
21515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21516 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21517 | if (arg2 == NULL) { | |
21518 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21519 | } | |
21520 | { | |
21521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21522 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
21523 | ||
21524 | wxPyEndAllowThreads(__tstate); | |
21525 | if (PyErr_Occurred()) SWIG_fail; | |
21526 | } | |
21527 | { | |
21528 | wxTimeSpan * resultptr; | |
21529 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21530 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21531 | } | |
21532 | return resultobj; | |
21533 | fail: | |
21534 | return NULL; | |
21535 | } | |
21536 | ||
21537 | ||
21538 | static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21539 | PyObject *resultobj; | |
21540 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21541 | wxTimeSpan *arg2 = 0 ; | |
21542 | wxTimeSpan result; | |
21543 | PyObject * obj0 = 0 ; | |
21544 | PyObject * obj1 = 0 ; | |
21545 | char *kwnames[] = { | |
21546 | (char *) "self",(char *) "other", NULL | |
21547 | }; | |
21548 | ||
21549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
21550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21551 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21552 | if (arg2 == NULL) { | |
21553 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21554 | } | |
21555 | { | |
21556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21557 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
21558 | ||
21559 | wxPyEndAllowThreads(__tstate); | |
21560 | if (PyErr_Occurred()) SWIG_fail; | |
21561 | } | |
21562 | { | |
21563 | wxTimeSpan * resultptr; | |
21564 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21565 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21566 | } | |
21567 | return resultobj; | |
21568 | fail: | |
21569 | return NULL; | |
21570 | } | |
21571 | ||
21572 | ||
21573 | static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21574 | PyObject *resultobj; | |
21575 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21576 | int arg2 ; | |
21577 | wxTimeSpan result; | |
21578 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21579 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21580 | char *kwnames[] = { |
21581 | (char *) "self",(char *) "n", NULL | |
21582 | }; | |
21583 | ||
8edf1c75 | 21584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21586 | { |
21587 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21588 | if (PyErr_Occurred()) SWIG_fail; | |
21589 | } | |
d14a1e28 RD |
21590 | { |
21591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21592 | result = wxTimeSpan___mul__(arg1,arg2); | |
21593 | ||
21594 | wxPyEndAllowThreads(__tstate); | |
21595 | if (PyErr_Occurred()) SWIG_fail; | |
21596 | } | |
21597 | { | |
21598 | wxTimeSpan * resultptr; | |
21599 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21600 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21601 | } | |
21602 | return resultobj; | |
21603 | fail: | |
21604 | return NULL; | |
21605 | } | |
21606 | ||
21607 | ||
21608 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21609 | PyObject *resultobj; | |
21610 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21611 | int arg2 ; | |
21612 | wxTimeSpan result; | |
21613 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21614 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21615 | char *kwnames[] = { |
21616 | (char *) "self",(char *) "n", NULL | |
21617 | }; | |
21618 | ||
8edf1c75 | 21619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21621 | { |
21622 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21623 | if (PyErr_Occurred()) SWIG_fail; | |
21624 | } | |
d14a1e28 RD |
21625 | { |
21626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21627 | result = wxTimeSpan___rmul__(arg1,arg2); | |
21628 | ||
21629 | wxPyEndAllowThreads(__tstate); | |
21630 | if (PyErr_Occurred()) SWIG_fail; | |
21631 | } | |
21632 | { | |
21633 | wxTimeSpan * resultptr; | |
21634 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21635 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
21636 | } | |
21637 | return resultobj; | |
21638 | fail: | |
21639 | return NULL; | |
21640 | } | |
21641 | ||
21642 | ||
21643 | static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21644 | PyObject *resultobj; | |
21645 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21646 | wxTimeSpan *arg2 = 0 ; | |
21647 | bool result; | |
21648 | PyObject * obj0 = 0 ; | |
21649 | PyObject * obj1 = 0 ; | |
21650 | char *kwnames[] = { | |
21651 | (char *) "self",(char *) "other", NULL | |
21652 | }; | |
21653 | ||
21654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
21655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21656 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21657 | if (arg2 == NULL) { | |
21658 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21659 | } | |
21660 | { | |
21661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21662 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const &)*arg2); | |
21663 | ||
21664 | wxPyEndAllowThreads(__tstate); | |
21665 | if (PyErr_Occurred()) SWIG_fail; | |
21666 | } | |
02a34c4c | 21667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21668 | return resultobj; |
21669 | fail: | |
21670 | return NULL; | |
21671 | } | |
21672 | ||
21673 | ||
21674 | static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21675 | PyObject *resultobj; | |
21676 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21677 | wxTimeSpan *arg2 = 0 ; | |
21678 | bool result; | |
21679 | PyObject * obj0 = 0 ; | |
21680 | PyObject * obj1 = 0 ; | |
21681 | char *kwnames[] = { | |
21682 | (char *) "self",(char *) "other", NULL | |
21683 | }; | |
21684 | ||
21685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
21686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21687 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21688 | if (arg2 == NULL) { | |
21689 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21690 | } | |
21691 | { | |
21692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21693 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const &)*arg2); | |
21694 | ||
21695 | wxPyEndAllowThreads(__tstate); | |
21696 | if (PyErr_Occurred()) SWIG_fail; | |
21697 | } | |
02a34c4c | 21698 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21699 | return resultobj; |
21700 | fail: | |
21701 | return NULL; | |
21702 | } | |
21703 | ||
21704 | ||
21705 | static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21706 | PyObject *resultobj; | |
21707 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21708 | wxTimeSpan *arg2 = 0 ; | |
21709 | bool result; | |
21710 | PyObject * obj0 = 0 ; | |
21711 | PyObject * obj1 = 0 ; | |
21712 | char *kwnames[] = { | |
21713 | (char *) "self",(char *) "other", NULL | |
21714 | }; | |
21715 | ||
21716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
21717 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21718 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21719 | if (arg2 == NULL) { | |
21720 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21721 | } | |
21722 | { | |
21723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21724 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const &)*arg2); | |
21725 | ||
21726 | wxPyEndAllowThreads(__tstate); | |
21727 | if (PyErr_Occurred()) SWIG_fail; | |
21728 | } | |
02a34c4c | 21729 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21730 | return resultobj; |
21731 | fail: | |
21732 | return NULL; | |
21733 | } | |
21734 | ||
21735 | ||
21736 | static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21737 | PyObject *resultobj; | |
21738 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21739 | wxTimeSpan *arg2 = 0 ; | |
21740 | bool result; | |
21741 | PyObject * obj0 = 0 ; | |
21742 | PyObject * obj1 = 0 ; | |
21743 | char *kwnames[] = { | |
21744 | (char *) "self",(char *) "other", NULL | |
21745 | }; | |
21746 | ||
21747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
21748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21749 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21750 | if (arg2 == NULL) { | |
21751 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21752 | } | |
21753 | { | |
21754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21755 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const &)*arg2); | |
21756 | ||
21757 | wxPyEndAllowThreads(__tstate); | |
21758 | if (PyErr_Occurred()) SWIG_fail; | |
21759 | } | |
02a34c4c | 21760 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21761 | return resultobj; |
21762 | fail: | |
21763 | return NULL; | |
21764 | } | |
21765 | ||
21766 | ||
21767 | static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21768 | PyObject *resultobj; | |
21769 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21770 | wxTimeSpan *arg2 = 0 ; | |
21771 | bool result; | |
21772 | PyObject * obj0 = 0 ; | |
21773 | PyObject * obj1 = 0 ; | |
21774 | char *kwnames[] = { | |
21775 | (char *) "self",(char *) "other", NULL | |
21776 | }; | |
21777 | ||
21778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
21779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21780 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21781 | if (arg2 == NULL) { | |
21782 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21783 | } | |
21784 | { | |
21785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21786 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const &)*arg2); | |
21787 | ||
21788 | wxPyEndAllowThreads(__tstate); | |
21789 | if (PyErr_Occurred()) SWIG_fail; | |
21790 | } | |
02a34c4c | 21791 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21792 | return resultobj; |
21793 | fail: | |
21794 | return NULL; | |
21795 | } | |
21796 | ||
21797 | ||
21798 | static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21799 | PyObject *resultobj; | |
21800 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21801 | wxTimeSpan *arg2 = 0 ; | |
21802 | bool result; | |
21803 | PyObject * obj0 = 0 ; | |
21804 | PyObject * obj1 = 0 ; | |
21805 | char *kwnames[] = { | |
21806 | (char *) "self",(char *) "other", NULL | |
21807 | }; | |
21808 | ||
21809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
21810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21811 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21812 | if (arg2 == NULL) { | |
21813 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21814 | } | |
21815 | { | |
21816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21817 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const &)*arg2); | |
21818 | ||
21819 | wxPyEndAllowThreads(__tstate); | |
21820 | if (PyErr_Occurred()) SWIG_fail; | |
21821 | } | |
02a34c4c | 21822 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21823 | return resultobj; |
21824 | fail: | |
21825 | return NULL; | |
21826 | } | |
21827 | ||
21828 | ||
21829 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21830 | PyObject *resultobj; | |
21831 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21832 | bool result; | |
21833 | PyObject * obj0 = 0 ; | |
21834 | char *kwnames[] = { | |
21835 | (char *) "self", NULL | |
21836 | }; | |
21837 | ||
21838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
21839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21840 | { | |
21841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21842 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
21843 | ||
21844 | wxPyEndAllowThreads(__tstate); | |
21845 | if (PyErr_Occurred()) SWIG_fail; | |
21846 | } | |
02a34c4c | 21847 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21848 | return resultobj; |
21849 | fail: | |
21850 | return NULL; | |
21851 | } | |
21852 | ||
21853 | ||
21854 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21855 | PyObject *resultobj; | |
21856 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21857 | bool result; | |
21858 | PyObject * obj0 = 0 ; | |
21859 | char *kwnames[] = { | |
21860 | (char *) "self", NULL | |
21861 | }; | |
21862 | ||
21863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
21864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21865 | { | |
21866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21867 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
21868 | ||
21869 | wxPyEndAllowThreads(__tstate); | |
21870 | if (PyErr_Occurred()) SWIG_fail; | |
21871 | } | |
02a34c4c | 21872 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21873 | return resultobj; |
21874 | fail: | |
21875 | return NULL; | |
21876 | } | |
21877 | ||
21878 | ||
21879 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21880 | PyObject *resultobj; | |
21881 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21882 | bool result; | |
21883 | PyObject * obj0 = 0 ; | |
21884 | char *kwnames[] = { | |
21885 | (char *) "self", NULL | |
21886 | }; | |
21887 | ||
21888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
21889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21890 | { | |
21891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21892 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
21893 | ||
21894 | wxPyEndAllowThreads(__tstate); | |
21895 | if (PyErr_Occurred()) SWIG_fail; | |
21896 | } | |
02a34c4c | 21897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21898 | return resultobj; |
21899 | fail: | |
21900 | return NULL; | |
21901 | } | |
21902 | ||
21903 | ||
21904 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21905 | PyObject *resultobj; | |
21906 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21907 | wxTimeSpan *arg2 = 0 ; | |
21908 | bool result; | |
21909 | PyObject * obj0 = 0 ; | |
21910 | PyObject * obj1 = 0 ; | |
21911 | char *kwnames[] = { | |
21912 | (char *) "self",(char *) "ts", NULL | |
21913 | }; | |
21914 | ||
21915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
21916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21917 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21918 | if (arg2 == NULL) { | |
21919 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21920 | } | |
21921 | { | |
21922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21923 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
21924 | ||
21925 | wxPyEndAllowThreads(__tstate); | |
21926 | if (PyErr_Occurred()) SWIG_fail; | |
21927 | } | |
02a34c4c | 21928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21929 | return resultobj; |
21930 | fail: | |
21931 | return NULL; | |
21932 | } | |
21933 | ||
21934 | ||
21935 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21936 | PyObject *resultobj; | |
21937 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21938 | wxTimeSpan *arg2 = 0 ; | |
21939 | bool result; | |
21940 | PyObject * obj0 = 0 ; | |
21941 | PyObject * obj1 = 0 ; | |
21942 | char *kwnames[] = { | |
21943 | (char *) "self",(char *) "ts", NULL | |
21944 | }; | |
21945 | ||
21946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
21947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21948 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21949 | if (arg2 == NULL) { | |
21950 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21951 | } | |
21952 | { | |
21953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21954 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
21955 | ||
21956 | wxPyEndAllowThreads(__tstate); | |
21957 | if (PyErr_Occurred()) SWIG_fail; | |
21958 | } | |
02a34c4c | 21959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21960 | return resultobj; |
21961 | fail: | |
21962 | return NULL; | |
21963 | } | |
21964 | ||
21965 | ||
21966 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21967 | PyObject *resultobj; | |
21968 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21969 | wxTimeSpan *arg2 = 0 ; | |
21970 | bool result; | |
21971 | PyObject * obj0 = 0 ; | |
21972 | PyObject * obj1 = 0 ; | |
21973 | char *kwnames[] = { | |
21974 | (char *) "self",(char *) "t", NULL | |
21975 | }; | |
21976 | ||
21977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
21978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21979 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21980 | if (arg2 == NULL) { | |
21981 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21982 | } | |
21983 | { | |
21984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21985 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
21986 | ||
21987 | wxPyEndAllowThreads(__tstate); | |
21988 | if (PyErr_Occurred()) SWIG_fail; | |
21989 | } | |
02a34c4c | 21990 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21991 | return resultobj; |
21992 | fail: | |
21993 | return NULL; | |
21994 | } | |
21995 | ||
21996 | ||
21997 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21998 | PyObject *resultobj; | |
21999 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22000 | int result; | |
22001 | PyObject * obj0 = 0 ; | |
22002 | char *kwnames[] = { | |
22003 | (char *) "self", NULL | |
22004 | }; | |
22005 | ||
22006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
22007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22008 | { | |
22009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22010 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
22011 | ||
22012 | wxPyEndAllowThreads(__tstate); | |
22013 | if (PyErr_Occurred()) SWIG_fail; | |
22014 | } | |
8edf1c75 | 22015 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22016 | return resultobj; |
22017 | fail: | |
22018 | return NULL; | |
22019 | } | |
22020 | ||
22021 | ||
22022 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22023 | PyObject *resultobj; | |
22024 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22025 | int result; | |
22026 | PyObject * obj0 = 0 ; | |
22027 | char *kwnames[] = { | |
22028 | (char *) "self", NULL | |
22029 | }; | |
22030 | ||
22031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
22032 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22033 | { | |
22034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22035 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
22036 | ||
22037 | wxPyEndAllowThreads(__tstate); | |
22038 | if (PyErr_Occurred()) SWIG_fail; | |
22039 | } | |
8edf1c75 | 22040 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22041 | return resultobj; |
22042 | fail: | |
22043 | return NULL; | |
22044 | } | |
22045 | ||
22046 | ||
22047 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22048 | PyObject *resultobj; | |
22049 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22050 | int result; | |
22051 | PyObject * obj0 = 0 ; | |
22052 | char *kwnames[] = { | |
22053 | (char *) "self", NULL | |
22054 | }; | |
22055 | ||
22056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
22057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22058 | { | |
22059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22060 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
22061 | ||
22062 | wxPyEndAllowThreads(__tstate); | |
22063 | if (PyErr_Occurred()) SWIG_fail; | |
22064 | } | |
8edf1c75 | 22065 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22066 | return resultobj; |
22067 | fail: | |
22068 | return NULL; | |
22069 | } | |
22070 | ||
22071 | ||
22072 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22073 | PyObject *resultobj; | |
22074 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22075 | int result; | |
22076 | PyObject * obj0 = 0 ; | |
22077 | char *kwnames[] = { | |
22078 | (char *) "self", NULL | |
22079 | }; | |
22080 | ||
22081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
22082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22083 | { | |
22084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22085 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
22086 | ||
22087 | wxPyEndAllowThreads(__tstate); | |
22088 | if (PyErr_Occurred()) SWIG_fail; | |
22089 | } | |
8edf1c75 | 22090 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22091 | return resultobj; |
22092 | fail: | |
22093 | return NULL; | |
22094 | } | |
22095 | ||
22096 | ||
22097 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22098 | PyObject *resultobj; | |
22099 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22100 | wxLongLong result; | |
22101 | PyObject * obj0 = 0 ; | |
22102 | char *kwnames[] = { | |
22103 | (char *) "self", NULL | |
22104 | }; | |
22105 | ||
22106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
22107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22108 | { | |
22109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22110 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
22111 | ||
22112 | wxPyEndAllowThreads(__tstate); | |
22113 | if (PyErr_Occurred()) SWIG_fail; | |
22114 | } | |
22115 | { | |
22116 | PyObject *hi, *lo, *shifter, *shifted; | |
22117 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22118 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22119 | shifter = PyLong_FromLong(32); | |
22120 | shifted = PyNumber_Lshift(hi, shifter); | |
22121 | resultobj = PyNumber_Or(shifted, lo); | |
22122 | Py_DECREF(hi); | |
22123 | Py_DECREF(lo); | |
22124 | Py_DECREF(shifter); | |
22125 | Py_DECREF(shifted); | |
22126 | } | |
22127 | return resultobj; | |
22128 | fail: | |
22129 | return NULL; | |
22130 | } | |
22131 | ||
22132 | ||
22133 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22134 | PyObject *resultobj; | |
22135 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22136 | wxLongLong result; | |
22137 | PyObject * obj0 = 0 ; | |
22138 | char *kwnames[] = { | |
22139 | (char *) "self", NULL | |
22140 | }; | |
22141 | ||
22142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
22143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22144 | { | |
22145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22146 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
22147 | ||
22148 | wxPyEndAllowThreads(__tstate); | |
22149 | if (PyErr_Occurred()) SWIG_fail; | |
22150 | } | |
22151 | { | |
22152 | PyObject *hi, *lo, *shifter, *shifted; | |
22153 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22154 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22155 | shifter = PyLong_FromLong(32); | |
22156 | shifted = PyNumber_Lshift(hi, shifter); | |
22157 | resultobj = PyNumber_Or(shifted, lo); | |
22158 | Py_DECREF(hi); | |
22159 | Py_DECREF(lo); | |
22160 | Py_DECREF(shifter); | |
22161 | Py_DECREF(shifted); | |
22162 | } | |
22163 | return resultobj; | |
22164 | fail: | |
22165 | return NULL; | |
22166 | } | |
22167 | ||
22168 | ||
22169 | static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22170 | PyObject *resultobj; | |
22171 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22172 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
22173 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
22174 | wxString result; | |
423f194a | 22175 | bool temp2 = False ; |
d14a1e28 RD |
22176 | PyObject * obj0 = 0 ; |
22177 | PyObject * obj1 = 0 ; | |
22178 | char *kwnames[] = { | |
22179 | (char *) "self",(char *) "format", NULL | |
22180 | }; | |
22181 | ||
22182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
22183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22184 | if (obj1) { | |
22185 | { | |
22186 | arg2 = wxString_in_helper(obj1); | |
22187 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 22188 | temp2 = True; |
d14a1e28 RD |
22189 | } |
22190 | } | |
22191 | { | |
22192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22193 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
22194 | ||
22195 | wxPyEndAllowThreads(__tstate); | |
22196 | if (PyErr_Occurred()) SWIG_fail; | |
22197 | } | |
22198 | { | |
22199 | #if wxUSE_UNICODE | |
22200 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22201 | #else | |
22202 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22203 | #endif | |
22204 | } | |
22205 | { | |
22206 | if (temp2) | |
22207 | delete arg2; | |
22208 | } | |
22209 | return resultobj; | |
22210 | fail: | |
22211 | { | |
22212 | if (temp2) | |
22213 | delete arg2; | |
22214 | } | |
22215 | return NULL; | |
22216 | } | |
22217 | ||
22218 | ||
22219 | static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) { | |
22220 | PyObject *obj; | |
22221 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22222 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
22223 | Py_INCREF(obj); | |
22224 | return Py_BuildValue((char *)""); | |
22225 | } | |
22226 | static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22227 | PyObject *resultobj; | |
22228 | int arg1 = (int) 0 ; | |
22229 | int arg2 = (int) 0 ; | |
22230 | int arg3 = (int) 0 ; | |
22231 | int arg4 = (int) 0 ; | |
22232 | wxDateSpan *result; | |
8edf1c75 RD |
22233 | PyObject * obj0 = 0 ; |
22234 | PyObject * obj1 = 0 ; | |
22235 | PyObject * obj2 = 0 ; | |
22236 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
22237 | char *kwnames[] = { |
22238 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
22239 | }; | |
22240 | ||
8edf1c75 RD |
22241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
22242 | if (obj0) { | |
22243 | { | |
22244 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
22245 | if (PyErr_Occurred()) SWIG_fail; | |
22246 | } | |
22247 | } | |
22248 | if (obj1) { | |
22249 | { | |
22250 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22251 | if (PyErr_Occurred()) SWIG_fail; | |
22252 | } | |
22253 | } | |
22254 | if (obj2) { | |
22255 | { | |
22256 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22257 | if (PyErr_Occurred()) SWIG_fail; | |
22258 | } | |
22259 | } | |
22260 | if (obj3) { | |
22261 | { | |
22262 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
22263 | if (PyErr_Occurred()) SWIG_fail; | |
22264 | } | |
22265 | } | |
d14a1e28 RD |
22266 | { |
22267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22268 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
22269 | ||
22270 | wxPyEndAllowThreads(__tstate); | |
22271 | if (PyErr_Occurred()) SWIG_fail; | |
22272 | } | |
22273 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 1); | |
22274 | return resultobj; | |
22275 | fail: | |
22276 | return NULL; | |
22277 | } | |
22278 | ||
22279 | ||
22280 | static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22281 | PyObject *resultobj; | |
22282 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22283 | PyObject * obj0 = 0 ; | |
22284 | char *kwnames[] = { | |
22285 | (char *) "self", NULL | |
22286 | }; | |
22287 | ||
22288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
22289 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22290 | { | |
22291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22292 | delete arg1; | |
22293 | ||
22294 | wxPyEndAllowThreads(__tstate); | |
22295 | if (PyErr_Occurred()) SWIG_fail; | |
22296 | } | |
22297 | Py_INCREF(Py_None); resultobj = Py_None; | |
22298 | return resultobj; | |
22299 | fail: | |
22300 | return NULL; | |
22301 | } | |
22302 | ||
22303 | ||
22304 | static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22305 | PyObject *resultobj; | |
22306 | int arg1 ; | |
22307 | wxDateSpan result; | |
8edf1c75 | 22308 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22309 | char *kwnames[] = { |
22310 | (char *) "days", NULL | |
22311 | }; | |
22312 | ||
8edf1c75 RD |
22313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; |
22314 | { | |
22315 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
22316 | if (PyErr_Occurred()) SWIG_fail; | |
22317 | } | |
d14a1e28 RD |
22318 | { |
22319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22320 | result = wxDateSpan::Days(arg1); | |
22321 | ||
22322 | wxPyEndAllowThreads(__tstate); | |
22323 | if (PyErr_Occurred()) SWIG_fail; | |
22324 | } | |
22325 | { | |
22326 | wxDateSpan * resultptr; | |
22327 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22328 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22329 | } | |
22330 | return resultobj; | |
22331 | fail: | |
22332 | return NULL; | |
22333 | } | |
22334 | ||
22335 | ||
22336 | static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22337 | PyObject *resultobj; | |
22338 | wxDateSpan result; | |
22339 | char *kwnames[] = { | |
22340 | NULL | |
22341 | }; | |
22342 | ||
22343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
22344 | { | |
22345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22346 | result = wxDateSpan::Day(); | |
22347 | ||
22348 | wxPyEndAllowThreads(__tstate); | |
22349 | if (PyErr_Occurred()) SWIG_fail; | |
22350 | } | |
22351 | { | |
22352 | wxDateSpan * resultptr; | |
22353 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22354 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22355 | } | |
22356 | return resultobj; | |
22357 | fail: | |
22358 | return NULL; | |
22359 | } | |
22360 | ||
22361 | ||
22362 | static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22363 | PyObject *resultobj; | |
22364 | int arg1 ; | |
22365 | wxDateSpan result; | |
8edf1c75 | 22366 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22367 | char *kwnames[] = { |
22368 | (char *) "weeks", NULL | |
22369 | }; | |
22370 | ||
8edf1c75 RD |
22371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; |
22372 | { | |
22373 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
22374 | if (PyErr_Occurred()) SWIG_fail; | |
22375 | } | |
d14a1e28 RD |
22376 | { |
22377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22378 | result = wxDateSpan::Weeks(arg1); | |
22379 | ||
22380 | wxPyEndAllowThreads(__tstate); | |
22381 | if (PyErr_Occurred()) SWIG_fail; | |
22382 | } | |
22383 | { | |
22384 | wxDateSpan * resultptr; | |
22385 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22386 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22387 | } | |
22388 | return resultobj; | |
22389 | fail: | |
22390 | return NULL; | |
22391 | } | |
22392 | ||
22393 | ||
22394 | static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22395 | PyObject *resultobj; | |
22396 | wxDateSpan result; | |
22397 | char *kwnames[] = { | |
22398 | NULL | |
22399 | }; | |
22400 | ||
22401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
22402 | { | |
22403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22404 | result = wxDateSpan::Week(); | |
22405 | ||
22406 | wxPyEndAllowThreads(__tstate); | |
22407 | if (PyErr_Occurred()) SWIG_fail; | |
22408 | } | |
22409 | { | |
22410 | wxDateSpan * resultptr; | |
22411 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22412 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22413 | } | |
22414 | return resultobj; | |
22415 | fail: | |
22416 | return NULL; | |
22417 | } | |
22418 | ||
22419 | ||
22420 | static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22421 | PyObject *resultobj; | |
22422 | int arg1 ; | |
22423 | wxDateSpan result; | |
8edf1c75 | 22424 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22425 | char *kwnames[] = { |
22426 | (char *) "mon", NULL | |
22427 | }; | |
22428 | ||
8edf1c75 RD |
22429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; |
22430 | { | |
22431 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
22432 | if (PyErr_Occurred()) SWIG_fail; | |
22433 | } | |
d14a1e28 RD |
22434 | { |
22435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22436 | result = wxDateSpan::Months(arg1); | |
22437 | ||
22438 | wxPyEndAllowThreads(__tstate); | |
22439 | if (PyErr_Occurred()) SWIG_fail; | |
22440 | } | |
22441 | { | |
22442 | wxDateSpan * resultptr; | |
22443 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22444 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22445 | } | |
22446 | return resultobj; | |
22447 | fail: | |
22448 | return NULL; | |
22449 | } | |
22450 | ||
22451 | ||
22452 | static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22453 | PyObject *resultobj; | |
22454 | wxDateSpan result; | |
22455 | char *kwnames[] = { | |
22456 | NULL | |
22457 | }; | |
22458 | ||
22459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
22460 | { | |
22461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22462 | result = wxDateSpan::Month(); | |
22463 | ||
22464 | wxPyEndAllowThreads(__tstate); | |
22465 | if (PyErr_Occurred()) SWIG_fail; | |
22466 | } | |
22467 | { | |
22468 | wxDateSpan * resultptr; | |
22469 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22470 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22471 | } | |
22472 | return resultobj; | |
22473 | fail: | |
22474 | return NULL; | |
22475 | } | |
22476 | ||
22477 | ||
22478 | static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22479 | PyObject *resultobj; | |
22480 | int arg1 ; | |
22481 | wxDateSpan result; | |
8edf1c75 | 22482 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22483 | char *kwnames[] = { |
22484 | (char *) "years", NULL | |
22485 | }; | |
22486 | ||
8edf1c75 RD |
22487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; |
22488 | { | |
22489 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
22490 | if (PyErr_Occurred()) SWIG_fail; | |
22491 | } | |
d14a1e28 RD |
22492 | { |
22493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22494 | result = wxDateSpan::Years(arg1); | |
22495 | ||
22496 | wxPyEndAllowThreads(__tstate); | |
22497 | if (PyErr_Occurred()) SWIG_fail; | |
22498 | } | |
22499 | { | |
22500 | wxDateSpan * resultptr; | |
22501 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22502 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22503 | } | |
22504 | return resultobj; | |
22505 | fail: | |
22506 | return NULL; | |
22507 | } | |
22508 | ||
22509 | ||
22510 | static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22511 | PyObject *resultobj; | |
22512 | wxDateSpan result; | |
22513 | char *kwnames[] = { | |
22514 | NULL | |
22515 | }; | |
22516 | ||
22517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
22518 | { | |
22519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22520 | result = wxDateSpan::Year(); | |
22521 | ||
22522 | wxPyEndAllowThreads(__tstate); | |
22523 | if (PyErr_Occurred()) SWIG_fail; | |
22524 | } | |
22525 | { | |
22526 | wxDateSpan * resultptr; | |
22527 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22528 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
22529 | } | |
22530 | return resultobj; | |
22531 | fail: | |
22532 | return NULL; | |
22533 | } | |
22534 | ||
22535 | ||
22536 | static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22537 | PyObject *resultobj; | |
22538 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22539 | int arg2 ; | |
22540 | wxDateSpan *result; | |
22541 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22542 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22543 | char *kwnames[] = { |
22544 | (char *) "self",(char *) "n", NULL | |
22545 | }; | |
22546 | ||
8edf1c75 | 22547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22549 | { |
22550 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22551 | if (PyErr_Occurred()) SWIG_fail; | |
22552 | } | |
d14a1e28 RD |
22553 | { |
22554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22555 | { | |
22556 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
22557 | result = (wxDateSpan *) &_result_ref; | |
22558 | } | |
22559 | ||
22560 | wxPyEndAllowThreads(__tstate); | |
22561 | if (PyErr_Occurred()) SWIG_fail; | |
22562 | } | |
22563 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22564 | return resultobj; | |
22565 | fail: | |
22566 | return NULL; | |
22567 | } | |
22568 | ||
22569 | ||
22570 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22571 | PyObject *resultobj; | |
22572 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22573 | int arg2 ; | |
22574 | wxDateSpan *result; | |
22575 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22576 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22577 | char *kwnames[] = { |
22578 | (char *) "self",(char *) "n", NULL | |
22579 | }; | |
22580 | ||
8edf1c75 | 22581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22582 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22583 | { |
22584 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22585 | if (PyErr_Occurred()) SWIG_fail; | |
22586 | } | |
d14a1e28 RD |
22587 | { |
22588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22589 | { | |
22590 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
22591 | result = (wxDateSpan *) &_result_ref; | |
22592 | } | |
22593 | ||
22594 | wxPyEndAllowThreads(__tstate); | |
22595 | if (PyErr_Occurred()) SWIG_fail; | |
22596 | } | |
22597 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22598 | return resultobj; | |
22599 | fail: | |
22600 | return NULL; | |
22601 | } | |
22602 | ||
22603 | ||
22604 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22605 | PyObject *resultobj; | |
22606 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22607 | int arg2 ; | |
22608 | wxDateSpan *result; | |
22609 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22610 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22611 | char *kwnames[] = { |
22612 | (char *) "self",(char *) "n", NULL | |
22613 | }; | |
22614 | ||
8edf1c75 | 22615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22617 | { |
22618 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22619 | if (PyErr_Occurred()) SWIG_fail; | |
22620 | } | |
d14a1e28 RD |
22621 | { |
22622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22623 | { | |
22624 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
22625 | result = (wxDateSpan *) &_result_ref; | |
22626 | } | |
22627 | ||
22628 | wxPyEndAllowThreads(__tstate); | |
22629 | if (PyErr_Occurred()) SWIG_fail; | |
22630 | } | |
22631 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22632 | return resultobj; | |
22633 | fail: | |
22634 | return NULL; | |
22635 | } | |
22636 | ||
22637 | ||
22638 | static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22639 | PyObject *resultobj; | |
22640 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22641 | int arg2 ; | |
22642 | wxDateSpan *result; | |
22643 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22644 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22645 | char *kwnames[] = { |
22646 | (char *) "self",(char *) "n", NULL | |
22647 | }; | |
22648 | ||
8edf1c75 | 22649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22651 | { |
22652 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22653 | if (PyErr_Occurred()) SWIG_fail; | |
22654 | } | |
d14a1e28 RD |
22655 | { |
22656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22657 | { | |
22658 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
22659 | result = (wxDateSpan *) &_result_ref; | |
22660 | } | |
22661 | ||
22662 | wxPyEndAllowThreads(__tstate); | |
22663 | if (PyErr_Occurred()) SWIG_fail; | |
22664 | } | |
22665 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22666 | return resultobj; | |
22667 | fail: | |
22668 | return NULL; | |
22669 | } | |
22670 | ||
22671 | ||
22672 | static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22673 | PyObject *resultobj; | |
22674 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22675 | int result; | |
22676 | PyObject * obj0 = 0 ; | |
22677 | char *kwnames[] = { | |
22678 | (char *) "self", NULL | |
22679 | }; | |
22680 | ||
22681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
22682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22683 | { | |
22684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22685 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
22686 | ||
22687 | wxPyEndAllowThreads(__tstate); | |
22688 | if (PyErr_Occurred()) SWIG_fail; | |
22689 | } | |
8edf1c75 | 22690 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22691 | return resultobj; |
22692 | fail: | |
22693 | return NULL; | |
22694 | } | |
22695 | ||
22696 | ||
22697 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22698 | PyObject *resultobj; | |
22699 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22700 | int result; | |
22701 | PyObject * obj0 = 0 ; | |
22702 | char *kwnames[] = { | |
22703 | (char *) "self", NULL | |
22704 | }; | |
22705 | ||
22706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
22707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22708 | { | |
22709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22710 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
22711 | ||
22712 | wxPyEndAllowThreads(__tstate); | |
22713 | if (PyErr_Occurred()) SWIG_fail; | |
22714 | } | |
8edf1c75 | 22715 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22716 | return resultobj; |
22717 | fail: | |
22718 | return NULL; | |
22719 | } | |
22720 | ||
22721 | ||
22722 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22723 | PyObject *resultobj; | |
22724 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22725 | int result; | |
22726 | PyObject * obj0 = 0 ; | |
22727 | char *kwnames[] = { | |
22728 | (char *) "self", NULL | |
22729 | }; | |
22730 | ||
22731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
22732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22733 | { | |
22734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22735 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
22736 | ||
22737 | wxPyEndAllowThreads(__tstate); | |
22738 | if (PyErr_Occurred()) SWIG_fail; | |
22739 | } | |
8edf1c75 | 22740 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22741 | return resultobj; |
22742 | fail: | |
22743 | return NULL; | |
22744 | } | |
22745 | ||
22746 | ||
22747 | static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22748 | PyObject *resultobj; | |
22749 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22750 | int result; | |
22751 | PyObject * obj0 = 0 ; | |
22752 | char *kwnames[] = { | |
22753 | (char *) "self", NULL | |
22754 | }; | |
22755 | ||
22756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
22757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22758 | { | |
22759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22760 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
22761 | ||
22762 | wxPyEndAllowThreads(__tstate); | |
22763 | if (PyErr_Occurred()) SWIG_fail; | |
22764 | } | |
8edf1c75 | 22765 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22766 | return resultobj; |
22767 | fail: | |
22768 | return NULL; | |
22769 | } | |
22770 | ||
22771 | ||
22772 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22773 | PyObject *resultobj; | |
22774 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22775 | int result; | |
22776 | PyObject * obj0 = 0 ; | |
22777 | char *kwnames[] = { | |
22778 | (char *) "self", NULL | |
22779 | }; | |
22780 | ||
22781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
22782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22783 | { | |
22784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22785 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
22786 | ||
22787 | wxPyEndAllowThreads(__tstate); | |
22788 | if (PyErr_Occurred()) SWIG_fail; | |
22789 | } | |
8edf1c75 | 22790 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22791 | return resultobj; |
22792 | fail: | |
22793 | return NULL; | |
22794 | } | |
22795 | ||
22796 | ||
22797 | static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22798 | PyObject *resultobj; | |
22799 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22800 | wxDateSpan *arg2 = 0 ; | |
22801 | wxDateSpan *result; | |
22802 | PyObject * obj0 = 0 ; | |
22803 | PyObject * obj1 = 0 ; | |
22804 | char *kwnames[] = { | |
22805 | (char *) "self",(char *) "other", NULL | |
22806 | }; | |
22807 | ||
22808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
22809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22810 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22811 | if (arg2 == NULL) { | |
22812 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22813 | } | |
22814 | { | |
22815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22816 | { | |
22817 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
22818 | result = (wxDateSpan *) &_result_ref; | |
22819 | } | |
22820 | ||
22821 | wxPyEndAllowThreads(__tstate); | |
22822 | if (PyErr_Occurred()) SWIG_fail; | |
22823 | } | |
22824 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22825 | return resultobj; | |
22826 | fail: | |
22827 | return NULL; | |
22828 | } | |
22829 | ||
22830 | ||
22831 | static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22832 | PyObject *resultobj; | |
22833 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22834 | wxDateSpan *arg2 = 0 ; | |
22835 | wxDateSpan *result; | |
22836 | PyObject * obj0 = 0 ; | |
22837 | PyObject * obj1 = 0 ; | |
22838 | char *kwnames[] = { | |
22839 | (char *) "self",(char *) "other", NULL | |
22840 | }; | |
22841 | ||
22842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
22843 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22844 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22845 | if (arg2 == NULL) { | |
22846 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22847 | } | |
22848 | { | |
22849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22850 | { | |
22851 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
22852 | result = (wxDateSpan *) &_result_ref; | |
22853 | } | |
22854 | ||
22855 | wxPyEndAllowThreads(__tstate); | |
22856 | if (PyErr_Occurred()) SWIG_fail; | |
22857 | } | |
22858 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22859 | return resultobj; | |
22860 | fail: | |
22861 | return NULL; | |
22862 | } | |
22863 | ||
22864 | ||
22865 | static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22866 | PyObject *resultobj; | |
22867 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22868 | wxDateSpan *result; | |
22869 | PyObject * obj0 = 0 ; | |
22870 | char *kwnames[] = { | |
22871 | (char *) "self", NULL | |
22872 | }; | |
22873 | ||
22874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
22875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22876 | { | |
22877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22878 | { | |
22879 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
22880 | result = (wxDateSpan *) &_result_ref; | |
22881 | } | |
22882 | ||
22883 | wxPyEndAllowThreads(__tstate); | |
22884 | if (PyErr_Occurred()) SWIG_fail; | |
22885 | } | |
22886 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22887 | return resultobj; | |
22888 | fail: | |
22889 | return NULL; | |
22890 | } | |
22891 | ||
22892 | ||
22893 | static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22894 | PyObject *resultobj; | |
22895 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22896 | int arg2 ; | |
22897 | wxDateSpan *result; | |
22898 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22899 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22900 | char *kwnames[] = { |
22901 | (char *) "self",(char *) "factor", NULL | |
22902 | }; | |
22903 | ||
8edf1c75 | 22904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22905 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22906 | { |
22907 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22908 | if (PyErr_Occurred()) SWIG_fail; | |
22909 | } | |
d14a1e28 RD |
22910 | { |
22911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22912 | { | |
22913 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
22914 | result = (wxDateSpan *) &_result_ref; | |
22915 | } | |
22916 | ||
22917 | wxPyEndAllowThreads(__tstate); | |
22918 | if (PyErr_Occurred()) SWIG_fail; | |
22919 | } | |
22920 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22921 | return resultobj; | |
22922 | fail: | |
22923 | return NULL; | |
22924 | } | |
22925 | ||
22926 | ||
22927 | static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22928 | PyObject *resultobj; | |
22929 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22930 | wxDateSpan *arg2 = 0 ; | |
22931 | wxDateSpan *result; | |
22932 | PyObject * obj0 = 0 ; | |
22933 | PyObject * obj1 = 0 ; | |
22934 | char *kwnames[] = { | |
22935 | (char *) "self",(char *) "other", NULL | |
22936 | }; | |
22937 | ||
22938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
22939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22940 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22941 | if (arg2 == NULL) { | |
22942 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22943 | } | |
22944 | { | |
22945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22946 | { | |
22947 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
22948 | result = (wxDateSpan *) &_result_ref; | |
22949 | } | |
22950 | ||
22951 | wxPyEndAllowThreads(__tstate); | |
22952 | if (PyErr_Occurred()) SWIG_fail; | |
22953 | } | |
22954 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22955 | return resultobj; | |
22956 | fail: | |
22957 | return NULL; | |
22958 | } | |
22959 | ||
22960 | ||
22961 | static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22962 | PyObject *resultobj; | |
22963 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22964 | wxDateSpan *arg2 = 0 ; | |
22965 | wxDateSpan *result; | |
22966 | PyObject * obj0 = 0 ; | |
22967 | PyObject * obj1 = 0 ; | |
22968 | char *kwnames[] = { | |
22969 | (char *) "self",(char *) "other", NULL | |
22970 | }; | |
22971 | ||
22972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
22973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22974 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22975 | if (arg2 == NULL) { | |
22976 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22977 | } | |
22978 | { | |
22979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22980 | { | |
22981 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
22982 | result = (wxDateSpan *) &_result_ref; | |
22983 | } | |
22984 | ||
22985 | wxPyEndAllowThreads(__tstate); | |
22986 | if (PyErr_Occurred()) SWIG_fail; | |
22987 | } | |
22988 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
22989 | return resultobj; | |
22990 | fail: | |
22991 | return NULL; | |
22992 | } | |
22993 | ||
22994 | ||
22995 | static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22996 | PyObject *resultobj; | |
22997 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22998 | wxDateSpan *result; | |
22999 | PyObject * obj0 = 0 ; | |
23000 | char *kwnames[] = { | |
23001 | (char *) "self", NULL | |
23002 | }; | |
23003 | ||
23004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
23005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23006 | { | |
23007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23008 | { | |
23009 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
23010 | result = (wxDateSpan *) &_result_ref; | |
23011 | } | |
23012 | ||
23013 | wxPyEndAllowThreads(__tstate); | |
23014 | if (PyErr_Occurred()) SWIG_fail; | |
23015 | } | |
23016 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
23017 | return resultobj; | |
23018 | fail: | |
23019 | return NULL; | |
23020 | } | |
23021 | ||
23022 | ||
23023 | static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23024 | PyObject *resultobj; | |
23025 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23026 | int arg2 ; | |
23027 | wxDateSpan *result; | |
23028 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23029 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23030 | char *kwnames[] = { |
23031 | (char *) "self",(char *) "factor", NULL | |
23032 | }; | |
23033 | ||
8edf1c75 | 23034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 23035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
23036 | { |
23037 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23038 | if (PyErr_Occurred()) SWIG_fail; | |
23039 | } | |
d14a1e28 RD |
23040 | { |
23041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23042 | { | |
23043 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
23044 | result = (wxDateSpan *) &_result_ref; | |
23045 | } | |
23046 | ||
23047 | wxPyEndAllowThreads(__tstate); | |
23048 | if (PyErr_Occurred()) SWIG_fail; | |
23049 | } | |
23050 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
23051 | return resultobj; | |
23052 | fail: | |
23053 | return NULL; | |
23054 | } | |
23055 | ||
23056 | ||
23057 | static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23058 | PyObject *resultobj; | |
23059 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23060 | wxDateSpan *arg2 = 0 ; | |
23061 | wxDateSpan result; | |
23062 | PyObject * obj0 = 0 ; | |
23063 | PyObject * obj1 = 0 ; | |
23064 | char *kwnames[] = { | |
23065 | (char *) "self",(char *) "other", NULL | |
23066 | }; | |
23067 | ||
23068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
23069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23070 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23071 | if (arg2 == NULL) { | |
23072 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23073 | } | |
23074 | { | |
23075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23076 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
23077 | ||
23078 | wxPyEndAllowThreads(__tstate); | |
23079 | if (PyErr_Occurred()) SWIG_fail; | |
23080 | } | |
23081 | { | |
23082 | wxDateSpan * resultptr; | |
23083 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23084 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
23085 | } | |
23086 | return resultobj; | |
23087 | fail: | |
23088 | return NULL; | |
23089 | } | |
23090 | ||
23091 | ||
23092 | static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23093 | PyObject *resultobj; | |
23094 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23095 | wxDateSpan *arg2 = 0 ; | |
23096 | wxDateSpan result; | |
23097 | PyObject * obj0 = 0 ; | |
23098 | PyObject * obj1 = 0 ; | |
23099 | char *kwnames[] = { | |
23100 | (char *) "self",(char *) "other", NULL | |
23101 | }; | |
23102 | ||
23103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
23104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23105 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23106 | if (arg2 == NULL) { | |
23107 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23108 | } | |
23109 | { | |
23110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23111 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
23112 | ||
23113 | wxPyEndAllowThreads(__tstate); | |
23114 | if (PyErr_Occurred()) SWIG_fail; | |
23115 | } | |
23116 | { | |
23117 | wxDateSpan * resultptr; | |
23118 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23119 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
23120 | } | |
23121 | return resultobj; | |
23122 | fail: | |
23123 | return NULL; | |
23124 | } | |
23125 | ||
23126 | ||
23127 | static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23128 | PyObject *resultobj; | |
23129 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23130 | int arg2 ; | |
23131 | wxDateSpan result; | |
23132 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23133 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23134 | char *kwnames[] = { |
23135 | (char *) "self",(char *) "n", NULL | |
23136 | }; | |
23137 | ||
8edf1c75 | 23138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 23139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
23140 | { |
23141 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23142 | if (PyErr_Occurred()) SWIG_fail; | |
23143 | } | |
d14a1e28 RD |
23144 | { |
23145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23146 | result = wxDateSpan___mul__(arg1,arg2); | |
23147 | ||
23148 | wxPyEndAllowThreads(__tstate); | |
23149 | if (PyErr_Occurred()) SWIG_fail; | |
23150 | } | |
23151 | { | |
23152 | wxDateSpan * resultptr; | |
23153 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23154 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
23155 | } | |
23156 | return resultobj; | |
23157 | fail: | |
23158 | return NULL; | |
23159 | } | |
23160 | ||
23161 | ||
23162 | static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23163 | PyObject *resultobj; | |
23164 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23165 | int arg2 ; | |
23166 | wxDateSpan result; | |
23167 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23168 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23169 | char *kwnames[] = { |
23170 | (char *) "self",(char *) "n", NULL | |
23171 | }; | |
23172 | ||
8edf1c75 | 23173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 23174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
23175 | { |
23176 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23177 | if (PyErr_Occurred()) SWIG_fail; | |
23178 | } | |
d14a1e28 RD |
23179 | { |
23180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23181 | result = wxDateSpan___rmul__(arg1,arg2); | |
23182 | ||
23183 | wxPyEndAllowThreads(__tstate); | |
23184 | if (PyErr_Occurred()) SWIG_fail; | |
23185 | } | |
23186 | { | |
23187 | wxDateSpan * resultptr; | |
23188 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23189 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
23190 | } | |
23191 | return resultobj; | |
23192 | fail: | |
23193 | return NULL; | |
23194 | } | |
23195 | ||
23196 | ||
23197 | static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23198 | PyObject *resultobj; | |
23199 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23200 | wxDateSpan *arg2 = 0 ; | |
23201 | bool result; | |
23202 | PyObject * obj0 = 0 ; | |
23203 | PyObject * obj1 = 0 ; | |
23204 | char *kwnames[] = { | |
23205 | (char *) "self",(char *) "other", NULL | |
23206 | }; | |
23207 | ||
23208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
23209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23210 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23211 | if (arg2 == NULL) { | |
23212 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23213 | } | |
23214 | { | |
23215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23216 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const &)*arg2); | |
23217 | ||
23218 | wxPyEndAllowThreads(__tstate); | |
23219 | if (PyErr_Occurred()) SWIG_fail; | |
23220 | } | |
02a34c4c | 23221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23222 | return resultobj; |
23223 | fail: | |
23224 | return NULL; | |
23225 | } | |
23226 | ||
23227 | ||
23228 | static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23229 | PyObject *resultobj; | |
23230 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23231 | wxDateSpan *arg2 = 0 ; | |
23232 | bool result; | |
23233 | PyObject * obj0 = 0 ; | |
23234 | PyObject * obj1 = 0 ; | |
23235 | char *kwnames[] = { | |
23236 | (char *) "self",(char *) "other", NULL | |
23237 | }; | |
23238 | ||
23239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
23240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23241 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23242 | if (arg2 == NULL) { | |
23243 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23244 | } | |
23245 | { | |
23246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23247 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const &)*arg2); | |
23248 | ||
23249 | wxPyEndAllowThreads(__tstate); | |
23250 | if (PyErr_Occurred()) SWIG_fail; | |
23251 | } | |
02a34c4c | 23252 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23253 | return resultobj; |
23254 | fail: | |
23255 | return NULL; | |
23256 | } | |
23257 | ||
23258 | ||
23259 | static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) { | |
23260 | PyObject *obj; | |
23261 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23262 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
23263 | Py_INCREF(obj); | |
23264 | return Py_BuildValue((char *)""); | |
23265 | } | |
23266 | static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23267 | PyObject *resultobj; | |
23268 | long result; | |
23269 | char *kwnames[] = { | |
23270 | NULL | |
23271 | }; | |
23272 | ||
23273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
23274 | { | |
23275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23276 | result = (long)wxGetLocalTime(); | |
23277 | ||
23278 | wxPyEndAllowThreads(__tstate); | |
23279 | if (PyErr_Occurred()) SWIG_fail; | |
23280 | } | |
8edf1c75 | 23281 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
23282 | return resultobj; |
23283 | fail: | |
23284 | return NULL; | |
23285 | } | |
23286 | ||
23287 | ||
23288 | static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23289 | PyObject *resultobj; | |
23290 | long result; | |
23291 | char *kwnames[] = { | |
23292 | NULL | |
23293 | }; | |
23294 | ||
23295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
23296 | { | |
23297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23298 | result = (long)wxGetUTCTime(); | |
23299 | ||
23300 | wxPyEndAllowThreads(__tstate); | |
23301 | if (PyErr_Occurred()) SWIG_fail; | |
23302 | } | |
8edf1c75 | 23303 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
23304 | return resultobj; |
23305 | fail: | |
23306 | return NULL; | |
23307 | } | |
23308 | ||
23309 | ||
23310 | static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23311 | PyObject *resultobj; | |
23312 | long result; | |
23313 | char *kwnames[] = { | |
23314 | NULL | |
23315 | }; | |
23316 | ||
23317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
23318 | { | |
23319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23320 | result = (long)wxGetCurrentTime(); | |
23321 | ||
23322 | wxPyEndAllowThreads(__tstate); | |
23323 | if (PyErr_Occurred()) SWIG_fail; | |
23324 | } | |
8edf1c75 | 23325 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
23326 | return resultobj; |
23327 | fail: | |
23328 | return NULL; | |
23329 | } | |
23330 | ||
23331 | ||
23332 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23333 | PyObject *resultobj; | |
23334 | wxLongLong result; | |
23335 | char *kwnames[] = { | |
23336 | NULL | |
23337 | }; | |
23338 | ||
23339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
23340 | { | |
23341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23342 | result = wxGetLocalTimeMillis(); | |
23343 | ||
23344 | wxPyEndAllowThreads(__tstate); | |
23345 | if (PyErr_Occurred()) SWIG_fail; | |
23346 | } | |
23347 | { | |
23348 | PyObject *hi, *lo, *shifter, *shifted; | |
23349 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
23350 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
23351 | shifter = PyLong_FromLong(32); | |
23352 | shifted = PyNumber_Lshift(hi, shifter); | |
23353 | resultobj = PyNumber_Or(shifted, lo); | |
23354 | Py_DECREF(hi); | |
23355 | Py_DECREF(lo); | |
23356 | Py_DECREF(shifter); | |
23357 | Py_DECREF(shifted); | |
23358 | } | |
23359 | return resultobj; | |
23360 | fail: | |
23361 | return NULL; | |
23362 | } | |
23363 | ||
23364 | ||
98e665d3 RD |
23365 | static int _wrap_DefaultDateTime_set(PyObject *) { |
23366 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); | |
23367 | return 1; | |
23368 | } | |
23369 | ||
23370 | ||
23371 | static PyObject *_wrap_DefaultDateTime_get() { | |
23372 | PyObject *pyobj; | |
23373 | ||
23374 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultDateTime, SWIGTYPE_p_wxDateTime, 0); | |
23375 | return pyobj; | |
23376 | } | |
23377 | ||
23378 | ||
d14a1e28 RD |
23379 | static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { |
23380 | PyObject *resultobj; | |
23381 | int arg1 ; | |
23382 | wxDataFormat *result; | |
8edf1c75 | 23383 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
23384 | char *kwnames[] = { |
23385 | (char *) "type", NULL | |
23386 | }; | |
23387 | ||
8edf1c75 RD |
23388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; |
23389 | { | |
23390 | arg1 = (wxDataFormatId) SWIG_PyObj_AsInt(obj0); | |
23391 | if (PyErr_Occurred()) SWIG_fail; | |
23392 | } | |
d14a1e28 RD |
23393 | { |
23394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23395 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
23396 | ||
23397 | wxPyEndAllowThreads(__tstate); | |
23398 | if (PyErr_Occurred()) SWIG_fail; | |
23399 | } | |
23400 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 1); | |
23401 | return resultobj; | |
23402 | fail: | |
23403 | return NULL; | |
23404 | } | |
23405 | ||
23406 | ||
23407 | static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23408 | PyObject *resultobj; | |
23409 | wxString *arg1 = 0 ; | |
23410 | wxDataFormat *result; | |
423f194a | 23411 | bool temp1 = False ; |
d14a1e28 RD |
23412 | PyObject * obj0 = 0 ; |
23413 | char *kwnames[] = { | |
23414 | (char *) "format", NULL | |
23415 | }; | |
23416 | ||
23417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
23418 | { | |
23419 | arg1 = wxString_in_helper(obj0); | |
23420 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 23421 | temp1 = True; |
d14a1e28 RD |
23422 | } |
23423 | { | |
23424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23425 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
23426 | ||
23427 | wxPyEndAllowThreads(__tstate); | |
23428 | if (PyErr_Occurred()) SWIG_fail; | |
23429 | } | |
23430 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 1); | |
23431 | { | |
23432 | if (temp1) | |
23433 | delete arg1; | |
23434 | } | |
23435 | return resultobj; | |
23436 | fail: | |
23437 | { | |
23438 | if (temp1) | |
23439 | delete arg1; | |
23440 | } | |
23441 | return NULL; | |
23442 | } | |
23443 | ||
23444 | ||
23445 | static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23446 | PyObject *resultobj; | |
23447 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23448 | PyObject * obj0 = 0 ; | |
23449 | char *kwnames[] = { | |
23450 | (char *) "self", NULL | |
23451 | }; | |
23452 | ||
23453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
23454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23455 | { | |
23456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23457 | delete arg1; | |
23458 | ||
23459 | wxPyEndAllowThreads(__tstate); | |
23460 | if (PyErr_Occurred()) SWIG_fail; | |
23461 | } | |
23462 | Py_INCREF(Py_None); resultobj = Py_None; | |
23463 | return resultobj; | |
23464 | fail: | |
23465 | return NULL; | |
23466 | } | |
23467 | ||
23468 | ||
23469 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) { | |
23470 | PyObject *resultobj; | |
23471 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23472 | int arg2 ; | |
23473 | bool result; | |
23474 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23475 | PyObject * obj1 = 0 ; |
d14a1e28 | 23476 | |
8edf1c75 | 23477 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; |
d14a1e28 | 23478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 | 23479 | { |
0ffb2aa6 | 23480 | arg2 = (wxDataFormatId) SWIG_PyObj_AsInt(obj1); |
8edf1c75 RD |
23481 | if (PyErr_Occurred()) SWIG_fail; |
23482 | } | |
d14a1e28 RD |
23483 | { |
23484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0ffb2aa6 | 23485 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); |
d14a1e28 RD |
23486 | |
23487 | wxPyEndAllowThreads(__tstate); | |
23488 | if (PyErr_Occurred()) SWIG_fail; | |
23489 | } | |
02a34c4c | 23490 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23491 | return resultobj; |
23492 | fail: | |
23493 | return NULL; | |
23494 | } | |
23495 | ||
23496 | ||
23497 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) { | |
23498 | PyObject *resultobj; | |
23499 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23500 | int arg2 ; | |
23501 | bool result; | |
23502 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23503 | PyObject * obj1 = 0 ; |
d14a1e28 | 23504 | |
8edf1c75 | 23505 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; |
d14a1e28 | 23506 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 | 23507 | { |
0ffb2aa6 | 23508 | arg2 = (wxDataFormatId) SWIG_PyObj_AsInt(obj1); |
8edf1c75 RD |
23509 | if (PyErr_Occurred()) SWIG_fail; |
23510 | } | |
d14a1e28 RD |
23511 | { |
23512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0ffb2aa6 | 23513 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); |
d14a1e28 RD |
23514 | |
23515 | wxPyEndAllowThreads(__tstate); | |
23516 | if (PyErr_Occurred()) SWIG_fail; | |
23517 | } | |
02a34c4c | 23518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23519 | return resultobj; |
23520 | fail: | |
23521 | return NULL; | |
23522 | } | |
23523 | ||
23524 | ||
23525 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) { | |
23526 | PyObject *resultobj; | |
23527 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23528 | wxDataFormat *arg2 = 0 ; | |
23529 | bool result; | |
23530 | PyObject * obj0 = 0 ; | |
23531 | PyObject * obj1 = 0 ; | |
23532 | ||
23533 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
23534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23535 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23536 | if (arg2 == NULL) { | |
23537 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23538 | } | |
23539 | { | |
23540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23541 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
23542 | ||
23543 | wxPyEndAllowThreads(__tstate); | |
23544 | if (PyErr_Occurred()) SWIG_fail; | |
23545 | } | |
02a34c4c | 23546 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23547 | return resultobj; |
23548 | fail: | |
23549 | return NULL; | |
23550 | } | |
23551 | ||
23552 | ||
23553 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
23554 | int argc; | |
23555 | PyObject *argv[3]; | |
23556 | int ii; | |
23557 | ||
23558 | argc = PyObject_Length(args); | |
23559 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
23560 | argv[ii] = PyTuple_GetItem(args,ii); | |
23561 | } | |
23562 | if (argc == 2) { | |
23563 | int _v; | |
23564 | { | |
23565 | void *ptr; | |
23566 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23567 | _v = 0; | |
23568 | PyErr_Clear(); | |
23569 | } else { | |
23570 | _v = 1; | |
23571 | } | |
23572 | } | |
23573 | if (_v) { | |
23574 | { | |
23575 | void *ptr; | |
23576 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23577 | _v = 0; | |
23578 | PyErr_Clear(); | |
23579 | } else { | |
23580 | _v = 1; | |
23581 | } | |
23582 | } | |
23583 | if (_v) { | |
23584 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
23585 | } | |
23586 | } | |
23587 | } | |
23588 | if (argc == 2) { | |
23589 | int _v; | |
23590 | { | |
23591 | void *ptr; | |
23592 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23593 | _v = 0; | |
23594 | PyErr_Clear(); | |
23595 | } else { | |
23596 | _v = 1; | |
23597 | } | |
23598 | } | |
23599 | if (_v) { | |
23600 | { | |
8edf1c75 | 23601 | SWIG_PyObj_AsInt(argv[1]); |
2dbef272 RD |
23602 | if (PyErr_Occurred()) { |
23603 | _v = 0; | |
23604 | PyErr_Clear(); | |
23605 | } else { | |
23606 | _v = 1; | |
23607 | } | |
d14a1e28 RD |
23608 | } |
23609 | if (_v) { | |
23610 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
23611 | } | |
23612 | } | |
23613 | } | |
23614 | ||
23615 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
23616 | return NULL; | |
23617 | } | |
23618 | ||
23619 | ||
23620 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) { | |
23621 | PyObject *resultobj; | |
23622 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23623 | wxDataFormat *arg2 = 0 ; | |
23624 | bool result; | |
23625 | PyObject * obj0 = 0 ; | |
23626 | PyObject * obj1 = 0 ; | |
23627 | ||
23628 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
23629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23630 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23631 | if (arg2 == NULL) { | |
23632 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23633 | } | |
23634 | { | |
23635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23636 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
23637 | ||
23638 | wxPyEndAllowThreads(__tstate); | |
23639 | if (PyErr_Occurred()) SWIG_fail; | |
23640 | } | |
02a34c4c | 23641 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23642 | return resultobj; |
23643 | fail: | |
23644 | return NULL; | |
23645 | } | |
23646 | ||
23647 | ||
23648 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
23649 | int argc; | |
23650 | PyObject *argv[3]; | |
23651 | int ii; | |
23652 | ||
23653 | argc = PyObject_Length(args); | |
23654 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
23655 | argv[ii] = PyTuple_GetItem(args,ii); | |
23656 | } | |
23657 | if (argc == 2) { | |
23658 | int _v; | |
23659 | { | |
23660 | void *ptr; | |
23661 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23662 | _v = 0; | |
23663 | PyErr_Clear(); | |
23664 | } else { | |
23665 | _v = 1; | |
23666 | } | |
23667 | } | |
23668 | if (_v) { | |
23669 | { | |
23670 | void *ptr; | |
23671 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23672 | _v = 0; | |
23673 | PyErr_Clear(); | |
23674 | } else { | |
23675 | _v = 1; | |
23676 | } | |
23677 | } | |
23678 | if (_v) { | |
23679 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
23680 | } | |
23681 | } | |
23682 | } | |
23683 | if (argc == 2) { | |
23684 | int _v; | |
23685 | { | |
23686 | void *ptr; | |
23687 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23688 | _v = 0; | |
23689 | PyErr_Clear(); | |
23690 | } else { | |
23691 | _v = 1; | |
23692 | } | |
23693 | } | |
23694 | if (_v) { | |
23695 | { | |
8edf1c75 | 23696 | SWIG_PyObj_AsInt(argv[1]); |
2dbef272 RD |
23697 | if (PyErr_Occurred()) { |
23698 | _v = 0; | |
23699 | PyErr_Clear(); | |
23700 | } else { | |
23701 | _v = 1; | |
23702 | } | |
d14a1e28 RD |
23703 | } |
23704 | if (_v) { | |
23705 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
23706 | } | |
23707 | } | |
23708 | } | |
23709 | ||
23710 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
23711 | return NULL; | |
23712 | } | |
23713 | ||
23714 | ||
23715 | static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23716 | PyObject *resultobj; | |
23717 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23718 | int arg2 ; | |
23719 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23720 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23721 | char *kwnames[] = { |
23722 | (char *) "self",(char *) "format", NULL | |
23723 | }; | |
23724 | ||
8edf1c75 | 23725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 23726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
23727 | { |
23728 | arg2 = (wxDataFormatId) SWIG_PyObj_AsInt(obj1); | |
23729 | if (PyErr_Occurred()) SWIG_fail; | |
23730 | } | |
d14a1e28 RD |
23731 | { |
23732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23733 | (arg1)->SetType((wxDataFormatId )arg2); | |
23734 | ||
23735 | wxPyEndAllowThreads(__tstate); | |
23736 | if (PyErr_Occurred()) SWIG_fail; | |
23737 | } | |
23738 | Py_INCREF(Py_None); resultobj = Py_None; | |
23739 | return resultobj; | |
23740 | fail: | |
23741 | return NULL; | |
23742 | } | |
23743 | ||
23744 | ||
23745 | static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23746 | PyObject *resultobj; | |
23747 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23748 | int result; | |
23749 | PyObject * obj0 = 0 ; | |
23750 | char *kwnames[] = { | |
23751 | (char *) "self", NULL | |
23752 | }; | |
23753 | ||
23754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
23755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23756 | { | |
23757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23758 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
23759 | ||
23760 | wxPyEndAllowThreads(__tstate); | |
23761 | if (PyErr_Occurred()) SWIG_fail; | |
23762 | } | |
8edf1c75 | 23763 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
23764 | return resultobj; |
23765 | fail: | |
23766 | return NULL; | |
23767 | } | |
23768 | ||
23769 | ||
23770 | static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23771 | PyObject *resultobj; | |
23772 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23773 | wxString result; | |
23774 | PyObject * obj0 = 0 ; | |
23775 | char *kwnames[] = { | |
23776 | (char *) "self", NULL | |
23777 | }; | |
23778 | ||
23779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
23780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23781 | { | |
23782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23783 | result = ((wxDataFormat const *)arg1)->GetId(); | |
23784 | ||
23785 | wxPyEndAllowThreads(__tstate); | |
23786 | if (PyErr_Occurred()) SWIG_fail; | |
23787 | } | |
23788 | { | |
23789 | #if wxUSE_UNICODE | |
23790 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23791 | #else | |
23792 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23793 | #endif | |
23794 | } | |
23795 | return resultobj; | |
23796 | fail: | |
23797 | return NULL; | |
23798 | } | |
23799 | ||
23800 | ||
23801 | static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23802 | PyObject *resultobj; | |
23803 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23804 | wxString *arg2 = 0 ; | |
423f194a | 23805 | bool temp2 = False ; |
d14a1e28 RD |
23806 | PyObject * obj0 = 0 ; |
23807 | PyObject * obj1 = 0 ; | |
23808 | char *kwnames[] = { | |
23809 | (char *) "self",(char *) "format", NULL | |
23810 | }; | |
23811 | ||
23812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
23813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23814 | { | |
23815 | arg2 = wxString_in_helper(obj1); | |
23816 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23817 | temp2 = True; |
d14a1e28 RD |
23818 | } |
23819 | { | |
23820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23821 | (arg1)->SetId((wxString const &)*arg2); | |
23822 | ||
23823 | wxPyEndAllowThreads(__tstate); | |
23824 | if (PyErr_Occurred()) SWIG_fail; | |
23825 | } | |
23826 | Py_INCREF(Py_None); resultobj = Py_None; | |
23827 | { | |
23828 | if (temp2) | |
23829 | delete arg2; | |
23830 | } | |
23831 | return resultobj; | |
23832 | fail: | |
23833 | { | |
23834 | if (temp2) | |
23835 | delete arg2; | |
23836 | } | |
23837 | return NULL; | |
23838 | } | |
23839 | ||
23840 | ||
23841 | static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) { | |
23842 | PyObject *obj; | |
23843 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23844 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
23845 | Py_INCREF(obj); | |
23846 | return Py_BuildValue((char *)""); | |
23847 | } | |
8edf1c75 | 23848 | static int _wrap_FormatInvalid_set(PyObject *) { |
d14a1e28 RD |
23849 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); |
23850 | return 1; | |
23851 | } | |
23852 | ||
23853 | ||
23854 | static PyObject *_wrap_FormatInvalid_get() { | |
23855 | PyObject *pyobj; | |
23856 | ||
23857 | pyobj = SWIG_NewPointerObj((void *) &wxFormatInvalid, SWIGTYPE_p_wxDataFormat, 0); | |
23858 | return pyobj; | |
23859 | } | |
23860 | ||
23861 | ||
23862 | static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23863 | PyObject *resultobj; | |
23864 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
23865 | PyObject * obj0 = 0 ; | |
23866 | char *kwnames[] = { | |
23867 | (char *) "self", NULL | |
23868 | }; | |
23869 | ||
23870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
23871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23872 | { | |
23873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23874 | delete arg1; | |
23875 | ||
23876 | wxPyEndAllowThreads(__tstate); | |
23877 | if (PyErr_Occurred()) SWIG_fail; | |
23878 | } | |
23879 | Py_INCREF(Py_None); resultobj = Py_None; | |
23880 | return resultobj; | |
23881 | fail: | |
23882 | return NULL; | |
23883 | } | |
23884 | ||
23885 | ||
23886 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23887 | PyObject *resultobj; | |
23888 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
23889 | int arg2 = (int) wxDataObject::Get ; | |
23890 | SwigValueWrapper< wxDataFormat > result; | |
23891 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23892 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23893 | char *kwnames[] = { |
23894 | (char *) "self",(char *) "dir", NULL | |
23895 | }; | |
23896 | ||
8edf1c75 | 23897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 23898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
23899 | if (obj1) { |
23900 | { | |
23901 | arg2 = (wxDataObject::Direction) SWIG_PyObj_AsInt(obj1); | |
23902 | if (PyErr_Occurred()) SWIG_fail; | |
23903 | } | |
23904 | } | |
d14a1e28 RD |
23905 | { |
23906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23907 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
23908 | ||
23909 | wxPyEndAllowThreads(__tstate); | |
23910 | if (PyErr_Occurred()) SWIG_fail; | |
23911 | } | |
23912 | { | |
23913 | wxDataFormat * resultptr; | |
23914 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
23915 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDataFormat, 1); | |
23916 | } | |
23917 | return resultobj; | |
23918 | fail: | |
23919 | return NULL; | |
23920 | } | |
23921 | ||
23922 | ||
23923 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23924 | PyObject *resultobj; | |
23925 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
23926 | int arg2 = (int) wxDataObject::Get ; | |
23927 | size_t result; | |
23928 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23929 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23930 | char *kwnames[] = { |
23931 | (char *) "self",(char *) "dir", NULL | |
23932 | }; | |
23933 | ||
8edf1c75 | 23934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 23935 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
23936 | if (obj1) { |
23937 | { | |
23938 | arg2 = (wxDataObject::Direction) SWIG_PyObj_AsInt(obj1); | |
23939 | if (PyErr_Occurred()) SWIG_fail; | |
23940 | } | |
23941 | } | |
d14a1e28 RD |
23942 | { |
23943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23944 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
23945 | ||
23946 | wxPyEndAllowThreads(__tstate); | |
23947 | if (PyErr_Occurred()) SWIG_fail; | |
23948 | } | |
8edf1c75 | 23949 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
23950 | return resultobj; |
23951 | fail: | |
23952 | return NULL; | |
23953 | } | |
23954 | ||
23955 | ||
23956 | static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23957 | PyObject *resultobj; | |
23958 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
23959 | wxDataFormat *arg2 = 0 ; | |
23960 | int arg3 = (int) wxDataObject::Get ; | |
23961 | bool result; | |
23962 | PyObject * obj0 = 0 ; | |
23963 | PyObject * obj1 = 0 ; | |
8edf1c75 | 23964 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
23965 | char *kwnames[] = { |
23966 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
23967 | }; | |
23968 | ||
8edf1c75 | 23969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
23970 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
23971 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23972 | if (arg2 == NULL) { | |
23973 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23974 | } | |
8edf1c75 RD |
23975 | if (obj2) { |
23976 | { | |
23977 | arg3 = (wxDataObject::Direction) SWIG_PyObj_AsInt(obj2); | |
23978 | if (PyErr_Occurred()) SWIG_fail; | |
23979 | } | |
23980 | } | |
d14a1e28 RD |
23981 | { |
23982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23983 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
23984 | ||
23985 | wxPyEndAllowThreads(__tstate); | |
23986 | if (PyErr_Occurred()) SWIG_fail; | |
23987 | } | |
02a34c4c | 23988 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23989 | return resultobj; |
23990 | fail: | |
23991 | return NULL; | |
23992 | } | |
23993 | ||
23994 | ||
23995 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23996 | PyObject *resultobj; | |
23997 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
23998 | wxDataFormat *arg2 = 0 ; | |
23999 | size_t result; | |
24000 | PyObject * obj0 = 0 ; | |
24001 | PyObject * obj1 = 0 ; | |
24002 | char *kwnames[] = { | |
24003 | (char *) "self",(char *) "format", NULL | |
24004 | }; | |
24005 | ||
24006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
24007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24008 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24009 | if (arg2 == NULL) { | |
24010 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24011 | } | |
24012 | { | |
24013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24014 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
24015 | ||
24016 | wxPyEndAllowThreads(__tstate); | |
24017 | if (PyErr_Occurred()) SWIG_fail; | |
24018 | } | |
8edf1c75 | 24019 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24020 | return resultobj; |
24021 | fail: | |
24022 | return NULL; | |
24023 | } | |
24024 | ||
24025 | ||
24026 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24027 | PyObject *resultobj; | |
24028 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24029 | wxDataFormat *arg2 = (wxDataFormat *) 0 ; | |
24030 | int arg3 = (int) wxDataObject::Get ; | |
24031 | PyObject * obj0 = 0 ; | |
24032 | PyObject * obj1 = 0 ; | |
8edf1c75 | 24033 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24034 | char *kwnames[] = { |
24035 | (char *) "self",(char *) "formats",(char *) "dir", NULL | |
24036 | }; | |
24037 | ||
8edf1c75 | 24038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
24039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
24040 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
24041 | if (obj2) { |
24042 | { | |
24043 | arg3 = (wxDataObject::Direction) SWIG_PyObj_AsInt(obj2); | |
24044 | if (PyErr_Occurred()) SWIG_fail; | |
24045 | } | |
24046 | } | |
d14a1e28 RD |
24047 | { |
24048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24049 | ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3); | |
24050 | ||
24051 | wxPyEndAllowThreads(__tstate); | |
24052 | if (PyErr_Occurred()) SWIG_fail; | |
24053 | } | |
24054 | Py_INCREF(Py_None); resultobj = Py_None; | |
24055 | return resultobj; | |
24056 | fail: | |
24057 | return NULL; | |
24058 | } | |
24059 | ||
24060 | ||
24061 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24062 | PyObject *resultobj; | |
24063 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24064 | wxDataFormat *arg2 = 0 ; | |
24065 | void *arg3 = (void *) 0 ; | |
24066 | bool result; | |
24067 | PyObject * obj0 = 0 ; | |
24068 | PyObject * obj1 = 0 ; | |
24069 | PyObject * obj2 = 0 ; | |
24070 | char *kwnames[] = { | |
24071 | (char *) "self",(char *) "format",(char *) "buf", NULL | |
24072 | }; | |
24073 | ||
24074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24076 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24077 | if (arg2 == NULL) { | |
24078 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24079 | } | |
24080 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24081 | { | |
24082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24083 | result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3); | |
24084 | ||
24085 | wxPyEndAllowThreads(__tstate); | |
24086 | if (PyErr_Occurred()) SWIG_fail; | |
24087 | } | |
02a34c4c | 24088 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24089 | return resultobj; |
24090 | fail: | |
24091 | return NULL; | |
24092 | } | |
24093 | ||
24094 | ||
24095 | static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24096 | PyObject *resultobj; | |
24097 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24098 | wxDataFormat *arg2 = 0 ; | |
24099 | size_t arg3 ; | |
24100 | void *arg4 = (void *) 0 ; | |
24101 | bool result; | |
24102 | PyObject * obj0 = 0 ; | |
24103 | PyObject * obj1 = 0 ; | |
24104 | PyObject * obj2 = 0 ; | |
24105 | PyObject * obj3 = 0 ; | |
24106 | char *kwnames[] = { | |
24107 | (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL | |
24108 | }; | |
24109 | ||
24110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
24111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24112 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24113 | if (arg2 == NULL) { | |
24114 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24115 | } | |
2dbef272 | 24116 | { |
8edf1c75 | 24117 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
2dbef272 RD |
24118 | if (PyErr_Occurred()) SWIG_fail; |
24119 | } | |
d14a1e28 RD |
24120 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
24121 | { | |
24122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24123 | result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4); | |
24124 | ||
24125 | wxPyEndAllowThreads(__tstate); | |
24126 | if (PyErr_Occurred()) SWIG_fail; | |
24127 | } | |
02a34c4c | 24128 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24129 | return resultobj; |
24130 | fail: | |
24131 | return NULL; | |
24132 | } | |
24133 | ||
24134 | ||
24135 | static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) { | |
24136 | PyObject *obj; | |
24137 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24138 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
24139 | Py_INCREF(obj); | |
24140 | return Py_BuildValue((char *)""); | |
24141 | } | |
24142 | static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24143 | PyObject *resultobj; | |
24144 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24145 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24146 | wxDataObjectSimple *result; | |
24147 | PyObject * obj0 = 0 ; | |
24148 | char *kwnames[] = { | |
24149 | (char *) "format", NULL | |
24150 | }; | |
24151 | ||
24152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
24153 | if (obj0) { | |
24154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24155 | if (arg1 == NULL) { | |
24156 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24157 | } | |
24158 | } | |
24159 | { | |
24160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24161 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
24162 | ||
24163 | wxPyEndAllowThreads(__tstate); | |
24164 | if (PyErr_Occurred()) SWIG_fail; | |
24165 | } | |
24166 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObjectSimple, 1); | |
24167 | return resultobj; | |
24168 | fail: | |
24169 | return NULL; | |
24170 | } | |
24171 | ||
24172 | ||
24173 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24174 | PyObject *resultobj; | |
24175 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24176 | wxDataFormat *result; | |
24177 | PyObject * obj0 = 0 ; | |
24178 | char *kwnames[] = { | |
24179 | (char *) "self", NULL | |
24180 | }; | |
24181 | ||
24182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
24183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24184 | { | |
24185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24186 | { | |
24187 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
24188 | result = (wxDataFormat *) &_result_ref; | |
24189 | } | |
24190 | ||
24191 | wxPyEndAllowThreads(__tstate); | |
24192 | if (PyErr_Occurred()) SWIG_fail; | |
24193 | } | |
24194 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 0); | |
24195 | return resultobj; | |
24196 | fail: | |
24197 | return NULL; | |
24198 | } | |
24199 | ||
24200 | ||
24201 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24202 | PyObject *resultobj; | |
24203 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24204 | wxDataFormat *arg2 = 0 ; | |
24205 | PyObject * obj0 = 0 ; | |
24206 | PyObject * obj1 = 0 ; | |
24207 | char *kwnames[] = { | |
24208 | (char *) "self",(char *) "format", NULL | |
24209 | }; | |
24210 | ||
24211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
24212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24213 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24214 | if (arg2 == NULL) { | |
24215 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24216 | } | |
24217 | { | |
24218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24219 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
24220 | ||
24221 | wxPyEndAllowThreads(__tstate); | |
24222 | if (PyErr_Occurred()) SWIG_fail; | |
24223 | } | |
24224 | Py_INCREF(Py_None); resultobj = Py_None; | |
24225 | return resultobj; | |
24226 | fail: | |
24227 | return NULL; | |
24228 | } | |
24229 | ||
24230 | ||
24231 | static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
24232 | PyObject *obj; | |
24233 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24234 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
24235 | Py_INCREF(obj); | |
24236 | return Py_BuildValue((char *)""); | |
24237 | } | |
24238 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24239 | PyObject *resultobj; | |
24240 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24241 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24242 | wxPyDataObjectSimple *result; | |
24243 | PyObject * obj0 = 0 ; | |
24244 | char *kwnames[] = { | |
24245 | (char *) "format", NULL | |
24246 | }; | |
24247 | ||
24248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
24249 | if (obj0) { | |
24250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24251 | if (arg1 == NULL) { | |
24252 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24253 | } | |
24254 | } | |
24255 | { | |
24256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24257 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
24258 | ||
24259 | wxPyEndAllowThreads(__tstate); | |
24260 | if (PyErr_Occurred()) SWIG_fail; | |
24261 | } | |
24262 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDataObjectSimple, 1); | |
24263 | return resultobj; | |
24264 | fail: | |
24265 | return NULL; | |
24266 | } | |
24267 | ||
24268 | ||
24269 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24270 | PyObject *resultobj; | |
24271 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
24272 | PyObject *arg2 = (PyObject *) 0 ; | |
24273 | PyObject *arg3 = (PyObject *) 0 ; | |
24274 | PyObject * obj0 = 0 ; | |
24275 | PyObject * obj1 = 0 ; | |
24276 | PyObject * obj2 = 0 ; | |
24277 | char *kwnames[] = { | |
24278 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24279 | }; | |
24280 | ||
24281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24283 | arg2 = obj1; | |
24284 | arg3 = obj2; | |
24285 | { | |
24286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24287 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24288 | ||
24289 | wxPyEndAllowThreads(__tstate); | |
24290 | if (PyErr_Occurred()) SWIG_fail; | |
24291 | } | |
24292 | Py_INCREF(Py_None); resultobj = Py_None; | |
24293 | return resultobj; | |
24294 | fail: | |
24295 | return NULL; | |
24296 | } | |
24297 | ||
24298 | ||
24299 | static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
24300 | PyObject *obj; | |
24301 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24302 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
24303 | Py_INCREF(obj); | |
24304 | return Py_BuildValue((char *)""); | |
24305 | } | |
24306 | static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24307 | PyObject *resultobj; | |
24308 | wxDataObjectComposite *result; | |
24309 | char *kwnames[] = { | |
24310 | NULL | |
24311 | }; | |
24312 | ||
24313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
24314 | { | |
24315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24316 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
24317 | ||
24318 | wxPyEndAllowThreads(__tstate); | |
24319 | if (PyErr_Occurred()) SWIG_fail; | |
24320 | } | |
24321 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObjectComposite, 1); | |
24322 | return resultobj; | |
24323 | fail: | |
24324 | return NULL; | |
24325 | } | |
24326 | ||
24327 | ||
24328 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24329 | PyObject *resultobj; | |
24330 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
24331 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
423f194a | 24332 | int arg3 = (int) False ; |
d14a1e28 RD |
24333 | PyObject * obj0 = 0 ; |
24334 | PyObject * obj1 = 0 ; | |
8edf1c75 | 24335 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24336 | char *kwnames[] = { |
24337 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
24338 | }; | |
24339 | ||
8edf1c75 | 24340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 24341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectComposite,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
58203fa6 | 24342 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
8edf1c75 RD |
24343 | if (obj2) { |
24344 | { | |
24345 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
24346 | if (PyErr_Occurred()) SWIG_fail; | |
24347 | } | |
24348 | } | |
d14a1e28 RD |
24349 | { |
24350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24351 | (arg1)->Add(arg2,arg3); | |
24352 | ||
24353 | wxPyEndAllowThreads(__tstate); | |
24354 | if (PyErr_Occurred()) SWIG_fail; | |
24355 | } | |
24356 | Py_INCREF(Py_None); resultobj = Py_None; | |
24357 | return resultobj; | |
24358 | fail: | |
24359 | return NULL; | |
24360 | } | |
24361 | ||
24362 | ||
24363 | static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) { | |
24364 | PyObject *obj; | |
24365 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24366 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
24367 | Py_INCREF(obj); | |
24368 | return Py_BuildValue((char *)""); | |
24369 | } | |
24370 | static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24371 | PyObject *resultobj; | |
24372 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24373 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24374 | wxTextDataObject *result; | |
423f194a | 24375 | bool temp1 = False ; |
d14a1e28 RD |
24376 | PyObject * obj0 = 0 ; |
24377 | char *kwnames[] = { | |
24378 | (char *) "text", NULL | |
24379 | }; | |
24380 | ||
24381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
24382 | if (obj0) { | |
24383 | { | |
24384 | arg1 = wxString_in_helper(obj0); | |
24385 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 24386 | temp1 = True; |
d14a1e28 RD |
24387 | } |
24388 | } | |
24389 | { | |
24390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24391 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
24392 | ||
24393 | wxPyEndAllowThreads(__tstate); | |
24394 | if (PyErr_Occurred()) SWIG_fail; | |
24395 | } | |
24396 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextDataObject, 1); | |
24397 | { | |
24398 | if (temp1) | |
24399 | delete arg1; | |
24400 | } | |
24401 | return resultobj; | |
24402 | fail: | |
24403 | { | |
24404 | if (temp1) | |
24405 | delete arg1; | |
24406 | } | |
24407 | return NULL; | |
24408 | } | |
24409 | ||
24410 | ||
24411 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24412 | PyObject *resultobj; | |
24413 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24414 | size_t result; | |
24415 | PyObject * obj0 = 0 ; | |
24416 | char *kwnames[] = { | |
24417 | (char *) "self", NULL | |
24418 | }; | |
24419 | ||
24420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
24421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24422 | { | |
24423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24424 | result = (size_t)(arg1)->GetTextLength(); | |
24425 | ||
24426 | wxPyEndAllowThreads(__tstate); | |
24427 | if (PyErr_Occurred()) SWIG_fail; | |
24428 | } | |
8edf1c75 | 24429 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24430 | return resultobj; |
24431 | fail: | |
24432 | return NULL; | |
24433 | } | |
24434 | ||
24435 | ||
24436 | static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24437 | PyObject *resultobj; | |
24438 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24439 | wxString result; | |
24440 | PyObject * obj0 = 0 ; | |
24441 | char *kwnames[] = { | |
24442 | (char *) "self", NULL | |
24443 | }; | |
24444 | ||
24445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
24446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24447 | { | |
24448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24449 | result = (arg1)->GetText(); | |
24450 | ||
24451 | wxPyEndAllowThreads(__tstate); | |
24452 | if (PyErr_Occurred()) SWIG_fail; | |
24453 | } | |
24454 | { | |
24455 | #if wxUSE_UNICODE | |
24456 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24457 | #else | |
24458 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24459 | #endif | |
24460 | } | |
24461 | return resultobj; | |
24462 | fail: | |
24463 | return NULL; | |
24464 | } | |
24465 | ||
24466 | ||
24467 | static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24468 | PyObject *resultobj; | |
24469 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24470 | wxString *arg2 = 0 ; | |
423f194a | 24471 | bool temp2 = False ; |
d14a1e28 RD |
24472 | PyObject * obj0 = 0 ; |
24473 | PyObject * obj1 = 0 ; | |
24474 | char *kwnames[] = { | |
24475 | (char *) "self",(char *) "text", NULL | |
24476 | }; | |
24477 | ||
24478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
24479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24480 | { | |
24481 | arg2 = wxString_in_helper(obj1); | |
24482 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 24483 | temp2 = True; |
d14a1e28 RD |
24484 | } |
24485 | { | |
24486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24487 | (arg1)->SetText((wxString const &)*arg2); | |
24488 | ||
24489 | wxPyEndAllowThreads(__tstate); | |
24490 | if (PyErr_Occurred()) SWIG_fail; | |
24491 | } | |
24492 | Py_INCREF(Py_None); resultobj = Py_None; | |
24493 | { | |
24494 | if (temp2) | |
24495 | delete arg2; | |
24496 | } | |
24497 | return resultobj; | |
24498 | fail: | |
24499 | { | |
24500 | if (temp2) | |
24501 | delete arg2; | |
24502 | } | |
24503 | return NULL; | |
24504 | } | |
24505 | ||
24506 | ||
24507 | static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) { | |
24508 | PyObject *obj; | |
24509 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24510 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
24511 | Py_INCREF(obj); | |
24512 | return Py_BuildValue((char *)""); | |
24513 | } | |
24514 | static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24515 | PyObject *resultobj; | |
24516 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24517 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24518 | wxPyTextDataObject *result; | |
423f194a | 24519 | bool temp1 = False ; |
d14a1e28 RD |
24520 | PyObject * obj0 = 0 ; |
24521 | char *kwnames[] = { | |
24522 | (char *) "text", NULL | |
24523 | }; | |
24524 | ||
24525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
24526 | if (obj0) { | |
24527 | { | |
24528 | arg1 = wxString_in_helper(obj0); | |
24529 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 24530 | temp1 = True; |
d14a1e28 RD |
24531 | } |
24532 | } | |
24533 | { | |
24534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24535 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
24536 | ||
24537 | wxPyEndAllowThreads(__tstate); | |
24538 | if (PyErr_Occurred()) SWIG_fail; | |
24539 | } | |
24540 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextDataObject, 1); | |
24541 | { | |
24542 | if (temp1) | |
24543 | delete arg1; | |
24544 | } | |
24545 | return resultobj; | |
24546 | fail: | |
24547 | { | |
24548 | if (temp1) | |
24549 | delete arg1; | |
24550 | } | |
24551 | return NULL; | |
24552 | } | |
24553 | ||
24554 | ||
24555 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24556 | PyObject *resultobj; | |
24557 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
24558 | PyObject *arg2 = (PyObject *) 0 ; | |
24559 | PyObject *arg3 = (PyObject *) 0 ; | |
24560 | PyObject * obj0 = 0 ; | |
24561 | PyObject * obj1 = 0 ; | |
24562 | PyObject * obj2 = 0 ; | |
24563 | char *kwnames[] = { | |
24564 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24565 | }; | |
24566 | ||
24567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24568 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24569 | arg2 = obj1; | |
24570 | arg3 = obj2; | |
24571 | { | |
24572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24573 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24574 | ||
24575 | wxPyEndAllowThreads(__tstate); | |
24576 | if (PyErr_Occurred()) SWIG_fail; | |
24577 | } | |
24578 | Py_INCREF(Py_None); resultobj = Py_None; | |
24579 | return resultobj; | |
24580 | fail: | |
24581 | return NULL; | |
24582 | } | |
24583 | ||
24584 | ||
24585 | static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) { | |
24586 | PyObject *obj; | |
24587 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24588 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
24589 | Py_INCREF(obj); | |
24590 | return Py_BuildValue((char *)""); | |
24591 | } | |
24592 | static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24593 | PyObject *resultobj; | |
24594 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
24595 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
24596 | wxBitmapDataObject *result; | |
24597 | PyObject * obj0 = 0 ; | |
24598 | char *kwnames[] = { | |
24599 | (char *) "bitmap", NULL | |
24600 | }; | |
24601 | ||
24602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
24603 | if (obj0) { | |
24604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24605 | if (arg1 == NULL) { | |
24606 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24607 | } | |
24608 | } | |
24609 | { | |
24610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24611 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
24612 | ||
24613 | wxPyEndAllowThreads(__tstate); | |
24614 | if (PyErr_Occurred()) SWIG_fail; | |
24615 | } | |
24616 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmapDataObject, 1); | |
24617 | return resultobj; | |
24618 | fail: | |
24619 | return NULL; | |
24620 | } | |
24621 | ||
24622 | ||
24623 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24624 | PyObject *resultobj; | |
24625 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
24626 | wxBitmap result; | |
24627 | PyObject * obj0 = 0 ; | |
24628 | char *kwnames[] = { | |
24629 | (char *) "self", NULL | |
24630 | }; | |
24631 | ||
24632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
24633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24634 | { | |
24635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24636 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
24637 | ||
24638 | wxPyEndAllowThreads(__tstate); | |
24639 | if (PyErr_Occurred()) SWIG_fail; | |
24640 | } | |
24641 | { | |
24642 | wxBitmap * resultptr; | |
24643 | resultptr = new wxBitmap((wxBitmap &) result); | |
24644 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
24645 | } | |
24646 | return resultobj; | |
24647 | fail: | |
24648 | return NULL; | |
24649 | } | |
24650 | ||
24651 | ||
24652 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24653 | PyObject *resultobj; | |
24654 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
24655 | wxBitmap *arg2 = 0 ; | |
24656 | PyObject * obj0 = 0 ; | |
24657 | PyObject * obj1 = 0 ; | |
24658 | char *kwnames[] = { | |
24659 | (char *) "self",(char *) "bitmap", NULL | |
24660 | }; | |
24661 | ||
24662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
24663 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24664 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24665 | if (arg2 == NULL) { | |
24666 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24667 | } | |
24668 | { | |
24669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24670 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
24671 | ||
24672 | wxPyEndAllowThreads(__tstate); | |
24673 | if (PyErr_Occurred()) SWIG_fail; | |
24674 | } | |
24675 | Py_INCREF(Py_None); resultobj = Py_None; | |
24676 | return resultobj; | |
24677 | fail: | |
24678 | return NULL; | |
24679 | } | |
24680 | ||
24681 | ||
24682 | static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
24683 | PyObject *obj; | |
24684 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24685 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
24686 | Py_INCREF(obj); | |
24687 | return Py_BuildValue((char *)""); | |
24688 | } | |
24689 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24690 | PyObject *resultobj; | |
24691 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
24692 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
24693 | wxPyBitmapDataObject *result; | |
24694 | PyObject * obj0 = 0 ; | |
24695 | char *kwnames[] = { | |
24696 | (char *) "bitmap", NULL | |
24697 | }; | |
24698 | ||
24699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
24700 | if (obj0) { | |
24701 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24702 | if (arg1 == NULL) { | |
24703 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24704 | } | |
24705 | } | |
24706 | { | |
24707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24708 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
24709 | ||
24710 | wxPyEndAllowThreads(__tstate); | |
24711 | if (PyErr_Occurred()) SWIG_fail; | |
24712 | } | |
24713 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyBitmapDataObject, 1); | |
24714 | return resultobj; | |
24715 | fail: | |
24716 | return NULL; | |
24717 | } | |
24718 | ||
24719 | ||
24720 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24721 | PyObject *resultobj; | |
24722 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
24723 | PyObject *arg2 = (PyObject *) 0 ; | |
24724 | PyObject *arg3 = (PyObject *) 0 ; | |
24725 | PyObject * obj0 = 0 ; | |
24726 | PyObject * obj1 = 0 ; | |
24727 | PyObject * obj2 = 0 ; | |
24728 | char *kwnames[] = { | |
24729 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24730 | }; | |
24731 | ||
24732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24734 | arg2 = obj1; | |
24735 | arg3 = obj2; | |
24736 | { | |
24737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24738 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24739 | ||
24740 | wxPyEndAllowThreads(__tstate); | |
24741 | if (PyErr_Occurred()) SWIG_fail; | |
24742 | } | |
24743 | Py_INCREF(Py_None); resultobj = Py_None; | |
24744 | return resultobj; | |
24745 | fail: | |
24746 | return NULL; | |
24747 | } | |
24748 | ||
24749 | ||
24750 | static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
24751 | PyObject *obj; | |
24752 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24753 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
24754 | Py_INCREF(obj); | |
24755 | return Py_BuildValue((char *)""); | |
24756 | } | |
24757 | static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24758 | PyObject *resultobj; | |
24759 | wxFileDataObject *result; | |
24760 | char *kwnames[] = { | |
24761 | NULL | |
24762 | }; | |
24763 | ||
24764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
24765 | { | |
24766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24767 | result = (wxFileDataObject *)new wxFileDataObject(); | |
24768 | ||
24769 | wxPyEndAllowThreads(__tstate); | |
24770 | if (PyErr_Occurred()) SWIG_fail; | |
24771 | } | |
24772 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileDataObject, 1); | |
24773 | return resultobj; | |
24774 | fail: | |
24775 | return NULL; | |
24776 | } | |
24777 | ||
24778 | ||
24779 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24780 | PyObject *resultobj; | |
24781 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
24782 | wxArrayString *result; | |
24783 | PyObject * obj0 = 0 ; | |
24784 | char *kwnames[] = { | |
24785 | (char *) "self", NULL | |
24786 | }; | |
24787 | ||
24788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
24789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24790 | { | |
24791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24792 | { | |
24793 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
24794 | result = (wxArrayString *) &_result_ref; | |
24795 | } | |
24796 | ||
24797 | wxPyEndAllowThreads(__tstate); | |
24798 | if (PyErr_Occurred()) SWIG_fail; | |
24799 | } | |
24800 | { | |
24801 | resultobj = wxArrayString2PyList_helper(*result); | |
24802 | } | |
24803 | return resultobj; | |
24804 | fail: | |
24805 | return NULL; | |
24806 | } | |
24807 | ||
24808 | ||
24809 | static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) { | |
24810 | PyObject *obj; | |
24811 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24812 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
24813 | Py_INCREF(obj); | |
24814 | return Py_BuildValue((char *)""); | |
24815 | } | |
24816 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24817 | PyObject *resultobj; | |
24818 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24819 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24820 | wxCustomDataObject *result; | |
24821 | PyObject * obj0 = 0 ; | |
24822 | char *kwnames[] = { | |
24823 | (char *) "format", NULL | |
24824 | }; | |
24825 | ||
24826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
24827 | if (obj0) { | |
24828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24829 | if (arg1 == NULL) { | |
24830 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24831 | } | |
24832 | } | |
24833 | { | |
24834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24835 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
24836 | ||
24837 | wxPyEndAllowThreads(__tstate); | |
24838 | if (PyErr_Occurred()) SWIG_fail; | |
24839 | } | |
24840 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCustomDataObject, 1); | |
24841 | return resultobj; | |
24842 | fail: | |
24843 | return NULL; | |
24844 | } | |
24845 | ||
24846 | ||
24847 | static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24848 | PyObject *resultobj; | |
24849 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
24850 | PyObject *arg2 = (PyObject *) 0 ; | |
24851 | PyObject * obj0 = 0 ; | |
24852 | PyObject * obj1 = 0 ; | |
24853 | char *kwnames[] = { | |
24854 | (char *) "self",(char *) "data", NULL | |
24855 | }; | |
24856 | ||
24857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail; | |
24858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24859 | arg2 = obj1; | |
24860 | { | |
24861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24862 | wxCustomDataObject_TakeData(arg1,arg2); | |
24863 | ||
24864 | wxPyEndAllowThreads(__tstate); | |
24865 | if (PyErr_Occurred()) SWIG_fail; | |
24866 | } | |
24867 | Py_INCREF(Py_None); resultobj = Py_None; | |
24868 | return resultobj; | |
24869 | fail: | |
24870 | return NULL; | |
24871 | } | |
24872 | ||
24873 | ||
24874 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24875 | PyObject *resultobj; | |
24876 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
24877 | PyObject *arg2 = (PyObject *) 0 ; | |
24878 | bool result; | |
24879 | PyObject * obj0 = 0 ; | |
24880 | PyObject * obj1 = 0 ; | |
24881 | char *kwnames[] = { | |
24882 | (char *) "self",(char *) "data", NULL | |
24883 | }; | |
24884 | ||
24885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
24886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24887 | arg2 = obj1; | |
24888 | { | |
24889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24890 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
24891 | ||
24892 | wxPyEndAllowThreads(__tstate); | |
24893 | if (PyErr_Occurred()) SWIG_fail; | |
24894 | } | |
02a34c4c | 24895 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24896 | return resultobj; |
24897 | fail: | |
24898 | return NULL; | |
24899 | } | |
24900 | ||
24901 | ||
24902 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24903 | PyObject *resultobj; | |
24904 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
24905 | size_t result; | |
24906 | PyObject * obj0 = 0 ; | |
24907 | char *kwnames[] = { | |
24908 | (char *) "self", NULL | |
24909 | }; | |
24910 | ||
24911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
24912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24913 | { | |
24914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24915 | result = (size_t)(arg1)->GetSize(); | |
24916 | ||
24917 | wxPyEndAllowThreads(__tstate); | |
24918 | if (PyErr_Occurred()) SWIG_fail; | |
24919 | } | |
8edf1c75 | 24920 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24921 | return resultobj; |
24922 | fail: | |
24923 | return NULL; | |
24924 | } | |
24925 | ||
24926 | ||
24927 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24928 | PyObject *resultobj; | |
24929 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
24930 | PyObject *result; | |
24931 | PyObject * obj0 = 0 ; | |
24932 | char *kwnames[] = { | |
24933 | (char *) "self", NULL | |
24934 | }; | |
24935 | ||
24936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
24937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24938 | { | |
24939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24940 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
24941 | ||
24942 | wxPyEndAllowThreads(__tstate); | |
24943 | if (PyErr_Occurred()) SWIG_fail; | |
24944 | } | |
24945 | resultobj = result; | |
24946 | return resultobj; | |
24947 | fail: | |
24948 | return NULL; | |
24949 | } | |
24950 | ||
24951 | ||
24952 | static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) { | |
24953 | PyObject *obj; | |
24954 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24955 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
24956 | Py_INCREF(obj); | |
24957 | return Py_BuildValue((char *)""); | |
24958 | } | |
24959 | static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24960 | PyObject *resultobj; | |
24961 | wxURLDataObject *result; | |
24962 | char *kwnames[] = { | |
24963 | NULL | |
24964 | }; | |
24965 | ||
24966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
24967 | { | |
24968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24969 | result = (wxURLDataObject *)new wxURLDataObject(); | |
24970 | ||
24971 | wxPyEndAllowThreads(__tstate); | |
24972 | if (PyErr_Occurred()) SWIG_fail; | |
24973 | } | |
24974 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxURLDataObject, 1); | |
24975 | return resultobj; | |
24976 | fail: | |
24977 | return NULL; | |
24978 | } | |
24979 | ||
24980 | ||
24981 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24982 | PyObject *resultobj; | |
24983 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
24984 | wxString result; | |
24985 | PyObject * obj0 = 0 ; | |
24986 | char *kwnames[] = { | |
24987 | (char *) "self", NULL | |
24988 | }; | |
24989 | ||
24990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
24991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxURLDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24992 | { | |
24993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24994 | result = (arg1)->GetURL(); | |
24995 | ||
24996 | wxPyEndAllowThreads(__tstate); | |
24997 | if (PyErr_Occurred()) SWIG_fail; | |
24998 | } | |
24999 | { | |
25000 | #if wxUSE_UNICODE | |
25001 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25002 | #else | |
25003 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25004 | #endif | |
25005 | } | |
25006 | return resultobj; | |
25007 | fail: | |
25008 | return NULL; | |
25009 | } | |
25010 | ||
25011 | ||
25012 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25013 | PyObject *resultobj; | |
25014 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25015 | wxString *arg2 = 0 ; | |
423f194a | 25016 | bool temp2 = False ; |
d14a1e28 RD |
25017 | PyObject * obj0 = 0 ; |
25018 | PyObject * obj1 = 0 ; | |
25019 | char *kwnames[] = { | |
25020 | (char *) "self",(char *) "url", NULL | |
25021 | }; | |
25022 | ||
25023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
25024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxURLDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25025 | { | |
25026 | arg2 = wxString_in_helper(obj1); | |
25027 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25028 | temp2 = True; |
d14a1e28 RD |
25029 | } |
25030 | { | |
25031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25032 | (arg1)->SetURL((wxString const &)*arg2); | |
25033 | ||
25034 | wxPyEndAllowThreads(__tstate); | |
25035 | if (PyErr_Occurred()) SWIG_fail; | |
25036 | } | |
25037 | Py_INCREF(Py_None); resultobj = Py_None; | |
25038 | { | |
25039 | if (temp2) | |
25040 | delete arg2; | |
25041 | } | |
25042 | return resultobj; | |
25043 | fail: | |
25044 | { | |
25045 | if (temp2) | |
25046 | delete arg2; | |
25047 | } | |
25048 | return NULL; | |
25049 | } | |
25050 | ||
25051 | ||
25052 | static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) { | |
25053 | PyObject *obj; | |
25054 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25055 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
25056 | Py_INCREF(obj); | |
25057 | return Py_BuildValue((char *)""); | |
25058 | } | |
25059 | static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25060 | PyObject *resultobj; | |
25061 | wxMetafileDataObject *result; | |
25062 | char *kwnames[] = { | |
25063 | NULL | |
25064 | }; | |
25065 | ||
25066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
25067 | { | |
25068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25069 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
25070 | ||
25071 | wxPyEndAllowThreads(__tstate); | |
25072 | if (PyErr_Occurred()) SWIG_fail; | |
25073 | } | |
25074 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetafileDataObject, 1); | |
25075 | return resultobj; | |
25076 | fail: | |
25077 | return NULL; | |
25078 | } | |
25079 | ||
25080 | ||
25081 | static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25082 | PyObject *resultobj; | |
25083 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
25084 | wxMetafile *arg2 = 0 ; | |
25085 | PyObject * obj0 = 0 ; | |
25086 | PyObject * obj1 = 0 ; | |
25087 | char *kwnames[] = { | |
25088 | (char *) "self",(char *) "metafile", NULL | |
25089 | }; | |
25090 | ||
25091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail; | |
25092 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetafileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25093 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMetafile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25094 | if (arg2 == NULL) { | |
25095 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25096 | } | |
25097 | { | |
25098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25099 | (arg1)->SetMetafile((wxMetafile const &)*arg2); | |
25100 | ||
25101 | wxPyEndAllowThreads(__tstate); | |
25102 | if (PyErr_Occurred()) SWIG_fail; | |
25103 | } | |
25104 | Py_INCREF(Py_None); resultobj = Py_None; | |
25105 | return resultobj; | |
25106 | fail: | |
25107 | return NULL; | |
25108 | } | |
25109 | ||
25110 | ||
25111 | static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25112 | PyObject *resultobj; | |
25113 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
25114 | wxMetafile result; | |
25115 | PyObject * obj0 = 0 ; | |
25116 | char *kwnames[] = { | |
25117 | (char *) "self", NULL | |
25118 | }; | |
25119 | ||
25120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail; | |
25121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetafileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25122 | { | |
25123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25124 | result = ((wxMetafileDataObject const *)arg1)->GetMetafile(); | |
25125 | ||
25126 | wxPyEndAllowThreads(__tstate); | |
25127 | if (PyErr_Occurred()) SWIG_fail; | |
25128 | } | |
25129 | { | |
25130 | wxMetafile * resultptr; | |
25131 | resultptr = new wxMetafile((wxMetafile &) result); | |
25132 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxMetafile, 1); | |
25133 | } | |
25134 | return resultobj; | |
25135 | fail: | |
25136 | return NULL; | |
25137 | } | |
25138 | ||
25139 | ||
25140 | static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) { | |
25141 | PyObject *obj; | |
25142 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25143 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
25144 | Py_INCREF(obj); | |
25145 | return Py_BuildValue((char *)""); | |
25146 | } | |
25147 | static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25148 | PyObject *resultobj; | |
25149 | int arg1 ; | |
25150 | bool result; | |
8edf1c75 | 25151 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
25152 | char *kwnames[] = { |
25153 | (char *) "res", NULL | |
25154 | }; | |
25155 | ||
8edf1c75 RD |
25156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; |
25157 | { | |
25158 | arg1 = (wxDragResult) SWIG_PyObj_AsInt(obj0); | |
25159 | if (PyErr_Occurred()) SWIG_fail; | |
25160 | } | |
d14a1e28 RD |
25161 | { |
25162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25163 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
25164 | ||
25165 | wxPyEndAllowThreads(__tstate); | |
25166 | if (PyErr_Occurred()) SWIG_fail; | |
25167 | } | |
02a34c4c | 25168 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25169 | return resultobj; |
25170 | fail: | |
25171 | return NULL; | |
25172 | } | |
25173 | ||
25174 | ||
25175 | static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25176 | PyObject *resultobj; | |
d896a793 | 25177 | wxWindow *arg1 = (wxWindow *) 0 ; |
d14a1e28 RD |
25178 | wxCursor const &arg2_defvalue = wxNullCursor ; |
25179 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
25180 | wxCursor const &arg3_defvalue = wxNullCursor ; | |
25181 | wxCursor *arg3 = (wxCursor *) &arg3_defvalue ; | |
25182 | wxCursor const &arg4_defvalue = wxNullCursor ; | |
25183 | wxCursor *arg4 = (wxCursor *) &arg4_defvalue ; | |
25184 | wxPyDropSource *result; | |
25185 | PyObject * obj0 = 0 ; | |
25186 | PyObject * obj1 = 0 ; | |
25187 | PyObject * obj2 = 0 ; | |
25188 | PyObject * obj3 = 0 ; | |
25189 | char *kwnames[] = { | |
25190 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
25191 | }; | |
25192 | ||
d896a793 RD |
25193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
25194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
d14a1e28 RD |
25195 | if (obj1) { |
25196 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25197 | if (arg2 == NULL) { | |
25198 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25199 | } | |
25200 | } | |
25201 | if (obj2) { | |
25202 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25203 | if (arg3 == NULL) { | |
25204 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25205 | } | |
25206 | } | |
25207 | if (obj3) { | |
25208 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25209 | if (arg4 == NULL) { | |
25210 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25211 | } | |
25212 | } | |
25213 | { | |
25214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25215 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4); | |
25216 | ||
25217 | wxPyEndAllowThreads(__tstate); | |
25218 | if (PyErr_Occurred()) SWIG_fail; | |
25219 | } | |
25220 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropSource, 1); | |
25221 | return resultobj; | |
25222 | fail: | |
25223 | return NULL; | |
25224 | } | |
25225 | ||
25226 | ||
25227 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25228 | PyObject *resultobj; | |
25229 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25230 | PyObject *arg2 = (PyObject *) 0 ; | |
25231 | PyObject *arg3 = (PyObject *) 0 ; | |
25232 | int arg4 ; | |
25233 | PyObject * obj0 = 0 ; | |
25234 | PyObject * obj1 = 0 ; | |
25235 | PyObject * obj2 = 0 ; | |
8edf1c75 | 25236 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
25237 | char *kwnames[] = { |
25238 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
25239 | }; | |
25240 | ||
8edf1c75 | 25241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
25242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25243 | arg2 = obj1; | |
25244 | arg3 = obj2; | |
8edf1c75 RD |
25245 | { |
25246 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25247 | if (PyErr_Occurred()) SWIG_fail; | |
25248 | } | |
d14a1e28 RD |
25249 | { |
25250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25251 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
25252 | ||
25253 | wxPyEndAllowThreads(__tstate); | |
25254 | if (PyErr_Occurred()) SWIG_fail; | |
25255 | } | |
25256 | Py_INCREF(Py_None); resultobj = Py_None; | |
25257 | return resultobj; | |
25258 | fail: | |
25259 | return NULL; | |
25260 | } | |
25261 | ||
25262 | ||
25263 | static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25264 | PyObject *resultobj; | |
25265 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25266 | PyObject * obj0 = 0 ; | |
25267 | char *kwnames[] = { | |
25268 | (char *) "self", NULL | |
25269 | }; | |
25270 | ||
25271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
25272 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25273 | { | |
25274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25275 | delete arg1; | |
25276 | ||
25277 | wxPyEndAllowThreads(__tstate); | |
25278 | if (PyErr_Occurred()) SWIG_fail; | |
25279 | } | |
25280 | Py_INCREF(Py_None); resultobj = Py_None; | |
25281 | return resultobj; | |
25282 | fail: | |
25283 | return NULL; | |
25284 | } | |
25285 | ||
25286 | ||
25287 | static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25288 | PyObject *resultobj; | |
25289 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25290 | wxDataObject *arg2 = 0 ; | |
25291 | PyObject * obj0 = 0 ; | |
25292 | PyObject * obj1 = 0 ; | |
25293 | char *kwnames[] = { | |
25294 | (char *) "self",(char *) "data", NULL | |
25295 | }; | |
25296 | ||
25297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
25298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25299 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25300 | if (arg2 == NULL) { | |
25301 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25302 | } | |
25303 | { | |
25304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25305 | (arg1)->SetData(*arg2); | |
25306 | ||
25307 | wxPyEndAllowThreads(__tstate); | |
25308 | if (PyErr_Occurred()) SWIG_fail; | |
25309 | } | |
25310 | Py_INCREF(Py_None); resultobj = Py_None; | |
25311 | return resultobj; | |
25312 | fail: | |
25313 | return NULL; | |
25314 | } | |
25315 | ||
25316 | ||
25317 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25318 | PyObject *resultobj; | |
25319 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25320 | wxDataObject *result; | |
25321 | PyObject * obj0 = 0 ; | |
25322 | char *kwnames[] = { | |
25323 | (char *) "self", NULL | |
25324 | }; | |
25325 | ||
25326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
25327 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25328 | { | |
25329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25330 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
25331 | ||
25332 | wxPyEndAllowThreads(__tstate); | |
25333 | if (PyErr_Occurred()) SWIG_fail; | |
25334 | } | |
25335 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObject, 0); | |
25336 | return resultobj; | |
25337 | fail: | |
25338 | return NULL; | |
25339 | } | |
25340 | ||
25341 | ||
25342 | static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25343 | PyObject *resultobj; | |
25344 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25345 | int arg2 ; | |
25346 | wxCursor *arg3 = 0 ; | |
25347 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25348 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25349 | PyObject * obj2 = 0 ; |
25350 | char *kwnames[] = { | |
25351 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
25352 | }; | |
25353 | ||
8edf1c75 | 25354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 25355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25356 | { |
25357 | arg2 = (wxDragResult) SWIG_PyObj_AsInt(obj1); | |
25358 | if (PyErr_Occurred()) SWIG_fail; | |
25359 | } | |
d14a1e28 RD |
25360 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25361 | if (arg3 == NULL) { | |
25362 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25363 | } | |
25364 | { | |
25365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25366 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
25367 | ||
25368 | wxPyEndAllowThreads(__tstate); | |
25369 | if (PyErr_Occurred()) SWIG_fail; | |
25370 | } | |
25371 | Py_INCREF(Py_None); resultobj = Py_None; | |
25372 | return resultobj; | |
25373 | fail: | |
25374 | return NULL; | |
25375 | } | |
25376 | ||
25377 | ||
25378 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25379 | PyObject *resultobj; | |
25380 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25381 | int arg2 = (int) wxDrag_CopyOnly ; | |
25382 | int result; | |
25383 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25384 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25385 | char *kwnames[] = { |
25386 | (char *) "self",(char *) "flags", NULL | |
25387 | }; | |
25388 | ||
8edf1c75 | 25389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25390 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25391 | if (obj1) { |
25392 | { | |
25393 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25394 | if (PyErr_Occurred()) SWIG_fail; | |
25395 | } | |
25396 | } | |
d14a1e28 RD |
25397 | { |
25398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25399 | result = (int)(arg1)->DoDragDrop(arg2); | |
25400 | ||
25401 | wxPyEndAllowThreads(__tstate); | |
25402 | if (PyErr_Occurred()) SWIG_fail; | |
25403 | } | |
8edf1c75 | 25404 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25405 | return resultobj; |
25406 | fail: | |
25407 | return NULL; | |
25408 | } | |
25409 | ||
25410 | ||
25411 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25412 | PyObject *resultobj; | |
25413 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25414 | int arg2 ; | |
25415 | bool result; | |
25416 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25417 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25418 | char *kwnames[] = { |
25419 | (char *) "self",(char *) "effect", NULL | |
25420 | }; | |
25421 | ||
8edf1c75 | 25422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25424 | { |
25425 | arg2 = (wxDragResult) SWIG_PyObj_AsInt(obj1); | |
25426 | if (PyErr_Occurred()) SWIG_fail; | |
25427 | } | |
d14a1e28 RD |
25428 | { |
25429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25430 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
25431 | ||
25432 | wxPyEndAllowThreads(__tstate); | |
25433 | if (PyErr_Occurred()) SWIG_fail; | |
25434 | } | |
02a34c4c | 25435 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25436 | return resultobj; |
25437 | fail: | |
25438 | return NULL; | |
25439 | } | |
25440 | ||
25441 | ||
25442 | static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) { | |
25443 | PyObject *obj; | |
25444 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25445 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
25446 | Py_INCREF(obj); | |
25447 | return Py_BuildValue((char *)""); | |
25448 | } | |
cbd72d4f | 25449 | static PyObject *_wrap_new_PyDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25450 | PyObject *resultobj; |
25451 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
25452 | wxPyDropTarget *result; | |
25453 | PyObject * obj0 = 0 ; | |
25454 | char *kwnames[] = { | |
25455 | (char *) "dataObject", NULL | |
25456 | }; | |
25457 | ||
cbd72d4f | 25458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDropTarget",kwnames,&obj0)) goto fail; |
d14a1e28 | 25459 | if (obj0) { |
58203fa6 | 25460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
25461 | } |
25462 | { | |
25463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25464 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
25465 | ||
25466 | wxPyEndAllowThreads(__tstate); | |
25467 | if (PyErr_Occurred()) SWIG_fail; | |
25468 | } | |
25469 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropTarget, 1); | |
25470 | return resultobj; | |
25471 | fail: | |
25472 | return NULL; | |
25473 | } | |
25474 | ||
25475 | ||
25476 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25477 | PyObject *resultobj; | |
25478 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25479 | PyObject *arg2 = (PyObject *) 0 ; | |
25480 | PyObject *arg3 = (PyObject *) 0 ; | |
25481 | PyObject * obj0 = 0 ; | |
25482 | PyObject * obj1 = 0 ; | |
25483 | PyObject * obj2 = 0 ; | |
25484 | char *kwnames[] = { | |
25485 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25486 | }; | |
25487 | ||
25488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25489 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25490 | arg2 = obj1; | |
25491 | arg3 = obj2; | |
25492 | { | |
25493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25494 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25495 | ||
25496 | wxPyEndAllowThreads(__tstate); | |
25497 | if (PyErr_Occurred()) SWIG_fail; | |
25498 | } | |
25499 | Py_INCREF(Py_None); resultobj = Py_None; | |
25500 | return resultobj; | |
25501 | fail: | |
25502 | return NULL; | |
25503 | } | |
25504 | ||
25505 | ||
25506 | static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25507 | PyObject *resultobj; | |
25508 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25509 | PyObject * obj0 = 0 ; | |
25510 | char *kwnames[] = { | |
25511 | (char *) "self", NULL | |
25512 | }; | |
25513 | ||
25514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
25515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25516 | { | |
25517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25518 | delete arg1; | |
25519 | ||
25520 | wxPyEndAllowThreads(__tstate); | |
25521 | if (PyErr_Occurred()) SWIG_fail; | |
25522 | } | |
25523 | Py_INCREF(Py_None); resultobj = Py_None; | |
25524 | return resultobj; | |
25525 | fail: | |
25526 | return NULL; | |
25527 | } | |
25528 | ||
25529 | ||
25530 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25531 | PyObject *resultobj; | |
25532 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25533 | wxDataObject *result; | |
25534 | PyObject * obj0 = 0 ; | |
25535 | char *kwnames[] = { | |
25536 | (char *) "self", NULL | |
25537 | }; | |
25538 | ||
25539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
25540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25541 | { | |
25542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25543 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
25544 | ||
25545 | wxPyEndAllowThreads(__tstate); | |
25546 | if (PyErr_Occurred()) SWIG_fail; | |
25547 | } | |
25548 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObject, 0); | |
25549 | return resultobj; | |
25550 | fail: | |
25551 | return NULL; | |
25552 | } | |
25553 | ||
25554 | ||
25555 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25556 | PyObject *resultobj; | |
25557 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25558 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
25559 | PyObject * obj0 = 0 ; | |
25560 | PyObject * obj1 = 0 ; | |
25561 | char *kwnames[] = { | |
25562 | (char *) "self",(char *) "dataObject", NULL | |
25563 | }; | |
25564 | ||
25565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
25566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 25567 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
25568 | { |
25569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25570 | (arg1)->SetDataObject(arg2); | |
25571 | ||
25572 | wxPyEndAllowThreads(__tstate); | |
25573 | if (PyErr_Occurred()) SWIG_fail; | |
25574 | } | |
25575 | Py_INCREF(Py_None); resultobj = Py_None; | |
25576 | return resultobj; | |
25577 | fail: | |
25578 | return NULL; | |
25579 | } | |
25580 | ||
25581 | ||
25582 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25583 | PyObject *resultobj; | |
25584 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
423f194a RD |
25585 | int arg2 ; |
25586 | int arg3 ; | |
d14a1e28 RD |
25587 | int arg4 ; |
25588 | int result; | |
25589 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
25590 | PyObject * obj1 = 0 ; |
25591 | PyObject * obj2 = 0 ; | |
25592 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25593 | char *kwnames[] = { |
25594 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
25595 | }; | |
25596 | ||
8edf1c75 | 25597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 25598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25599 | { |
25600 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25601 | if (PyErr_Occurred()) SWIG_fail; | |
25602 | } | |
25603 | { | |
25604 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25605 | if (PyErr_Occurred()) SWIG_fail; | |
25606 | } | |
25607 | { | |
25608 | arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3); | |
25609 | if (PyErr_Occurred()) SWIG_fail; | |
25610 | } | |
d14a1e28 RD |
25611 | { |
25612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25613 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
25614 | ||
25615 | wxPyEndAllowThreads(__tstate); | |
25616 | if (PyErr_Occurred()) SWIG_fail; | |
25617 | } | |
8edf1c75 | 25618 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25619 | return resultobj; |
25620 | fail: | |
25621 | return NULL; | |
25622 | } | |
25623 | ||
25624 | ||
25625 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25626 | PyObject *resultobj; | |
25627 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
423f194a RD |
25628 | int arg2 ; |
25629 | int arg3 ; | |
d14a1e28 RD |
25630 | int arg4 ; |
25631 | int result; | |
25632 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
25633 | PyObject * obj1 = 0 ; |
25634 | PyObject * obj2 = 0 ; | |
25635 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25636 | char *kwnames[] = { |
25637 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
25638 | }; | |
25639 | ||
8edf1c75 | 25640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 25641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25642 | { |
25643 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25644 | if (PyErr_Occurred()) SWIG_fail; | |
25645 | } | |
25646 | { | |
25647 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25648 | if (PyErr_Occurred()) SWIG_fail; | |
25649 | } | |
25650 | { | |
25651 | arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3); | |
25652 | if (PyErr_Occurred()) SWIG_fail; | |
25653 | } | |
d14a1e28 RD |
25654 | { |
25655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25656 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
25657 | ||
25658 | wxPyEndAllowThreads(__tstate); | |
25659 | if (PyErr_Occurred()) SWIG_fail; | |
25660 | } | |
8edf1c75 | 25661 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25662 | return resultobj; |
25663 | fail: | |
25664 | return NULL; | |
25665 | } | |
25666 | ||
25667 | ||
25668 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25669 | PyObject *resultobj; | |
25670 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25671 | PyObject * obj0 = 0 ; | |
25672 | char *kwnames[] = { | |
25673 | (char *) "self", NULL | |
25674 | }; | |
25675 | ||
25676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
25677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25678 | { | |
25679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25680 | (arg1)->base_OnLeave(); | |
25681 | ||
25682 | wxPyEndAllowThreads(__tstate); | |
25683 | if (PyErr_Occurred()) SWIG_fail; | |
25684 | } | |
25685 | Py_INCREF(Py_None); resultobj = Py_None; | |
25686 | return resultobj; | |
25687 | fail: | |
25688 | return NULL; | |
25689 | } | |
25690 | ||
25691 | ||
25692 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25693 | PyObject *resultobj; | |
25694 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
423f194a RD |
25695 | int arg2 ; |
25696 | int arg3 ; | |
d14a1e28 RD |
25697 | bool result; |
25698 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
25699 | PyObject * obj1 = 0 ; |
25700 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25701 | char *kwnames[] = { |
25702 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25703 | }; | |
25704 | ||
8edf1c75 | 25705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 25706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25707 | { |
25708 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25709 | if (PyErr_Occurred()) SWIG_fail; | |
25710 | } | |
25711 | { | |
25712 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25713 | if (PyErr_Occurred()) SWIG_fail; | |
25714 | } | |
d14a1e28 RD |
25715 | { |
25716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25717 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
25718 | ||
25719 | wxPyEndAllowThreads(__tstate); | |
25720 | if (PyErr_Occurred()) SWIG_fail; | |
25721 | } | |
02a34c4c | 25722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25723 | return resultobj; |
25724 | fail: | |
25725 | return NULL; | |
25726 | } | |
25727 | ||
25728 | ||
25729 | static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25730 | PyObject *resultobj; | |
25731 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25732 | bool result; | |
25733 | PyObject * obj0 = 0 ; | |
25734 | char *kwnames[] = { | |
25735 | (char *) "self", NULL | |
25736 | }; | |
25737 | ||
25738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
25739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25740 | { | |
25741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25742 | result = (bool)(arg1)->GetData(); | |
25743 | ||
25744 | wxPyEndAllowThreads(__tstate); | |
25745 | if (PyErr_Occurred()) SWIG_fail; | |
25746 | } | |
02a34c4c | 25747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25748 | return resultobj; |
25749 | fail: | |
25750 | return NULL; | |
25751 | } | |
25752 | ||
25753 | ||
25754 | static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) { | |
25755 | PyObject *obj; | |
25756 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25757 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
25758 | Py_INCREF(obj); | |
25759 | return Py_BuildValue((char *)""); | |
25760 | } | |
25761 | static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25762 | PyObject *resultobj; | |
25763 | wxPyTextDropTarget *result; | |
25764 | char *kwnames[] = { | |
25765 | NULL | |
25766 | }; | |
25767 | ||
25768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
25769 | { | |
25770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25771 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
25772 | ||
25773 | wxPyEndAllowThreads(__tstate); | |
25774 | if (PyErr_Occurred()) SWIG_fail; | |
25775 | } | |
25776 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextDropTarget, 1); | |
25777 | return resultobj; | |
25778 | fail: | |
25779 | return NULL; | |
25780 | } | |
25781 | ||
25782 | ||
25783 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25784 | PyObject *resultobj; | |
25785 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
25786 | PyObject *arg2 = (PyObject *) 0 ; | |
25787 | PyObject *arg3 = (PyObject *) 0 ; | |
25788 | PyObject * obj0 = 0 ; | |
25789 | PyObject * obj1 = 0 ; | |
25790 | PyObject * obj2 = 0 ; | |
25791 | char *kwnames[] = { | |
25792 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25793 | }; | |
25794 | ||
25795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25797 | arg2 = obj1; | |
25798 | arg3 = obj2; | |
25799 | { | |
25800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25801 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25802 | ||
25803 | wxPyEndAllowThreads(__tstate); | |
25804 | if (PyErr_Occurred()) SWIG_fail; | |
25805 | } | |
25806 | Py_INCREF(Py_None); resultobj = Py_None; | |
25807 | return resultobj; | |
25808 | fail: | |
25809 | return NULL; | |
25810 | } | |
25811 | ||
25812 | ||
25813 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25814 | PyObject *resultobj; | |
25815 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
423f194a RD |
25816 | int arg2 ; |
25817 | int arg3 ; | |
d14a1e28 RD |
25818 | int arg4 ; |
25819 | int result; | |
25820 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
25821 | PyObject * obj1 = 0 ; |
25822 | PyObject * obj2 = 0 ; | |
25823 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25824 | char *kwnames[] = { |
25825 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
25826 | }; | |
25827 | ||
8edf1c75 | 25828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 25829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25830 | { |
25831 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25832 | if (PyErr_Occurred()) SWIG_fail; | |
25833 | } | |
25834 | { | |
25835 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25836 | if (PyErr_Occurred()) SWIG_fail; | |
25837 | } | |
25838 | { | |
25839 | arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3); | |
25840 | if (PyErr_Occurred()) SWIG_fail; | |
25841 | } | |
d14a1e28 RD |
25842 | { |
25843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25844 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
25845 | ||
25846 | wxPyEndAllowThreads(__tstate); | |
25847 | if (PyErr_Occurred()) SWIG_fail; | |
25848 | } | |
8edf1c75 | 25849 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25850 | return resultobj; |
25851 | fail: | |
25852 | return NULL; | |
25853 | } | |
25854 | ||
25855 | ||
25856 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25857 | PyObject *resultobj; | |
25858 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
423f194a RD |
25859 | int arg2 ; |
25860 | int arg3 ; | |
d14a1e28 RD |
25861 | int arg4 ; |
25862 | int result; | |
25863 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
25864 | PyObject * obj1 = 0 ; |
25865 | PyObject * obj2 = 0 ; | |
25866 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25867 | char *kwnames[] = { |
25868 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
25869 | }; | |
25870 | ||
8edf1c75 | 25871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 25872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25873 | { |
25874 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25875 | if (PyErr_Occurred()) SWIG_fail; | |
25876 | } | |
25877 | { | |
25878 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25879 | if (PyErr_Occurred()) SWIG_fail; | |
25880 | } | |
25881 | { | |
25882 | arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3); | |
25883 | if (PyErr_Occurred()) SWIG_fail; | |
25884 | } | |
d14a1e28 RD |
25885 | { |
25886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25887 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
25888 | ||
25889 | wxPyEndAllowThreads(__tstate); | |
25890 | if (PyErr_Occurred()) SWIG_fail; | |
25891 | } | |
8edf1c75 | 25892 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25893 | return resultobj; |
25894 | fail: | |
25895 | return NULL; | |
25896 | } | |
25897 | ||
25898 | ||
25899 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25900 | PyObject *resultobj; | |
25901 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
25902 | PyObject * obj0 = 0 ; | |
25903 | char *kwnames[] = { | |
25904 | (char *) "self", NULL | |
25905 | }; | |
25906 | ||
25907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
25908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25909 | { | |
25910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25911 | (arg1)->base_OnLeave(); | |
25912 | ||
25913 | wxPyEndAllowThreads(__tstate); | |
25914 | if (PyErr_Occurred()) SWIG_fail; | |
25915 | } | |
25916 | Py_INCREF(Py_None); resultobj = Py_None; | |
25917 | return resultobj; | |
25918 | fail: | |
25919 | return NULL; | |
25920 | } | |
25921 | ||
25922 | ||
25923 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25924 | PyObject *resultobj; | |
25925 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
423f194a RD |
25926 | int arg2 ; |
25927 | int arg3 ; | |
d14a1e28 RD |
25928 | bool result; |
25929 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
25930 | PyObject * obj1 = 0 ; |
25931 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25932 | char *kwnames[] = { |
25933 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25934 | }; | |
25935 | ||
8edf1c75 | 25936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 25937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25938 | { |
25939 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25940 | if (PyErr_Occurred()) SWIG_fail; | |
25941 | } | |
25942 | { | |
25943 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25944 | if (PyErr_Occurred()) SWIG_fail; | |
25945 | } | |
d14a1e28 RD |
25946 | { |
25947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25948 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
25949 | ||
25950 | wxPyEndAllowThreads(__tstate); | |
25951 | if (PyErr_Occurred()) SWIG_fail; | |
25952 | } | |
02a34c4c | 25953 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25954 | return resultobj; |
25955 | fail: | |
25956 | return NULL; | |
25957 | } | |
25958 | ||
25959 | ||
25960 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25961 | PyObject *resultobj; | |
25962 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
423f194a RD |
25963 | int arg2 ; |
25964 | int arg3 ; | |
d14a1e28 RD |
25965 | int arg4 ; |
25966 | int result; | |
25967 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
25968 | PyObject * obj1 = 0 ; |
25969 | PyObject * obj2 = 0 ; | |
25970 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25971 | char *kwnames[] = { |
25972 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
25973 | }; | |
25974 | ||
8edf1c75 | 25975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 25976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25977 | { |
25978 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25979 | if (PyErr_Occurred()) SWIG_fail; | |
25980 | } | |
25981 | { | |
25982 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25983 | if (PyErr_Occurred()) SWIG_fail; | |
25984 | } | |
25985 | { | |
25986 | arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3); | |
25987 | if (PyErr_Occurred()) SWIG_fail; | |
25988 | } | |
d14a1e28 RD |
25989 | { |
25990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25991 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
25992 | ||
25993 | wxPyEndAllowThreads(__tstate); | |
25994 | if (PyErr_Occurred()) SWIG_fail; | |
25995 | } | |
8edf1c75 | 25996 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25997 | return resultobj; |
25998 | fail: | |
25999 | return NULL; | |
26000 | } | |
26001 | ||
26002 | ||
26003 | static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26004 | PyObject *obj; | |
26005 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26006 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
26007 | Py_INCREF(obj); | |
26008 | return Py_BuildValue((char *)""); | |
26009 | } | |
26010 | static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26011 | PyObject *resultobj; | |
26012 | wxPyFileDropTarget *result; | |
26013 | char *kwnames[] = { | |
26014 | NULL | |
26015 | }; | |
26016 | ||
26017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
26018 | { | |
26019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26020 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
26021 | ||
26022 | wxPyEndAllowThreads(__tstate); | |
26023 | if (PyErr_Occurred()) SWIG_fail; | |
26024 | } | |
26025 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFileDropTarget, 1); | |
26026 | return resultobj; | |
26027 | fail: | |
26028 | return NULL; | |
26029 | } | |
26030 | ||
26031 | ||
26032 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26033 | PyObject *resultobj; | |
26034 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26035 | PyObject *arg2 = (PyObject *) 0 ; | |
26036 | PyObject *arg3 = (PyObject *) 0 ; | |
26037 | PyObject * obj0 = 0 ; | |
26038 | PyObject * obj1 = 0 ; | |
26039 | PyObject * obj2 = 0 ; | |
26040 | char *kwnames[] = { | |
26041 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26042 | }; | |
26043 | ||
26044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26046 | arg2 = obj1; | |
26047 | arg3 = obj2; | |
26048 | { | |
26049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26050 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26051 | ||
26052 | wxPyEndAllowThreads(__tstate); | |
26053 | if (PyErr_Occurred()) SWIG_fail; | |
26054 | } | |
26055 | Py_INCREF(Py_None); resultobj = Py_None; | |
26056 | return resultobj; | |
26057 | fail: | |
26058 | return NULL; | |
26059 | } | |
26060 | ||
26061 | ||
26062 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26063 | PyObject *resultobj; | |
26064 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
423f194a RD |
26065 | int arg2 ; |
26066 | int arg3 ; | |
d14a1e28 RD |
26067 | int arg4 ; |
26068 | int result; | |
26069 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
26070 | PyObject * obj1 = 0 ; |
26071 | PyObject * obj2 = 0 ; | |
26072 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26073 | char *kwnames[] = { |
26074 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26075 | }; | |
26076 | ||
8edf1c75 | 26077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 26078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
26079 | { |
26080 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
26081 | if (PyErr_Occurred()) SWIG_fail; | |
26082 | } | |
26083 | { | |
26084 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
26085 | if (PyErr_Occurred()) SWIG_fail; | |
26086 | } | |
26087 | { | |
26088 | arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3); | |
26089 | if (PyErr_Occurred()) SWIG_fail; | |
26090 | } | |
d14a1e28 RD |
26091 | { |
26092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26093 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26094 | ||
26095 | wxPyEndAllowThreads(__tstate); | |
26096 | if (PyErr_Occurred()) SWIG_fail; | |
26097 | } | |
8edf1c75 | 26098 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
26099 | return resultobj; |
26100 | fail: | |
26101 | return NULL; | |
26102 | } | |
26103 | ||
26104 | ||
26105 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26106 | PyObject *resultobj; | |
26107 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
423f194a RD |
26108 | int arg2 ; |
26109 | int arg3 ; | |
d14a1e28 RD |
26110 | int arg4 ; |
26111 | int result; | |
26112 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
26113 | PyObject * obj1 = 0 ; |
26114 | PyObject * obj2 = 0 ; | |
26115 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26116 | char *kwnames[] = { |
26117 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26118 | }; | |
26119 | ||
8edf1c75 | 26120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 26121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
26122 | { |
26123 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
26124 | if (PyErr_Occurred()) SWIG_fail; | |
26125 | } | |
26126 | { | |
26127 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
26128 | if (PyErr_Occurred()) SWIG_fail; | |
26129 | } | |
26130 | { | |
26131 | arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3); | |
26132 | if (PyErr_Occurred()) SWIG_fail; | |
26133 | } | |
d14a1e28 RD |
26134 | { |
26135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26136 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26137 | ||
26138 | wxPyEndAllowThreads(__tstate); | |
26139 | if (PyErr_Occurred()) SWIG_fail; | |
26140 | } | |
8edf1c75 | 26141 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
26142 | return resultobj; |
26143 | fail: | |
26144 | return NULL; | |
26145 | } | |
26146 | ||
26147 | ||
26148 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26149 | PyObject *resultobj; | |
26150 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26151 | PyObject * obj0 = 0 ; | |
26152 | char *kwnames[] = { | |
26153 | (char *) "self", NULL | |
26154 | }; | |
26155 | ||
26156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26158 | { | |
26159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26160 | (arg1)->base_OnLeave(); | |
26161 | ||
26162 | wxPyEndAllowThreads(__tstate); | |
26163 | if (PyErr_Occurred()) SWIG_fail; | |
26164 | } | |
26165 | Py_INCREF(Py_None); resultobj = Py_None; | |
26166 | return resultobj; | |
26167 | fail: | |
26168 | return NULL; | |
26169 | } | |
26170 | ||
26171 | ||
26172 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26173 | PyObject *resultobj; | |
26174 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
423f194a RD |
26175 | int arg2 ; |
26176 | int arg3 ; | |
d14a1e28 RD |
26177 | bool result; |
26178 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
26179 | PyObject * obj1 = 0 ; |
26180 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26181 | char *kwnames[] = { |
26182 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26183 | }; | |
26184 | ||
8edf1c75 | 26185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 26186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
26187 | { |
26188 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
26189 | if (PyErr_Occurred()) SWIG_fail; | |
26190 | } | |
26191 | { | |
26192 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
26193 | if (PyErr_Occurred()) SWIG_fail; | |
26194 | } | |
d14a1e28 RD |
26195 | { |
26196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26197 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26198 | ||
26199 | wxPyEndAllowThreads(__tstate); | |
26200 | if (PyErr_Occurred()) SWIG_fail; | |
26201 | } | |
02a34c4c | 26202 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26203 | return resultobj; |
26204 | fail: | |
26205 | return NULL; | |
26206 | } | |
26207 | ||
26208 | ||
26209 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26210 | PyObject *resultobj; | |
26211 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
423f194a RD |
26212 | int arg2 ; |
26213 | int arg3 ; | |
d14a1e28 RD |
26214 | int arg4 ; |
26215 | int result; | |
26216 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
26217 | PyObject * obj1 = 0 ; |
26218 | PyObject * obj2 = 0 ; | |
26219 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26220 | char *kwnames[] = { |
26221 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26222 | }; | |
26223 | ||
8edf1c75 | 26224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 26225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
26226 | { |
26227 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
26228 | if (PyErr_Occurred()) SWIG_fail; | |
26229 | } | |
26230 | { | |
26231 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
26232 | if (PyErr_Occurred()) SWIG_fail; | |
26233 | } | |
26234 | { | |
26235 | arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3); | |
26236 | if (PyErr_Occurred()) SWIG_fail; | |
26237 | } | |
d14a1e28 RD |
26238 | { |
26239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26240 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26241 | ||
26242 | wxPyEndAllowThreads(__tstate); | |
26243 | if (PyErr_Occurred()) SWIG_fail; | |
26244 | } | |
8edf1c75 | 26245 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
26246 | return resultobj; |
26247 | fail: | |
26248 | return NULL; | |
26249 | } | |
26250 | ||
26251 | ||
26252 | static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26253 | PyObject *obj; | |
26254 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26255 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
26256 | Py_INCREF(obj); | |
26257 | return Py_BuildValue((char *)""); | |
26258 | } | |
26259 | static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26260 | PyObject *resultobj; | |
26261 | wxClipboard *result; | |
26262 | char *kwnames[] = { | |
26263 | NULL | |
26264 | }; | |
26265 | ||
26266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
26267 | { | |
26268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26269 | result = (wxClipboard *)new wxClipboard(); | |
26270 | ||
26271 | wxPyEndAllowThreads(__tstate); | |
26272 | if (PyErr_Occurred()) SWIG_fail; | |
26273 | } | |
26274 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClipboard, 1); | |
26275 | return resultobj; | |
26276 | fail: | |
26277 | return NULL; | |
26278 | } | |
26279 | ||
26280 | ||
26281 | static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26282 | PyObject *resultobj; | |
26283 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26284 | PyObject * obj0 = 0 ; | |
26285 | char *kwnames[] = { | |
26286 | (char *) "self", NULL | |
26287 | }; | |
26288 | ||
26289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
26290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26291 | { | |
26292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26293 | delete arg1; | |
26294 | ||
26295 | wxPyEndAllowThreads(__tstate); | |
26296 | if (PyErr_Occurred()) SWIG_fail; | |
26297 | } | |
26298 | Py_INCREF(Py_None); resultobj = Py_None; | |
26299 | return resultobj; | |
26300 | fail: | |
26301 | return NULL; | |
26302 | } | |
26303 | ||
26304 | ||
26305 | static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26306 | PyObject *resultobj; | |
26307 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26308 | bool result; | |
26309 | PyObject * obj0 = 0 ; | |
26310 | char *kwnames[] = { | |
26311 | (char *) "self", NULL | |
26312 | }; | |
26313 | ||
26314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
26315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26316 | { | |
26317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26318 | result = (bool)(arg1)->Open(); | |
26319 | ||
26320 | wxPyEndAllowThreads(__tstate); | |
26321 | if (PyErr_Occurred()) SWIG_fail; | |
26322 | } | |
02a34c4c | 26323 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26324 | return resultobj; |
26325 | fail: | |
26326 | return NULL; | |
26327 | } | |
26328 | ||
26329 | ||
26330 | static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26331 | PyObject *resultobj; | |
26332 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26333 | PyObject * obj0 = 0 ; | |
26334 | char *kwnames[] = { | |
26335 | (char *) "self", NULL | |
26336 | }; | |
26337 | ||
26338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
26339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26340 | { | |
26341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26342 | (arg1)->Close(); | |
26343 | ||
26344 | wxPyEndAllowThreads(__tstate); | |
26345 | if (PyErr_Occurred()) SWIG_fail; | |
26346 | } | |
26347 | Py_INCREF(Py_None); resultobj = Py_None; | |
26348 | return resultobj; | |
26349 | fail: | |
26350 | return NULL; | |
26351 | } | |
26352 | ||
26353 | ||
26354 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26355 | PyObject *resultobj; | |
26356 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26357 | bool result; | |
26358 | PyObject * obj0 = 0 ; | |
26359 | char *kwnames[] = { | |
26360 | (char *) "self", NULL | |
26361 | }; | |
26362 | ||
26363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
26364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26365 | { | |
26366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26367 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
26368 | ||
26369 | wxPyEndAllowThreads(__tstate); | |
26370 | if (PyErr_Occurred()) SWIG_fail; | |
26371 | } | |
02a34c4c | 26372 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26373 | return resultobj; |
26374 | fail: | |
26375 | return NULL; | |
26376 | } | |
26377 | ||
26378 | ||
26379 | static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26380 | PyObject *resultobj; | |
26381 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26382 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26383 | bool result; | |
26384 | PyObject * obj0 = 0 ; | |
26385 | PyObject * obj1 = 0 ; | |
26386 | char *kwnames[] = { | |
26387 | (char *) "self",(char *) "data", NULL | |
26388 | }; | |
26389 | ||
26390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
26391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 26392 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
26393 | { |
26394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26395 | result = (bool)(arg1)->AddData(arg2); | |
26396 | ||
26397 | wxPyEndAllowThreads(__tstate); | |
26398 | if (PyErr_Occurred()) SWIG_fail; | |
26399 | } | |
02a34c4c | 26400 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26401 | return resultobj; |
26402 | fail: | |
26403 | return NULL; | |
26404 | } | |
26405 | ||
26406 | ||
26407 | static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26408 | PyObject *resultobj; | |
26409 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26410 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26411 | bool result; | |
26412 | PyObject * obj0 = 0 ; | |
26413 | PyObject * obj1 = 0 ; | |
26414 | char *kwnames[] = { | |
26415 | (char *) "self",(char *) "data", NULL | |
26416 | }; | |
26417 | ||
26418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
26419 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 26420 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
26421 | { |
26422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26423 | result = (bool)(arg1)->SetData(arg2); | |
26424 | ||
26425 | wxPyEndAllowThreads(__tstate); | |
26426 | if (PyErr_Occurred()) SWIG_fail; | |
26427 | } | |
02a34c4c | 26428 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26429 | return resultobj; |
26430 | fail: | |
26431 | return NULL; | |
26432 | } | |
26433 | ||
26434 | ||
26435 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26436 | PyObject *resultobj; | |
26437 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26438 | wxDataFormat *arg2 = 0 ; | |
26439 | bool result; | |
26440 | PyObject * obj0 = 0 ; | |
26441 | PyObject * obj1 = 0 ; | |
26442 | char *kwnames[] = { | |
26443 | (char *) "self",(char *) "format", NULL | |
26444 | }; | |
26445 | ||
26446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
26447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26448 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26449 | if (arg2 == NULL) { | |
26450 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26451 | } | |
26452 | { | |
26453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26454 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
26455 | ||
26456 | wxPyEndAllowThreads(__tstate); | |
26457 | if (PyErr_Occurred()) SWIG_fail; | |
26458 | } | |
02a34c4c | 26459 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26460 | return resultobj; |
26461 | fail: | |
26462 | return NULL; | |
26463 | } | |
26464 | ||
26465 | ||
26466 | static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26467 | PyObject *resultobj; | |
26468 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26469 | wxDataObject *arg2 = 0 ; | |
26470 | bool result; | |
26471 | PyObject * obj0 = 0 ; | |
26472 | PyObject * obj1 = 0 ; | |
26473 | char *kwnames[] = { | |
26474 | (char *) "self",(char *) "data", NULL | |
26475 | }; | |
26476 | ||
26477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
26478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26479 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26480 | if (arg2 == NULL) { | |
26481 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26482 | } | |
26483 | { | |
26484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26485 | result = (bool)(arg1)->GetData(*arg2); | |
26486 | ||
26487 | wxPyEndAllowThreads(__tstate); | |
26488 | if (PyErr_Occurred()) SWIG_fail; | |
26489 | } | |
02a34c4c | 26490 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26491 | return resultobj; |
26492 | fail: | |
26493 | return NULL; | |
26494 | } | |
26495 | ||
26496 | ||
26497 | static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26498 | PyObject *resultobj; | |
26499 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26500 | PyObject * obj0 = 0 ; | |
26501 | char *kwnames[] = { | |
26502 | (char *) "self", NULL | |
26503 | }; | |
26504 | ||
26505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
26506 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26507 | { | |
26508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26509 | (arg1)->Clear(); | |
26510 | ||
26511 | wxPyEndAllowThreads(__tstate); | |
26512 | if (PyErr_Occurred()) SWIG_fail; | |
26513 | } | |
26514 | Py_INCREF(Py_None); resultobj = Py_None; | |
26515 | return resultobj; | |
26516 | fail: | |
26517 | return NULL; | |
26518 | } | |
26519 | ||
26520 | ||
26521 | static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26522 | PyObject *resultobj; | |
26523 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26524 | bool result; | |
26525 | PyObject * obj0 = 0 ; | |
26526 | char *kwnames[] = { | |
26527 | (char *) "self", NULL | |
26528 | }; | |
26529 | ||
26530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
26531 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26532 | { | |
26533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26534 | result = (bool)(arg1)->Flush(); | |
26535 | ||
26536 | wxPyEndAllowThreads(__tstate); | |
26537 | if (PyErr_Occurred()) SWIG_fail; | |
26538 | } | |
02a34c4c | 26539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26540 | return resultobj; |
26541 | fail: | |
26542 | return NULL; | |
26543 | } | |
26544 | ||
26545 | ||
26546 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26547 | PyObject *resultobj; | |
26548 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
1f05e33b | 26549 | bool arg2 = (bool) True ; |
d14a1e28 RD |
26550 | PyObject * obj0 = 0 ; |
26551 | PyObject * obj1 = 0 ; | |
26552 | char *kwnames[] = { | |
26553 | (char *) "self",(char *) "primary", NULL | |
26554 | }; | |
26555 | ||
26556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
26557 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26558 | if (obj1) { | |
2dbef272 | 26559 | { |
8edf1c75 | 26560 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
2dbef272 RD |
26561 | if (PyErr_Occurred()) SWIG_fail; |
26562 | } | |
d14a1e28 RD |
26563 | } |
26564 | { | |
26565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26566 | (arg1)->UsePrimarySelection(arg2); | |
26567 | ||
26568 | wxPyEndAllowThreads(__tstate); | |
26569 | if (PyErr_Occurred()) SWIG_fail; | |
26570 | } | |
26571 | Py_INCREF(Py_None); resultobj = Py_None; | |
26572 | return resultobj; | |
26573 | fail: | |
26574 | return NULL; | |
26575 | } | |
26576 | ||
26577 | ||
26578 | static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) { | |
26579 | PyObject *obj; | |
26580 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26581 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
26582 | Py_INCREF(obj); | |
26583 | return Py_BuildValue((char *)""); | |
26584 | } | |
8edf1c75 | 26585 | static int _wrap_TheClipboard_set(PyObject *) { |
d14a1e28 RD |
26586 | PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only."); |
26587 | return 1; | |
26588 | } | |
26589 | ||
26590 | ||
26591 | static PyObject *_wrap_TheClipboard_get() { | |
26592 | PyObject *pyobj; | |
26593 | ||
26594 | pyobj = SWIG_NewPointerObj((void *) wxTheClipboard, SWIGTYPE_p_wxClipboard, 0); | |
26595 | return pyobj; | |
26596 | } | |
26597 | ||
26598 | ||
26599 | static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26600 | PyObject *resultobj; | |
26601 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
26602 | wxClipboardLocker *result; | |
26603 | PyObject * obj0 = 0 ; | |
26604 | char *kwnames[] = { | |
26605 | (char *) "clipboard", NULL | |
26606 | }; | |
26607 | ||
26608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
26609 | if (obj0) { | |
26610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26611 | } | |
26612 | { | |
26613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26614 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
26615 | ||
26616 | wxPyEndAllowThreads(__tstate); | |
26617 | if (PyErr_Occurred()) SWIG_fail; | |
26618 | } | |
26619 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClipboardLocker, 1); | |
26620 | return resultobj; | |
26621 | fail: | |
26622 | return NULL; | |
26623 | } | |
26624 | ||
26625 | ||
26626 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26627 | PyObject *resultobj; | |
26628 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
26629 | PyObject * obj0 = 0 ; | |
26630 | char *kwnames[] = { | |
26631 | (char *) "self", NULL | |
26632 | }; | |
26633 | ||
26634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
26635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboardLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26636 | { | |
26637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26638 | delete arg1; | |
26639 | ||
26640 | wxPyEndAllowThreads(__tstate); | |
26641 | if (PyErr_Occurred()) SWIG_fail; | |
26642 | } | |
26643 | Py_INCREF(Py_None); resultobj = Py_None; | |
26644 | return resultobj; | |
26645 | fail: | |
26646 | return NULL; | |
26647 | } | |
26648 | ||
26649 | ||
26650 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26651 | PyObject *resultobj; | |
26652 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
26653 | bool result; | |
26654 | PyObject * obj0 = 0 ; | |
26655 | char *kwnames[] = { | |
26656 | (char *) "self", NULL | |
26657 | }; | |
26658 | ||
26659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
26660 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboardLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26661 | { | |
26662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26663 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
26664 | ||
26665 | wxPyEndAllowThreads(__tstate); | |
26666 | if (PyErr_Occurred()) SWIG_fail; | |
26667 | } | |
02a34c4c | 26668 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26669 | return resultobj; |
26670 | fail: | |
26671 | return NULL; | |
26672 | } | |
26673 | ||
26674 | ||
26675 | static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) { | |
26676 | PyObject *obj; | |
26677 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26678 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
26679 | Py_INCREF(obj); | |
26680 | return Py_BuildValue((char *)""); | |
26681 | } | |
26682 | static PyMethodDef SwigMethods[] = { | |
26683 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
26684 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
26685 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
26686 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, | |
26687 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
26688 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
26689 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS }, | |
26690 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS }, | |
26691 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
26692 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
26693 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
26694 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
26695 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
26696 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS }, | |
26697 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS }, | |
26698 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS }, | |
26699 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS }, | |
26700 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS }, | |
26701 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
26702 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS }, | |
26703 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS }, | |
26704 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS }, | |
26705 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS }, | |
26706 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS }, | |
26707 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS }, | |
26708 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS }, | |
26709 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS }, | |
26710 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS }, | |
26711 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS }, | |
26712 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS }, | |
26713 | { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS }, | |
26714 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS }, | |
26715 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS }, | |
26716 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS }, | |
26717 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS }, | |
26718 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS }, | |
26719 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS }, | |
26720 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS }, | |
26721 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS }, | |
26722 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS }, | |
26723 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS }, | |
26724 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS }, | |
26725 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS }, | |
26726 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
26727 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
26728 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS }, | |
26729 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
26730 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, | |
26731 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
26732 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
26733 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS }, | |
26734 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
26735 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
26736 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
26737 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
26738 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
26739 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
26740 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
26741 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
26742 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
26743 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
26744 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
26745 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
26746 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
26747 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
26748 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
26749 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, | |
cbd72d4f | 26750 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
26751 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, |
26752 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
26753 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
26754 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
26755 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
26756 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS }, | |
26757 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS }, | |
26758 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS }, | |
26759 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
26760 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
26761 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
26762 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
26763 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
26764 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS }, | |
26765 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS }, | |
26766 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS }, | |
26767 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
26768 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 26769 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 26770 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 26771 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 26772 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
26773 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
26774 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
26775 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS }, | |
26776 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
26777 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
26778 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS }, | |
26779 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
26780 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS }, | |
26781 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
26782 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
26783 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
26784 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
26785 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS }, | |
26786 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
26787 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
26788 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS }, | |
26789 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
26790 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
26791 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS }, | |
26792 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS }, | |
26793 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
26794 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
26795 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
26796 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS }, | |
26797 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS }, | |
26798 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
26799 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
26800 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
26801 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
26802 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
26803 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
26804 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
26805 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
26806 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
26807 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
26808 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, | |
26809 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
26810 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
26811 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS }, | |
26812 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
26813 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
26814 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
26815 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
26816 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, | |
26817 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS }, | |
26818 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS }, | |
26819 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS }, | |
26820 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
26821 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
26822 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, | |
26823 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS }, | |
26824 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
26825 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26826 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS }, | |
26827 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS }, | |
26828 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
26829 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS }, | |
26830 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS }, | |
44127b65 | 26831 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
26832 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS }, |
26833 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS }, | |
26834 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
26835 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS }, |
26836 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
26837 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
0f774bef | 26838 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
26839 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS }, |
26840 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS }, | |
26841 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
26842 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS }, | |
26843 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS }, | |
26844 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS }, | |
26845 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS }, | |
26846 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS }, | |
26847 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS }, | |
26848 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
26849 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
26850 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
26851 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS }, | |
26852 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
26853 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
26854 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
26855 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
26856 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS }, | |
26857 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
26858 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
26859 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
26860 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
26861 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
26862 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
26863 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
26864 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
26865 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
26866 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
26867 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
26868 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
26869 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
26870 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
26871 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS }, | |
26872 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
26873 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS }, | |
26874 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS }, | |
26875 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS }, | |
26876 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26877 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS }, | |
26878 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS }, | |
26879 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS }, | |
26880 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS }, | |
26881 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
26882 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
26883 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
26884 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
26885 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
26886 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS }, | |
26887 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS }, | |
26888 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
26889 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
26890 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
26891 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
26892 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS }, | |
26893 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
26894 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
26895 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
26896 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS }, | |
26897 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS }, | |
26898 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS }, | |
26899 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS }, | |
26900 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS }, | |
26901 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
26902 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS }, | |
26903 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
26904 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS }, | |
0f774bef | 26905 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS }, |
d14a1e28 RD |
26906 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS }, |
26907 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS }, | |
26908 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
26909 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
26910 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS }, | |
26911 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS }, | |
26912 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26913 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS }, | |
26914 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS }, | |
26915 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS }, | |
26916 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS }, | |
26917 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS }, | |
26918 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26919 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
26920 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
26921 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
26922 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS }, | |
26923 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
26924 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
26925 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
26926 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS }, | |
26927 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
26928 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
26929 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, | |
26930 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS }, | |
26931 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
26932 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
26933 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
26934 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
26935 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
26936 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
26937 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
26938 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS }, | |
26939 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS }, | |
26940 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
26941 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
26942 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26943 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
26944 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
26945 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
26946 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
26947 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
26948 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
26949 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
26950 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
26951 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
26952 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
26953 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
26954 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
26955 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
26956 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
26957 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
26958 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
26959 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
26960 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
26961 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
26962 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
26963 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
26964 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
26965 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
26966 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
26967 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
26968 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
26969 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
26970 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
26971 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
26972 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
26973 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
26974 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
26975 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
26976 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
26977 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
26978 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
26979 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
26980 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
26981 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
26982 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
26983 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
26984 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS }, | |
26985 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
26986 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
26987 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS }, | |
26988 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS }, | |
26989 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS }, | |
26990 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS }, | |
26991 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS }, | |
26992 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS }, | |
26993 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS }, | |
26994 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS }, | |
26995 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS }, | |
26996 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26997 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
26998 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
26999 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
27000 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
27001 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
27002 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
27003 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
27004 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
27005 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
27006 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
27007 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS }, | |
27008 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS }, | |
27009 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
27010 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
27011 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
27012 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS }, | |
02a34c4c RD |
27013 | { (char *)"new_Sound", _wrap_new_Sound, METH_VARARGS }, |
27014 | { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS }, | |
27015 | { (char *)"Sound_Create", _wrap_Sound_Create, METH_VARARGS }, | |
27016 | { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
27017 | { (char *)"Sound_Play", _wrap_Sound_Play, METH_VARARGS }, | |
27018 | { (char *)"Sound_PlaySound", _wrap_Sound_PlaySound, METH_VARARGS }, | |
27019 | { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS }, | |
27020 | { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
27021 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS }, |
27022 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
27023 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
27024 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
27025 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
27026 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
27027 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
27028 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
27029 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
27030 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
27031 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
27032 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
27033 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
27034 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
27035 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
27036 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS }, | |
27037 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS }, | |
27038 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS }, | |
27039 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
27040 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
27041 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
27042 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
27043 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
27044 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
27045 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
27046 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
27047 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
27048 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
27049 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
27050 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
27051 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
27052 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS }, | |
27053 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
27054 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
27055 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
27056 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
27057 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
27058 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
27059 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
27060 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
27061 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
27062 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
27063 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
27064 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
27065 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
27066 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS }, | |
27067 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
27068 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
27069 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
27070 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
27071 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
27072 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
27073 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
41f1cec7 | 27074 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
27075 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS }, |
27076 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS }, | |
27077 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, | |
27078 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, | |
27079 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, | |
27080 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
27081 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
27082 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
27083 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, | |
27084 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, | |
27085 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, | |
27086 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, | |
27087 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, | |
27088 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, | |
27089 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, | |
27090 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, | |
27091 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, | |
27092 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, | |
27093 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, | |
27094 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, | |
27095 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, | |
27096 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS }, | |
27097 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, | |
27098 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, | |
27099 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, | |
27100 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS }, | |
27101 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, | |
27102 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, | |
27103 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, | |
27104 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, | |
27105 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, | |
27106 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, | |
27107 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
27108 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
27109 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, | |
27110 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, | |
27111 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
27112 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
27113 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
27114 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
27115 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
27116 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
27117 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
27118 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS }, | |
27119 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
27120 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
27121 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS }, | |
27122 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS }, | |
27123 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS }, | |
27124 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS }, | |
27125 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS }, | |
27126 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
27127 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
27128 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS }, | |
27129 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
27130 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, | |
27131 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, | |
27132 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, | |
27133 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, | |
27134 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, | |
27135 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, | |
27136 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, | |
27137 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, | |
27138 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, | |
27139 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, | |
27140 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, | |
27141 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, | |
27142 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, | |
27143 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, | |
27144 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, | |
27145 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, | |
27146 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS }, | |
27147 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS }, | |
27148 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS }, | |
27149 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
27150 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, | |
27151 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, | |
27152 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, | |
27153 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, | |
27154 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
27155 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, | |
27156 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, | |
27157 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, | |
27158 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, | |
27159 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS }, | |
27160 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, | |
27161 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, | |
27162 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, | |
27163 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, | |
27164 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, | |
27165 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, | |
27166 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, | |
27167 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
27168 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
27169 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
27170 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
27171 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
27172 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
27173 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
27174 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
27175 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
27176 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
27177 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, | |
27178 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, | |
27179 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
27180 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
27181 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, | |
27182 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, | |
27183 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
27184 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, | |
27185 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
27186 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, | |
27187 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, | |
27188 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, | |
27189 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, | |
27190 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, | |
27191 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, | |
27192 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, | |
27193 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
27194 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, | |
27195 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, | |
27196 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, | |
27197 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, | |
27198 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
27199 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, | |
27200 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, | |
27201 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, | |
27202 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
27203 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, | |
27204 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, | |
27205 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, | |
27206 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, | |
27207 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
27208 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, | |
27209 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, | |
27210 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, | |
27211 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, | |
27212 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, | |
27213 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, | |
27214 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, | |
27215 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, | |
27216 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, | |
27217 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, | |
27218 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, | |
27219 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
27220 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS }, | |
27221 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS }, | |
27222 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS }, | |
27223 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS }, | |
27224 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS }, | |
27225 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS }, | |
27226 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS }, | |
27227 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS }, | |
27228 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS }, | |
27229 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS }, | |
27230 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, | |
27231 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, | |
27232 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, | |
27233 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, | |
27234 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, | |
27235 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS }, | |
27236 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, | |
27237 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, | |
27238 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, | |
27239 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, | |
27240 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS }, | |
27241 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, | |
27242 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, | |
27243 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, | |
27244 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, | |
27245 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, | |
27246 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, | |
27247 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
27248 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
27249 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
27250 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
27251 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
27252 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
27253 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
27254 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
27255 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
27256 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
27257 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, | |
27258 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
27259 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
27260 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
27261 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
27262 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
27263 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
27264 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
27265 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
27266 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS }, | |
27267 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS }, | |
27268 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS }, | |
27269 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS }, | |
27270 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
27271 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
27272 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
27273 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, | |
27274 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, | |
27275 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
27276 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, | |
27277 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, | |
27278 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
27279 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
27280 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, | |
27281 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, | |
27282 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, | |
27283 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, | |
27284 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, | |
27285 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS }, | |
27286 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
27287 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
27288 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
27289 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
27290 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
27291 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
27292 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS }, | |
27293 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS }, | |
27294 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS }, | |
27295 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS }, | |
27296 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, | |
27297 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, | |
27298 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
27299 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, | |
27300 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, | |
27301 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, | |
27302 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
27303 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
27304 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, | |
27305 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
27306 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
27307 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
27308 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
27309 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
27310 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
27311 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
27312 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
27313 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
27314 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
27315 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
27316 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
27317 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
27318 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
27319 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS }, | |
27320 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS }, | |
27321 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS }, | |
27322 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS }, | |
27323 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, | |
27324 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
27325 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS }, | |
27326 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
27327 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS }, | |
27328 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS }, | |
27329 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS }, | |
27330 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS }, | |
27331 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS }, | |
27332 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS }, | |
27333 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS }, | |
27334 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS }, | |
27335 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS }, | |
27336 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS }, | |
27337 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
27338 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS }, | |
27339 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS }, | |
27340 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
27341 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
27342 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS }, | |
27343 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
27344 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS }, | |
27345 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS }, | |
27346 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS }, | |
27347 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
27348 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27349 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS }, | |
27350 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS }, | |
27351 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS }, | |
27352 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS }, | |
27353 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27354 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS }, | |
27355 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS }, | |
27356 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS }, | |
27357 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS }, | |
27358 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27359 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27360 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS }, | |
27361 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27362 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
27363 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
27364 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS }, | |
27365 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27366 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27367 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS }, | |
27368 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27369 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
27370 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS }, | |
27371 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27372 | { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS }, | |
27373 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
27374 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
27375 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS }, | |
27376 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS }, | |
27377 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27378 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS }, | |
27379 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS }, | |
27380 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS }, | |
27381 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27382 | { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS }, | |
27383 | { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS }, | |
27384 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS }, | |
27385 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS }, | |
27386 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
27387 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27388 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
27389 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS }, | |
27390 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27391 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
27392 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS }, | |
27393 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS }, | |
27394 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS }, | |
cbd72d4f | 27395 | { (char *)"new_PyDropTarget", (PyCFunction) _wrap_new_PyDropTarget, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
27396 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
27397 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
27398 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27399 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
27400 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
27401 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
27402 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
27403 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
27404 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS }, | |
27405 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS }, | |
27406 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
27407 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27408 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
27409 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
27410 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
27411 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
27412 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
27413 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS }, | |
27414 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
27415 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27416 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
27417 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
27418 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
27419 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
27420 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
27421 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS }, | |
27422 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
27423 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
27424 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS }, | |
27425 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS }, | |
27426 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS }, | |
27427 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS }, | |
27428 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS }, | |
27429 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
27430 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS }, | |
27431 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS }, | |
27432 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS }, | |
27433 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS }, | |
27434 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS }, | |
27435 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
27436 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
27437 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
27438 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS }, | |
27439 | { NULL, NULL } | |
27440 | }; | |
27441 | ||
27442 | ||
27443 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
27444 | ||
27445 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
27446 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
27447 | } | |
27448 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
27449 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
27450 | } | |
27451 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
27452 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
27453 | } | |
27454 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
27455 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
27456 | } | |
27457 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
27458 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
27459 | } | |
27460 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
27461 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
27462 | } | |
27463 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
27464 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
27465 | } | |
27466 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
27467 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
27468 | } | |
27469 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
27470 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
27471 | } | |
27472 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
27473 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
27474 | } | |
27475 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
27476 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
27477 | } | |
27478 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
27479 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
27480 | } | |
27481 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
27482 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
27483 | } | |
27484 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
27485 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
27486 | } | |
27487 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
27488 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
27489 | } | |
27490 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
27491 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
27492 | } | |
27493 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
27494 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
27495 | } | |
27496 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
27497 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
27498 | } | |
27499 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
27500 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
27501 | } | |
27502 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
27503 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
27504 | } | |
27505 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
27506 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
27507 | } | |
27508 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
27509 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
27510 | } | |
27511 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
27512 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
27513 | } | |
27514 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
27515 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
27516 | } | |
27517 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
27518 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
27519 | } | |
27520 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
27521 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
27522 | } | |
27523 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
27524 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
27525 | } | |
27526 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
27527 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
27528 | } | |
27529 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
27530 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
27531 | } | |
27532 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
27533 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
27534 | } | |
27535 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
27536 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
27537 | } | |
27538 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
27539 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
27540 | } | |
27541 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
27542 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
27543 | } | |
27544 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
27545 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
27546 | } | |
27547 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
27548 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
27549 | } | |
27550 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
27551 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
27552 | } | |
27553 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
27554 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
27555 | } | |
27556 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
27557 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
27558 | } | |
27559 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
27560 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
27561 | } | |
27562 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
27563 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
27564 | } | |
27565 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
27566 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
27567 | } | |
27568 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
27569 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
27570 | } | |
27571 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
27572 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
27573 | } | |
27574 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
27575 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
27576 | } | |
27577 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
27578 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
27579 | } | |
27580 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
27581 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
27582 | } | |
27583 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
27584 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
27585 | } | |
27586 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
27587 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
27588 | } | |
27589 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
27590 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
27591 | } | |
27592 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
27593 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
27594 | } | |
27595 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
27596 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
27597 | } | |
27598 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
27599 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
27600 | } | |
27601 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
27602 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
27603 | } | |
27604 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
27605 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
27606 | } | |
27607 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
27608 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
27609 | } | |
27610 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
27611 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
27612 | } | |
27613 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
27614 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
27615 | } | |
27616 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
27617 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
27618 | } | |
27619 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
27620 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
27621 | } | |
27622 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
27623 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
27624 | } | |
27625 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
27626 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
27627 | } | |
27628 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
27629 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
27630 | } | |
27631 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
27632 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
27633 | } | |
27634 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
27635 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
27636 | } | |
27637 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
27638 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
27639 | } | |
27640 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
27641 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
27642 | } | |
27643 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
27644 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
27645 | } | |
27646 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
27647 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
27648 | } | |
27649 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
27650 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
27651 | } | |
27652 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
27653 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
27654 | } | |
27655 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
27656 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
27657 | } | |
27658 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
27659 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
27660 | } | |
27661 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
27662 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
27663 | } | |
27664 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
27665 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
27666 | } | |
27667 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
27668 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
27669 | } | |
27670 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
27671 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
27672 | } | |
27673 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
27674 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
27675 | } | |
27676 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
27677 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
27678 | } | |
27679 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
27680 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
27681 | } | |
27682 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
27683 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
27684 | } | |
27685 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
27686 | return (void *)((wxObject *) ((wxSizer *) x)); | |
27687 | } | |
27688 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
27689 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
27690 | } | |
27691 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
27692 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
27693 | } | |
27694 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
27695 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
27696 | } | |
27697 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
27698 | return (void *)((wxObject *) ((wxEvent *) x)); | |
27699 | } | |
27700 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
27701 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
27702 | } | |
27703 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
27704 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
27705 | } | |
27706 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
27707 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
27708 | } | |
27709 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
27710 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
27711 | } | |
27712 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
27713 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
27714 | } | |
27715 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
27716 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
27717 | } | |
27718 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
27719 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
27720 | } | |
27721 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
27722 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
27723 | } | |
27724 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
27725 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
27726 | } | |
27727 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
27728 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
27729 | } | |
27730 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
27731 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
27732 | } | |
27733 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
27734 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
27735 | } | |
27736 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
27737 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
27738 | } | |
27739 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
27740 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
27741 | } | |
27742 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
27743 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
27744 | } | |
27745 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
27746 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
27747 | } | |
27748 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
27749 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
27750 | } | |
27751 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
27752 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
27753 | } | |
27754 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
27755 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
27756 | } | |
27757 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
27758 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
27759 | } | |
27760 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
27761 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
27762 | } | |
27763 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
27764 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
27765 | } | |
27766 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
27767 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
27768 | } | |
27769 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
27770 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
27771 | } | |
27772 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
27773 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
27774 | } | |
27775 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
27776 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
27777 | } | |
27778 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
27779 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
27780 | } | |
27781 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
27782 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
27783 | } | |
27784 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
27785 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
27786 | } | |
27787 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
27788 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
27789 | } | |
27790 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
27791 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
27792 | } | |
27793 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
27794 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
27795 | } | |
27796 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
27797 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
27798 | } | |
27799 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
27800 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
27801 | } | |
27802 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
27803 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
27804 | } | |
27805 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
27806 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
27807 | } | |
27808 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
27809 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
27810 | } | |
27811 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
27812 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
27813 | } | |
27814 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
27815 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
27816 | } | |
27817 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
27818 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
27819 | } | |
27820 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
27821 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
27822 | } | |
41f1cec7 RD |
27823 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
27824 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
27825 | } | |
d14a1e28 RD |
27826 | static void *_p_wxImageTo_p_wxObject(void *x) { |
27827 | return (void *)((wxObject *) ((wxImage *) x)); | |
27828 | } | |
27829 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
27830 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
27831 | } | |
27832 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
27833 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
27834 | } | |
27835 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
27836 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
27837 | } | |
27838 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
27839 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
27840 | } | |
27841 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
27842 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
27843 | } | |
27844 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
27845 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
27846 | } | |
27847 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
27848 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
27849 | } | |
27850 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
27851 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
27852 | } | |
27853 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
27854 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
27855 | } | |
27856 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
27857 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
27858 | } | |
27859 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
27860 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
27861 | } | |
27862 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
27863 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
27864 | } | |
27865 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
27866 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
27867 | } | |
27868 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
27869 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
27870 | } | |
27871 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
27872 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
27873 | } | |
27874 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
27875 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
27876 | } | |
27877 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
27878 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
27879 | } | |
27880 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
27881 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
27882 | } | |
27883 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
27884 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
27885 | } | |
27886 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
27887 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
27888 | } | |
27889 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
27890 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
27891 | } | |
27892 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
27893 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
27894 | } | |
27895 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
27896 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
27897 | } | |
27898 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
27899 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
27900 | } | |
27901 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
27902 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
27903 | } | |
27904 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
27905 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
27906 | } | |
27907 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
27908 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
27909 | } | |
27910 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
27911 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
27912 | } | |
27913 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
27914 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
27915 | } | |
27916 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
27917 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
27918 | } | |
27919 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
27920 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
27921 | } | |
27922 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
27923 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
27924 | } | |
27925 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
27926 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
27927 | } | |
27928 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
27929 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
27930 | } | |
27931 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
27932 | return (void *)((wxWindow *) ((wxControl *) x)); | |
27933 | } | |
27934 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
27935 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
27936 | } | |
27937 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
27938 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
27939 | } | |
27940 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
27941 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
27942 | } | |
27943 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
27944 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
27945 | } | |
27946 | static swig_type_info _swigt__p_wxLogChain[] = {{"_p_wxLogChain", 0, "wxLogChain *", 0},{"_p_wxLogChain"},{0}}; | |
27947 | static swig_type_info _swigt__p_wxMutexGuiLocker[] = {{"_p_wxMutexGuiLocker", 0, "wxMutexGuiLocker *", 0},{"_p_wxMutexGuiLocker"},{0}}; | |
27948 | static swig_type_info _swigt__p_wxMetafile[] = {{"_p_wxMetafile", 0, "wxMetafile *", 0},{"_p_wxMetafile"},{0}}; | |
27949 | static swig_type_info _swigt__p_wxFileHistory[] = {{"_p_wxFileHistory", 0, "wxFileHistory *", 0},{"_p_wxFileHistory"},{0}}; | |
27950 | 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}}; | |
27951 | static swig_type_info _swigt__p_wxDateTime__TimeZone[] = {{"_p_wxDateTime__TimeZone", 0, "wxDateTime::TimeZone *", 0},{"_p_wxDateTime__TimeZone"},{0}}; | |
27952 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0},{"_p_wxMenu"},{0}}; | |
27953 | 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}}; | |
27954 | 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 |
27955 | static swig_type_info _swigt__p_wxFileType[] = {{"_p_wxFileType", 0, "wxFileType *", 0},{"_p_wxFileType"},{0}}; |
27956 | static swig_type_info _swigt__p_wxLogGui[] = {{"_p_wxLogGui", 0, "wxLogGui *", 0},{"_p_wxLogGui"},{0}}; | |
27957 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
27958 | static swig_type_info _swigt__p_wxDataFormat[] = {{"_p_wxDataFormat", 0, "wxDataFormat *", 0},{"_p_wxDataFormat"},{0}}; | |
27959 | static swig_type_info _swigt__p_wxTimerEvent[] = {{"_p_wxTimerEvent", 0, "wxTimerEvent *", 0},{"_p_wxTimerEvent"},{0}}; | |
27960 | static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0},{"_p_wxCaret"},{0}}; | |
27961 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
27962 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
27963 | static swig_type_info _swigt__p_wxClipboard[] = {{"_p_wxClipboard", 0, "wxClipboard *", 0},{"_p_wxClipboard"},{0}}; | |
27964 | static swig_type_info _swigt__p_wxStopWatch[] = {{"_p_wxStopWatch", 0, "wxStopWatch *", 0},{"_p_wxStopWatch"},{0}}; | |
27965 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; | |
27966 | static swig_type_info _swigt__p_wxClipboardLocker[] = {{"_p_wxClipboardLocker", 0, "wxClipboardLocker *", 0},{"_p_wxClipboardLocker"},{0}}; | |
27967 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
27968 | static swig_type_info _swigt__p_wxLogStderr[] = {{"_p_wxLogStderr", 0, "wxLogStderr *", 0},{"_p_wxLogStderr"},{0}}; | |
27969 | static swig_type_info _swigt__p_wxLogTextCtrl[] = {{"_p_wxLogTextCtrl", 0, "wxLogTextCtrl *", 0},{"_p_wxLogTextCtrl"},{0}}; | |
27970 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}}; | |
27971 | static swig_type_info _swigt__p_wxBusyCursor[] = {{"_p_wxBusyCursor", 0, "wxBusyCursor *", 0},{"_p_wxBusyCursor"},{0}}; | |
d14a1e28 RD |
27972 | static swig_type_info _swigt__p_wxPyTextDataObject[] = {{"_p_wxPyTextDataObject", 0, "wxPyTextDataObject *", 0},{"_p_wxPyTextDataObject"},{0}}; |
27973 | static swig_type_info _swigt__p_wxBitmapDataObject[] = {{"_p_wxBitmapDataObject", 0, "wxBitmapDataObject *", 0},{"_p_wxBitmapDataObject"},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject},{0}}; | |
27974 | static swig_type_info _swigt__p_wxTextDataObject[] = {{"_p_wxTextDataObject", 0, "wxTextDataObject *", 0},{"_p_wxTextDataObject"},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxTextDataObject},{0}}; | |
27975 | 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}}; | |
02a34c4c | 27976 | static swig_type_info _swigt__p_wxPyBitmapDataObject[] = {{"_p_wxPyBitmapDataObject", 0, "wxPyBitmapDataObject *", 0},{"_p_wxPyBitmapDataObject"},{0}}; |
8edf1c75 | 27977 | static swig_type_info _swigt__p_wxFileDataObject[] = {{"_p_wxFileDataObject", 0, "wxFileDataObject *", 0},{"_p_wxFileDataObject"},{0}}; |
d14a1e28 RD |
27978 | static swig_type_info _swigt__p_wxCustomDataObject[] = {{"_p_wxCustomDataObject", 0, "wxCustomDataObject *", 0},{"_p_wxCustomDataObject"},{0}}; |
27979 | static swig_type_info _swigt__p_wxURLDataObject[] = {{"_p_wxURLDataObject", 0, "wxURLDataObject *", 0},{"_p_wxURLDataObject"},{0}}; | |
27980 | static swig_type_info _swigt__p_wxMetafileDataObject[] = {{"_p_wxMetafileDataObject", 0, "wxMetafileDataObject *", 0},{"_p_wxMetafileDataObject"},{0}}; | |
02a34c4c | 27981 | static swig_type_info _swigt__p_wxSound[] = {{"_p_wxSound", 0, "wxSound *", 0},{"_p_wxSound"},{0}}; |
d14a1e28 RD |
27982 | static swig_type_info _swigt__p_wxTimerRunner[] = {{"_p_wxTimerRunner", 0, "wxTimerRunner *", 0},{"_p_wxTimerRunner"},{0}}; |
27983 | static swig_type_info _swigt__p_wxLogWindow[] = {{"_p_wxLogWindow", 0, "wxLogWindow *", 0},{"_p_wxLogWindow"},{0}}; | |
27984 | static swig_type_info _swigt__p_wxTimeSpan[] = {{"_p_wxTimeSpan", 0, "wxTimeSpan *", 0},{"_p_wxTimeSpan"},{0}}; | |
27985 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; | |
27986 | static swig_type_info _swigt__p_wxWindowDisabler[] = {{"_p_wxWindowDisabler", 0, "wxWindowDisabler *", 0},{"_p_wxWindowDisabler"},{0}}; | |
27987 | static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0},{"_p_wxToolTip"},{0}}; | |
27988 | static swig_type_info _swigt__p_wxDataObjectComposite[] = {{"_p_wxDataObjectComposite", 0, "wxDataObjectComposite *", 0},{"_p_wxDataObjectComposite"},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObjectComposite},{0}}; | |
27989 | static swig_type_info _swigt__p_wxFileConfig[] = {{"_p_wxFileConfig", 0, "wxFileConfig *", 0},{"_p_wxFileConfig"},{0}}; | |
27990 | static swig_type_info _swigt__p_wxSystemSettings[] = {{"_p_wxSystemSettings", 0, "wxSystemSettings *", 0},{"_p_wxSystemSettings"},{0}}; | |
27991 | static swig_type_info _swigt__p_wxPyDataObjectSimple[] = {{"_p_wxPyDataObjectSimple", 0, "wxPyDataObjectSimple *", 0},{"_p_wxPyDataObjectSimple"},{0}}; | |
27992 | 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}}; | |
27993 | 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}}; | |
27994 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
8edf1c75 | 27995 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}}; |
d14a1e28 RD |
27996 | static swig_type_info _swigt__p_wxSingleInstanceChecker[] = {{"_p_wxSingleInstanceChecker", 0, "wxSingleInstanceChecker *", 0},{"_p_wxSingleInstanceChecker"},{0}}; |
27997 | static swig_type_info _swigt__p_wxFileTypeInfo[] = {{"_p_wxFileTypeInfo", 0, "wxFileTypeInfo *", 0},{"_p_wxFileTypeInfo"},{0}}; | |
27998 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}}; | |
27999 | static swig_type_info _swigt__p_wxTimer[] = {{"_p_wxTimer", 0, "wxTimer *", 0},{"_p_wxTimer"},{0}}; | |
28000 | static swig_type_info _swigt__p_wxMimeTypesManager[] = {{"_p_wxMimeTypesManager", 0, "wxMimeTypesManager *", 0},{"_p_wxMimeTypesManager"},{0}}; | |
28001 | static swig_type_info _swigt__p_wxPyArtProvider[] = {{"_p_wxPyArtProvider", 0, "wxPyArtProvider *", 0},{"_p_wxPyArtProvider"},{0}}; | |
28002 | static swig_type_info _swigt__p_wxPyTipProvider[] = {{"_p_wxPyTipProvider", 0, "wxPyTipProvider *", 0},{"_p_wxPyTipProvider"},{0}}; | |
28003 | static swig_type_info _swigt__p_wxTipProvider[] = {{"_p_wxTipProvider", 0, "wxTipProvider *", 0},{"_p_wxTipProvider"},{"_p_wxPyTipProvider", _p_wxPyTipProviderTo_p_wxTipProvider},{0}}; | |
28004 | static swig_type_info _swigt__p_wxJoystick[] = {{"_p_wxJoystick", 0, "wxJoystick *", 0},{"_p_wxJoystick"},{0}}; | |
28005 | static swig_type_info _swigt__p_wxSystemOptions[] = {{"_p_wxSystemOptions", 0, "wxSystemOptions *", 0},{"_p_wxSystemOptions"},{0}}; | |
28006 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
28007 | static swig_type_info _swigt__p_wxJoystickEvent[] = {{"_p_wxJoystickEvent", 0, "wxJoystickEvent *", 0},{"_p_wxJoystickEvent"},{0}}; | |
28008 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
41f1cec7 | 28009 | 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 |
28010 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}}; |
28011 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0},{"_p_wxDateTime"},{0}}; | |
28012 | static swig_type_info _swigt__p_wxPyDropSource[] = {{"_p_wxPyDropSource", 0, "wxPyDropSource *", 0},{"_p_wxPyDropSource"},{0}}; | |
28013 | 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}}; | |
28014 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
28015 | static swig_type_info _swigt__p_wxPyProcess[] = {{"_p_wxPyProcess", 0, "wxPyProcess *", 0},{"_p_wxPyProcess"},{0}}; | |
28016 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
28017 | static swig_type_info _swigt__p_wxConfig[] = {{"_p_wxConfig", 0, "wxConfig *", 0},{"_p_wxConfig"},{0}}; | |
28018 | static swig_type_info _swigt__p_wxChar[] = {{"_p_wxChar", 0, "wxChar *", 0},{"_p_wxChar"},{0}}; | |
28019 | static swig_type_info _swigt__p_wxBusyInfo[] = {{"_p_wxBusyInfo", 0, "wxBusyInfo *", 0},{"_p_wxBusyInfo"},{0}}; | |
28020 | 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}}; | |
28021 | static swig_type_info _swigt__p_wxPyTextDropTarget[] = {{"_p_wxPyTextDropTarget", 0, "wxPyTextDropTarget *", 0},{"_p_wxPyTextDropTarget"},{0}}; | |
28022 | static swig_type_info _swigt__p_wxPyFileDropTarget[] = {{"_p_wxPyFileDropTarget", 0, "wxPyFileDropTarget *", 0},{"_p_wxPyFileDropTarget"},{0}}; | |
28023 | static swig_type_info _swigt__p_wxProcessEvent[] = {{"_p_wxProcessEvent", 0, "wxProcessEvent *", 0},{"_p_wxProcessEvent"},{0}}; | |
28024 | static swig_type_info _swigt__p_wxPyLog[] = {{"_p_wxPyLog", 0, "wxPyLog *", 0},{"_p_wxPyLog"},{0}}; | |
28025 | static swig_type_info _swigt__p_wxLogNull[] = {{"_p_wxLogNull", 0, "wxLogNull *", 0},{"_p_wxLogNull"},{0}}; | |
28026 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
02a34c4c | 28027 | static swig_type_info _swigt__p_wxByte[] = {{"_p_wxByte", 0, "wxByte *", 0},{"_p_wxByte"},{0}}; |
d14a1e28 RD |
28028 | static swig_type_info _swigt__p_wxConfigPathChanger[] = {{"_p_wxConfigPathChanger", 0, "wxConfigPathChanger *", 0},{"_p_wxConfigPathChanger"},{0}}; |
28029 | static swig_type_info _swigt__p_wxPyTimer[] = {{"_p_wxPyTimer", 0, "wxPyTimer *", 0},{"_p_wxPyTimer"},{0}}; | |
28030 | static swig_type_info _swigt__p_wxDateSpan[] = {{"_p_wxDateSpan", 0, "wxDateSpan *", 0},{"_p_wxDateSpan"},{0}}; | |
28031 | ||
28032 | static swig_type_info *swig_types_initial[] = { | |
28033 | _swigt__p_wxLogChain, | |
28034 | _swigt__p_wxMutexGuiLocker, | |
28035 | _swigt__p_wxMetafile, | |
28036 | _swigt__p_wxFileHistory, | |
28037 | _swigt__p_wxLog, | |
28038 | _swigt__p_wxDateTime__TimeZone, | |
28039 | _swigt__p_wxMenu, | |
28040 | _swigt__p_wxEvent, | |
28041 | _swigt__p_wxConfigBase, | |
d14a1e28 RD |
28042 | _swigt__p_wxFileType, |
28043 | _swigt__p_wxLogGui, | |
28044 | _swigt__p_wxFont, | |
28045 | _swigt__p_wxDataFormat, | |
28046 | _swigt__p_wxTimerEvent, | |
28047 | _swigt__p_wxCaret, | |
28048 | _swigt__p_int, | |
28049 | _swigt__p_wxSize, | |
28050 | _swigt__p_wxClipboard, | |
28051 | _swigt__p_wxStopWatch, | |
28052 | _swigt__p_wxDC, | |
28053 | _swigt__p_wxClipboardLocker, | |
28054 | _swigt__p_wxIcon, | |
28055 | _swigt__p_wxLogStderr, | |
28056 | _swigt__p_wxLogTextCtrl, | |
28057 | _swigt__p_wxTextCtrl, | |
28058 | _swigt__p_wxBusyCursor, | |
d14a1e28 RD |
28059 | _swigt__p_wxPyTextDataObject, |
28060 | _swigt__p_wxBitmapDataObject, | |
28061 | _swigt__p_wxTextDataObject, | |
28062 | _swigt__p_wxDataObject, | |
02a34c4c | 28063 | _swigt__p_wxPyBitmapDataObject, |
8edf1c75 | 28064 | _swigt__p_wxFileDataObject, |
d14a1e28 RD |
28065 | _swigt__p_wxCustomDataObject, |
28066 | _swigt__p_wxURLDataObject, | |
28067 | _swigt__p_wxMetafileDataObject, | |
02a34c4c | 28068 | _swigt__p_wxSound, |
d14a1e28 RD |
28069 | _swigt__p_wxTimerRunner, |
28070 | _swigt__p_wxLogWindow, | |
28071 | _swigt__p_wxTimeSpan, | |
28072 | _swigt__p_wxArrayString, | |
28073 | _swigt__p_wxWindowDisabler, | |
28074 | _swigt__p_wxToolTip, | |
28075 | _swigt__p_wxDataObjectComposite, | |
28076 | _swigt__p_wxFileConfig, | |
28077 | _swigt__p_wxSystemSettings, | |
28078 | _swigt__p_wxPyDataObjectSimple, | |
28079 | _swigt__p_wxDataObjectSimple, | |
28080 | _swigt__p_wxEvtHandler, | |
28081 | _swigt__p_wxRect, | |
8edf1c75 | 28082 | _swigt__p_char, |
d14a1e28 RD |
28083 | _swigt__p_wxSingleInstanceChecker, |
28084 | _swigt__p_wxFileTypeInfo, | |
28085 | _swigt__p_wxFrame, | |
28086 | _swigt__p_wxTimer, | |
28087 | _swigt__p_wxMimeTypesManager, | |
28088 | _swigt__p_wxPyArtProvider, | |
28089 | _swigt__p_wxPyTipProvider, | |
28090 | _swigt__p_wxTipProvider, | |
28091 | _swigt__p_wxJoystick, | |
28092 | _swigt__p_wxSystemOptions, | |
28093 | _swigt__p_wxPoint, | |
28094 | _swigt__p_wxJoystickEvent, | |
28095 | _swigt__p_wxCursor, | |
28096 | _swigt__p_wxObject, | |
28097 | _swigt__p_wxOutputStream, | |
28098 | _swigt__p_wxDateTime, | |
28099 | _swigt__p_wxPyDropSource, | |
28100 | _swigt__p_wxWindow, | |
28101 | _swigt__p_wxString, | |
28102 | _swigt__p_wxPyProcess, | |
28103 | _swigt__p_wxBitmap, | |
28104 | _swigt__p_wxConfig, | |
28105 | _swigt__p_wxChar, | |
28106 | _swigt__p_wxBusyInfo, | |
28107 | _swigt__p_wxPyDropTarget, | |
28108 | _swigt__p_wxPyTextDropTarget, | |
28109 | _swigt__p_wxPyFileDropTarget, | |
28110 | _swigt__p_wxProcessEvent, | |
28111 | _swigt__p_wxPyLog, | |
28112 | _swigt__p_wxLogNull, | |
28113 | _swigt__p_wxColour, | |
02a34c4c | 28114 | _swigt__p_wxByte, |
d14a1e28 RD |
28115 | _swigt__p_wxConfigPathChanger, |
28116 | _swigt__p_wxPyTimer, | |
28117 | _swigt__p_wxDateSpan, | |
28118 | 0 | |
28119 | }; | |
28120 | ||
28121 | ||
28122 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
28123 | ||
28124 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
28125 | { SWIG_PY_STRING, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", 0}, |
28126 | { SWIG_PY_STRING, (char*)"TRACE_Messages", 0, 0, (void *)"messages", 0}, | |
28127 | { SWIG_PY_STRING, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", 0}, | |
28128 | { SWIG_PY_STRING, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", 0}, | |
28129 | { SWIG_PY_STRING, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", 0}, | |
d14a1e28 RD |
28130 | {0}}; |
28131 | ||
28132 | #ifdef __cplusplus | |
28133 | } | |
28134 | #endif | |
28135 | ||
28136 | #ifdef __cplusplus | |
28137 | extern "C" | |
28138 | #endif | |
28139 | SWIGEXPORT(void) SWIG_init(void) { | |
28140 | static PyObject *SWIG_globals = 0; | |
28141 | static int typeinit = 0; | |
28142 | PyObject *m, *d; | |
28143 | int i; | |
28144 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
28145 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
28146 | d = PyModule_GetDict(m); | |
28147 | ||
28148 | if (!typeinit) { | |
28149 | for (i = 0; swig_types_initial[i]; i++) { | |
28150 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
28151 | } | |
28152 | typeinit = 1; | |
28153 | } | |
28154 | SWIG_InstallConstants(d,swig_const_table); | |
28155 | ||
8edf1c75 RD |
28156 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_PyObj_FromInt((int)wxSYS_OEM_FIXED_FONT)); |
28157 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_PyObj_FromInt((int)wxSYS_ANSI_FIXED_FONT)); | |
28158 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_PyObj_FromInt((int)wxSYS_ANSI_VAR_FONT)); | |
28159 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_PyObj_FromInt((int)wxSYS_SYSTEM_FONT)); | |
28160 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_PyObj_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT)); | |
28161 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_PyObj_FromInt((int)wxSYS_DEFAULT_PALETTE)); | |
28162 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_PyObj_FromInt((int)wxSYS_SYSTEM_FIXED_FONT)); | |
28163 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_PyObj_FromInt((int)wxSYS_DEFAULT_GUI_FONT)); | |
28164 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_PyObj_FromInt((int)wxSYS_ICONTITLE_FONT)); | |
28165 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_SCROLLBAR)); | |
28166 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_BACKGROUND)); | |
28167 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_DESKTOP)); | |
28168 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION)); | |
28169 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION)); | |
28170 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_MENU)); | |
28171 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_WINDOW)); | |
28172 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_WINDOWFRAME)); | |
28173 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_MENUTEXT)); | |
28174 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_WINDOWTEXT)); | |
28175 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT)); | |
28176 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER)); | |
28177 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER)); | |
28178 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_APPWORKSPACE)); | |
28179 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_HIGHLIGHT)); | |
28180 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
28181 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_BTNFACE)); | |
28182 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_3DFACE)); | |
28183 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_BTNSHADOW)); | |
28184 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_3DSHADOW)); | |
28185 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_GRAYTEXT)); | |
28186 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_BTNTEXT)); | |
28187 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
28188 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT)); | |
28189 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_BTNHILIGHT)); | |
28190 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT)); | |
28191 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_3DHILIGHT)); | |
28192 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_3DDKSHADOW)); | |
28193 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_3DLIGHT)); | |
28194 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_INFOTEXT)); | |
28195 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_INFOBK)); | |
28196 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_LISTBOX)); | |
28197 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_HOTLIGHT)); | |
28198 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
28199 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
28200 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_MENUHILIGHT)); | |
28201 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_MENUBAR)); | |
28202 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_MAX)); | |
28203 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_PyObj_FromInt((int)wxSYS_MOUSE_BUTTONS)); | |
28204 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_PyObj_FromInt((int)wxSYS_BORDER_X)); | |
28205 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_PyObj_FromInt((int)wxSYS_BORDER_Y)); | |
28206 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_PyObj_FromInt((int)wxSYS_CURSOR_X)); | |
28207 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_PyObj_FromInt((int)wxSYS_CURSOR_Y)); | |
28208 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_PyObj_FromInt((int)wxSYS_DCLICK_X)); | |
28209 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_PyObj_FromInt((int)wxSYS_DCLICK_Y)); | |
28210 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_PyObj_FromInt((int)wxSYS_DRAG_X)); | |
28211 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_PyObj_FromInt((int)wxSYS_DRAG_Y)); | |
28212 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_PyObj_FromInt((int)wxSYS_EDGE_X)); | |
28213 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_PyObj_FromInt((int)wxSYS_EDGE_Y)); | |
28214 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_PyObj_FromInt((int)wxSYS_HSCROLL_ARROW_X)); | |
28215 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_PyObj_FromInt((int)wxSYS_HSCROLL_ARROW_Y)); | |
28216 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_PyObj_FromInt((int)wxSYS_HTHUMB_X)); | |
28217 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_PyObj_FromInt((int)wxSYS_ICON_X)); | |
28218 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_PyObj_FromInt((int)wxSYS_ICON_Y)); | |
28219 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_PyObj_FromInt((int)wxSYS_ICONSPACING_X)); | |
28220 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_PyObj_FromInt((int)wxSYS_ICONSPACING_Y)); | |
28221 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_PyObj_FromInt((int)wxSYS_WINDOWMIN_X)); | |
28222 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_PyObj_FromInt((int)wxSYS_WINDOWMIN_Y)); | |
28223 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_X)); | |
28224 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_Y)); | |
28225 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_PyObj_FromInt((int)wxSYS_FRAMESIZE_X)); | |
28226 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_PyObj_FromInt((int)wxSYS_FRAMESIZE_Y)); | |
28227 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_PyObj_FromInt((int)wxSYS_SMALLICON_X)); | |
28228 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_PyObj_FromInt((int)wxSYS_SMALLICON_Y)); | |
28229 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_PyObj_FromInt((int)wxSYS_HSCROLL_Y)); | |
28230 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_PyObj_FromInt((int)wxSYS_VSCROLL_X)); | |
28231 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_PyObj_FromInt((int)wxSYS_VSCROLL_ARROW_X)); | |
28232 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_PyObj_FromInt((int)wxSYS_VSCROLL_ARROW_Y)); | |
28233 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_PyObj_FromInt((int)wxSYS_VTHUMB_Y)); | |
28234 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_PyObj_FromInt((int)wxSYS_CAPTION_Y)); | |
28235 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_PyObj_FromInt((int)wxSYS_MENU_Y)); | |
28236 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_PyObj_FromInt((int)wxSYS_NETWORK_PRESENT)); | |
28237 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_PyObj_FromInt((int)wxSYS_PENWINDOWS_PRESENT)); | |
28238 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_PyObj_FromInt((int)wxSYS_SHOW_SOUNDS)); | |
28239 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_PyObj_FromInt((int)wxSYS_SWAP_BUTTONS)); | |
28240 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_PyObj_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS)); | |
28241 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_PyObj_FromInt((int)wxSYS_CAN_ICONIZE_FRAME)); | |
28242 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_NONE)); | |
28243 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_TINY)); | |
28244 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_PDA)); | |
28245 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_SMALL)); | |
28246 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_DESKTOP)); | |
cbd72d4f RD |
28247 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
28248 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
28249 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
28250 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
8edf1c75 RD |
28251 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_PyObj_FromInt((int)wxSHUTDOWN_POWEROFF)); |
28252 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_PyObj_FromInt((int)wxSHUTDOWN_REBOOT)); | |
28253 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_PyObj_FromInt((int)wxTIMER_CONTINUOUS)); | |
28254 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_PyObj_FromInt((int)wxTIMER_ONE_SHOT)); | |
d14a1e28 | 28255 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); |
8edf1c75 RD |
28256 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_PyObj_FromInt((int)wxLOG_FatalError)); |
28257 | PyDict_SetItemString(d,"LOG_Error", SWIG_PyObj_FromInt((int)wxLOG_Error)); | |
28258 | PyDict_SetItemString(d,"LOG_Warning", SWIG_PyObj_FromInt((int)wxLOG_Warning)); | |
28259 | PyDict_SetItemString(d,"LOG_Message", SWIG_PyObj_FromInt((int)wxLOG_Message)); | |
28260 | PyDict_SetItemString(d,"LOG_Status", SWIG_PyObj_FromInt((int)wxLOG_Status)); | |
28261 | PyDict_SetItemString(d,"LOG_Info", SWIG_PyObj_FromInt((int)wxLOG_Info)); | |
28262 | PyDict_SetItemString(d,"LOG_Debug", SWIG_PyObj_FromInt((int)wxLOG_Debug)); | |
28263 | PyDict_SetItemString(d,"LOG_Trace", SWIG_PyObj_FromInt((int)wxLOG_Trace)); | |
28264 | PyDict_SetItemString(d,"LOG_Progress", SWIG_PyObj_FromInt((int)wxLOG_Progress)); | |
28265 | PyDict_SetItemString(d,"LOG_User", SWIG_PyObj_FromInt((int)wxLOG_User)); | |
28266 | PyDict_SetItemString(d,"LOG_Max", SWIG_PyObj_FromInt((int)wxLOG_Max)); | |
28267 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_PyObj_FromInt((int)0x0001)); | |
28268 | PyDict_SetItemString(d,"TraceMessages", SWIG_PyObj_FromInt((int)0x0002)); | |
28269 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_PyObj_FromInt((int)0x0004)); | |
28270 | PyDict_SetItemString(d,"TraceRefCount", SWIG_PyObj_FromInt((int)0x0008)); | |
28271 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_PyObj_FromInt((int)0x0100)); | |
28272 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_PyObj_FromInt((int)wxPROCESS_DEFAULT)); | |
28273 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_PyObj_FromInt((int)wxPROCESS_REDIRECT)); | |
28274 | PyDict_SetItemString(d,"KILL_OK", SWIG_PyObj_FromInt((int)wxKILL_OK)); | |
28275 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_PyObj_FromInt((int)wxKILL_BAD_SIGNAL)); | |
28276 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_PyObj_FromInt((int)wxKILL_ACCESS_DENIED)); | |
28277 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_PyObj_FromInt((int)wxKILL_NO_PROCESS)); | |
28278 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_PyObj_FromInt((int)wxKILL_ERROR)); | |
28279 | PyDict_SetItemString(d,"SIGNONE", SWIG_PyObj_FromInt((int)wxSIGNONE)); | |
28280 | PyDict_SetItemString(d,"SIGHUP", SWIG_PyObj_FromInt((int)wxSIGHUP)); | |
28281 | PyDict_SetItemString(d,"SIGINT", SWIG_PyObj_FromInt((int)wxSIGINT)); | |
28282 | PyDict_SetItemString(d,"SIGQUIT", SWIG_PyObj_FromInt((int)wxSIGQUIT)); | |
28283 | PyDict_SetItemString(d,"SIGILL", SWIG_PyObj_FromInt((int)wxSIGILL)); | |
28284 | PyDict_SetItemString(d,"SIGTRAP", SWIG_PyObj_FromInt((int)wxSIGTRAP)); | |
28285 | PyDict_SetItemString(d,"SIGABRT", SWIG_PyObj_FromInt((int)wxSIGABRT)); | |
28286 | PyDict_SetItemString(d,"SIGIOT", SWIG_PyObj_FromInt((int)wxSIGIOT)); | |
28287 | PyDict_SetItemString(d,"SIGEMT", SWIG_PyObj_FromInt((int)wxSIGEMT)); | |
28288 | PyDict_SetItemString(d,"SIGFPE", SWIG_PyObj_FromInt((int)wxSIGFPE)); | |
28289 | PyDict_SetItemString(d,"SIGKILL", SWIG_PyObj_FromInt((int)wxSIGKILL)); | |
28290 | PyDict_SetItemString(d,"SIGBUS", SWIG_PyObj_FromInt((int)wxSIGBUS)); | |
28291 | PyDict_SetItemString(d,"SIGSEGV", SWIG_PyObj_FromInt((int)wxSIGSEGV)); | |
28292 | PyDict_SetItemString(d,"SIGSYS", SWIG_PyObj_FromInt((int)wxSIGSYS)); | |
28293 | PyDict_SetItemString(d,"SIGPIPE", SWIG_PyObj_FromInt((int)wxSIGPIPE)); | |
28294 | PyDict_SetItemString(d,"SIGALRM", SWIG_PyObj_FromInt((int)wxSIGALRM)); | |
28295 | PyDict_SetItemString(d,"SIGTERM", SWIG_PyObj_FromInt((int)wxSIGTERM)); | |
d14a1e28 | 28296 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); |
8edf1c75 RD |
28297 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_PyObj_FromInt((int)wxEXEC_ASYNC)); |
28298 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_PyObj_FromInt((int)wxEXEC_SYNC)); | |
28299 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_PyObj_FromInt((int)wxEXEC_NOHIDE)); | |
28300 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_PyObj_FromInt((int)wxEXEC_MAKE_GROUP_LEADER)); | |
d14a1e28 RD |
28301 | |
28302 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
28303 | ||
8edf1c75 RD |
28304 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_PyObj_FromInt((int)wxJOYSTICK1)); |
28305 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_PyObj_FromInt((int)wxJOYSTICK2)); | |
28306 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_PyObj_FromInt((int)wxJOY_BUTTON_ANY)); | |
28307 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_PyObj_FromInt((int)wxJOY_BUTTON1)); | |
28308 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_PyObj_FromInt((int)wxJOY_BUTTON2)); | |
28309 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_PyObj_FromInt((int)wxJOY_BUTTON3)); | |
28310 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_PyObj_FromInt((int)wxJOY_BUTTON4)); | |
d14a1e28 RD |
28311 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); |
28312 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
28313 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
28314 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
02a34c4c RD |
28315 | PyDict_SetItemString(d,"SOUND_SYNC", SWIG_PyObj_FromInt((int)wxSOUND_SYNC)); |
28316 | PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_PyObj_FromInt((int)wxSOUND_ASYNC)); | |
28317 | PyDict_SetItemString(d,"SOUND_LOOP", SWIG_PyObj_FromInt((int)wxSOUND_LOOP)); | |
8edf1c75 RD |
28318 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_PyObj_FromInt((int)wxMAILCAP_STANDARD)); |
28319 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_PyObj_FromInt((int)wxMAILCAP_NETSCAPE)); | |
28320 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_PyObj_FromInt((int)wxMAILCAP_KDE)); | |
28321 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_PyObj_FromInt((int)wxMAILCAP_GNOME)); | |
28322 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_PyObj_FromInt((int)wxMAILCAP_ALL)); | |
d14a1e28 RD |
28323 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); |
28324 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
28325 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
28326 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
28327 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
28328 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
28329 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
28330 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); | |
28331 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
28332 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
28333 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
28334 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
28335 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
28336 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
28337 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
28338 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
28339 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
28340 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
28341 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
28342 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
28343 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
28344 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
28345 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
28346 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
28347 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
28348 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
28349 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
28350 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
28351 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
28352 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
28353 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
28354 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
28355 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
28356 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
28357 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
28358 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
28359 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
28360 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
28361 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
28362 | ||
28363 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
28364 | ||
8edf1c75 RD |
28365 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_PyObj_FromInt((int)wxCONFIG_USE_LOCAL_FILE)); |
28366 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_PyObj_FromInt((int)wxCONFIG_USE_GLOBAL_FILE)); | |
28367 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_PyObj_FromInt((int)wxCONFIG_USE_RELATIVE_PATH)); | |
28368 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_PyObj_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS)); | |
28369 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_PyObj_FromInt((int)wxConfigBase::Type_Unknown)); | |
28370 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_PyObj_FromInt((int)wxConfigBase::Type_String)); | |
28371 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_PyObj_FromInt((int)wxConfigBase::Type_Boolean)); | |
28372 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_PyObj_FromInt((int)wxConfigBase::Type_Integer)); | |
28373 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_PyObj_FromInt((int)wxConfigBase::Type_Float)); | |
cbd72d4f RD |
28374 | SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); |
28375 | SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); | |
8edf1c75 RD |
28376 | PyDict_SetItemString(d,"DateTime_Local", SWIG_PyObj_FromInt((int)wxDateTime::Local)); |
28377 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_PyObj_FromInt((int)wxDateTime::GMT_12)); | |
28378 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_PyObj_FromInt((int)wxDateTime::GMT_11)); | |
28379 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_PyObj_FromInt((int)wxDateTime::GMT_10)); | |
28380 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_PyObj_FromInt((int)wxDateTime::GMT_9)); | |
28381 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_PyObj_FromInt((int)wxDateTime::GMT_8)); | |
28382 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_PyObj_FromInt((int)wxDateTime::GMT_7)); | |
28383 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_PyObj_FromInt((int)wxDateTime::GMT_6)); | |
28384 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_PyObj_FromInt((int)wxDateTime::GMT_5)); | |
28385 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_PyObj_FromInt((int)wxDateTime::GMT_4)); | |
28386 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_PyObj_FromInt((int)wxDateTime::GMT_3)); | |
28387 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_PyObj_FromInt((int)wxDateTime::GMT_2)); | |
28388 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_PyObj_FromInt((int)wxDateTime::GMT_1)); | |
28389 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_PyObj_FromInt((int)wxDateTime::GMT0)); | |
28390 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_PyObj_FromInt((int)wxDateTime::GMT1)); | |
28391 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_PyObj_FromInt((int)wxDateTime::GMT2)); | |
28392 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_PyObj_FromInt((int)wxDateTime::GMT3)); | |
28393 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_PyObj_FromInt((int)wxDateTime::GMT4)); | |
28394 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_PyObj_FromInt((int)wxDateTime::GMT5)); | |
28395 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_PyObj_FromInt((int)wxDateTime::GMT6)); | |
28396 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_PyObj_FromInt((int)wxDateTime::GMT7)); | |
28397 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_PyObj_FromInt((int)wxDateTime::GMT8)); | |
28398 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_PyObj_FromInt((int)wxDateTime::GMT9)); | |
28399 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_PyObj_FromInt((int)wxDateTime::GMT10)); | |
28400 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_PyObj_FromInt((int)wxDateTime::GMT11)); | |
28401 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_PyObj_FromInt((int)wxDateTime::GMT12)); | |
28402 | PyDict_SetItemString(d,"DateTime_WET", SWIG_PyObj_FromInt((int)wxDateTime::WET)); | |
28403 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_PyObj_FromInt((int)wxDateTime::WEST)); | |
28404 | PyDict_SetItemString(d,"DateTime_CET", SWIG_PyObj_FromInt((int)wxDateTime::CET)); | |
28405 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_PyObj_FromInt((int)wxDateTime::CEST)); | |
28406 | PyDict_SetItemString(d,"DateTime_EET", SWIG_PyObj_FromInt((int)wxDateTime::EET)); | |
28407 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_PyObj_FromInt((int)wxDateTime::EEST)); | |
28408 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_PyObj_FromInt((int)wxDateTime::MSK)); | |
28409 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_PyObj_FromInt((int)wxDateTime::MSD)); | |
28410 | PyDict_SetItemString(d,"DateTime_AST", SWIG_PyObj_FromInt((int)wxDateTime::AST)); | |
28411 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_PyObj_FromInt((int)wxDateTime::ADT)); | |
28412 | PyDict_SetItemString(d,"DateTime_EST", SWIG_PyObj_FromInt((int)wxDateTime::EST)); | |
28413 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_PyObj_FromInt((int)wxDateTime::EDT)); | |
28414 | PyDict_SetItemString(d,"DateTime_CST", SWIG_PyObj_FromInt((int)wxDateTime::CST)); | |
28415 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_PyObj_FromInt((int)wxDateTime::CDT)); | |
28416 | PyDict_SetItemString(d,"DateTime_MST", SWIG_PyObj_FromInt((int)wxDateTime::MST)); | |
28417 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_PyObj_FromInt((int)wxDateTime::MDT)); | |
28418 | PyDict_SetItemString(d,"DateTime_PST", SWIG_PyObj_FromInt((int)wxDateTime::PST)); | |
28419 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_PyObj_FromInt((int)wxDateTime::PDT)); | |
28420 | PyDict_SetItemString(d,"DateTime_HST", SWIG_PyObj_FromInt((int)wxDateTime::HST)); | |
28421 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_PyObj_FromInt((int)wxDateTime::AKST)); | |
28422 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_PyObj_FromInt((int)wxDateTime::AKDT)); | |
28423 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_PyObj_FromInt((int)wxDateTime::A_WST)); | |
28424 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_PyObj_FromInt((int)wxDateTime::A_CST)); | |
28425 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_PyObj_FromInt((int)wxDateTime::A_EST)); | |
28426 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_PyObj_FromInt((int)wxDateTime::A_ESST)); | |
28427 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_PyObj_FromInt((int)wxDateTime::UTC)); | |
28428 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_PyObj_FromInt((int)wxDateTime::Gregorian)); | |
28429 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_PyObj_FromInt((int)wxDateTime::Julian)); | |
28430 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Unknown)); | |
28431 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Standard)); | |
28432 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Alaska)); | |
28433 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Albania)); | |
28434 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Austria)); | |
28435 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Austria_Brixen)); | |
28436 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Austria_Salzburg)); | |
28437 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Austria_Tyrol)); | |
28438 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Austria_Carinthia)); | |
28439 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Austria_Styria)); | |
28440 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Belgium)); | |
28441 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Bulgaria)); | |
28442 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Bulgaria_1)); | |
28443 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Bulgaria_2)); | |
28444 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Bulgaria_3)); | |
28445 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Canada)); | |
28446 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_PyObj_FromInt((int)wxDateTime::Gr_China)); | |
28447 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_PyObj_FromInt((int)wxDateTime::Gr_China_1)); | |
28448 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_PyObj_FromInt((int)wxDateTime::Gr_China_2)); | |
28449 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Czechoslovakia)); | |
28450 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Denmark)); | |
28451 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Egypt)); | |
28452 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Estonia)); | |
28453 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Finland)); | |
28454 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_PyObj_FromInt((int)wxDateTime::Gr_France)); | |
28455 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_PyObj_FromInt((int)wxDateTime::Gr_France_Alsace)); | |
28456 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_PyObj_FromInt((int)wxDateTime::Gr_France_Lorraine)); | |
28457 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_PyObj_FromInt((int)wxDateTime::Gr_France_Strasbourg)); | |
28458 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Germany)); | |
28459 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Germany_Catholic)); | |
28460 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Germany_Prussia)); | |
28461 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Germany_Protestant)); | |
28462 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_PyObj_FromInt((int)wxDateTime::Gr_GreatBritain)); | |
28463 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Greece)); | |
28464 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Hungary)); | |
28465 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Ireland)); | |
28466 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Italy)); | |
28467 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Japan)); | |
28468 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Japan_1)); | |
28469 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Japan_2)); | |
28470 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Japan_3)); | |
28471 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Latvia)); | |
28472 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Lithuania)); | |
28473 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Luxemburg)); | |
28474 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Netherlands)); | |
28475 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Netherlands_Groningen)); | |
28476 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland)); | |
28477 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht)); | |
28478 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Netherlands_Friesland)); | |
28479 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Norway)); | |
28480 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Poland)); | |
28481 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Portugal)); | |
28482 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Romania)); | |
28483 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Russia)); | |
28484 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Scotland)); | |
28485 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Spain)); | |
28486 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Sweden)); | |
28487 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Switzerland)); | |
28488 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Switzerland_Catholic)); | |
28489 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Switzerland_Protestant)); | |
28490 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Turkey)); | |
28491 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_PyObj_FromInt((int)wxDateTime::Gr_USA)); | |
28492 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Wales)); | |
28493 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Yugoslavia)); | |
28494 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_PyObj_FromInt((int)wxDateTime::Country_Unknown)); | |
28495 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_PyObj_FromInt((int)wxDateTime::Country_Default)); | |
28496 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_PyObj_FromInt((int)wxDateTime::Country_WesternEurope_Start)); | |
28497 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_PyObj_FromInt((int)wxDateTime::Country_EEC)); | |
28498 | PyDict_SetItemString(d,"DateTime_France", SWIG_PyObj_FromInt((int)wxDateTime::France)); | |
28499 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_PyObj_FromInt((int)wxDateTime::Germany)); | |
28500 | PyDict_SetItemString(d,"DateTime_UK", SWIG_PyObj_FromInt((int)wxDateTime::UK)); | |
28501 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_PyObj_FromInt((int)wxDateTime::Country_WesternEurope_End)); | |
28502 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_PyObj_FromInt((int)wxDateTime::Russia)); | |
28503 | PyDict_SetItemString(d,"DateTime_USA", SWIG_PyObj_FromInt((int)wxDateTime::USA)); | |
28504 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_PyObj_FromInt((int)wxDateTime::Jan)); | |
28505 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_PyObj_FromInt((int)wxDateTime::Feb)); | |
28506 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_PyObj_FromInt((int)wxDateTime::Mar)); | |
28507 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_PyObj_FromInt((int)wxDateTime::Apr)); | |
28508 | PyDict_SetItemString(d,"DateTime_May", SWIG_PyObj_FromInt((int)wxDateTime::May)); | |
28509 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_PyObj_FromInt((int)wxDateTime::Jun)); | |
28510 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_PyObj_FromInt((int)wxDateTime::Jul)); | |
28511 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_PyObj_FromInt((int)wxDateTime::Aug)); | |
28512 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_PyObj_FromInt((int)wxDateTime::Sep)); | |
28513 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_PyObj_FromInt((int)wxDateTime::Oct)); | |
28514 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_PyObj_FromInt((int)wxDateTime::Nov)); | |
28515 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_PyObj_FromInt((int)wxDateTime::Dec)); | |
28516 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_PyObj_FromInt((int)wxDateTime::Inv_Month)); | |
28517 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_PyObj_FromInt((int)wxDateTime::Sun)); | |
28518 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_PyObj_FromInt((int)wxDateTime::Mon)); | |
28519 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_PyObj_FromInt((int)wxDateTime::Tue)); | |
28520 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_PyObj_FromInt((int)wxDateTime::Wed)); | |
28521 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_PyObj_FromInt((int)wxDateTime::Thu)); | |
28522 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_PyObj_FromInt((int)wxDateTime::Fri)); | |
28523 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_PyObj_FromInt((int)wxDateTime::Sat)); | |
28524 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_PyObj_FromInt((int)wxDateTime::Inv_WeekDay)); | |
28525 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_PyObj_FromInt((int)wxDateTime::Inv_Year)); | |
28526 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_PyObj_FromInt((int)wxDateTime::Name_Full)); | |
28527 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_PyObj_FromInt((int)wxDateTime::Name_Abbr)); | |
28528 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_PyObj_FromInt((int)wxDateTime::Default_First)); | |
28529 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_PyObj_FromInt((int)wxDateTime::Monday_First)); | |
28530 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_PyObj_FromInt((int)wxDateTime::Sunday_First)); | |
98e665d3 | 28531 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); |
8edf1c75 RD |
28532 | PyDict_SetItemString(d,"DF_INVALID", SWIG_PyObj_FromInt((int)wxDF_INVALID)); |
28533 | PyDict_SetItemString(d,"DF_TEXT", SWIG_PyObj_FromInt((int)wxDF_TEXT)); | |
28534 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_PyObj_FromInt((int)wxDF_BITMAP)); | |
28535 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_PyObj_FromInt((int)wxDF_METAFILE)); | |
28536 | PyDict_SetItemString(d,"DF_SYLK", SWIG_PyObj_FromInt((int)wxDF_SYLK)); | |
28537 | PyDict_SetItemString(d,"DF_DIF", SWIG_PyObj_FromInt((int)wxDF_DIF)); | |
28538 | PyDict_SetItemString(d,"DF_TIFF", SWIG_PyObj_FromInt((int)wxDF_TIFF)); | |
28539 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_PyObj_FromInt((int)wxDF_OEMTEXT)); | |
28540 | PyDict_SetItemString(d,"DF_DIB", SWIG_PyObj_FromInt((int)wxDF_DIB)); | |
28541 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_PyObj_FromInt((int)wxDF_PALETTE)); | |
28542 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_PyObj_FromInt((int)wxDF_PENDATA)); | |
28543 | PyDict_SetItemString(d,"DF_RIFF", SWIG_PyObj_FromInt((int)wxDF_RIFF)); | |
28544 | PyDict_SetItemString(d,"DF_WAVE", SWIG_PyObj_FromInt((int)wxDF_WAVE)); | |
28545 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_PyObj_FromInt((int)wxDF_UNICODETEXT)); | |
28546 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_PyObj_FromInt((int)wxDF_ENHMETAFILE)); | |
28547 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_PyObj_FromInt((int)wxDF_FILENAME)); | |
28548 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_PyObj_FromInt((int)wxDF_LOCALE)); | |
28549 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_PyObj_FromInt((int)wxDF_PRIVATE)); | |
28550 | PyDict_SetItemString(d,"DF_HTML", SWIG_PyObj_FromInt((int)wxDF_HTML)); | |
28551 | PyDict_SetItemString(d,"DF_MAX", SWIG_PyObj_FromInt((int)wxDF_MAX)); | |
d14a1e28 | 28552 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); |
8edf1c75 RD |
28553 | PyDict_SetItemString(d,"DataObject_Get", SWIG_PyObj_FromInt((int)wxDataObject::Get)); |
28554 | PyDict_SetItemString(d,"DataObject_Set", SWIG_PyObj_FromInt((int)wxDataObject::Set)); | |
28555 | PyDict_SetItemString(d,"DataObject_Both", SWIG_PyObj_FromInt((int)wxDataObject::Both)); | |
28556 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_PyObj_FromInt((int)wxDrag_CopyOnly)); | |
28557 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_PyObj_FromInt((int)wxDrag_AllowMove)); | |
28558 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_PyObj_FromInt((int)wxDrag_DefaultMove)); | |
28559 | PyDict_SetItemString(d,"DragError", SWIG_PyObj_FromInt((int)wxDragError)); | |
28560 | PyDict_SetItemString(d,"DragNone", SWIG_PyObj_FromInt((int)wxDragNone)); | |
28561 | PyDict_SetItemString(d,"DragCopy", SWIG_PyObj_FromInt((int)wxDragCopy)); | |
28562 | PyDict_SetItemString(d,"DragMove", SWIG_PyObj_FromInt((int)wxDragMove)); | |
28563 | PyDict_SetItemString(d,"DragLink", SWIG_PyObj_FromInt((int)wxDragLink)); | |
28564 | PyDict_SetItemString(d,"DragCancel", SWIG_PyObj_FromInt((int)wxDragCancel)); | |
d14a1e28 RD |
28565 | |
28566 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
28567 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
28568 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
28569 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
28570 | ||
28571 | SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set); | |
28572 | } | |
28573 |