]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
a41e16b6 | 3 | * Version 1.3.22 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
c9c7117a RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
51 | |
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
cc6dd355 RD |
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
d14a1e28 | 82 | #else |
cc6dd355 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
cc6dd355 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
cc6dd355 | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
cc6dd355 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
cc6dd355 | 104 | void *clientdata; |
d14a1e28 RD |
105 | swig_dycast_func dcast; |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
cc6dd355 RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
126 | /*********************************************************************** | |
127 | * pyrun.swg for wxPython | |
128 | * | |
129 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
130 | * but not the runtime functions themselves. This helps keep the | |
131 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
132 | * anyway. | |
133 | * | |
134 | ************************************************************************/ | |
135 | ||
d14a1e28 RD |
136 | #include "Python.h" |
137 | ||
138 | #ifdef __cplusplus | |
139 | extern "C" { | |
140 | #endif | |
141 | ||
142 | #define SWIG_PY_INT 1 | |
143 | #define SWIG_PY_FLOAT 2 | |
144 | #define SWIG_PY_STRING 3 | |
145 | #define SWIG_PY_POINTER 4 | |
146 | #define SWIG_PY_BINARY 5 | |
147 | ||
148 | /* Flags for pointer conversion */ | |
149 | ||
150 | #define SWIG_POINTER_EXCEPTION 0x1 | |
151 | #define SWIG_POINTER_DISOWN 0x2 | |
152 | ||
153 | /* Exception handling in wrappers */ | |
154 | #define SWIG_fail goto fail | |
155 | ||
156 | /* Constant information structure */ | |
157 | typedef struct swig_const_info { | |
158 | int type; | |
159 | char *name; | |
160 | long lvalue; | |
161 | double dvalue; | |
162 | void *pvalue; | |
163 | swig_type_info **ptype; | |
164 | } swig_const_info; | |
165 | ||
d14a1e28 RD |
166 | /* Common SWIG API */ |
167 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
168 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
169 | #define SWIG_NewPointerObj(p, type, flags) \ | |
170 | SWIG_Python_NewPointerObj(p, type, flags) | |
171 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
172 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
a41e16b6 | 173 | |
d14a1e28 RD |
174 | /* Python-specific SWIG API */ |
175 | #define SWIG_newvarlink() \ | |
176 | SWIG_Python_newvarlink() | |
177 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
178 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
179 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
180 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
181 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
182 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
183 | #define SWIG_InstallConstants(d, constants) \ | |
184 | SWIG_Python_InstallConstants(d, constants) | |
185 | ||
994141e6 | 186 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 187 | |
cc6dd355 RD |
188 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
189 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
190 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
191 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
192 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
193 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
194 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
195 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 196 | |
d14a1e28 RD |
197 | |
198 | /* Contract support */ | |
199 | ||
9d1d5697 | 200 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 201 | |
d14a1e28 RD |
202 | #ifdef __cplusplus |
203 | } | |
204 | #endif | |
205 | ||
206 | ||
d14a1e28 RD |
207 | /* -------- TYPES TABLE (BEGIN) -------- */ |
208 | ||
209 | #define SWIGTYPE_p_wxLogChain swig_types[0] | |
210 | #define SWIGTYPE_p_wxMutexGuiLocker swig_types[1] | |
211 | #define SWIGTYPE_p_wxFileHistory swig_types[2] | |
212 | #define SWIGTYPE_p_wxLog swig_types[3] | |
213 | #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[4] | |
214 | #define SWIGTYPE_p_wxMenu swig_types[5] | |
215 | #define SWIGTYPE_p_wxEvent swig_types[6] | |
216 | #define SWIGTYPE_p_wxConfigBase swig_types[7] | |
4276dc52 RD |
217 | #define SWIGTYPE_p_wxDisplay swig_types[8] |
218 | #define SWIGTYPE_p_wxFileType swig_types[9] | |
219 | #define SWIGTYPE_p_wxLogGui swig_types[10] | |
220 | #define SWIGTYPE_p_wxFont swig_types[11] | |
221 | #define SWIGTYPE_p_wxDataFormat swig_types[12] | |
222 | #define SWIGTYPE_p_wxTimerEvent swig_types[13] | |
223 | #define SWIGTYPE_p_wxCaret swig_types[14] | |
224 | #define SWIGTYPE_p_int swig_types[15] | |
225 | #define SWIGTYPE_p_wxSize swig_types[16] | |
226 | #define SWIGTYPE_p_wxClipboard swig_types[17] | |
227 | #define SWIGTYPE_p_wxStopWatch swig_types[18] | |
228 | #define SWIGTYPE_p_wxDC swig_types[19] | |
229 | #define SWIGTYPE_p_wxClipboardLocker swig_types[20] | |
230 | #define SWIGTYPE_p_wxIcon swig_types[21] | |
231 | #define SWIGTYPE_p_wxLogStderr swig_types[22] | |
232 | #define SWIGTYPE_p_wxLogTextCtrl swig_types[23] | |
233 | #define SWIGTYPE_p_wxTextCtrl swig_types[24] | |
234 | #define SWIGTYPE_p_wxBusyCursor swig_types[25] | |
36cadbf7 RD |
235 | #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[26] |
236 | #define SWIGTYPE_p_wxPyTextDataObject swig_types[27] | |
237 | #define SWIGTYPE_p_wxBitmapDataObject swig_types[28] | |
238 | #define SWIGTYPE_p_wxTextDataObject swig_types[29] | |
239 | #define SWIGTYPE_p_wxDataObject swig_types[30] | |
4276dc52 RD |
240 | #define SWIGTYPE_p_wxFileDataObject swig_types[31] |
241 | #define SWIGTYPE_p_wxCustomDataObject swig_types[32] | |
242 | #define SWIGTYPE_p_wxURLDataObject swig_types[33] | |
243 | #define SWIGTYPE_p_wxMetafileDataObject swig_types[34] | |
244 | #define SWIGTYPE_p_wxSound swig_types[35] | |
245 | #define SWIGTYPE_p_wxTimerRunner swig_types[36] | |
246 | #define SWIGTYPE_p_wxLogWindow swig_types[37] | |
247 | #define SWIGTYPE_p_wxTimeSpan swig_types[38] | |
248 | #define SWIGTYPE_p_wxArrayString swig_types[39] | |
249 | #define SWIGTYPE_p_wxWindowDisabler swig_types[40] | |
250 | #define SWIGTYPE_p_wxToolTip swig_types[41] | |
251 | #define SWIGTYPE_p_wxDataObjectComposite swig_types[42] | |
252 | #define SWIGTYPE_p_wxFileConfig swig_types[43] | |
253 | #define SWIGTYPE_p_wxSystemSettings swig_types[44] | |
254 | #define SWIGTYPE_p_wxVideoMode swig_types[45] | |
255 | #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[46] | |
256 | #define SWIGTYPE_p_wxDataObjectSimple swig_types[47] | |
257 | #define SWIGTYPE_p_wxEvtHandler swig_types[48] | |
258 | #define SWIGTYPE_p_wxRect swig_types[49] | |
259 | #define SWIGTYPE_p_char swig_types[50] | |
260 | #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[51] | |
261 | #define SWIGTYPE_p_wxFileTypeInfo swig_types[52] | |
262 | #define SWIGTYPE_p_wxFrame swig_types[53] | |
263 | #define SWIGTYPE_p_wxTimer swig_types[54] | |
264 | #define SWIGTYPE_p_wxMimeTypesManager swig_types[55] | |
265 | #define SWIGTYPE_p_wxPyArtProvider swig_types[56] | |
266 | #define SWIGTYPE_p_wxPyTipProvider swig_types[57] | |
267 | #define SWIGTYPE_p_wxTipProvider swig_types[58] | |
268 | #define SWIGTYPE_p_wxJoystick swig_types[59] | |
269 | #define SWIGTYPE_p_wxSystemOptions swig_types[60] | |
270 | #define SWIGTYPE_p_wxPoint swig_types[61] | |
271 | #define SWIGTYPE_p_wxJoystickEvent swig_types[62] | |
272 | #define SWIGTYPE_p_wxCursor swig_types[63] | |
273 | #define SWIGTYPE_p_wxObject swig_types[64] | |
274 | #define SWIGTYPE_p_wxOutputStream swig_types[65] | |
275 | #define SWIGTYPE_p_wxDateTime swig_types[66] | |
276 | #define SWIGTYPE_p_wxPyDropSource swig_types[67] | |
277 | #define SWIGTYPE_p_wxWindow swig_types[68] | |
278 | #define SWIGTYPE_p_wxString swig_types[69] | |
279 | #define SWIGTYPE_p_wxPyProcess swig_types[70] | |
280 | #define SWIGTYPE_p_wxBitmap swig_types[71] | |
281 | #define SWIGTYPE_p_wxConfig swig_types[72] | |
282 | #define SWIGTYPE_p_wxChar swig_types[73] | |
283 | #define SWIGTYPE_p_wxBusyInfo swig_types[74] | |
284 | #define SWIGTYPE_p_wxPyDropTarget swig_types[75] | |
285 | #define SWIGTYPE_p_wxPyTextDropTarget swig_types[76] | |
286 | #define SWIGTYPE_p_wxPyFileDropTarget swig_types[77] | |
287 | #define SWIGTYPE_p_wxProcessEvent swig_types[78] | |
288 | #define SWIGTYPE_p_wxPyLog swig_types[79] | |
289 | #define SWIGTYPE_p_wxLogNull swig_types[80] | |
290 | #define SWIGTYPE_p_wxColour swig_types[81] | |
36cadbf7 RD |
291 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[82] |
292 | #define SWIGTYPE_p_wxPyTimer swig_types[83] | |
293 | #define SWIGTYPE_p_wxDateSpan swig_types[84] | |
294 | static swig_type_info *swig_types[86]; | |
d14a1e28 RD |
295 | |
296 | /* -------- TYPES TABLE (END) -------- */ | |
297 | ||
298 | ||
299 | /*----------------------------------------------- | |
54f9ee45 | 300 | @(target):= _misc_.so |
d14a1e28 | 301 | ------------------------------------------------*/ |
54f9ee45 | 302 | #define SWIG_init init_misc_ |
d14a1e28 | 303 | |
54f9ee45 | 304 | #define SWIG_name "_misc_" |
d14a1e28 | 305 | |
15afbcd0 | 306 | /* Auxiliar swig macros */ |
994141e6 | 307 | |
994141e6 | 308 | #ifdef __cplusplus |
15afbcd0 | 309 | #define SWIGSTATICINLINE(a) static inline a |
994141e6 | 310 | #define SWIGSTATIC(a) static a |
15afbcd0 RD |
311 | #define swig_new_array(type, size) (new type[(size)]) |
312 | #define swig_delete_array(cptr) delete[] cptr | |
313 | #define swig_const_cast(type,a) const_cast<type>(a) | |
314 | #define swig_static_cast(type,a) static_cast<type>(a) | |
315 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
994141e6 | 316 | |
994141e6 | 317 | #ifdef HAVE_NUMERIC_CAST |
15afbcd0 | 318 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) |
994141e6 | 319 | #else |
15afbcd0 | 320 | #define swig_numeric_cast(type,a) static_cast<type>(a) |
994141e6 RD |
321 | #endif |
322 | ||
15afbcd0 RD |
323 | #else /* C case */ |
324 | ||
325 | #define SWIGSTATICINLINE(a) static a | |
326 | #define SWIGSTATIC(a) static a | |
327 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
328 | #define swig_delete_array(cptr) free((char*)cptr) | |
329 | #define swig_const_cast(type,a) (type)(a) | |
330 | #define swig_static_cast(type,a) (type)(a) | |
331 | #define swig_reinterpret_cast(type,a) (type)(a) | |
332 | #define swig_numeric_cast(type,a) (type)(a) | |
333 | ||
334 | #endif /* __cplusplus */ | |
994141e6 RD |
335 | |
336 | ||
15afbcd0 RD |
337 | #define SWIG_FromSignedChar PyInt_FromLong |
338 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
339 | #define SWIG_FromShort PyInt_FromLong | |
340 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
341 | #define SWIG_FromInt PyInt_FromLong | |
342 | #define SWIG_FromLong PyInt_FromLong | |
343 | #define SWIG_FromFloat PyFloat_FromDouble | |
344 | #define SWIG_FromDouble PyFloat_FromDouble | |
345 | #define SWIG_FromFloat PyFloat_FromDouble | |
346 | #define SWIG_FromDouble PyFloat_FromDouble | |
994141e6 RD |
347 | |
348 | ||
d14a1e28 RD |
349 | #include "wx/wxPython/wxPython.h" |
350 | #include "wx/wxPython/pyclasses.h" | |
e3b71cb8 | 351 | #include "wx/wxPython/pyistream.h" |
d14a1e28 | 352 | |
b2dc1044 | 353 | static const wxString wxPyEmptyString(wxEmptyString); |
d14a1e28 | 354 | |
d14a1e28 | 355 | |
994141e6 | 356 | |
15afbcd0 RD |
357 | #include <limits.h> |
358 | ||
359 | ||
360 | SWIGSTATICINLINE(long) | |
361 | SWIG_CheckLongInRange(long value, const char* type, | |
362 | long min_value, long max_value) | |
363 | { | |
364 | if (!PyErr_Occurred()) { | |
365 | if (value < min_value) { | |
366 | PyObject *err = | |
367 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
368 | value, type, min_value); | |
369 | ||
370 | PyErr_SetObject(PyExc_OverflowError, err); | |
371 | Py_DECREF(err); | |
372 | } else if (value > max_value) { | |
373 | PyObject *err = | |
374 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
375 | value, type, max_value); | |
376 | PyErr_SetObject(PyExc_OverflowError, err); | |
377 | Py_DECREF(err); | |
378 | } | |
379 | } | |
380 | return value; | |
381 | } | |
382 | ||
383 | ||
384 | SWIGSTATICINLINE(long) | |
385 | SWIG_AsLong(PyObject * obj) | |
386 | { | |
69223c70 RD |
387 | if (PyNumber_Check(obj)) |
388 | return PyInt_AsLong(obj); | |
389 | else { | |
390 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
391 | obj->ob_type->tp_name); | |
392 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
393 | Py_DECREF(errmsg); | |
394 | return 0; | |
395 | } | |
15afbcd0 RD |
396 | } |
397 | ||
398 | ||
399 | #if INT_MAX != LONG_MAX | |
400 | SWIGSTATICINLINE(int) | |
401 | SWIG_AsInt(PyObject *obj) | |
994141e6 | 402 | { |
15afbcd0 RD |
403 | return swig_numeric_cast(int, |
404 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
405 | "int", INT_MIN, INT_MAX)); | |
406 | } | |
407 | #else | |
408 | #define SWIG_AsInt SWIG_AsLong | |
409 | #endif | |
410 | ||
411 | ||
412 | SWIGSTATICINLINE(int) | |
413 | SWIG_CheckInt(PyObject* obj) | |
414 | { | |
415 | SWIG_AsInt(obj); | |
416 | if (PyErr_Occurred()) { | |
417 | PyErr_Clear(); | |
418 | return 0; | |
419 | } else { | |
420 | return 1; | |
421 | } | |
994141e6 RD |
422 | } |
423 | ||
b2dc1044 RD |
424 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); |
425 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
426 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
d14a1e28 | 427 | |
15afbcd0 RD |
428 | SWIGSTATICINLINE(int) |
429 | SWIG_CheckLong(PyObject* obj) | |
994141e6 | 430 | { |
15afbcd0 RD |
431 | SWIG_AsLong(obj); |
432 | if (PyErr_Occurred()) { | |
433 | PyErr_Clear(); | |
434 | return 0; | |
435 | } else { | |
436 | return 1; | |
437 | } | |
994141e6 RD |
438 | } |
439 | ||
440 | ||
15afbcd0 RD |
441 | SWIGSTATICINLINE(bool) |
442 | SWIG_AsBool(PyObject *obj) | |
994141e6 RD |
443 | { |
444 | return PyObject_IsTrue(obj) ? true : false; | |
445 | } | |
446 | ||
447 | ||
15afbcd0 RD |
448 | SWIGSTATICINLINE(int) |
449 | SWIG_CheckBool(PyObject* obj) | |
450 | { | |
451 | SWIG_AsBool(obj); | |
452 | if (PyErr_Occurred()) { | |
453 | PyErr_Clear(); | |
454 | return 0; | |
455 | } else { | |
456 | return 1; | |
457 | } | |
458 | } | |
459 | ||
460 | ||
d14a1e28 RD |
461 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
462 | PyObject* o2; | |
463 | PyObject* o3; | |
464 | ||
465 | if (!target) { | |
466 | target = o; | |
467 | } else if (target == Py_None) { | |
468 | Py_DECREF(Py_None); | |
469 | target = o; | |
470 | } else { | |
471 | if (!PyTuple_Check(target)) { | |
472 | o2 = target; | |
473 | target = PyTuple_New(1); | |
474 | PyTuple_SetItem(target, 0, o2); | |
475 | } | |
476 | o3 = PyTuple_New(1); | |
477 | PyTuple_SetItem(o3, 0, o); | |
478 | ||
479 | o2 = target; | |
480 | target = PySequence_Concat(o2, o3); | |
481 | Py_DECREF(o2); | |
482 | Py_DECREF(o3); | |
483 | } | |
484 | return target; | |
485 | } | |
486 | ||
487 | ||
488 | long wxGetFreeMemory() | |
39f61e25 RD |
489 | { wxPyRaiseNotImplemented(); return 0; } |
490 | ||
491 | ||
15afbcd0 RD |
492 | SWIGSTATICINLINE(unsigned long) |
493 | SWIG_AsUnsignedLong(PyObject * obj) | |
494 | { | |
495 | if (PyLong_Check(obj)) { | |
496 | return PyLong_AsUnsignedLong(obj); | |
497 | } else { | |
69223c70 | 498 | long i = SWIG_AsLong(obj); |
15afbcd0 | 499 | if ( !PyErr_Occurred() && (i < 0)) { |
69223c70 | 500 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); |
15afbcd0 RD |
501 | } |
502 | return i; | |
503 | } | |
504 | } | |
505 | ||
506 | ||
507 | SWIGSTATICINLINE(int) | |
508 | SWIG_CheckUnsignedLong(PyObject* obj) | |
509 | { | |
510 | SWIG_AsUnsignedLong(obj); | |
511 | if (PyErr_Occurred()) { | |
512 | PyErr_Clear(); | |
513 | return 0; | |
514 | } else { | |
515 | return 1; | |
516 | } | |
517 | } | |
518 | ||
519 | ||
520 | SWIGSTATICINLINE(PyObject* ) | |
521 | SWIG_FromUnsignedLong(unsigned long value) | |
994141e6 | 522 | { |
15afbcd0 RD |
523 | return (value > LONG_MAX) ? |
524 | PyLong_FromUnsignedLong(value) | |
525 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
994141e6 RD |
526 | } |
527 | ||
528 | ||
d14a1e28 RD |
529 | void wxWakeUpMainThread() {} |
530 | ||
531 | ||
532 | bool wxThread_IsMain() { | |
533 | #ifdef WXP_WITH_THREAD | |
534 | return wxThread::IsMain(); | |
535 | #else | |
e811c8ce | 536 | return True; |
d14a1e28 RD |
537 | #endif |
538 | } | |
539 | ||
540 | ||
541 | int wxCaret_GetBlinkTime() { | |
542 | return wxCaret::GetBlinkTime(); | |
543 | } | |
544 | ||
545 | void wxCaret_SetBlinkTime(int milliseconds) { | |
546 | wxCaret::SetBlinkTime(milliseconds); | |
547 | } | |
548 | ||
549 | ||
550 | #include <wx/snglinst.h> | |
551 | ||
552 | ||
553 | #ifdef __WXMSW__ | |
554 | #include <wx/msw/private.h> | |
555 | #include <wx/dynload.h> | |
556 | #endif | |
557 | ||
558 | ||
559 | ||
560 | void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) | |
561 | { | |
562 | #ifdef __WXMSW__ | |
563 | ||
564 | switch (method) | |
565 | { | |
566 | case 1: | |
567 | // This one only partially works. Appears to be an undocumented | |
568 | // "standard" convention that not all widgets adhear to. For | |
569 | // example, for some widgets backgrounds or non-client areas may | |
570 | // not be painted. | |
571 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
572 | break; | |
573 | ||
574 | case 2: | |
575 | // This one works much better, except for on XP. On Win2k nearly | |
576 | // all widgets and their children are captured correctly[**]. On | |
577 | // XP with Themes activated most native widgets draw only | |
578 | // partially, if at all. Without themes it works just like on | |
579 | // Win2k. | |
580 | // | |
581 | // ** For example the radio buttons in a wxRadioBox are not its | |
582 | // children by default, but you can capture it via the panel | |
583 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
584 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
585 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
586 | PRF_ERASEBKGND | PRF_OWNED ); | |
587 | break; | |
588 | ||
589 | case 3: | |
590 | // This one is only defined in the latest SDK and is only | |
591 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
592 | // so I expect that it will work similar to the above. Since it | |
593 | // is avaialble only on XP, it can't be compiled like this and | |
594 | // will have to be loaded dynamically. | |
595 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
596 | ||
597 | // fall through | |
598 | ||
599 | case 4: | |
600 | // Use PrintWindow if available, or fallback to WM_PRINT | |
601 | // otherwise. Unfortunately using PrintWindow is even worse than | |
602 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
603 | // at all, with or without Themes. | |
604 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
e811c8ce | 605 | static bool s_triedToLoad = False; |
d14a1e28 RD |
606 | static PrintWindow_t pfnPrintWindow = NULL; |
607 | if ( !s_triedToLoad ) | |
608 | { | |
609 | ||
e811c8ce | 610 | s_triedToLoad = True; |
d14a1e28 RD |
611 | wxDynamicLibrary dllUser32(_T("user32.dll")); |
612 | if ( dllUser32.IsLoaded() ) | |
613 | { | |
614 | wxLogNull nolog; // Don't report errors here | |
615 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
616 | } | |
617 | } | |
618 | if (pfnPrintWindow) | |
619 | { | |
620 | printf("Using PrintWindow\n"); | |
621 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
622 | } | |
623 | else | |
624 | { | |
625 | printf("Using WM_PRINT\n"); | |
626 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
627 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); | |
628 | } | |
629 | } | |
630 | #endif | |
631 | } | |
632 | ||
633 | ||
634 | ||
635 | #include <wx/tipdlg.h> | |
636 | ||
637 | ||
638 | class wxPyTipProvider : public wxTipProvider { | |
639 | public: | |
640 | wxPyTipProvider(size_t currentTip) | |
641 | : wxTipProvider(currentTip) {} | |
642 | ||
643 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
644 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
645 | PYPRIVATE; | |
646 | }; | |
647 | ||
648 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
649 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
650 | ||
651 | ||
4276dc52 RD |
652 | //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); |
653 | ||
1c0f361b RD |
654 | IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer); |
655 | ||
4276dc52 RD |
656 | void wxPyTimer::Notify() { |
657 | bool found; | |
4f89f6a3 | 658 | bool blocked = wxPyBeginBlockThreads(); |
4276dc52 RD |
659 | if ((found = wxPyCBH_findCallback(m_myInst, "Notify"))) |
660 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); | |
4f89f6a3 | 661 | wxPyEndBlockThreads(blocked); |
4276dc52 RD |
662 | if (! found) |
663 | wxTimer::Notify(); | |
664 | } | |
665 | void wxPyTimer::base_Notify() { | |
666 | wxTimer::Notify(); | |
667 | } | |
668 | ||
d14a1e28 | 669 | |
994141e6 | 670 | |
15afbcd0 RD |
671 | SWIGSTATICINLINE(PyObject *) |
672 | SWIG_FromCharPtr(const char* cptr) | |
673 | { | |
674 | size_t size = cptr ? strlen(cptr) : 0; | |
675 | if (cptr) { | |
676 | if (size > INT_MAX) { | |
677 | return SWIG_NewPointerObj(swig_const_cast(char*,cptr), | |
678 | SWIG_TypeQuery("char *"), 0); | |
679 | } else { | |
680 | return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size)); | |
681 | } | |
682 | } else { | |
683 | Py_INCREF(Py_None); | |
684 | return Py_None; | |
685 | } | |
686 | } | |
687 | ||
688 | ||
689 | SWIGSTATICINLINE(unsigned long) | |
690 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
691 | unsigned long max_value) | |
692 | { | |
693 | if (!PyErr_Occurred()) { | |
694 | if (value > max_value) { | |
695 | PyObject *err = | |
696 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
697 | value, type, max_value); | |
698 | PyErr_SetObject(PyExc_OverflowError, err); | |
699 | Py_DECREF(err); | |
700 | } | |
701 | } | |
702 | return value; | |
703 | } | |
704 | ||
705 | ||
706 | #if UINT_MAX != ULONG_MAX | |
707 | SWIGSTATICINLINE(unsigned int) | |
708 | SWIG_AsUnsignedInt(PyObject *obj) | |
994141e6 | 709 | { |
15afbcd0 RD |
710 | return swig_numeric_cast(unsigned int, |
711 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
712 | "unsigned int", UINT_MAX)); | |
713 | } | |
714 | #else | |
715 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
716 | #endif | |
717 | ||
718 | ||
719 | SWIGSTATICINLINE(int) | |
720 | SWIG_CheckUnsignedInt(PyObject* obj) | |
721 | { | |
722 | SWIG_AsUnsignedInt(obj); | |
723 | if (PyErr_Occurred()) { | |
724 | PyErr_Clear(); | |
725 | return 0; | |
726 | } else { | |
727 | return 1; | |
728 | } | |
994141e6 RD |
729 | } |
730 | ||
d14a1e28 RD |
731 | wxString Log_TimeStamp(){ |
732 | wxString msg; | |
733 | wxLog::TimeStamp(&msg); | |
734 | return msg; | |
735 | } | |
736 | void wxLog_Destroy(wxLog *self){ delete self; } | |
737 | ||
738 | // A wxLog class that can be derived from in wxPython | |
739 | class wxPyLog : public wxLog { | |
740 | public: | |
741 | wxPyLog() : wxLog() {} | |
742 | ||
743 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
744 | bool found; | |
4f89f6a3 | 745 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
746 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { |
747 | PyObject* s = wx2PyString(szString); | |
748 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
749 | Py_DECREF(s); | |
750 | } | |
4f89f6a3 | 751 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
752 | if (! found) |
753 | wxLog::DoLog(level, szString, t); | |
754 | } | |
755 | ||
756 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
757 | bool found; | |
4f89f6a3 | 758 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
759 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { |
760 | PyObject* s = wx2PyString(szString); | |
761 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
762 | Py_DECREF(s); | |
763 | } | |
4f89f6a3 | 764 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
765 | if (! found) |
766 | wxLog::DoLogString(szString, t); | |
767 | } | |
768 | ||
769 | PYPRIVATE; | |
770 | }; | |
771 | ||
772 | ||
773 | ||
774 | ||
775 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
776 | ||
777 | ||
778 | #include <wx/joystick.h> | |
779 | ||
780 | ||
781 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
782 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
783 | class wxJoystick : public wxObject { | |
784 | public: | |
785 | wxJoystick(int joystick = wxJOYSTICK1) { | |
4f89f6a3 | 786 | bool blocked = wxPyBeginBlockThreads(); |
39f61e25 RD |
787 | PyErr_SetString(PyExc_NotImplementedError, |
788 | "wxJoystick is not available on this platform."); | |
4f89f6a3 | 789 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
790 | } |
791 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
792 | int GetZPosition() { return -1; } | |
793 | int GetButtonState() { return -1; } | |
794 | int GetPOVPosition() { return -1; } | |
795 | int GetPOVCTSPosition() { return -1; } | |
796 | int GetRudderPosition() { return -1; } | |
797 | int GetUPosition() { return -1; } | |
798 | int GetVPosition() { return -1; } | |
799 | int GetMovementThreshold() { return -1; } | |
800 | void SetMovementThreshold(int threshold) {} | |
801 | ||
e811c8ce | 802 | bool IsOk(void) { return False; } |
d14a1e28 RD |
803 | int GetNumberJoysticks() { return -1; } |
804 | int GetManufacturerId() { return -1; } | |
805 | int GetProductId() { return -1; } | |
41e2b43e | 806 | wxString GetProductName() { return wxEmptyString; } |
d14a1e28 RD |
807 | int GetXMin() { return -1; } |
808 | int GetYMin() { return -1; } | |
809 | int GetZMin() { return -1; } | |
810 | int GetXMax() { return -1; } | |
811 | int GetYMax() { return -1; } | |
812 | int GetZMax() { return -1; } | |
813 | int GetNumberButtons() { return -1; } | |
814 | int GetNumberAxes() { return -1; } | |
815 | int GetMaxButtons() { return -1; } | |
816 | int GetMaxAxes() { return -1; } | |
817 | int GetPollingMin() { return -1; } | |
818 | int GetPollingMax() { return -1; } | |
819 | int GetRudderMin() { return -1; } | |
820 | int GetRudderMax() { return -1; } | |
821 | int GetUMin() { return -1; } | |
822 | int GetUMax() { return -1; } | |
823 | int GetVMin() { return -1; } | |
824 | int GetVMax() { return -1; } | |
825 | ||
e811c8ce RD |
826 | bool HasRudder() { return False; } |
827 | bool HasZ() { return False; } | |
828 | bool HasU() { return False; } | |
829 | bool HasV() { return False; } | |
830 | bool HasPOV() { return False; } | |
831 | bool HasPOV4Dir() { return False; } | |
832 | bool HasPOVCTS() { return False; } | |
d14a1e28 | 833 | |
e811c8ce RD |
834 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; } |
835 | bool ReleaseCapture() { return False; } | |
d14a1e28 RD |
836 | }; |
837 | #endif | |
838 | ||
839 | ||
4d5c3d91 | 840 | #include <wx/sound.h> |
d14a1e28 RD |
841 | |
842 | ||
dff1fa9b | 843 | #if !wxUSE_SOUND |
d14a1e28 | 844 | // A C++ stub class for wxWave for platforms that don't have it. |
4d5c3d91 | 845 | class wxSound : public wxObject |
d14a1e28 RD |
846 | { |
847 | public: | |
4d5c3d91 | 848 | wxSound() { |
4f89f6a3 | 849 | bool blocked = wxPyBeginBlockThreads(); |
39f61e25 | 850 | PyErr_SetString(PyExc_NotImplementedError, |
4d5c3d91 | 851 | "wxSound is not available on this platform."); |
4f89f6a3 | 852 | wxPyEndBlockThreads(blocked); |
d14a1e28 | 853 | } |
36cadbf7 | 854 | wxSound(const wxString&/*, bool*/) { |
4f89f6a3 | 855 | bool blocked = wxPyBeginBlockThreads(); |
39f61e25 | 856 | PyErr_SetString(PyExc_NotImplementedError, |
4d5c3d91 | 857 | "wxSound is not available on this platform."); |
4f89f6a3 | 858 | wxPyEndBlockThreads(blocked); |
d14a1e28 | 859 | } |
4d5c3d91 | 860 | wxSound(int, const wxByte*) { |
4f89f6a3 | 861 | bool blocked = wxPyBeginBlockThreads(); |
4d5c3d91 RD |
862 | PyErr_SetString(PyExc_NotImplementedError, |
863 | "wxSound is not available on this platform."); | |
4f89f6a3 | 864 | wxPyEndBlockThreads(blocked); |
4d5c3d91 RD |
865 | } |
866 | ||
867 | ~wxSound() {}; | |
d14a1e28 | 868 | |
36cadbf7 | 869 | bool Create(const wxString&/*, bool*/) { return false; } |
4d5c3d91 RD |
870 | bool Create(int, const wxByte*) { return false; }; |
871 | bool IsOk() { return false; }; | |
872 | bool Play(unsigned) const { return false; } | |
873 | static bool Play(const wxString&, unsigned) { return false; } | |
874 | static void Stop() {} | |
d14a1e28 RD |
875 | }; |
876 | ||
877 | #endif | |
878 | ||
36cadbf7 RD |
879 | wxSound *new_wxSound(wxString const &fileName){ |
880 | if (fileName.Length() == 0) | |
881 | return new wxSound; | |
882 | else | |
883 | return new wxSound(fileName); | |
884 | } | |
885 | wxSound *new_wxSound(PyObject *data){ | |
886 | unsigned char* buffer; int size; | |
887 | wxSound *sound = NULL; | |
888 | ||
889 | bool blocked = wxPyBeginBlockThreads(); | |
890 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
891 | goto done; | |
892 | sound = new wxSound(size, buffer); | |
893 | done: | |
894 | wxPyEndBlockThreads(blocked); | |
895 | return sound; | |
896 | } | |
897 | bool wxSound_CreateFromData(wxSound *self,PyObject *data){ | |
898 | #ifndef __WXMAC__ | |
899 | unsigned char* buffer; | |
900 | int size; | |
901 | bool rv = False; | |
902 | ||
903 | bool blocked = wxPyBeginBlockThreads(); | |
904 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
905 | goto done; | |
906 | rv = self->Create(size, buffer); | |
907 | done: | |
908 | wxPyEndBlockThreads(blocked); | |
909 | return rv; | |
910 | #else | |
911 | bool blocked = wxPyBeginBlockThreads(); | |
912 | PyErr_SetString(PyExc_NotImplementedError, | |
913 | "Create from data is not available on this platform."); | |
914 | wxPyEndBlockThreads(blocked); | |
915 | return False; | |
916 | #endif | |
917 | } | |
d14a1e28 RD |
918 | |
919 | #include <wx/mimetype.h> | |
920 | ||
921 | PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
922 | wxString str; | |
923 | if (self->GetMimeType(&str)) | |
924 | return wx2PyString(str); | |
925 | else | |
926 | RETURN_NONE(); | |
927 | } | |
928 | PyObject *wxFileType_GetMimeTypes(wxFileType *self){ | |
929 | wxArrayString arr; | |
930 | if (self->GetMimeTypes(arr)) | |
931 | return wxArrayString2PyList_helper(arr); | |
932 | else | |
933 | RETURN_NONE(); | |
934 | } | |
935 | PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
936 | wxArrayString arr; | |
937 | if (self->GetExtensions(arr)) | |
938 | return wxArrayString2PyList_helper(arr); | |
939 | else | |
940 | RETURN_NONE(); | |
941 | } | |
942 | wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
943 | wxIconLocation loc; | |
944 | if (self->GetIcon(&loc)) | |
945 | return new wxIcon(loc); | |
946 | else | |
947 | return NULL; | |
948 | } | |
949 | PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
950 | wxIconLocation loc; | |
951 | if (self->GetIcon(&loc)) { | |
952 | wxString iconFile = loc.GetFileName(); | |
953 | int iconIndex = -1; | |
954 | ||
955 | ||
956 | ||
957 | // Make a tuple and put the values in it | |
4f89f6a3 | 958 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
959 | PyObject* tuple = PyTuple_New(3); |
960 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
e811c8ce | 961 | wxT("wxIcon"), True)); |
d14a1e28 RD |
962 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); |
963 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
4f89f6a3 | 964 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
965 | return tuple; |
966 | } | |
967 | else | |
968 | RETURN_NONE(); | |
969 | } | |
970 | PyObject *wxFileType_GetDescription(wxFileType *self){ | |
971 | wxString str; | |
972 | if (self->GetDescription(&str)) | |
973 | return wx2PyString(str); | |
974 | else | |
975 | RETURN_NONE(); | |
976 | } | |
977 | PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
978 | wxString str; | |
979 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
980 | return wx2PyString(str); | |
981 | else | |
982 | RETURN_NONE(); | |
983 | } | |
984 | PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
985 | wxString str; | |
986 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
987 | return wx2PyString(str); | |
988 | else | |
989 | RETURN_NONE(); | |
990 | } | |
991 | PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
992 | wxArrayString verbs; | |
993 | wxArrayString commands; | |
994 | if (self->GetAllCommands(&verbs, &commands, | |
995 | wxFileType::MessageParameters(filename, mimetype))) { | |
4f89f6a3 | 996 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
997 | PyObject* tuple = PyTuple_New(2); |
998 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
999 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
4f89f6a3 | 1000 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1001 | return tuple; |
1002 | } | |
1003 | else | |
1004 | RETURN_NONE(); | |
1005 | } | |
1006 | wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ | |
1007 | return wxFileType::ExpandCommand(command, | |
1008 | wxFileType::MessageParameters(filename, mimetype)); | |
1009 | } | |
1010 | PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
1011 | wxArrayString arr; | |
1012 | self->EnumAllFileTypes(arr); | |
1013 | return wxArrayString2PyList_helper(arr); | |
1014 | } | |
1015 | ||
1016 | #include <wx/artprov.h> | |
1017 | ||
1018 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); | |
1019 | static const wxString wxPyART_MENU(wxART_MENU); | |
1020 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
1021 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
1022 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
1023 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
1024 | static const wxString wxPyART_OTHER(wxART_OTHER); | |
1025 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
1026 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
1027 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
1028 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
1029 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
1030 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
1031 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
1032 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
1033 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
1034 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
1035 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
1036 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
1037 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
1038 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
1039 | static const wxString wxPyART_PRINT(wxART_PRINT); | |
1040 | static const wxString wxPyART_HELP(wxART_HELP); | |
1041 | static const wxString wxPyART_TIP(wxART_TIP); | |
1042 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
1043 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
1044 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
1045 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
1046 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
1047 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
1048 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
1049 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
1050 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
1051 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
1052 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
1053 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
1054 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
1055 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
1056 | // Python aware wxArtProvider | |
1057 | class wxPyArtProvider : public wxArtProvider { | |
1058 | public: | |
1059 | ||
1060 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
1061 | const wxArtClient& client, | |
1062 | const wxSize& size) { | |
1063 | wxBitmap rval = wxNullBitmap; | |
4f89f6a3 | 1064 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1065 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { |
1066 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
1067 | PyObject* ro; | |
1068 | wxBitmap* ptr; | |
1069 | PyObject* s1, *s2; | |
1070 | s1 = wx2PyString(id); | |
1071 | s2 = wx2PyString(client); | |
1072 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
1073 | Py_DECREF(so); | |
1074 | Py_DECREF(s1); | |
1075 | Py_DECREF(s2); | |
1076 | if (ro) { | |
1077 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
1078 | rval = *ptr; | |
1079 | Py_DECREF(ro); | |
1080 | } | |
1081 | } | |
4f89f6a3 | 1082 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1083 | return rval; |
1084 | } | |
1085 | ||
1086 | PYPRIVATE; | |
1087 | }; | |
1088 | ||
1e0c8722 | 1089 | void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } |
d14a1e28 RD |
1090 | |
1091 | ||
1092 | ||
1093 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
1094 | PyObject* ret = PyTuple_New(3); | |
1095 | if (ret) { | |
1096 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
1097 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
1098 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
1099 | } | |
1100 | return ret; | |
1101 | } | |
1102 | ||
1103 | PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ | |
1104 | bool cont; | |
1105 | long index = 0; | |
1106 | wxString value; | |
1107 | ||
1108 | cont = self->GetFirstGroup(value, index); | |
1109 | return __EnumerationHelper(cont, value, index); | |
1110 | } | |
1111 | PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
1112 | bool cont; | |
1113 | wxString value; | |
1114 | ||
1115 | cont = self->GetNextGroup(value, index); | |
1116 | return __EnumerationHelper(cont, value, index); | |
1117 | } | |
1118 | PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
1119 | bool cont; | |
1120 | long index = 0; | |
1121 | wxString value; | |
1122 | ||
1123 | cont = self->GetFirstEntry(value, index); | |
1124 | return __EnumerationHelper(cont, value, index); | |
1125 | } | |
1126 | PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
1127 | bool cont; | |
1128 | wxString value; | |
1129 | ||
1130 | cont = self->GetNextEntry(value, index); | |
1131 | return __EnumerationHelper(cont, value, index); | |
1132 | } | |
1133 | long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ | |
1134 | long rv; | |
1135 | self->Read(key, &rv, defaultVal); | |
1136 | return rv; | |
1137 | } | |
994141e6 | 1138 | |
15afbcd0 RD |
1139 | SWIGSTATICINLINE(double) |
1140 | SWIG_AsDouble(PyObject *obj) | |
994141e6 | 1141 | { |
69223c70 RD |
1142 | if (PyNumber_Check(obj)) |
1143 | return PyFloat_AsDouble(obj); | |
1144 | else { | |
1145 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
1146 | obj->ob_type->tp_name); | |
1147 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
1148 | Py_DECREF(errmsg); | |
1149 | return 0; | |
1150 | } | |
15afbcd0 RD |
1151 | } |
1152 | ||
1153 | ||
1154 | SWIGSTATICINLINE(int) | |
1155 | SWIG_CheckDouble(PyObject* obj) | |
1156 | { | |
1157 | SWIG_AsDouble(obj); | |
1158 | if (PyErr_Occurred()) { | |
1159 | PyErr_Clear(); | |
1160 | return 0; | |
1161 | } else { | |
1162 | return 1; | |
1163 | } | |
994141e6 RD |
1164 | } |
1165 | ||
d14a1e28 RD |
1166 | double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ |
1167 | double rv; | |
1168 | self->Read(key, &rv, defaultVal); | |
1169 | return rv; | |
1170 | } | |
1171 | bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){ | |
1172 | bool rv; | |
1173 | self->Read(key, &rv, defaultVal); | |
1174 | return rv; | |
1175 | } | |
1176 | ||
1177 | #include <wx/datetime.h> | |
1178 | ||
d14a1e28 | 1179 | |
33b885b9 RD |
1180 | static const wxString wxPyDateFormatStr(wxT("%c")); |
1181 | static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S")); | |
d14a1e28 RD |
1182 | |
1183 | #define LOCAL_TZ wxDateTime::Local | |
1184 | ||
994141e6 | 1185 | |
15afbcd0 RD |
1186 | #if UINT_MAX < LONG_MAX |
1187 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
1188 | #else | |
1189 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
1190 | #endif | |
994141e6 | 1191 | |
d14a1e28 RD |
1192 | wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } |
1193 | wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
1194 | wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
1195 | wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
1196 | wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
a95a7133 RD |
1197 | bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ |
1198 | if (!other || !self->IsValid() || !other->IsValid()) return self < other; | |
1199 | return (*self < *other); | |
1200 | } | |
1201 | bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ | |
1202 | if (!other || !self->IsValid() || !other->IsValid()) return self <= other; | |
1203 | return (*self <= *other); | |
1204 | } | |
1205 | bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ | |
1206 | if (!other || !self->IsValid() || !other->IsValid()) return self > other; | |
1207 | return (*self > *other); | |
1208 | } | |
1209 | bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ | |
1210 | if (!other || !self->IsValid() || !other->IsValid()) return self >= other; | |
1211 | return (*self >= *other); | |
1212 | } | |
1213 | bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ | |
1214 | if (!other || !self->IsValid() || !other->IsValid()) return self == other; | |
1215 | return (*self == *other); | |
1216 | } | |
1217 | bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ | |
1218 | if (!other || !self->IsValid() || !other->IsValid()) return self != other; | |
1219 | return (*self != *other); | |
1220 | } | |
d14a1e28 RD |
1221 | int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ |
1222 | const wxChar* rv; | |
1223 | const wxChar* _date = date; | |
1224 | rv = self->ParseRfc822Date(_date); | |
1225 | if (rv == NULL) return -1; | |
1226 | return rv - _date; | |
1227 | } | |
1228 | int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){ | |
1229 | const wxChar* rv; | |
1230 | const wxChar* _date = date; | |
1231 | rv = self->ParseFormat(_date, format, dateDef); | |
1232 | if (rv == NULL) return -1; | |
1233 | return rv - _date; | |
1234 | } | |
1235 | int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
1236 | const wxChar* rv; | |
1237 | const wxChar* _datetime = datetime; | |
1238 | rv = self->ParseDateTime(_datetime); | |
1239 | if (rv == NULL) return -1; | |
1240 | return rv - _datetime; | |
1241 | } | |
1242 | int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
1243 | const wxChar* rv; | |
1244 | const wxChar* _date = date; | |
1245 | rv = self->ParseDate(_date); | |
1246 | if (rv == NULL) return -1; | |
1247 | return rv - _date; | |
1248 | } | |
1249 | int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
1250 | const wxChar* rv; | |
1251 | const wxChar* _time = time; | |
1252 | rv = self->ParseTime(_time); | |
1253 | if (rv == NULL) return -1; | |
1254 | return rv - _time; | |
1255 | } | |
1256 | wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
1257 | wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
1258 | wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
1259 | wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
22faec7d RD |
1260 | bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; } |
1261 | bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; } | |
1262 | bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; } | |
1263 | bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; } | |
1264 | bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; } | |
1265 | bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
1266 | wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } |
1267 | wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
1268 | wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
1269 | wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
22faec7d RD |
1270 | bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; } |
1271 | bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
1272 | |
1273 | #include <wx/dataobj.h> | |
1274 | ||
1a10c483 RD |
1275 | PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){ |
1276 | size_t count = self->GetFormatCount(dir); | |
1277 | wxDataFormat* formats = new wxDataFormat[count]; | |
1278 | self->GetAllFormats(formats, dir); | |
1279 | ||
1280 | bool blocked = wxPyBeginBlockThreads(); | |
1281 | PyObject* list = PyList_New(count); | |
1282 | for (size_t i=0; i<count; i++) { | |
1283 | wxDataFormat* format = new wxDataFormat(formats[i]); | |
1284 | PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), True); | |
1285 | PyList_Append(list, obj); | |
1286 | Py_DECREF(obj); | |
1287 | } | |
1288 | wxPyEndBlockThreads(blocked); | |
1289 | delete [] formats; | |
1290 | return list; | |
1291 | } | |
1292 | PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){ | |
1293 | PyObject* rval = NULL; | |
1294 | size_t size = self->GetDataSize(format); | |
1295 | bool blocked = wxPyBeginBlockThreads(); | |
1296 | if (size) { | |
1297 | char* buf = new char[size]; | |
1298 | if (self->GetDataHere(format, buf)) | |
1299 | rval = PyString_FromStringAndSize(buf, size); | |
1300 | delete [] buf; | |
1301 | } | |
1302 | if (! rval) { | |
1303 | rval = Py_None; | |
1304 | Py_INCREF(rval); | |
1305 | } | |
1306 | wxPyEndBlockThreads(blocked); | |
1307 | return rval; | |
1308 | } | |
1309 | bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){ | |
1310 | bool rval; | |
1311 | bool blocked = wxPyBeginBlockThreads(); | |
1312 | if (PyString_Check(data)) { | |
1313 | rval = self->SetData(format, PyString_Size(data), PyString_AsString(data)); | |
1314 | } | |
1315 | else { | |
1316 | // raise a TypeError if not a string | |
1317 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1318 | rval = False; | |
1319 | } | |
1320 | wxPyEndBlockThreads(blocked); | |
1321 | return rval; | |
1322 | } | |
1323 | PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){ | |
1324 | PyObject* rval = NULL; | |
1325 | size_t size = self->GetDataSize(); | |
1326 | bool blocked = wxPyBeginBlockThreads(); | |
1327 | if (size) { | |
1328 | char* buf = new char[size]; | |
1329 | if (self->GetDataHere(buf)) | |
1330 | rval = PyString_FromStringAndSize(buf, size); | |
1331 | delete [] buf; | |
1332 | } | |
1333 | if (! rval) { | |
1334 | rval = Py_None; | |
1335 | Py_INCREF(rval); | |
1336 | } | |
1337 | wxPyEndBlockThreads(blocked); | |
1338 | return rval; | |
1339 | } | |
1340 | bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){ | |
1341 | bool rval; | |
1342 | bool blocked = wxPyBeginBlockThreads(); | |
1343 | if (PyString_Check(data)) { | |
1344 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1345 | } | |
1346 | else { | |
1347 | // raise a TypeError if not a string | |
1348 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1349 | rval = False; | |
1350 | } | |
1351 | wxPyEndBlockThreads(blocked); | |
1352 | return rval; | |
1353 | } | |
d14a1e28 RD |
1354 | // Create a new class for wxPython to use |
1355 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
1356 | public: | |
1357 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
1358 | : wxDataObjectSimple(format) {} | |
1359 | ||
1360 | DEC_PYCALLBACK_SIZET__const(GetDataSize); | |
1361 | bool GetDataHere(void *buf) const; | |
1362 | bool SetData(size_t len, const void *buf) const; | |
1363 | PYPRIVATE; | |
1364 | }; | |
1365 | ||
1366 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
1367 | ||
1368 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { | |
1369 | // We need to get the data for this object and write it to buf. I think | |
1370 | // the best way to do this for wxPython is to have the Python method | |
1371 | // return either a string or None and then act appropriately with the | |
1372 | // C++ version. | |
1373 | ||
e811c8ce | 1374 | bool rval = False; |
4f89f6a3 | 1375 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1376 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { |
1377 | PyObject* ro; | |
1378 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1379 | if (ro) { | |
1380 | rval = (ro != Py_None && PyString_Check(ro)); | |
1381 | if (rval) | |
1382 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
1383 | Py_DECREF(ro); | |
1384 | } | |
1385 | } | |
4f89f6a3 | 1386 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1387 | return rval; |
1388 | } | |
1389 | ||
1390 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ | |
1391 | // For this one we simply need to make a string from buf and len | |
1392 | // and send it to the Python method. | |
e811c8ce | 1393 | bool rval = False; |
4f89f6a3 | 1394 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1395 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { |
1396 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
1397 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
1398 | Py_DECREF(data); | |
1399 | } | |
4f89f6a3 | 1400 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1401 | return rval; |
1402 | } | |
1403 | ||
1404 | // Create a new class for wxPython to use | |
1405 | class wxPyTextDataObject : public wxTextDataObject { | |
1406 | public: | |
1407 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
1408 | : wxTextDataObject(text) {} | |
1409 | ||
1410 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
1411 | DEC_PYCALLBACK_STRING__const(GetText); | |
1412 | DEC_PYCALLBACK__STRING(SetText); | |
1413 | PYPRIVATE; | |
1414 | }; | |
1415 | ||
1416 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
1417 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
1418 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
1419 | ||
1420 | ||
1421 | // Create a new class for wxPython to use | |
1422 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
1423 | public: | |
1424 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
1425 | : wxBitmapDataObject(bitmap) {} | |
1426 | ||
1427 | wxBitmap GetBitmap() const; | |
1428 | void SetBitmap(const wxBitmap& bitmap); | |
1429 | PYPRIVATE; | |
1430 | }; | |
1431 | ||
1432 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
1433 | wxBitmap* rval = &wxNullBitmap; | |
4f89f6a3 | 1434 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1435 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { |
1436 | PyObject* ro; | |
1437 | wxBitmap* ptr; | |
1438 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1439 | if (ro) { | |
1440 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
1441 | rval = ptr; | |
1442 | Py_DECREF(ro); | |
1443 | } | |
1444 | } | |
4f89f6a3 | 1445 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1446 | return *rval; |
1447 | } | |
1a10c483 | 1448 | |
d14a1e28 | 1449 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { |
4f89f6a3 | 1450 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 1451 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { |
e811c8ce | 1452 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False); |
d14a1e28 RD |
1453 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); |
1454 | Py_DECREF(bo); | |
1455 | } | |
4f89f6a3 | 1456 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1457 | } |
1458 | ||
d14a1e28 | 1459 | bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ |
1a10c483 RD |
1460 | bool rval; |
1461 | bool blocked = wxPyBeginBlockThreads(); | |
d14a1e28 | 1462 | if (PyString_Check(data)) { |
1a10c483 | 1463 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); |
d14a1e28 RD |
1464 | } |
1465 | else { | |
1466 | // raise a TypeError if not a string | |
1467 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1a10c483 | 1468 | rval = False; |
d14a1e28 | 1469 | } |
1a10c483 RD |
1470 | wxPyEndBlockThreads(blocked); |
1471 | return rval; | |
d14a1e28 RD |
1472 | } |
1473 | PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
1a10c483 RD |
1474 | PyObject* obj; |
1475 | bool blocked = wxPyBeginBlockThreads(); | |
1476 | obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
a07a67e6 RD |
1477 | wxPyEndBlockThreads(blocked); |
1478 | return obj; | |
d14a1e28 RD |
1479 | } |
1480 | ||
1481 | class wxMetafileDataObject : public wxDataObjectSimple | |
1482 | { | |
1483 | public: | |
39f61e25 | 1484 | wxMetafileDataObject() { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
1485 | }; |
1486 | ||
1487 | ||
d14a1e28 RD |
1488 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); |
1489 | ||
1490 | ||
d14a1e28 RD |
1491 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); |
1492 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1493 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1494 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1495 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1496 | ||
1497 | ||
d14a1e28 RD |
1498 | class wxPyTextDropTarget : public wxTextDropTarget { |
1499 | public: | |
1500 | wxPyTextDropTarget() {} | |
1501 | ||
1502 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1503 | ||
1504 | DEC_PYCALLBACK__(OnLeave); | |
1505 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1506 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1507 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1508 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1509 | ||
1510 | PYPRIVATE; | |
1511 | }; | |
1512 | ||
1513 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1514 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1515 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1516 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1517 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1518 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1519 | ||
1520 | ||
1521 | ||
1522 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1523 | public: | |
1524 | wxPyFileDropTarget() {} | |
1525 | ||
1526 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1527 | ||
1528 | DEC_PYCALLBACK__(OnLeave); | |
1529 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1530 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1531 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1532 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1533 | ||
1534 | PYPRIVATE; | |
1535 | }; | |
1536 | ||
1537 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1538 | const wxArrayString& filenames) { | |
e811c8ce | 1539 | bool rval = False; |
4f89f6a3 | 1540 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1541 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { |
1542 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1543 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1544 | Py_DECREF(list); | |
1545 | } | |
4f89f6a3 | 1546 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1547 | return rval; |
1548 | } | |
1549 | ||
1550 | ||
1551 | ||
1552 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1553 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1554 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1555 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1556 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1557 | ||
1558 | ||
1559 | ||
1560 | ||
1561 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
4276dc52 | 1562 | |
6923d0a9 | 1563 | #include <wx/display.h> |
4276dc52 RD |
1564 | |
1565 | bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; } | |
1566 | bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; } | |
6923d0a9 RD |
1567 | |
1568 | // dummy version of wxDisplay for when it is not enabled in the wxWidgets build | |
1569 | #if !wxUSE_DISPLAY | |
1570 | #include <wx/dynarray.h> | |
1571 | #include <wx/vidmode.h> | |
1572 | ||
1573 | WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes); | |
1574 | #include "wx/arrimpl.cpp" | |
1575 | WX_DEFINE_OBJARRAY(wxArrayVideoModes); | |
1576 | const wxVideoMode wxDefaultVideoMode; | |
1577 | ||
1578 | class wxDisplay | |
1579 | { | |
1580 | public: | |
1581 | wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); } | |
1582 | ~wxDisplay() {} | |
1583 | ||
1584 | static size_t GetCount() | |
1585 | { wxPyRaiseNotImplemented(); return 0; } | |
1586 | ||
1587 | static int GetFromPoint(const wxPoint& pt) | |
1588 | { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
1589 | static int GetFromWindow(wxWindow *window) | |
1590 | { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
1591 | ||
1592 | virtual bool IsOk() const { return false; } | |
1593 | virtual wxRect GetGeometry() const { wxRect r; return r; } | |
1594 | virtual wxString GetName() const { return wxEmptyString; } | |
1595 | bool IsPrimary() const { return false; } | |
1596 | ||
1597 | wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode) | |
1598 | { wxArrayVideoModes a; return a; } | |
1599 | ||
1600 | virtual wxVideoMode GetCurrentMode() const | |
1601 | { return wxDefaultVideoMode; } | |
1602 | ||
1603 | virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode) | |
1604 | { return false; } | |
1605 | ||
1606 | void ResetMode() {} | |
1607 | }; | |
1608 | #endif | |
1609 | ||
4276dc52 RD |
1610 | int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; } |
1611 | PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){ | |
1612 | PyObject* pyList = NULL; | |
1613 | wxArrayVideoModes arr = self->GetModes(mode); | |
4f89f6a3 | 1614 | bool blocked = wxPyBeginBlockThreads(); |
4276dc52 RD |
1615 | pyList = PyList_New(0); |
1616 | for (int i=0; i < arr.GetCount(); i++) { | |
1617 | wxVideoMode* m = new wxVideoMode(arr.Item(i)); | |
1618 | PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); | |
1619 | PyList_Append(pyList, pyObj); | |
1a10c483 | 1620 | Py_DECREF(pyObj); |
4276dc52 | 1621 | } |
4f89f6a3 | 1622 | wxPyEndBlockThreads(blocked); |
4276dc52 RD |
1623 | return pyList; |
1624 | } | |
d14a1e28 RD |
1625 | #ifdef __cplusplus |
1626 | extern "C" { | |
1627 | #endif | |
1628 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1629 | PyObject *resultobj; | |
1630 | int arg1 ; | |
1631 | wxColour result; | |
994141e6 | 1632 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1633 | char *kwnames[] = { |
1634 | (char *) "index", NULL | |
1635 | }; | |
1636 | ||
994141e6 | 1637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1638 | arg1 = (wxSystemColour) SWIG_AsInt(obj0); |
1639 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 1640 | { |
e3b71cb8 | 1641 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1643 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1644 | ||
1645 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 1646 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1647 | } |
1648 | { | |
1649 | wxColour * resultptr; | |
1650 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 1651 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1652 | } |
1653 | return resultobj; | |
1654 | fail: | |
1655 | return NULL; | |
1656 | } | |
1657 | ||
1658 | ||
1659 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1660 | PyObject *resultobj; | |
1661 | int arg1 ; | |
1662 | wxFont result; | |
994141e6 | 1663 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1664 | char *kwnames[] = { |
1665 | (char *) "index", NULL | |
1666 | }; | |
1667 | ||
994141e6 | 1668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1669 | arg1 = (wxSystemFont) SWIG_AsInt(obj0); |
1670 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 1671 | { |
e3b71cb8 | 1672 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1674 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1675 | ||
1676 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 1677 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1678 | } |
1679 | { | |
1680 | wxFont * resultptr; | |
1681 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 1682 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
1683 | } |
1684 | return resultobj; | |
1685 | fail: | |
1686 | return NULL; | |
1687 | } | |
1688 | ||
1689 | ||
1690 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1691 | PyObject *resultobj; | |
1692 | int arg1 ; | |
1693 | int result; | |
994141e6 | 1694 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1695 | char *kwnames[] = { |
1696 | (char *) "index", NULL | |
1697 | }; | |
1698 | ||
994141e6 | 1699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1700 | arg1 = (wxSystemMetric) SWIG_AsInt(obj0); |
1701 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 1702 | { |
e3b71cb8 | 1703 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1705 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1706 | ||
1707 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 1708 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1709 | } |
15afbcd0 | 1710 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1711 | return resultobj; |
1712 | fail: | |
1713 | return NULL; | |
1714 | } | |
1715 | ||
1716 | ||
1717 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1718 | PyObject *resultobj; | |
1719 | int arg1 ; | |
1720 | bool result; | |
994141e6 | 1721 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1722 | char *kwnames[] = { |
1723 | (char *) "index", NULL | |
1724 | }; | |
1725 | ||
994141e6 | 1726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1727 | arg1 = (wxSystemFeature) SWIG_AsInt(obj0); |
1728 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 1729 | { |
e3b71cb8 | 1730 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1732 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1733 | ||
1734 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 1735 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1736 | } |
4f89f6a3 RD |
1737 | { |
1738 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1739 | } | |
d14a1e28 RD |
1740 | return resultobj; |
1741 | fail: | |
1742 | return NULL; | |
1743 | } | |
1744 | ||
1745 | ||
1746 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1747 | PyObject *resultobj; | |
1748 | int result; | |
1749 | char *kwnames[] = { | |
1750 | NULL | |
1751 | }; | |
1752 | ||
1753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1754 | { | |
e3b71cb8 | 1755 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1757 | result = (int)wxSystemSettings::GetScreenType(); | |
1758 | ||
1759 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 1760 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1761 | } |
15afbcd0 | 1762 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1763 | return resultobj; |
1764 | fail: | |
1765 | return NULL; | |
1766 | } | |
1767 | ||
1768 | ||
1769 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1770 | PyObject *resultobj; | |
1771 | int arg1 ; | |
994141e6 | 1772 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1773 | char *kwnames[] = { |
1774 | (char *) "screen", NULL | |
1775 | }; | |
1776 | ||
994141e6 | 1777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1778 | arg1 = (wxSystemScreenType) SWIG_AsInt(obj0); |
1779 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 1780 | { |
e3b71cb8 | 1781 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1783 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
1784 | ||
1785 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 1786 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1787 | } |
1788 | Py_INCREF(Py_None); resultobj = Py_None; | |
1789 | return resultobj; | |
1790 | fail: | |
1791 | return NULL; | |
1792 | } | |
1793 | ||
1794 | ||
1795 | static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) { | |
1796 | PyObject *obj; | |
1797 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1798 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
1799 | Py_INCREF(obj); | |
1800 | return Py_BuildValue((char *)""); | |
1801 | } | |
1802 | static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1803 | PyObject *resultobj; | |
1804 | wxSystemOptions *result; | |
1805 | char *kwnames[] = { | |
1806 | NULL | |
1807 | }; | |
1808 | ||
1809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
1810 | { | |
1811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1812 | result = (wxSystemOptions *)new wxSystemOptions(); | |
1813 | ||
1814 | wxPyEndAllowThreads(__tstate); | |
1815 | if (PyErr_Occurred()) SWIG_fail; | |
1816 | } | |
15afbcd0 | 1817 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1); |
d14a1e28 RD |
1818 | return resultobj; |
1819 | fail: | |
1820 | return NULL; | |
1821 | } | |
1822 | ||
1823 | ||
1824 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1825 | PyObject *resultobj; | |
1826 | wxString *arg1 = 0 ; | |
1827 | wxString *arg2 = 0 ; | |
e811c8ce RD |
1828 | bool temp1 = False ; |
1829 | bool temp2 = False ; | |
d14a1e28 RD |
1830 | PyObject * obj0 = 0 ; |
1831 | PyObject * obj1 = 0 ; | |
1832 | char *kwnames[] = { | |
1833 | (char *) "name",(char *) "value", NULL | |
1834 | }; | |
1835 | ||
1836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
1837 | { | |
1838 | arg1 = wxString_in_helper(obj0); | |
1839 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1840 | temp1 = True; |
d14a1e28 RD |
1841 | } |
1842 | { | |
1843 | arg2 = wxString_in_helper(obj1); | |
1844 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 1845 | temp2 = True; |
d14a1e28 RD |
1846 | } |
1847 | { | |
1848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1849 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
1850 | ||
1851 | wxPyEndAllowThreads(__tstate); | |
1852 | if (PyErr_Occurred()) SWIG_fail; | |
1853 | } | |
1854 | Py_INCREF(Py_None); resultobj = Py_None; | |
1855 | { | |
1856 | if (temp1) | |
1857 | delete arg1; | |
1858 | } | |
1859 | { | |
1860 | if (temp2) | |
1861 | delete arg2; | |
1862 | } | |
1863 | return resultobj; | |
1864 | fail: | |
1865 | { | |
1866 | if (temp1) | |
1867 | delete arg1; | |
1868 | } | |
1869 | { | |
1870 | if (temp2) | |
1871 | delete arg2; | |
1872 | } | |
1873 | return NULL; | |
1874 | } | |
1875 | ||
1876 | ||
1877 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1878 | PyObject *resultobj; | |
1879 | wxString *arg1 = 0 ; | |
1880 | int arg2 ; | |
e811c8ce | 1881 | bool temp1 = False ; |
d14a1e28 | 1882 | PyObject * obj0 = 0 ; |
994141e6 | 1883 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1884 | char *kwnames[] = { |
1885 | (char *) "name",(char *) "value", NULL | |
1886 | }; | |
1887 | ||
994141e6 | 1888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
1889 | { |
1890 | arg1 = wxString_in_helper(obj0); | |
1891 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1892 | temp1 = True; |
d14a1e28 | 1893 | } |
15afbcd0 RD |
1894 | arg2 = (int) SWIG_AsInt(obj1); |
1895 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1896 | { |
1897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1898 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
1899 | ||
1900 | wxPyEndAllowThreads(__tstate); | |
1901 | if (PyErr_Occurred()) SWIG_fail; | |
1902 | } | |
1903 | Py_INCREF(Py_None); resultobj = Py_None; | |
1904 | { | |
1905 | if (temp1) | |
1906 | delete arg1; | |
1907 | } | |
1908 | return resultobj; | |
1909 | fail: | |
1910 | { | |
1911 | if (temp1) | |
1912 | delete arg1; | |
1913 | } | |
1914 | return NULL; | |
1915 | } | |
1916 | ||
1917 | ||
1918 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1919 | PyObject *resultobj; | |
1920 | wxString *arg1 = 0 ; | |
1921 | wxString result; | |
e811c8ce | 1922 | bool temp1 = False ; |
d14a1e28 RD |
1923 | PyObject * obj0 = 0 ; |
1924 | char *kwnames[] = { | |
1925 | (char *) "name", NULL | |
1926 | }; | |
1927 | ||
1928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
1929 | { | |
1930 | arg1 = wxString_in_helper(obj0); | |
1931 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1932 | temp1 = True; |
d14a1e28 RD |
1933 | } |
1934 | { | |
1935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1936 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
1937 | ||
1938 | wxPyEndAllowThreads(__tstate); | |
1939 | if (PyErr_Occurred()) SWIG_fail; | |
1940 | } | |
1941 | { | |
1942 | #if wxUSE_UNICODE | |
1943 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1944 | #else | |
1945 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1946 | #endif | |
1947 | } | |
1948 | { | |
1949 | if (temp1) | |
1950 | delete arg1; | |
1951 | } | |
1952 | return resultobj; | |
1953 | fail: | |
1954 | { | |
1955 | if (temp1) | |
1956 | delete arg1; | |
1957 | } | |
1958 | return NULL; | |
1959 | } | |
1960 | ||
1961 | ||
1962 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1963 | PyObject *resultobj; | |
1964 | wxString *arg1 = 0 ; | |
1965 | int result; | |
e811c8ce | 1966 | bool temp1 = False ; |
d14a1e28 RD |
1967 | PyObject * obj0 = 0 ; |
1968 | char *kwnames[] = { | |
1969 | (char *) "name", NULL | |
1970 | }; | |
1971 | ||
1972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
1973 | { | |
1974 | arg1 = wxString_in_helper(obj0); | |
1975 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1976 | temp1 = True; |
d14a1e28 RD |
1977 | } |
1978 | { | |
1979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1980 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
1981 | ||
1982 | wxPyEndAllowThreads(__tstate); | |
1983 | if (PyErr_Occurred()) SWIG_fail; | |
1984 | } | |
15afbcd0 | 1985 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1986 | { |
1987 | if (temp1) | |
1988 | delete arg1; | |
1989 | } | |
1990 | return resultobj; | |
1991 | fail: | |
1992 | { | |
1993 | if (temp1) | |
1994 | delete arg1; | |
1995 | } | |
1996 | return NULL; | |
1997 | } | |
1998 | ||
1999 | ||
2000 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2001 | PyObject *resultobj; | |
2002 | wxString *arg1 = 0 ; | |
2003 | bool result; | |
e811c8ce | 2004 | bool temp1 = False ; |
d14a1e28 RD |
2005 | PyObject * obj0 = 0 ; |
2006 | char *kwnames[] = { | |
2007 | (char *) "name", NULL | |
2008 | }; | |
2009 | ||
2010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
2011 | { | |
2012 | arg1 = wxString_in_helper(obj0); | |
2013 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2014 | temp1 = True; |
d14a1e28 RD |
2015 | } |
2016 | { | |
2017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2018 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
2019 | ||
2020 | wxPyEndAllowThreads(__tstate); | |
2021 | if (PyErr_Occurred()) SWIG_fail; | |
2022 | } | |
4f89f6a3 RD |
2023 | { |
2024 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2025 | } | |
d14a1e28 RD |
2026 | { |
2027 | if (temp1) | |
2028 | delete arg1; | |
2029 | } | |
2030 | return resultobj; | |
2031 | fail: | |
2032 | { | |
2033 | if (temp1) | |
2034 | delete arg1; | |
2035 | } | |
2036 | return NULL; | |
2037 | } | |
2038 | ||
2039 | ||
2040 | static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) { | |
2041 | PyObject *obj; | |
2042 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2043 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
2044 | Py_INCREF(obj); | |
2045 | return Py_BuildValue((char *)""); | |
2046 | } | |
b2dc1044 RD |
2047 | static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { |
2048 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
2049 | return 1; | |
2050 | } | |
2051 | ||
2052 | ||
2053 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
2054 | PyObject *pyobj; | |
2055 | ||
2056 | { | |
2057 | #if wxUSE_UNICODE | |
2058 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
2059 | #else | |
2060 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
2061 | #endif | |
2062 | } | |
2063 | return pyobj; | |
2064 | } | |
2065 | ||
2066 | ||
2067 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { | |
2068 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
2069 | return 1; | |
2070 | } | |
2071 | ||
2072 | ||
2073 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
2074 | PyObject *pyobj; | |
2075 | ||
2076 | { | |
2077 | #if wxUSE_UNICODE | |
2078 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
2079 | #else | |
2080 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
2081 | #endif | |
2082 | } | |
2083 | return pyobj; | |
2084 | } | |
2085 | ||
2086 | ||
2087 | static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { | |
2088 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
2089 | return 1; | |
2090 | } | |
2091 | ||
2092 | ||
2093 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
2094 | PyObject *pyobj; | |
2095 | ||
2096 | { | |
2097 | #if wxUSE_UNICODE | |
2098 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
2099 | #else | |
2100 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
2101 | #endif | |
2102 | } | |
2103 | return pyobj; | |
2104 | } | |
2105 | ||
2106 | ||
d14a1e28 RD |
2107 | static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) { |
2108 | PyObject *resultobj; | |
2109 | long result; | |
2110 | char *kwnames[] = { | |
2111 | NULL | |
2112 | }; | |
2113 | ||
2114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
2115 | { | |
2116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2117 | result = (long)wxNewId(); | |
2118 | ||
2119 | wxPyEndAllowThreads(__tstate); | |
2120 | if (PyErr_Occurred()) SWIG_fail; | |
2121 | } | |
15afbcd0 | 2122 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
2123 | return resultobj; |
2124 | fail: | |
2125 | return NULL; | |
2126 | } | |
2127 | ||
2128 | ||
2129 | static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2130 | PyObject *resultobj; | |
2131 | long arg1 ; | |
994141e6 | 2132 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2133 | char *kwnames[] = { |
2134 | (char *) "id", NULL | |
2135 | }; | |
2136 | ||
994141e6 | 2137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2138 | arg1 = (long) SWIG_AsLong(obj0); |
2139 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2140 | { |
2141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2142 | wxRegisterId(arg1); | |
2143 | ||
2144 | wxPyEndAllowThreads(__tstate); | |
2145 | if (PyErr_Occurred()) SWIG_fail; | |
2146 | } | |
2147 | Py_INCREF(Py_None); resultobj = Py_None; | |
2148 | return resultobj; | |
2149 | fail: | |
2150 | return NULL; | |
2151 | } | |
2152 | ||
2153 | ||
2154 | static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2155 | PyObject *resultobj; | |
2156 | long result; | |
2157 | char *kwnames[] = { | |
2158 | NULL | |
2159 | }; | |
2160 | ||
2161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
2162 | { | |
2163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2164 | result = (long)wxGetCurrentId(); | |
2165 | ||
2166 | wxPyEndAllowThreads(__tstate); | |
2167 | if (PyErr_Occurred()) SWIG_fail; | |
2168 | } | |
15afbcd0 | 2169 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
2170 | return resultobj; |
2171 | fail: | |
2172 | return NULL; | |
2173 | } | |
2174 | ||
2175 | ||
2176 | static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2177 | PyObject *resultobj; | |
2178 | char *kwnames[] = { | |
2179 | NULL | |
2180 | }; | |
2181 | ||
2182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
2183 | { | |
e3b71cb8 | 2184 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2186 | wxBell(); | |
2187 | ||
2188 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 2189 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2190 | } |
2191 | Py_INCREF(Py_None); resultobj = Py_None; | |
2192 | return resultobj; | |
2193 | fail: | |
2194 | return NULL; | |
2195 | } | |
2196 | ||
2197 | ||
2198 | static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2199 | PyObject *resultobj; | |
2200 | char *kwnames[] = { | |
2201 | NULL | |
2202 | }; | |
2203 | ||
2204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
2205 | { | |
e3b71cb8 | 2206 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2208 | wxEndBusyCursor(); | |
2209 | ||
2210 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 2211 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2212 | } |
2213 | Py_INCREF(Py_None); resultobj = Py_None; | |
2214 | return resultobj; | |
2215 | fail: | |
2216 | return NULL; | |
2217 | } | |
2218 | ||
2219 | ||
2220 | static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2221 | PyObject *resultobj; | |
e811c8ce | 2222 | bool arg1 = (bool) True ; |
d14a1e28 RD |
2223 | long result; |
2224 | PyObject * obj0 = 0 ; | |
2225 | char *kwnames[] = { | |
2226 | (char *) "resetTimer", NULL | |
2227 | }; | |
2228 | ||
2229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
2230 | if (obj0) { | |
15afbcd0 RD |
2231 | arg1 = (bool) SWIG_AsBool(obj0); |
2232 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2233 | } |
2234 | { | |
2235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2236 | result = (long)wxGetElapsedTime(arg1); | |
2237 | ||
2238 | wxPyEndAllowThreads(__tstate); | |
2239 | if (PyErr_Occurred()) SWIG_fail; | |
2240 | } | |
15afbcd0 | 2241 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
2242 | return resultobj; |
2243 | fail: | |
2244 | return NULL; | |
2245 | } | |
2246 | ||
2247 | ||
2248 | static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2249 | PyObject *resultobj; | |
2250 | int *arg1 = (int *) 0 ; | |
2251 | int *arg2 = (int *) 0 ; | |
2252 | int temp1 ; | |
2253 | int temp2 ; | |
2254 | char *kwnames[] = { | |
2255 | NULL | |
2256 | }; | |
2257 | ||
2258 | arg1 = &temp1; | |
2259 | arg2 = &temp2; | |
2260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
2261 | { | |
e3b71cb8 | 2262 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2264 | wxGetMousePosition(arg1,arg2); | |
2265 | ||
2266 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 2267 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2268 | } |
2269 | Py_INCREF(Py_None); resultobj = Py_None; | |
2270 | { | |
2271 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2272 | resultobj = t_output_helper(resultobj,o); | |
2273 | } | |
2274 | { | |
2275 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2276 | resultobj = t_output_helper(resultobj,o); | |
2277 | } | |
2278 | return resultobj; | |
2279 | fail: | |
2280 | return NULL; | |
2281 | } | |
2282 | ||
2283 | ||
2284 | static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2285 | PyObject *resultobj; | |
2286 | bool result; | |
2287 | char *kwnames[] = { | |
2288 | NULL | |
2289 | }; | |
2290 | ||
2291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
2292 | { | |
2293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2294 | result = (bool)wxIsBusy(); | |
2295 | ||
2296 | wxPyEndAllowThreads(__tstate); | |
2297 | if (PyErr_Occurred()) SWIG_fail; | |
2298 | } | |
4f89f6a3 RD |
2299 | { |
2300 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2301 | } | |
d14a1e28 RD |
2302 | return resultobj; |
2303 | fail: | |
2304 | return NULL; | |
2305 | } | |
2306 | ||
2307 | ||
2308 | static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2309 | PyObject *resultobj; | |
2310 | wxString result; | |
2311 | char *kwnames[] = { | |
2312 | NULL | |
2313 | }; | |
2314 | ||
2315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
2316 | { | |
2317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2318 | result = wxNow(); | |
2319 | ||
2320 | wxPyEndAllowThreads(__tstate); | |
2321 | if (PyErr_Occurred()) SWIG_fail; | |
2322 | } | |
2323 | { | |
2324 | #if wxUSE_UNICODE | |
2325 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2326 | #else | |
2327 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2328 | #endif | |
2329 | } | |
2330 | return resultobj; | |
2331 | fail: | |
2332 | return NULL; | |
2333 | } | |
2334 | ||
2335 | ||
2336 | static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2337 | PyObject *resultobj; | |
2338 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2339 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2340 | bool result; | |
e811c8ce | 2341 | bool temp1 = False ; |
d14a1e28 RD |
2342 | PyObject * obj0 = 0 ; |
2343 | char *kwnames[] = { | |
2344 | (char *) "command", NULL | |
2345 | }; | |
2346 | ||
2347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
2348 | if (obj0) { | |
2349 | { | |
2350 | arg1 = wxString_in_helper(obj0); | |
2351 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2352 | temp1 = True; |
d14a1e28 RD |
2353 | } |
2354 | } | |
2355 | { | |
2356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2357 | result = (bool)wxShell((wxString const &)*arg1); | |
2358 | ||
2359 | wxPyEndAllowThreads(__tstate); | |
2360 | if (PyErr_Occurred()) SWIG_fail; | |
2361 | } | |
4f89f6a3 RD |
2362 | { |
2363 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2364 | } | |
d14a1e28 RD |
2365 | { |
2366 | if (temp1) | |
2367 | delete arg1; | |
2368 | } | |
2369 | return resultobj; | |
2370 | fail: | |
2371 | { | |
2372 | if (temp1) | |
2373 | delete arg1; | |
2374 | } | |
2375 | return NULL; | |
2376 | } | |
2377 | ||
2378 | ||
2379 | static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2380 | PyObject *resultobj; | |
2381 | char *kwnames[] = { | |
2382 | NULL | |
2383 | }; | |
2384 | ||
2385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
2386 | { | |
2387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2388 | wxStartTimer(); | |
2389 | ||
2390 | wxPyEndAllowThreads(__tstate); | |
2391 | if (PyErr_Occurred()) SWIG_fail; | |
2392 | } | |
2393 | Py_INCREF(Py_None); resultobj = Py_None; | |
2394 | return resultobj; | |
2395 | fail: | |
2396 | return NULL; | |
2397 | } | |
2398 | ||
2399 | ||
2400 | static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2401 | PyObject *resultobj; | |
2402 | int *arg1 = (int *) 0 ; | |
2403 | int *arg2 = (int *) 0 ; | |
2404 | int result; | |
2405 | int temp1 ; | |
2406 | int temp2 ; | |
2407 | char *kwnames[] = { | |
2408 | NULL | |
2409 | }; | |
2410 | ||
2411 | arg1 = &temp1; | |
2412 | arg2 = &temp2; | |
2413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
2414 | { | |
2415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2416 | result = (int)wxGetOsVersion(arg1,arg2); | |
2417 | ||
2418 | wxPyEndAllowThreads(__tstate); | |
2419 | if (PyErr_Occurred()) SWIG_fail; | |
2420 | } | |
15afbcd0 | 2421 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2422 | { |
2423 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2424 | resultobj = t_output_helper(resultobj,o); | |
2425 | } | |
2426 | { | |
2427 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2428 | resultobj = t_output_helper(resultobj,o); | |
2429 | } | |
2430 | return resultobj; | |
2431 | fail: | |
2432 | return NULL; | |
2433 | } | |
2434 | ||
2435 | ||
2436 | static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2437 | PyObject *resultobj; | |
2438 | wxString result; | |
2439 | char *kwnames[] = { | |
2440 | NULL | |
2441 | }; | |
2442 | ||
2443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
2444 | { | |
2445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2446 | result = wxGetOsDescription(); | |
2447 | ||
2448 | wxPyEndAllowThreads(__tstate); | |
2449 | if (PyErr_Occurred()) SWIG_fail; | |
2450 | } | |
2451 | { | |
2452 | #if wxUSE_UNICODE | |
2453 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2454 | #else | |
2455 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2456 | #endif | |
2457 | } | |
2458 | return resultobj; | |
2459 | fail: | |
2460 | return NULL; | |
2461 | } | |
2462 | ||
2463 | ||
2464 | static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2465 | PyObject *resultobj; | |
2466 | long result; | |
2467 | char *kwnames[] = { | |
2468 | NULL | |
2469 | }; | |
2470 | ||
2471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
2472 | { | |
2473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2474 | result = (long)wxGetFreeMemory(); | |
2475 | ||
2476 | wxPyEndAllowThreads(__tstate); | |
2477 | if (PyErr_Occurred()) SWIG_fail; | |
2478 | } | |
15afbcd0 | 2479 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
2480 | return resultobj; |
2481 | fail: | |
2482 | return NULL; | |
2483 | } | |
2484 | ||
2485 | ||
2486 | static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2487 | PyObject *resultobj; | |
2488 | int arg1 ; | |
2489 | bool result; | |
994141e6 | 2490 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2491 | char *kwnames[] = { |
2492 | (char *) "wFlags", NULL | |
2493 | }; | |
2494 | ||
994141e6 | 2495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2496 | arg1 = (wxShutdownFlags) SWIG_AsInt(obj0); |
2497 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 2498 | { |
e3b71cb8 | 2499 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2501 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
2502 | ||
2503 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 2504 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2505 | } |
4f89f6a3 RD |
2506 | { |
2507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2508 | } | |
d14a1e28 RD |
2509 | return resultobj; |
2510 | fail: | |
2511 | return NULL; | |
2512 | } | |
2513 | ||
2514 | ||
2515 | static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2516 | PyObject *resultobj; | |
2517 | int arg1 ; | |
994141e6 | 2518 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
2519 | char *kwnames[] = { |
2520 | (char *) "secs", NULL | |
2521 | }; | |
2522 | ||
994141e6 | 2523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2524 | arg1 = (int) SWIG_AsInt(obj0); |
2525 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2526 | { |
2527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2528 | wxSleep(arg1); | |
2529 | ||
2530 | wxPyEndAllowThreads(__tstate); | |
2531 | if (PyErr_Occurred()) SWIG_fail; | |
2532 | } | |
2533 | Py_INCREF(Py_None); resultobj = Py_None; | |
2534 | return resultobj; | |
2535 | fail: | |
2536 | return NULL; | |
2537 | } | |
2538 | ||
2539 | ||
2540 | static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2541 | PyObject *resultobj; | |
2542 | unsigned long arg1 ; | |
2543 | PyObject * obj0 = 0 ; | |
2544 | char *kwnames[] = { | |
2545 | (char *) "milliseconds", NULL | |
2546 | }; | |
2547 | ||
2548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2549 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
2550 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2551 | { |
2552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2553 | wxUsleep(arg1); | |
2554 | ||
2555 | wxPyEndAllowThreads(__tstate); | |
2556 | if (PyErr_Occurred()) SWIG_fail; | |
2557 | } | |
2558 | Py_INCREF(Py_None); resultobj = Py_None; | |
2559 | return resultobj; | |
2560 | fail: | |
2561 | return NULL; | |
2562 | } | |
2563 | ||
2564 | ||
2565 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2566 | PyObject *resultobj; | |
2567 | bool arg1 ; | |
2568 | PyObject * obj0 = 0 ; | |
2569 | char *kwnames[] = { | |
2570 | (char *) "enable", NULL | |
2571 | }; | |
2572 | ||
2573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2574 | arg1 = (bool) SWIG_AsBool(obj0); |
2575 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2576 | { |
2577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2578 | wxEnableTopLevelWindows(arg1); | |
2579 | ||
2580 | wxPyEndAllowThreads(__tstate); | |
2581 | if (PyErr_Occurred()) SWIG_fail; | |
2582 | } | |
2583 | Py_INCREF(Py_None); resultobj = Py_None; | |
2584 | return resultobj; | |
2585 | fail: | |
2586 | return NULL; | |
2587 | } | |
2588 | ||
2589 | ||
2590 | static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2591 | PyObject *resultobj; | |
2592 | wxString *arg1 = 0 ; | |
2593 | wxString result; | |
e811c8ce | 2594 | bool temp1 = False ; |
d14a1e28 RD |
2595 | PyObject * obj0 = 0 ; |
2596 | char *kwnames[] = { | |
2597 | (char *) "in", NULL | |
2598 | }; | |
2599 | ||
2600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2601 | { | |
2602 | arg1 = wxString_in_helper(obj0); | |
2603 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2604 | temp1 = True; |
d14a1e28 RD |
2605 | } |
2606 | { | |
2607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2608 | result = wxStripMenuCodes((wxString const &)*arg1); | |
2609 | ||
2610 | wxPyEndAllowThreads(__tstate); | |
2611 | if (PyErr_Occurred()) SWIG_fail; | |
2612 | } | |
2613 | { | |
2614 | #if wxUSE_UNICODE | |
2615 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2616 | #else | |
2617 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2618 | #endif | |
2619 | } | |
2620 | { | |
2621 | if (temp1) | |
2622 | delete arg1; | |
2623 | } | |
2624 | return resultobj; | |
2625 | fail: | |
2626 | { | |
2627 | if (temp1) | |
2628 | delete arg1; | |
2629 | } | |
2630 | return NULL; | |
2631 | } | |
2632 | ||
2633 | ||
2634 | static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2635 | PyObject *resultobj; | |
2636 | wxString result; | |
2637 | char *kwnames[] = { | |
2638 | NULL | |
2639 | }; | |
2640 | ||
2641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2642 | { | |
2643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2644 | result = wxGetEmailAddress(); | |
2645 | ||
2646 | wxPyEndAllowThreads(__tstate); | |
2647 | if (PyErr_Occurred()) SWIG_fail; | |
2648 | } | |
2649 | { | |
2650 | #if wxUSE_UNICODE | |
2651 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2652 | #else | |
2653 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2654 | #endif | |
2655 | } | |
2656 | return resultobj; | |
2657 | fail: | |
2658 | return NULL; | |
2659 | } | |
2660 | ||
2661 | ||
2662 | static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2663 | PyObject *resultobj; | |
2664 | wxString result; | |
2665 | char *kwnames[] = { | |
2666 | NULL | |
2667 | }; | |
2668 | ||
2669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2670 | { | |
2671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2672 | result = wxGetHostName(); | |
2673 | ||
2674 | wxPyEndAllowThreads(__tstate); | |
2675 | if (PyErr_Occurred()) SWIG_fail; | |
2676 | } | |
2677 | { | |
2678 | #if wxUSE_UNICODE | |
2679 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2680 | #else | |
2681 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2682 | #endif | |
2683 | } | |
2684 | return resultobj; | |
2685 | fail: | |
2686 | return NULL; | |
2687 | } | |
2688 | ||
2689 | ||
2690 | static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2691 | PyObject *resultobj; | |
2692 | wxString result; | |
2693 | char *kwnames[] = { | |
2694 | NULL | |
2695 | }; | |
2696 | ||
2697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2698 | { | |
2699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2700 | result = wxGetFullHostName(); | |
2701 | ||
2702 | wxPyEndAllowThreads(__tstate); | |
2703 | if (PyErr_Occurred()) SWIG_fail; | |
2704 | } | |
2705 | { | |
2706 | #if wxUSE_UNICODE | |
2707 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2708 | #else | |
2709 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2710 | #endif | |
2711 | } | |
2712 | return resultobj; | |
2713 | fail: | |
2714 | return NULL; | |
2715 | } | |
2716 | ||
2717 | ||
2718 | static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2719 | PyObject *resultobj; | |
2720 | wxString result; | |
2721 | char *kwnames[] = { | |
2722 | NULL | |
2723 | }; | |
2724 | ||
2725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
2726 | { | |
2727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2728 | result = wxGetUserId(); | |
2729 | ||
2730 | wxPyEndAllowThreads(__tstate); | |
2731 | if (PyErr_Occurred()) SWIG_fail; | |
2732 | } | |
2733 | { | |
2734 | #if wxUSE_UNICODE | |
2735 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2736 | #else | |
2737 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2738 | #endif | |
2739 | } | |
2740 | return resultobj; | |
2741 | fail: | |
2742 | return NULL; | |
2743 | } | |
2744 | ||
2745 | ||
2746 | static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2747 | PyObject *resultobj; | |
2748 | wxString result; | |
2749 | char *kwnames[] = { | |
2750 | NULL | |
2751 | }; | |
2752 | ||
2753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
2754 | { | |
2755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2756 | result = wxGetUserName(); | |
2757 | ||
2758 | wxPyEndAllowThreads(__tstate); | |
2759 | if (PyErr_Occurred()) SWIG_fail; | |
2760 | } | |
2761 | { | |
2762 | #if wxUSE_UNICODE | |
2763 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2764 | #else | |
2765 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2766 | #endif | |
2767 | } | |
2768 | return resultobj; | |
2769 | fail: | |
2770 | return NULL; | |
2771 | } | |
2772 | ||
2773 | ||
2774 | static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2775 | PyObject *resultobj; | |
2776 | wxString result; | |
2777 | char *kwnames[] = { | |
2778 | NULL | |
2779 | }; | |
2780 | ||
2781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
2782 | { | |
2783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2784 | result = wxGetHomeDir(); | |
2785 | ||
2786 | wxPyEndAllowThreads(__tstate); | |
2787 | if (PyErr_Occurred()) SWIG_fail; | |
2788 | } | |
2789 | { | |
2790 | #if wxUSE_UNICODE | |
2791 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2792 | #else | |
2793 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2794 | #endif | |
2795 | } | |
2796 | return resultobj; | |
2797 | fail: | |
2798 | return NULL; | |
2799 | } | |
2800 | ||
2801 | ||
2802 | static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2803 | PyObject *resultobj; | |
2804 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2805 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2806 | wxString result; | |
e811c8ce | 2807 | bool temp1 = False ; |
d14a1e28 RD |
2808 | PyObject * obj0 = 0 ; |
2809 | char *kwnames[] = { | |
2810 | (char *) "user", NULL | |
2811 | }; | |
2812 | ||
2813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
2814 | if (obj0) { | |
2815 | { | |
2816 | arg1 = wxString_in_helper(obj0); | |
2817 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2818 | temp1 = True; |
d14a1e28 RD |
2819 | } |
2820 | } | |
2821 | { | |
2822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2823 | result = wxGetUserHome((wxString const &)*arg1); | |
2824 | ||
2825 | wxPyEndAllowThreads(__tstate); | |
2826 | if (PyErr_Occurred()) SWIG_fail; | |
2827 | } | |
2828 | { | |
2829 | #if wxUSE_UNICODE | |
2830 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2831 | #else | |
2832 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2833 | #endif | |
2834 | } | |
2835 | { | |
2836 | if (temp1) | |
2837 | delete arg1; | |
2838 | } | |
2839 | return resultobj; | |
2840 | fail: | |
2841 | { | |
2842 | if (temp1) | |
2843 | delete arg1; | |
2844 | } | |
2845 | return NULL; | |
2846 | } | |
2847 | ||
2848 | ||
2849 | static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2850 | PyObject *resultobj; | |
2851 | unsigned long result; | |
2852 | char *kwnames[] = { | |
2853 | NULL | |
2854 | }; | |
2855 | ||
2856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
2857 | { | |
2858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2859 | result = (unsigned long)wxGetProcessId(); | |
2860 | ||
2861 | wxPyEndAllowThreads(__tstate); | |
2862 | if (PyErr_Occurred()) SWIG_fail; | |
2863 | } | |
15afbcd0 | 2864 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
2865 | return resultobj; |
2866 | fail: | |
2867 | return NULL; | |
2868 | } | |
2869 | ||
2870 | ||
2871 | static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2872 | PyObject *resultobj; | |
2873 | char *kwnames[] = { | |
2874 | NULL | |
2875 | }; | |
2876 | ||
2877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
2878 | { | |
2879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2880 | wxTrap(); | |
2881 | ||
2882 | wxPyEndAllowThreads(__tstate); | |
2883 | if (PyErr_Occurred()) SWIG_fail; | |
2884 | } | |
2885 | Py_INCREF(Py_None); resultobj = Py_None; | |
2886 | return resultobj; | |
2887 | fail: | |
2888 | return NULL; | |
2889 | } | |
2890 | ||
2891 | ||
2892 | static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2893 | PyObject *resultobj; | |
2894 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
2895 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2896 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2897 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2898 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2899 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2900 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2901 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2902 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
2903 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
2904 | int arg6 = (int) 0 ; | |
2905 | wxWindow *arg7 = (wxWindow *) NULL ; | |
2906 | int arg8 = (int) -1 ; | |
2907 | int arg9 = (int) -1 ; | |
2908 | wxString result; | |
e811c8ce RD |
2909 | bool temp1 = False ; |
2910 | bool temp2 = False ; | |
2911 | bool temp3 = False ; | |
2912 | bool temp4 = False ; | |
2913 | bool temp5 = False ; | |
d14a1e28 RD |
2914 | PyObject * obj0 = 0 ; |
2915 | PyObject * obj1 = 0 ; | |
2916 | PyObject * obj2 = 0 ; | |
2917 | PyObject * obj3 = 0 ; | |
2918 | PyObject * obj4 = 0 ; | |
994141e6 | 2919 | PyObject * obj5 = 0 ; |
d14a1e28 | 2920 | PyObject * obj6 = 0 ; |
994141e6 RD |
2921 | PyObject * obj7 = 0 ; |
2922 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
2923 | char *kwnames[] = { |
2924 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
2925 | }; | |
2926 | ||
994141e6 | 2927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
2928 | if (obj0) { |
2929 | { | |
2930 | arg1 = wxString_in_helper(obj0); | |
2931 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2932 | temp1 = True; |
d14a1e28 RD |
2933 | } |
2934 | } | |
2935 | if (obj1) { | |
2936 | { | |
2937 | arg2 = wxString_in_helper(obj1); | |
2938 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2939 | temp2 = True; |
d14a1e28 RD |
2940 | } |
2941 | } | |
2942 | if (obj2) { | |
2943 | { | |
2944 | arg3 = wxString_in_helper(obj2); | |
2945 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2946 | temp3 = True; |
d14a1e28 RD |
2947 | } |
2948 | } | |
2949 | if (obj3) { | |
2950 | { | |
2951 | arg4 = wxString_in_helper(obj3); | |
2952 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 2953 | temp4 = True; |
d14a1e28 RD |
2954 | } |
2955 | } | |
2956 | if (obj4) { | |
2957 | { | |
2958 | arg5 = wxString_in_helper(obj4); | |
2959 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 2960 | temp5 = True; |
d14a1e28 RD |
2961 | } |
2962 | } | |
994141e6 | 2963 | if (obj5) { |
15afbcd0 RD |
2964 | arg6 = (int) SWIG_AsInt(obj5); |
2965 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2966 | } |
d14a1e28 | 2967 | if (obj6) { |
15afbcd0 RD |
2968 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, |
2969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 2970 | } |
994141e6 | 2971 | if (obj7) { |
15afbcd0 RD |
2972 | arg8 = (int) SWIG_AsInt(obj7); |
2973 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
2974 | } |
2975 | if (obj8) { | |
15afbcd0 RD |
2976 | arg9 = (int) SWIG_AsInt(obj8); |
2977 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2978 | } |
d14a1e28 | 2979 | { |
e3b71cb8 | 2980 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2982 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
2983 | ||
2984 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 2985 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
2986 | } |
2987 | { | |
2988 | #if wxUSE_UNICODE | |
2989 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2990 | #else | |
2991 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2992 | #endif | |
2993 | } | |
2994 | { | |
2995 | if (temp1) | |
2996 | delete arg1; | |
2997 | } | |
2998 | { | |
2999 | if (temp2) | |
3000 | delete arg2; | |
3001 | } | |
3002 | { | |
3003 | if (temp3) | |
3004 | delete arg3; | |
3005 | } | |
3006 | { | |
3007 | if (temp4) | |
3008 | delete arg4; | |
3009 | } | |
3010 | { | |
3011 | if (temp5) | |
3012 | delete arg5; | |
3013 | } | |
3014 | return resultobj; | |
3015 | fail: | |
3016 | { | |
3017 | if (temp1) | |
3018 | delete arg1; | |
3019 | } | |
3020 | { | |
3021 | if (temp2) | |
3022 | delete arg2; | |
3023 | } | |
3024 | { | |
3025 | if (temp3) | |
3026 | delete arg3; | |
3027 | } | |
3028 | { | |
3029 | if (temp4) | |
3030 | delete arg4; | |
3031 | } | |
3032 | { | |
3033 | if (temp5) | |
3034 | delete arg5; | |
3035 | } | |
3036 | return NULL; | |
3037 | } | |
3038 | ||
3039 | ||
3040 | static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3041 | PyObject *resultobj; | |
3042 | wxString *arg1 = 0 ; | |
3043 | wxString *arg2 = 0 ; | |
3044 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3045 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3046 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3047 | wxString result; | |
e811c8ce RD |
3048 | bool temp1 = False ; |
3049 | bool temp2 = False ; | |
3050 | bool temp3 = False ; | |
d14a1e28 RD |
3051 | PyObject * obj0 = 0 ; |
3052 | PyObject * obj1 = 0 ; | |
3053 | PyObject * obj2 = 0 ; | |
3054 | PyObject * obj3 = 0 ; | |
3055 | char *kwnames[] = { | |
3056 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
3057 | }; | |
3058 | ||
3059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3060 | { | |
3061 | arg1 = wxString_in_helper(obj0); | |
3062 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3063 | temp1 = True; |
d14a1e28 RD |
3064 | } |
3065 | { | |
3066 | arg2 = wxString_in_helper(obj1); | |
3067 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3068 | temp2 = True; |
d14a1e28 RD |
3069 | } |
3070 | if (obj2) { | |
3071 | { | |
3072 | arg3 = wxString_in_helper(obj2); | |
3073 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3074 | temp3 = True; |
d14a1e28 RD |
3075 | } |
3076 | } | |
3077 | if (obj3) { | |
15afbcd0 RD |
3078 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3080 | } |
3081 | { | |
e3b71cb8 | 3082 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3084 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3085 | ||
3086 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 3087 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3088 | } |
3089 | { | |
3090 | #if wxUSE_UNICODE | |
3091 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3092 | #else | |
3093 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3094 | #endif | |
3095 | } | |
3096 | { | |
3097 | if (temp1) | |
3098 | delete arg1; | |
3099 | } | |
3100 | { | |
3101 | if (temp2) | |
3102 | delete arg2; | |
3103 | } | |
3104 | { | |
3105 | if (temp3) | |
3106 | delete arg3; | |
3107 | } | |
3108 | return resultobj; | |
3109 | fail: | |
3110 | { | |
3111 | if (temp1) | |
3112 | delete arg1; | |
3113 | } | |
3114 | { | |
3115 | if (temp2) | |
3116 | delete arg2; | |
3117 | } | |
3118 | { | |
3119 | if (temp3) | |
3120 | delete arg3; | |
3121 | } | |
3122 | return NULL; | |
3123 | } | |
3124 | ||
3125 | ||
3126 | static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3127 | PyObject *resultobj; | |
3128 | wxString *arg1 = 0 ; | |
3129 | wxString *arg2 = 0 ; | |
3130 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3131 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3132 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3133 | wxString result; | |
e811c8ce RD |
3134 | bool temp1 = False ; |
3135 | bool temp2 = False ; | |
3136 | bool temp3 = False ; | |
d14a1e28 RD |
3137 | PyObject * obj0 = 0 ; |
3138 | PyObject * obj1 = 0 ; | |
3139 | PyObject * obj2 = 0 ; | |
3140 | PyObject * obj3 = 0 ; | |
3141 | char *kwnames[] = { | |
3142 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
3143 | }; | |
3144 | ||
3145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3146 | { | |
3147 | arg1 = wxString_in_helper(obj0); | |
3148 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3149 | temp1 = True; |
d14a1e28 RD |
3150 | } |
3151 | { | |
3152 | arg2 = wxString_in_helper(obj1); | |
3153 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3154 | temp2 = True; |
d14a1e28 RD |
3155 | } |
3156 | if (obj2) { | |
3157 | { | |
3158 | arg3 = wxString_in_helper(obj2); | |
3159 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3160 | temp3 = True; |
d14a1e28 RD |
3161 | } |
3162 | } | |
3163 | if (obj3) { | |
15afbcd0 RD |
3164 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3166 | } |
3167 | { | |
e3b71cb8 | 3168 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3170 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3171 | ||
3172 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 3173 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3174 | } |
3175 | { | |
3176 | #if wxUSE_UNICODE | |
3177 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3178 | #else | |
3179 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3180 | #endif | |
3181 | } | |
3182 | { | |
3183 | if (temp1) | |
3184 | delete arg1; | |
3185 | } | |
3186 | { | |
3187 | if (temp2) | |
3188 | delete arg2; | |
3189 | } | |
3190 | { | |
3191 | if (temp3) | |
3192 | delete arg3; | |
3193 | } | |
3194 | return resultobj; | |
3195 | fail: | |
3196 | { | |
3197 | if (temp1) | |
3198 | delete arg1; | |
3199 | } | |
3200 | { | |
3201 | if (temp2) | |
3202 | delete arg2; | |
3203 | } | |
3204 | { | |
3205 | if (temp3) | |
3206 | delete arg3; | |
3207 | } | |
3208 | return NULL; | |
3209 | } | |
3210 | ||
3211 | ||
3212 | static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3213 | PyObject *resultobj; | |
3214 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
3215 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3216 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3217 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3218 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
3219 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3220 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3221 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3222 | wxString result; | |
e811c8ce RD |
3223 | bool temp1 = False ; |
3224 | bool temp2 = False ; | |
d14a1e28 RD |
3225 | wxPoint temp4 ; |
3226 | PyObject * obj0 = 0 ; | |
3227 | PyObject * obj1 = 0 ; | |
994141e6 | 3228 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3229 | PyObject * obj3 = 0 ; |
3230 | PyObject * obj4 = 0 ; | |
3231 | char *kwnames[] = { | |
3232 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
3233 | }; | |
3234 | ||
994141e6 | 3235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
3236 | if (obj0) { |
3237 | { | |
3238 | arg1 = wxString_in_helper(obj0); | |
3239 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3240 | temp1 = True; |
d14a1e28 RD |
3241 | } |
3242 | } | |
3243 | if (obj1) { | |
3244 | { | |
3245 | arg2 = wxString_in_helper(obj1); | |
3246 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3247 | temp2 = True; |
d14a1e28 RD |
3248 | } |
3249 | } | |
994141e6 | 3250 | if (obj2) { |
15afbcd0 RD |
3251 | arg3 = (long) SWIG_AsLong(obj2); |
3252 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3253 | } |
d14a1e28 RD |
3254 | if (obj3) { |
3255 | { | |
3256 | arg4 = &temp4; | |
3257 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3258 | } | |
3259 | } | |
3260 | if (obj4) { | |
15afbcd0 RD |
3261 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow, |
3262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3263 | } |
3264 | { | |
e3b71cb8 | 3265 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3267 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
3268 | ||
3269 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 3270 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3271 | } |
3272 | { | |
3273 | #if wxUSE_UNICODE | |
3274 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3275 | #else | |
3276 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3277 | #endif | |
3278 | } | |
3279 | { | |
3280 | if (temp1) | |
3281 | delete arg1; | |
3282 | } | |
3283 | { | |
3284 | if (temp2) | |
3285 | delete arg2; | |
3286 | } | |
3287 | return resultobj; | |
3288 | fail: | |
3289 | { | |
3290 | if (temp1) | |
3291 | delete arg1; | |
3292 | } | |
3293 | { | |
3294 | if (temp2) | |
3295 | delete arg2; | |
3296 | } | |
3297 | return NULL; | |
3298 | } | |
3299 | ||
3300 | ||
3301 | static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3302 | PyObject *resultobj; | |
3303 | wxString *arg1 = 0 ; | |
3304 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3305 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3306 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3307 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3308 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3309 | int arg5 = (int) -1 ; | |
3310 | int arg6 = (int) -1 ; | |
e811c8ce | 3311 | bool arg7 = (bool) True ; |
d14a1e28 | 3312 | wxString result; |
e811c8ce RD |
3313 | bool temp1 = False ; |
3314 | bool temp2 = False ; | |
3315 | bool temp3 = False ; | |
d14a1e28 RD |
3316 | PyObject * obj0 = 0 ; |
3317 | PyObject * obj1 = 0 ; | |
3318 | PyObject * obj2 = 0 ; | |
3319 | PyObject * obj3 = 0 ; | |
994141e6 RD |
3320 | PyObject * obj4 = 0 ; |
3321 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
3322 | PyObject * obj6 = 0 ; |
3323 | char *kwnames[] = { | |
3324 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
3325 | }; | |
3326 | ||
994141e6 | 3327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
3328 | { |
3329 | arg1 = wxString_in_helper(obj0); | |
3330 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3331 | temp1 = True; |
d14a1e28 RD |
3332 | } |
3333 | if (obj1) { | |
3334 | { | |
3335 | arg2 = wxString_in_helper(obj1); | |
3336 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3337 | temp2 = True; |
d14a1e28 RD |
3338 | } |
3339 | } | |
3340 | if (obj2) { | |
3341 | { | |
3342 | arg3 = wxString_in_helper(obj2); | |
3343 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3344 | temp3 = True; |
d14a1e28 RD |
3345 | } |
3346 | } | |
3347 | if (obj3) { | |
15afbcd0 RD |
3348 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3350 | } |
994141e6 | 3351 | if (obj4) { |
15afbcd0 RD |
3352 | arg5 = (int) SWIG_AsInt(obj4); |
3353 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3354 | } |
3355 | if (obj5) { | |
15afbcd0 RD |
3356 | arg6 = (int) SWIG_AsInt(obj5); |
3357 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3358 | } |
d14a1e28 | 3359 | if (obj6) { |
15afbcd0 RD |
3360 | arg7 = (bool) SWIG_AsBool(obj6); |
3361 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3362 | } |
3363 | { | |
e3b71cb8 | 3364 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3366 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
3367 | ||
3368 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 3369 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3370 | } |
3371 | { | |
3372 | #if wxUSE_UNICODE | |
3373 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3374 | #else | |
3375 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3376 | #endif | |
3377 | } | |
3378 | { | |
3379 | if (temp1) | |
3380 | delete arg1; | |
3381 | } | |
3382 | { | |
3383 | if (temp2) | |
3384 | delete arg2; | |
3385 | } | |
3386 | { | |
3387 | if (temp3) | |
3388 | delete arg3; | |
3389 | } | |
3390 | return resultobj; | |
3391 | fail: | |
3392 | { | |
3393 | if (temp1) | |
3394 | delete arg1; | |
3395 | } | |
3396 | { | |
3397 | if (temp2) | |
3398 | delete arg2; | |
3399 | } | |
3400 | { | |
3401 | if (temp3) | |
3402 | delete arg3; | |
3403 | } | |
3404 | return NULL; | |
3405 | } | |
3406 | ||
3407 | ||
3408 | static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3409 | PyObject *resultobj; | |
3410 | wxString *arg1 = 0 ; | |
3411 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3412 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3413 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3414 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3415 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3416 | wxString result; | |
e811c8ce RD |
3417 | bool temp1 = False ; |
3418 | bool temp2 = False ; | |
3419 | bool temp3 = False ; | |
d14a1e28 RD |
3420 | PyObject * obj0 = 0 ; |
3421 | PyObject * obj1 = 0 ; | |
3422 | PyObject * obj2 = 0 ; | |
3423 | PyObject * obj3 = 0 ; | |
3424 | char *kwnames[] = { | |
3425 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
3426 | }; | |
3427 | ||
3428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3429 | { | |
3430 | arg1 = wxString_in_helper(obj0); | |
3431 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3432 | temp1 = True; |
d14a1e28 RD |
3433 | } |
3434 | if (obj1) { | |
3435 | { | |
3436 | arg2 = wxString_in_helper(obj1); | |
3437 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3438 | temp2 = True; |
d14a1e28 RD |
3439 | } |
3440 | } | |
3441 | if (obj2) { | |
3442 | { | |
3443 | arg3 = wxString_in_helper(obj2); | |
3444 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3445 | temp3 = True; |
d14a1e28 RD |
3446 | } |
3447 | } | |
3448 | if (obj3) { | |
15afbcd0 RD |
3449 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3451 | } |
3452 | { | |
e3b71cb8 | 3453 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3455 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3456 | ||
3457 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 3458 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3459 | } |
3460 | { | |
3461 | #if wxUSE_UNICODE | |
3462 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3463 | #else | |
3464 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3465 | #endif | |
3466 | } | |
3467 | { | |
3468 | if (temp1) | |
3469 | delete arg1; | |
3470 | } | |
3471 | { | |
3472 | if (temp2) | |
3473 | delete arg2; | |
3474 | } | |
3475 | { | |
3476 | if (temp3) | |
3477 | delete arg3; | |
3478 | } | |
3479 | return resultobj; | |
3480 | fail: | |
3481 | { | |
3482 | if (temp1) | |
3483 | delete arg1; | |
3484 | } | |
3485 | { | |
3486 | if (temp2) | |
3487 | delete arg2; | |
3488 | } | |
3489 | { | |
3490 | if (temp3) | |
3491 | delete arg3; | |
3492 | } | |
3493 | return NULL; | |
3494 | } | |
3495 | ||
3496 | ||
3497 | static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3498 | PyObject *resultobj; | |
3499 | wxString *arg1 = 0 ; | |
3500 | wxString *arg2 = 0 ; | |
3501 | int arg3 ; | |
3502 | wxString *arg4 = (wxString *) 0 ; | |
3503 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3504 | int arg6 = (int) -1 ; | |
3505 | int arg7 = (int) -1 ; | |
e811c8ce | 3506 | bool arg8 = (bool) True ; |
d14a1e28 RD |
3507 | int arg9 = (int) 150 ; |
3508 | int arg10 = (int) 200 ; | |
3509 | wxString result; | |
e811c8ce RD |
3510 | bool temp1 = False ; |
3511 | bool temp2 = False ; | |
d14a1e28 RD |
3512 | PyObject * obj0 = 0 ; |
3513 | PyObject * obj1 = 0 ; | |
3514 | PyObject * obj2 = 0 ; | |
3515 | PyObject * obj3 = 0 ; | |
994141e6 RD |
3516 | PyObject * obj4 = 0 ; |
3517 | PyObject * obj5 = 0 ; | |
d14a1e28 | 3518 | PyObject * obj6 = 0 ; |
994141e6 RD |
3519 | PyObject * obj7 = 0 ; |
3520 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
3521 | char *kwnames[] = { |
3522 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3523 | }; | |
3524 | ||
994141e6 | 3525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3526 | { |
3527 | arg1 = wxString_in_helper(obj0); | |
3528 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3529 | temp1 = True; |
d14a1e28 RD |
3530 | } |
3531 | { | |
3532 | arg2 = wxString_in_helper(obj1); | |
3533 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3534 | temp2 = True; |
d14a1e28 RD |
3535 | } |
3536 | { | |
3537 | arg3 = PyList_Size(obj2); | |
3538 | arg4 = wxString_LIST_helper(obj2); | |
3539 | if (arg4 == NULL) SWIG_fail; | |
3540 | } | |
3541 | if (obj3) { | |
15afbcd0 RD |
3542 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, |
3543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3544 | } |
994141e6 | 3545 | if (obj4) { |
15afbcd0 RD |
3546 | arg6 = (int) SWIG_AsInt(obj4); |
3547 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3548 | } |
3549 | if (obj5) { | |
15afbcd0 RD |
3550 | arg7 = (int) SWIG_AsInt(obj5); |
3551 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3552 | } |
d14a1e28 | 3553 | if (obj6) { |
15afbcd0 RD |
3554 | arg8 = (bool) SWIG_AsBool(obj6); |
3555 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3556 | } |
3557 | if (obj7) { | |
15afbcd0 RD |
3558 | arg9 = (int) SWIG_AsInt(obj7); |
3559 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3560 | } |
3561 | if (obj8) { | |
15afbcd0 RD |
3562 | arg10 = (int) SWIG_AsInt(obj8); |
3563 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3564 | } |
3565 | { | |
e3b71cb8 | 3566 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3568 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3569 | ||
3570 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 3571 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3572 | } |
3573 | { | |
3574 | #if wxUSE_UNICODE | |
3575 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3576 | #else | |
3577 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3578 | #endif | |
3579 | } | |
3580 | { | |
3581 | if (temp1) | |
3582 | delete arg1; | |
3583 | } | |
3584 | { | |
3585 | if (temp2) | |
3586 | delete arg2; | |
3587 | } | |
3588 | { | |
3589 | if (arg4) delete [] arg4; | |
3590 | } | |
3591 | return resultobj; | |
3592 | fail: | |
3593 | { | |
3594 | if (temp1) | |
3595 | delete arg1; | |
3596 | } | |
3597 | { | |
3598 | if (temp2) | |
3599 | delete arg2; | |
3600 | } | |
3601 | { | |
3602 | if (arg4) delete [] arg4; | |
3603 | } | |
3604 | return NULL; | |
3605 | } | |
3606 | ||
3607 | ||
3608 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3609 | PyObject *resultobj; | |
3610 | wxString *arg1 = 0 ; | |
3611 | wxString *arg2 = 0 ; | |
3612 | int arg3 ; | |
3613 | wxString *arg4 = (wxString *) 0 ; | |
3614 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3615 | int arg6 = (int) -1 ; | |
3616 | int arg7 = (int) -1 ; | |
e811c8ce | 3617 | bool arg8 = (bool) True ; |
d14a1e28 RD |
3618 | int arg9 = (int) 150 ; |
3619 | int arg10 = (int) 200 ; | |
3620 | int result; | |
e811c8ce RD |
3621 | bool temp1 = False ; |
3622 | bool temp2 = False ; | |
d14a1e28 RD |
3623 | PyObject * obj0 = 0 ; |
3624 | PyObject * obj1 = 0 ; | |
3625 | PyObject * obj2 = 0 ; | |
3626 | PyObject * obj3 = 0 ; | |
994141e6 RD |
3627 | PyObject * obj4 = 0 ; |
3628 | PyObject * obj5 = 0 ; | |
d14a1e28 | 3629 | PyObject * obj6 = 0 ; |
994141e6 RD |
3630 | PyObject * obj7 = 0 ; |
3631 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
3632 | char *kwnames[] = { |
3633 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3634 | }; | |
3635 | ||
994141e6 | 3636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d14a1e28 RD |
3637 | { |
3638 | arg1 = wxString_in_helper(obj0); | |
3639 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3640 | temp1 = True; |
d14a1e28 RD |
3641 | } |
3642 | { | |
3643 | arg2 = wxString_in_helper(obj1); | |
3644 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3645 | temp2 = True; |
d14a1e28 RD |
3646 | } |
3647 | { | |
3648 | arg3 = PyList_Size(obj2); | |
3649 | arg4 = wxString_LIST_helper(obj2); | |
3650 | if (arg4 == NULL) SWIG_fail; | |
3651 | } | |
3652 | if (obj3) { | |
15afbcd0 RD |
3653 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, |
3654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3655 | } |
994141e6 | 3656 | if (obj4) { |
15afbcd0 RD |
3657 | arg6 = (int) SWIG_AsInt(obj4); |
3658 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3659 | } |
3660 | if (obj5) { | |
15afbcd0 RD |
3661 | arg7 = (int) SWIG_AsInt(obj5); |
3662 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3663 | } |
d14a1e28 | 3664 | if (obj6) { |
15afbcd0 RD |
3665 | arg8 = (bool) SWIG_AsBool(obj6); |
3666 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3667 | } |
3668 | if (obj7) { | |
15afbcd0 RD |
3669 | arg9 = (int) SWIG_AsInt(obj7); |
3670 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3671 | } |
3672 | if (obj8) { | |
15afbcd0 RD |
3673 | arg10 = (int) SWIG_AsInt(obj8); |
3674 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3675 | } |
3676 | { | |
e3b71cb8 | 3677 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3679 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3680 | ||
3681 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 3682 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3683 | } |
15afbcd0 | 3684 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3685 | { |
3686 | if (temp1) | |
3687 | delete arg1; | |
3688 | } | |
3689 | { | |
3690 | if (temp2) | |
3691 | delete arg2; | |
3692 | } | |
3693 | { | |
3694 | if (arg4) delete [] arg4; | |
3695 | } | |
3696 | return resultobj; | |
3697 | fail: | |
3698 | { | |
3699 | if (temp1) | |
3700 | delete arg1; | |
3701 | } | |
3702 | { | |
3703 | if (temp2) | |
3704 | delete arg2; | |
3705 | } | |
3706 | { | |
3707 | if (arg4) delete [] arg4; | |
3708 | } | |
3709 | return NULL; | |
3710 | } | |
3711 | ||
3712 | ||
3713 | static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3714 | PyObject *resultobj; | |
3715 | wxString *arg1 = 0 ; | |
3716 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3717 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3718 | int arg3 = (int) wxOK|wxCENTRE ; | |
3719 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3720 | int arg5 = (int) -1 ; | |
3721 | int arg6 = (int) -1 ; | |
3722 | int result; | |
e811c8ce RD |
3723 | bool temp1 = False ; |
3724 | bool temp2 = False ; | |
d14a1e28 RD |
3725 | PyObject * obj0 = 0 ; |
3726 | PyObject * obj1 = 0 ; | |
994141e6 | 3727 | PyObject * obj2 = 0 ; |
d14a1e28 | 3728 | PyObject * obj3 = 0 ; |
994141e6 RD |
3729 | PyObject * obj4 = 0 ; |
3730 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
3731 | char *kwnames[] = { |
3732 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3733 | }; | |
3734 | ||
994141e6 | 3735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
3736 | { |
3737 | arg1 = wxString_in_helper(obj0); | |
3738 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3739 | temp1 = True; |
d14a1e28 RD |
3740 | } |
3741 | if (obj1) { | |
3742 | { | |
3743 | arg2 = wxString_in_helper(obj1); | |
3744 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3745 | temp2 = True; |
d14a1e28 RD |
3746 | } |
3747 | } | |
994141e6 | 3748 | if (obj2) { |
15afbcd0 RD |
3749 | arg3 = (int) SWIG_AsInt(obj2); |
3750 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3751 | } |
d14a1e28 | 3752 | if (obj3) { |
15afbcd0 RD |
3753 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, |
3754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 3755 | } |
994141e6 | 3756 | if (obj4) { |
15afbcd0 RD |
3757 | arg5 = (int) SWIG_AsInt(obj4); |
3758 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3759 | } |
3760 | if (obj5) { | |
15afbcd0 RD |
3761 | arg6 = (int) SWIG_AsInt(obj5); |
3762 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3763 | } |
d14a1e28 | 3764 | { |
e3b71cb8 | 3765 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3767 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
3768 | ||
3769 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 3770 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3771 | } |
15afbcd0 | 3772 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3773 | { |
3774 | if (temp1) | |
3775 | delete arg1; | |
3776 | } | |
3777 | { | |
3778 | if (temp2) | |
3779 | delete arg2; | |
3780 | } | |
3781 | return resultobj; | |
3782 | fail: | |
3783 | { | |
3784 | if (temp1) | |
3785 | delete arg1; | |
3786 | } | |
3787 | { | |
3788 | if (temp2) | |
3789 | delete arg2; | |
3790 | } | |
3791 | return NULL; | |
3792 | } | |
3793 | ||
3794 | ||
3795 | static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3796 | PyObject *resultobj; | |
3797 | wxString *arg1 = 0 ; | |
3798 | wxString *arg2 = 0 ; | |
3799 | wxString *arg3 = 0 ; | |
3800 | long arg4 ; | |
3801 | long arg5 = (long) 0 ; | |
3802 | long arg6 = (long) 100 ; | |
3803 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3804 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
3805 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
3806 | long result; | |
e811c8ce RD |
3807 | bool temp1 = False ; |
3808 | bool temp2 = False ; | |
3809 | bool temp3 = False ; | |
d14a1e28 RD |
3810 | wxPoint temp8 ; |
3811 | PyObject * obj0 = 0 ; | |
3812 | PyObject * obj1 = 0 ; | |
3813 | PyObject * obj2 = 0 ; | |
994141e6 RD |
3814 | PyObject * obj3 = 0 ; |
3815 | PyObject * obj4 = 0 ; | |
3816 | PyObject * obj5 = 0 ; | |
3817 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
3818 | PyObject * obj7 = 0 ; |
3819 | char *kwnames[] = { | |
3820 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
3821 | }; | |
3822 | ||
994141e6 | 3823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
3824 | { |
3825 | arg1 = wxString_in_helper(obj0); | |
3826 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3827 | temp1 = True; |
d14a1e28 RD |
3828 | } |
3829 | { | |
3830 | arg2 = wxString_in_helper(obj1); | |
3831 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3832 | temp2 = True; |
d14a1e28 RD |
3833 | } |
3834 | { | |
3835 | arg3 = wxString_in_helper(obj2); | |
3836 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3837 | temp3 = True; |
d14a1e28 | 3838 | } |
15afbcd0 RD |
3839 | arg4 = (long) SWIG_AsLong(obj3); |
3840 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3841 | if (obj4) { |
15afbcd0 RD |
3842 | arg5 = (long) SWIG_AsLong(obj4); |
3843 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3844 | } |
3845 | if (obj5) { | |
15afbcd0 RD |
3846 | arg6 = (long) SWIG_AsLong(obj5); |
3847 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3848 | } |
d14a1e28 | 3849 | if (obj6) { |
15afbcd0 RD |
3850 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, |
3851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3852 | } |
3853 | if (obj7) { | |
3854 | { | |
3855 | arg8 = &temp8; | |
3856 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
3857 | } | |
3858 | } | |
3859 | { | |
e3b71cb8 | 3860 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3862 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
3863 | ||
3864 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 3865 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3866 | } |
15afbcd0 | 3867 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
3868 | { |
3869 | if (temp1) | |
3870 | delete arg1; | |
3871 | } | |
3872 | { | |
3873 | if (temp2) | |
3874 | delete arg2; | |
3875 | } | |
3876 | { | |
3877 | if (temp3) | |
3878 | delete arg3; | |
3879 | } | |
3880 | return resultobj; | |
3881 | fail: | |
3882 | { | |
3883 | if (temp1) | |
3884 | delete arg1; | |
3885 | } | |
3886 | { | |
3887 | if (temp2) | |
3888 | delete arg2; | |
3889 | } | |
3890 | { | |
3891 | if (temp3) | |
3892 | delete arg3; | |
3893 | } | |
3894 | return NULL; | |
3895 | } | |
3896 | ||
3897 | ||
3898 | static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3899 | PyObject *resultobj; | |
3900 | bool result; | |
3901 | char *kwnames[] = { | |
3902 | NULL | |
3903 | }; | |
3904 | ||
3905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
3906 | { | |
e3b71cb8 | 3907 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3909 | result = (bool)wxColourDisplay(); | |
3910 | ||
3911 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 3912 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3913 | } |
4f89f6a3 RD |
3914 | { |
3915 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3916 | } | |
d14a1e28 RD |
3917 | return resultobj; |
3918 | fail: | |
3919 | return NULL; | |
3920 | } | |
3921 | ||
3922 | ||
3923 | static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3924 | PyObject *resultobj; | |
3925 | int result; | |
3926 | char *kwnames[] = { | |
3927 | NULL | |
3928 | }; | |
3929 | ||
3930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
3931 | { | |
e3b71cb8 | 3932 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3934 | result = (int)wxDisplayDepth(); | |
3935 | ||
3936 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 3937 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3938 | } |
15afbcd0 | 3939 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3940 | return resultobj; |
3941 | fail: | |
3942 | return NULL; | |
3943 | } | |
3944 | ||
3945 | ||
3946 | static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3947 | PyObject *resultobj; | |
3948 | int result; | |
3949 | char *kwnames[] = { | |
3950 | NULL | |
3951 | }; | |
3952 | ||
3953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
3954 | { | |
e3b71cb8 | 3955 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3957 | result = (int)wxGetDisplayDepth(); | |
3958 | ||
3959 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 3960 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3961 | } |
15afbcd0 | 3962 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3963 | return resultobj; |
3964 | fail: | |
3965 | return NULL; | |
3966 | } | |
3967 | ||
3968 | ||
3969 | static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3970 | PyObject *resultobj; | |
3971 | int *arg1 = (int *) 0 ; | |
3972 | int *arg2 = (int *) 0 ; | |
3973 | int temp1 ; | |
3974 | int temp2 ; | |
3975 | char *kwnames[] = { | |
3976 | NULL | |
3977 | }; | |
3978 | ||
3979 | arg1 = &temp1; | |
3980 | arg2 = &temp2; | |
3981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; | |
3982 | { | |
e3b71cb8 | 3983 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3985 | wxDisplaySize(arg1,arg2); | |
3986 | ||
3987 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 3988 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
3989 | } |
3990 | Py_INCREF(Py_None); resultobj = Py_None; | |
3991 | { | |
3992 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3993 | resultobj = t_output_helper(resultobj,o); | |
3994 | } | |
3995 | { | |
3996 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3997 | resultobj = t_output_helper(resultobj,o); | |
3998 | } | |
3999 | return resultobj; | |
4000 | fail: | |
4001 | return NULL; | |
4002 | } | |
4003 | ||
4004 | ||
4005 | static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4006 | PyObject *resultobj; | |
4007 | wxSize result; | |
4008 | char *kwnames[] = { | |
4009 | NULL | |
4010 | }; | |
4011 | ||
4012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
4013 | { | |
e3b71cb8 | 4014 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4016 | result = wxGetDisplaySize(); | |
4017 | ||
4018 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 4019 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4020 | } |
4021 | { | |
4022 | wxSize * resultptr; | |
4023 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 4024 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
4025 | } |
4026 | return resultobj; | |
4027 | fail: | |
4028 | return NULL; | |
4029 | } | |
4030 | ||
4031 | ||
4032 | static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4033 | PyObject *resultobj; | |
4034 | int *arg1 = (int *) 0 ; | |
4035 | int *arg2 = (int *) 0 ; | |
4036 | int temp1 ; | |
4037 | int temp2 ; | |
4038 | char *kwnames[] = { | |
4039 | NULL | |
4040 | }; | |
4041 | ||
4042 | arg1 = &temp1; | |
4043 | arg2 = &temp2; | |
4044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; | |
4045 | { | |
e3b71cb8 | 4046 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4048 | wxDisplaySizeMM(arg1,arg2); | |
4049 | ||
4050 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 4051 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4052 | } |
4053 | Py_INCREF(Py_None); resultobj = Py_None; | |
4054 | { | |
4055 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
4056 | resultobj = t_output_helper(resultobj,o); | |
4057 | } | |
4058 | { | |
4059 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4060 | resultobj = t_output_helper(resultobj,o); | |
4061 | } | |
4062 | return resultobj; | |
4063 | fail: | |
4064 | return NULL; | |
4065 | } | |
4066 | ||
4067 | ||
4068 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4069 | PyObject *resultobj; | |
4070 | wxSize result; | |
4071 | char *kwnames[] = { | |
4072 | NULL | |
4073 | }; | |
4074 | ||
4075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
4076 | { | |
e3b71cb8 | 4077 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4079 | result = wxGetDisplaySizeMM(); | |
4080 | ||
4081 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 4082 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4083 | } |
4084 | { | |
4085 | wxSize * resultptr; | |
4086 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 4087 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
4088 | } |
4089 | return resultobj; | |
4090 | fail: | |
4091 | return NULL; | |
4092 | } | |
4093 | ||
4094 | ||
4095 | static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4096 | PyObject *resultobj; | |
4097 | int *arg1 = (int *) 0 ; | |
4098 | int *arg2 = (int *) 0 ; | |
4099 | int *arg3 = (int *) 0 ; | |
4100 | int *arg4 = (int *) 0 ; | |
4101 | int temp1 ; | |
4102 | int temp2 ; | |
4103 | int temp3 ; | |
4104 | int temp4 ; | |
4105 | char *kwnames[] = { | |
4106 | NULL | |
4107 | }; | |
4108 | ||
4109 | arg1 = &temp1; | |
4110 | arg2 = &temp2; | |
4111 | arg3 = &temp3; | |
4112 | arg4 = &temp4; | |
4113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; | |
4114 | { | |
e3b71cb8 | 4115 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4117 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
4118 | ||
4119 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 4120 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4121 | } |
4122 | Py_INCREF(Py_None); resultobj = Py_None; | |
4123 | { | |
4124 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
4125 | resultobj = t_output_helper(resultobj,o); | |
4126 | } | |
4127 | { | |
4128 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4129 | resultobj = t_output_helper(resultobj,o); | |
4130 | } | |
4131 | { | |
4132 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4133 | resultobj = t_output_helper(resultobj,o); | |
4134 | } | |
4135 | { | |
4136 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
4137 | resultobj = t_output_helper(resultobj,o); | |
4138 | } | |
4139 | return resultobj; | |
4140 | fail: | |
4141 | return NULL; | |
4142 | } | |
4143 | ||
4144 | ||
4145 | static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4146 | PyObject *resultobj; | |
4147 | wxRect result; | |
4148 | char *kwnames[] = { | |
4149 | NULL | |
4150 | }; | |
4151 | ||
4152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
4153 | { | |
e3b71cb8 | 4154 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4156 | result = wxGetClientDisplayRect(); | |
4157 | ||
4158 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 4159 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4160 | } |
4161 | { | |
4162 | wxRect * resultptr; | |
4163 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 4164 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
4165 | } |
4166 | return resultobj; | |
4167 | fail: | |
4168 | return NULL; | |
4169 | } | |
4170 | ||
4171 | ||
4172 | static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4173 | PyObject *resultobj; | |
4174 | wxCursor *arg1 = 0 ; | |
4175 | PyObject * obj0 = 0 ; | |
4176 | char *kwnames[] = { | |
4177 | (char *) "cursor", NULL | |
4178 | }; | |
4179 | ||
4180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4182 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4183 | SWIG_fail; | |
d14a1e28 | 4184 | if (arg1 == NULL) { |
15afbcd0 RD |
4185 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4186 | SWIG_fail; | |
d14a1e28 RD |
4187 | } |
4188 | { | |
e3b71cb8 | 4189 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4191 | wxSetCursor(*arg1); | |
4192 | ||
4193 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 4194 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4195 | } |
4196 | Py_INCREF(Py_None); resultobj = Py_None; | |
4197 | return resultobj; | |
4198 | fail: | |
4199 | return NULL; | |
4200 | } | |
4201 | ||
4202 | ||
4203 | static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4204 | PyObject *resultobj; | |
4205 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4206 | PyObject * obj0 = 0 ; | |
4207 | char *kwnames[] = { | |
4208 | (char *) "cursor", NULL | |
4209 | }; | |
4210 | ||
4211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
4212 | if (obj0) { | |
15afbcd0 RD |
4213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4215 | } |
4216 | { | |
e3b71cb8 | 4217 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4219 | wxBeginBusyCursor(arg1); | |
4220 | ||
4221 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 4222 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4223 | } |
4224 | Py_INCREF(Py_None); resultobj = Py_None; | |
4225 | return resultobj; | |
4226 | fail: | |
4227 | return NULL; | |
4228 | } | |
4229 | ||
4230 | ||
4231 | static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4232 | PyObject *resultobj; | |
4233 | wxWindow *result; | |
4234 | char *kwnames[] = { | |
4235 | NULL | |
4236 | }; | |
4237 | ||
4238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
4239 | { | |
e3b71cb8 | 4240 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4242 | result = (wxWindow *)wxGetActiveWindow(); | |
4243 | ||
4244 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 4245 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4246 | } |
4247 | { | |
4248 | resultobj = wxPyMake_wxObject(result); | |
4249 | } | |
4250 | return resultobj; | |
4251 | fail: | |
4252 | return NULL; | |
4253 | } | |
4254 | ||
4255 | ||
4256 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4257 | PyObject *resultobj; | |
4258 | wxPoint *arg1 = 0 ; | |
4259 | wxWindow *result; | |
4260 | wxPoint temp1 ; | |
4261 | PyObject * obj0 = 0 ; | |
4262 | char *kwnames[] = { | |
4263 | (char *) "pt", NULL | |
4264 | }; | |
4265 | ||
4266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4267 | { | |
4268 | arg1 = &temp1; | |
4269 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4270 | } | |
4271 | { | |
e3b71cb8 | 4272 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4274 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
4275 | ||
4276 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 4277 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4278 | } |
4279 | { | |
4280 | resultobj = wxPyMake_wxObject(result); | |
4281 | } | |
4282 | return resultobj; | |
4283 | fail: | |
4284 | return NULL; | |
4285 | } | |
4286 | ||
4287 | ||
4288 | static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4289 | PyObject *resultobj; | |
4290 | wxPoint *arg1 = 0 ; | |
4291 | wxWindow *result; | |
4292 | wxPoint temp1 ; | |
4293 | PyObject * obj0 = 0 ; | |
4294 | char *kwnames[] = { | |
4295 | (char *) "pt", NULL | |
4296 | }; | |
4297 | ||
4298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4299 | { | |
4300 | arg1 = &temp1; | |
4301 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4302 | } | |
4303 | { | |
e3b71cb8 | 4304 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4306 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
4307 | ||
4308 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 4309 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4310 | } |
4311 | { | |
4312 | resultobj = wxPyMake_wxObject(result); | |
4313 | } | |
4314 | return resultobj; | |
4315 | fail: | |
4316 | return NULL; | |
4317 | } | |
4318 | ||
4319 | ||
4320 | static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4321 | PyObject *resultobj; | |
4322 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4323 | wxWindow *result; | |
4324 | PyObject * obj0 = 0 ; | |
4325 | char *kwnames[] = { | |
4326 | (char *) "win", NULL | |
4327 | }; | |
4328 | ||
4329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 4332 | { |
e3b71cb8 | 4333 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4335 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
4336 | ||
4337 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 4338 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4339 | } |
4340 | { | |
4341 | resultobj = wxPyMake_wxObject(result); | |
4342 | } | |
4343 | return resultobj; | |
4344 | fail: | |
4345 | return NULL; | |
4346 | } | |
4347 | ||
4348 | ||
39f61e25 RD |
4349 | static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) { |
4350 | PyObject *resultobj; | |
4351 | int arg1 ; | |
4352 | bool result; | |
994141e6 | 4353 | PyObject * obj0 = 0 ; |
39f61e25 RD |
4354 | char *kwnames[] = { |
4355 | (char *) "key", NULL | |
4356 | }; | |
4357 | ||
994141e6 | 4358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
4359 | arg1 = (wxKeyCode) SWIG_AsInt(obj0); |
4360 | if (PyErr_Occurred()) SWIG_fail; | |
39f61e25 | 4361 | { |
e3b71cb8 | 4362 | if (!wxPyCheckForApp()) SWIG_fail; |
39f61e25 RD |
4363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4364 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
4365 | ||
4366 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 4367 | if (PyErr_Occurred()) SWIG_fail; |
39f61e25 | 4368 | } |
4f89f6a3 RD |
4369 | { |
4370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4371 | } | |
39f61e25 RD |
4372 | return resultobj; |
4373 | fail: | |
4374 | return NULL; | |
4375 | } | |
4376 | ||
4377 | ||
d14a1e28 RD |
4378 | static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { |
4379 | PyObject *resultobj; | |
4380 | char *kwnames[] = { | |
4381 | NULL | |
4382 | }; | |
4383 | ||
4384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
4385 | { | |
e3b71cb8 | 4386 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4388 | wxWakeUpMainThread(); | |
4389 | ||
4390 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 4391 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4392 | } |
4393 | Py_INCREF(Py_None); resultobj = Py_None; | |
4394 | return resultobj; | |
4395 | fail: | |
4396 | return NULL; | |
4397 | } | |
4398 | ||
4399 | ||
4400 | static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4401 | PyObject *resultobj; | |
4402 | char *kwnames[] = { | |
4403 | NULL | |
4404 | }; | |
4405 | ||
4406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
4407 | { | |
e3b71cb8 | 4408 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4410 | wxMutexGuiEnter(); | |
4411 | ||
4412 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 4413 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4414 | } |
4415 | Py_INCREF(Py_None); resultobj = Py_None; | |
4416 | return resultobj; | |
4417 | fail: | |
4418 | return NULL; | |
4419 | } | |
4420 | ||
4421 | ||
4422 | static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4423 | PyObject *resultobj; | |
4424 | char *kwnames[] = { | |
4425 | NULL | |
4426 | }; | |
4427 | ||
4428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
4429 | { | |
e3b71cb8 | 4430 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4432 | wxMutexGuiLeave(); | |
4433 | ||
4434 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 4435 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4436 | } |
4437 | Py_INCREF(Py_None); resultobj = Py_None; | |
4438 | return resultobj; | |
4439 | fail: | |
4440 | return NULL; | |
4441 | } | |
4442 | ||
4443 | ||
4444 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4445 | PyObject *resultobj; | |
4446 | wxMutexGuiLocker *result; | |
4447 | char *kwnames[] = { | |
4448 | NULL | |
4449 | }; | |
4450 | ||
4451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
4452 | { | |
e3b71cb8 | 4453 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4455 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
4456 | ||
4457 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 4458 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4459 | } |
15afbcd0 | 4460 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1); |
d14a1e28 RD |
4461 | return resultobj; |
4462 | fail: | |
4463 | return NULL; | |
4464 | } | |
4465 | ||
4466 | ||
4467 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4468 | PyObject *resultobj; | |
4469 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
4470 | PyObject * obj0 = 0 ; | |
4471 | char *kwnames[] = { | |
4472 | (char *) "self", NULL | |
4473 | }; | |
4474 | ||
4475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker, |
4477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4478 | { |
4479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4480 | delete arg1; | |
4481 | ||
4482 | wxPyEndAllowThreads(__tstate); | |
4483 | if (PyErr_Occurred()) SWIG_fail; | |
4484 | } | |
4485 | Py_INCREF(Py_None); resultobj = Py_None; | |
4486 | return resultobj; | |
4487 | fail: | |
4488 | return NULL; | |
4489 | } | |
4490 | ||
4491 | ||
4492 | static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) { | |
4493 | PyObject *obj; | |
4494 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4495 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
4496 | Py_INCREF(obj); | |
4497 | return Py_BuildValue((char *)""); | |
4498 | } | |
4499 | static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4500 | PyObject *resultobj; | |
4501 | bool result; | |
4502 | char *kwnames[] = { | |
4503 | NULL | |
4504 | }; | |
4505 | ||
4506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
4507 | { | |
4508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4509 | result = (bool)wxThread_IsMain(); | |
4510 | ||
4511 | wxPyEndAllowThreads(__tstate); | |
4512 | if (PyErr_Occurred()) SWIG_fail; | |
4513 | } | |
4f89f6a3 RD |
4514 | { |
4515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4516 | } | |
d14a1e28 RD |
4517 | return resultobj; |
4518 | fail: | |
4519 | return NULL; | |
4520 | } | |
4521 | ||
4522 | ||
4523 | static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4524 | PyObject *resultobj; | |
4525 | wxString *arg1 = 0 ; | |
4526 | wxToolTip *result; | |
e811c8ce | 4527 | bool temp1 = False ; |
d14a1e28 RD |
4528 | PyObject * obj0 = 0 ; |
4529 | char *kwnames[] = { | |
4530 | (char *) "tip", NULL | |
4531 | }; | |
4532 | ||
4533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
4534 | { | |
4535 | arg1 = wxString_in_helper(obj0); | |
4536 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 4537 | temp1 = True; |
d14a1e28 RD |
4538 | } |
4539 | { | |
e3b71cb8 | 4540 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4542 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
4543 | ||
4544 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 4545 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4546 | } |
4547 | { | |
4548 | resultobj = wxPyMake_wxObject(result); | |
4549 | } | |
4550 | { | |
4551 | if (temp1) | |
4552 | delete arg1; | |
4553 | } | |
4554 | return resultobj; | |
4555 | fail: | |
4556 | { | |
4557 | if (temp1) | |
4558 | delete arg1; | |
4559 | } | |
4560 | return NULL; | |
4561 | } | |
4562 | ||
4563 | ||
4564 | static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4565 | PyObject *resultobj; | |
4566 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4567 | wxString *arg2 = 0 ; | |
e811c8ce | 4568 | bool temp2 = False ; |
d14a1e28 RD |
4569 | PyObject * obj0 = 0 ; |
4570 | PyObject * obj1 = 0 ; | |
4571 | char *kwnames[] = { | |
4572 | (char *) "self",(char *) "tip", NULL | |
4573 | }; | |
4574 | ||
4575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, |
4577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4578 | { |
4579 | arg2 = wxString_in_helper(obj1); | |
4580 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4581 | temp2 = True; |
d14a1e28 RD |
4582 | } |
4583 | { | |
4584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4585 | (arg1)->SetTip((wxString const &)*arg2); | |
4586 | ||
4587 | wxPyEndAllowThreads(__tstate); | |
4588 | if (PyErr_Occurred()) SWIG_fail; | |
4589 | } | |
4590 | Py_INCREF(Py_None); resultobj = Py_None; | |
4591 | { | |
4592 | if (temp2) | |
4593 | delete arg2; | |
4594 | } | |
4595 | return resultobj; | |
4596 | fail: | |
4597 | { | |
4598 | if (temp2) | |
4599 | delete arg2; | |
4600 | } | |
4601 | return NULL; | |
4602 | } | |
4603 | ||
4604 | ||
4605 | static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4606 | PyObject *resultobj; | |
4607 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4608 | wxString result; | |
4609 | PyObject * obj0 = 0 ; | |
4610 | char *kwnames[] = { | |
4611 | (char *) "self", NULL | |
4612 | }; | |
4613 | ||
4614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, |
4616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4617 | { |
4618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4619 | result = (arg1)->GetTip(); | |
4620 | ||
4621 | wxPyEndAllowThreads(__tstate); | |
4622 | if (PyErr_Occurred()) SWIG_fail; | |
4623 | } | |
4624 | { | |
4625 | #if wxUSE_UNICODE | |
4626 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4627 | #else | |
4628 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4629 | #endif | |
4630 | } | |
4631 | return resultobj; | |
4632 | fail: | |
4633 | return NULL; | |
4634 | } | |
4635 | ||
4636 | ||
4637 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4638 | PyObject *resultobj; | |
4639 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4640 | wxWindow *result; | |
4641 | PyObject * obj0 = 0 ; | |
4642 | char *kwnames[] = { | |
4643 | (char *) "self", NULL | |
4644 | }; | |
4645 | ||
4646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, |
4648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4649 | { |
4650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4651 | result = (wxWindow *)(arg1)->GetWindow(); | |
4652 | ||
4653 | wxPyEndAllowThreads(__tstate); | |
4654 | if (PyErr_Occurred()) SWIG_fail; | |
4655 | } | |
4656 | { | |
4657 | resultobj = wxPyMake_wxObject(result); | |
4658 | } | |
4659 | return resultobj; | |
4660 | fail: | |
4661 | return NULL; | |
4662 | } | |
4663 | ||
4664 | ||
4665 | static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4666 | PyObject *resultobj; | |
4667 | bool arg1 ; | |
4668 | PyObject * obj0 = 0 ; | |
4669 | char *kwnames[] = { | |
4670 | (char *) "flag", NULL | |
4671 | }; | |
4672 | ||
4673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4674 | arg1 = (bool) SWIG_AsBool(obj0); |
4675 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4676 | { |
4677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4678 | wxToolTip::Enable(arg1); | |
4679 | ||
4680 | wxPyEndAllowThreads(__tstate); | |
4681 | if (PyErr_Occurred()) SWIG_fail; | |
4682 | } | |
4683 | Py_INCREF(Py_None); resultobj = Py_None; | |
4684 | return resultobj; | |
4685 | fail: | |
4686 | return NULL; | |
4687 | } | |
4688 | ||
4689 | ||
4690 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4691 | PyObject *resultobj; | |
4692 | long arg1 ; | |
994141e6 | 4693 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
4694 | char *kwnames[] = { |
4695 | (char *) "milliseconds", NULL | |
4696 | }; | |
4697 | ||
994141e6 | 4698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
4699 | arg1 = (long) SWIG_AsLong(obj0); |
4700 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4701 | { |
4702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4703 | wxToolTip::SetDelay(arg1); | |
4704 | ||
4705 | wxPyEndAllowThreads(__tstate); | |
4706 | if (PyErr_Occurred()) SWIG_fail; | |
4707 | } | |
4708 | Py_INCREF(Py_None); resultobj = Py_None; | |
4709 | return resultobj; | |
4710 | fail: | |
4711 | return NULL; | |
4712 | } | |
4713 | ||
4714 | ||
4715 | static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) { | |
4716 | PyObject *obj; | |
4717 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4718 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
4719 | Py_INCREF(obj); | |
4720 | return Py_BuildValue((char *)""); | |
4721 | } | |
4722 | static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4723 | PyObject *resultobj; | |
4724 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4725 | wxSize *arg2 = 0 ; | |
4726 | wxCaret *result; | |
4727 | wxSize temp2 ; | |
4728 | PyObject * obj0 = 0 ; | |
4729 | PyObject * obj1 = 0 ; | |
4730 | char *kwnames[] = { | |
4731 | (char *) "window",(char *) "size", NULL | |
4732 | }; | |
4733 | ||
4734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4737 | { |
4738 | arg2 = &temp2; | |
4739 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4740 | } | |
4741 | { | |
e3b71cb8 | 4742 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4744 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
4745 | ||
4746 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 4747 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4748 | } |
15afbcd0 | 4749 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1); |
d14a1e28 RD |
4750 | return resultobj; |
4751 | fail: | |
4752 | return NULL; | |
4753 | } | |
4754 | ||
4755 | ||
4756 | static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4757 | PyObject *resultobj; | |
4758 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4759 | PyObject * obj0 = 0 ; | |
4760 | char *kwnames[] = { | |
4761 | (char *) "self", NULL | |
4762 | }; | |
4763 | ||
4764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4767 | { |
4768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4769 | delete arg1; | |
4770 | ||
4771 | wxPyEndAllowThreads(__tstate); | |
4772 | if (PyErr_Occurred()) SWIG_fail; | |
4773 | } | |
4774 | Py_INCREF(Py_None); resultobj = Py_None; | |
4775 | return resultobj; | |
4776 | fail: | |
4777 | return NULL; | |
4778 | } | |
4779 | ||
4780 | ||
4781 | static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4782 | PyObject *resultobj; | |
4783 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4784 | bool result; | |
4785 | PyObject * obj0 = 0 ; | |
4786 | char *kwnames[] = { | |
4787 | (char *) "self", NULL | |
4788 | }; | |
4789 | ||
4790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4793 | { |
4794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4795 | result = (bool)(arg1)->IsOk(); | |
4796 | ||
4797 | wxPyEndAllowThreads(__tstate); | |
4798 | if (PyErr_Occurred()) SWIG_fail; | |
4799 | } | |
4f89f6a3 RD |
4800 | { |
4801 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4802 | } | |
d14a1e28 RD |
4803 | return resultobj; |
4804 | fail: | |
4805 | return NULL; | |
4806 | } | |
4807 | ||
4808 | ||
4809 | static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4810 | PyObject *resultobj; | |
4811 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4812 | bool result; | |
4813 | PyObject * obj0 = 0 ; | |
4814 | char *kwnames[] = { | |
4815 | (char *) "self", NULL | |
4816 | }; | |
4817 | ||
4818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4821 | { |
4822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4823 | result = (bool)(arg1)->IsVisible(); | |
4824 | ||
4825 | wxPyEndAllowThreads(__tstate); | |
4826 | if (PyErr_Occurred()) SWIG_fail; | |
4827 | } | |
4f89f6a3 RD |
4828 | { |
4829 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4830 | } | |
d14a1e28 RD |
4831 | return resultobj; |
4832 | fail: | |
4833 | return NULL; | |
4834 | } | |
4835 | ||
4836 | ||
322913ce RD |
4837 | static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
4838 | PyObject *resultobj; | |
4839 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4840 | wxPoint result; | |
4841 | PyObject * obj0 = 0 ; | |
4842 | char *kwnames[] = { | |
4843 | (char *) "self", NULL | |
4844 | }; | |
4845 | ||
4846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
322913ce RD |
4849 | { |
4850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4851 | result = (arg1)->GetPosition(); | |
4852 | ||
4853 | wxPyEndAllowThreads(__tstate); | |
4854 | if (PyErr_Occurred()) SWIG_fail; | |
4855 | } | |
4856 | { | |
4857 | wxPoint * resultptr; | |
4858 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 4859 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
322913ce RD |
4860 | } |
4861 | return resultobj; | |
4862 | fail: | |
4863 | return NULL; | |
4864 | } | |
4865 | ||
4866 | ||
d14a1e28 RD |
4867 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
4868 | PyObject *resultobj; | |
4869 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4870 | int *arg2 = (int *) 0 ; | |
4871 | int *arg3 = (int *) 0 ; | |
4872 | int temp2 ; | |
4873 | int temp3 ; | |
4874 | PyObject * obj0 = 0 ; | |
4875 | char *kwnames[] = { | |
4876 | (char *) "self", NULL | |
4877 | }; | |
4878 | ||
4879 | arg2 = &temp2; | |
4880 | arg3 = &temp3; | |
4881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4884 | { |
4885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4886 | (arg1)->GetPosition(arg2,arg3); | |
4887 | ||
4888 | wxPyEndAllowThreads(__tstate); | |
4889 | if (PyErr_Occurred()) SWIG_fail; | |
4890 | } | |
4891 | Py_INCREF(Py_None); resultobj = Py_None; | |
4892 | { | |
4893 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4894 | resultobj = t_output_helper(resultobj,o); | |
4895 | } | |
4896 | { | |
4897 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4898 | resultobj = t_output_helper(resultobj,o); | |
4899 | } | |
4900 | return resultobj; | |
4901 | fail: | |
4902 | return NULL; | |
4903 | } | |
4904 | ||
4905 | ||
322913ce | 4906 | static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4907 | PyObject *resultobj; |
4908 | wxCaret *arg1 = (wxCaret *) 0 ; | |
322913ce | 4909 | wxSize result; |
d14a1e28 RD |
4910 | PyObject * obj0 = 0 ; |
4911 | char *kwnames[] = { | |
4912 | (char *) "self", NULL | |
4913 | }; | |
4914 | ||
322913ce | 4915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
4916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4918 | { |
4919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 4920 | result = (arg1)->GetSize(); |
d14a1e28 RD |
4921 | |
4922 | wxPyEndAllowThreads(__tstate); | |
4923 | if (PyErr_Occurred()) SWIG_fail; | |
4924 | } | |
4925 | { | |
322913ce RD |
4926 | wxSize * resultptr; |
4927 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 4928 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
4929 | } |
4930 | return resultobj; | |
4931 | fail: | |
4932 | return NULL; | |
4933 | } | |
4934 | ||
4935 | ||
4936 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4937 | PyObject *resultobj; | |
4938 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4939 | int *arg2 = (int *) 0 ; | |
4940 | int *arg3 = (int *) 0 ; | |
4941 | int temp2 ; | |
4942 | int temp3 ; | |
4943 | PyObject * obj0 = 0 ; | |
4944 | char *kwnames[] = { | |
4945 | (char *) "self", NULL | |
4946 | }; | |
4947 | ||
4948 | arg2 = &temp2; | |
4949 | arg3 = &temp3; | |
4950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4953 | { |
4954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4955 | (arg1)->GetSize(arg2,arg3); | |
4956 | ||
4957 | wxPyEndAllowThreads(__tstate); | |
4958 | if (PyErr_Occurred()) SWIG_fail; | |
4959 | } | |
4960 | Py_INCREF(Py_None); resultobj = Py_None; | |
4961 | { | |
4962 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4963 | resultobj = t_output_helper(resultobj,o); | |
4964 | } | |
4965 | { | |
4966 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4967 | resultobj = t_output_helper(resultobj,o); | |
4968 | } | |
4969 | return resultobj; | |
4970 | fail: | |
4971 | return NULL; | |
4972 | } | |
4973 | ||
4974 | ||
d14a1e28 RD |
4975 | static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
4976 | PyObject *resultobj; | |
4977 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4978 | wxWindow *result; | |
4979 | PyObject * obj0 = 0 ; | |
4980 | char *kwnames[] = { | |
4981 | (char *) "self", NULL | |
4982 | }; | |
4983 | ||
4984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
4986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4987 | { |
4988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4989 | result = (wxWindow *)(arg1)->GetWindow(); | |
4990 | ||
4991 | wxPyEndAllowThreads(__tstate); | |
4992 | if (PyErr_Occurred()) SWIG_fail; | |
4993 | } | |
4994 | { | |
4995 | resultobj = wxPyMake_wxObject(result); | |
4996 | } | |
4997 | return resultobj; | |
4998 | fail: | |
4999 | return NULL; | |
5000 | } | |
5001 | ||
5002 | ||
5003 | static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5004 | PyObject *resultobj; | |
5005 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5006 | int arg2 ; | |
5007 | int arg3 ; | |
5008 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5009 | PyObject * obj1 = 0 ; |
5010 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5011 | char *kwnames[] = { |
5012 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5013 | }; | |
5014 | ||
994141e6 | 5015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
5017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5018 | arg2 = (int) SWIG_AsInt(obj1); | |
5019 | if (PyErr_Occurred()) SWIG_fail; | |
5020 | arg3 = (int) SWIG_AsInt(obj2); | |
5021 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5022 | { |
5023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5024 | (arg1)->Move(arg2,arg3); | |
5025 | ||
5026 | wxPyEndAllowThreads(__tstate); | |
5027 | if (PyErr_Occurred()) SWIG_fail; | |
5028 | } | |
5029 | Py_INCREF(Py_None); resultobj = Py_None; | |
5030 | return resultobj; | |
5031 | fail: | |
5032 | return NULL; | |
5033 | } | |
5034 | ||
5035 | ||
5036 | static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5037 | PyObject *resultobj; | |
5038 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5039 | wxPoint *arg2 = 0 ; | |
5040 | wxPoint temp2 ; | |
5041 | PyObject * obj0 = 0 ; | |
5042 | PyObject * obj1 = 0 ; | |
5043 | char *kwnames[] = { | |
5044 | (char *) "self",(char *) "pt", NULL | |
5045 | }; | |
5046 | ||
5047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
5049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5050 | { |
5051 | arg2 = &temp2; | |
5052 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5053 | } | |
5054 | { | |
5055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5056 | (arg1)->Move((wxPoint const &)*arg2); | |
5057 | ||
5058 | wxPyEndAllowThreads(__tstate); | |
5059 | if (PyErr_Occurred()) SWIG_fail; | |
5060 | } | |
5061 | Py_INCREF(Py_None); resultobj = Py_None; | |
5062 | return resultobj; | |
5063 | fail: | |
5064 | return NULL; | |
5065 | } | |
5066 | ||
5067 | ||
5068 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5069 | PyObject *resultobj; | |
5070 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5071 | int arg2 ; | |
5072 | int arg3 ; | |
5073 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5074 | PyObject * obj1 = 0 ; |
5075 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5076 | char *kwnames[] = { |
5077 | (char *) "self",(char *) "width",(char *) "height", NULL | |
5078 | }; | |
5079 | ||
994141e6 | 5080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
5082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5083 | arg2 = (int) SWIG_AsInt(obj1); | |
5084 | if (PyErr_Occurred()) SWIG_fail; | |
5085 | arg3 = (int) SWIG_AsInt(obj2); | |
5086 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5087 | { |
5088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5089 | (arg1)->SetSize(arg2,arg3); | |
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_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5102 | PyObject *resultobj; | |
5103 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5104 | wxSize *arg2 = 0 ; | |
5105 | wxSize temp2 ; | |
5106 | PyObject * obj0 = 0 ; | |
5107 | PyObject * obj1 = 0 ; | |
5108 | char *kwnames[] = { | |
5109 | (char *) "self",(char *) "size", NULL | |
5110 | }; | |
5111 | ||
5112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
5114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5115 | { |
5116 | arg2 = &temp2; | |
5117 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5118 | } | |
5119 | { | |
5120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5121 | (arg1)->SetSize((wxSize const &)*arg2); | |
5122 | ||
5123 | wxPyEndAllowThreads(__tstate); | |
5124 | if (PyErr_Occurred()) SWIG_fail; | |
5125 | } | |
5126 | Py_INCREF(Py_None); resultobj = Py_None; | |
5127 | return resultobj; | |
5128 | fail: | |
5129 | return NULL; | |
5130 | } | |
5131 | ||
5132 | ||
5133 | static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5134 | PyObject *resultobj; | |
5135 | wxCaret *arg1 = (wxCaret *) 0 ; | |
e811c8ce | 5136 | int arg2 = (int) True ; |
d14a1e28 | 5137 | PyObject * obj0 = 0 ; |
994141e6 | 5138 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5139 | char *kwnames[] = { |
5140 | (char *) "self",(char *) "show", NULL | |
5141 | }; | |
5142 | ||
994141e6 | 5143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
5145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5146 | if (obj1) { |
15afbcd0 RD |
5147 | arg2 = (int) SWIG_AsInt(obj1); |
5148 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5149 | } |
d14a1e28 RD |
5150 | { |
5151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5152 | (arg1)->Show(arg2); | |
5153 | ||
5154 | wxPyEndAllowThreads(__tstate); | |
5155 | if (PyErr_Occurred()) SWIG_fail; | |
5156 | } | |
5157 | Py_INCREF(Py_None); resultobj = Py_None; | |
5158 | return resultobj; | |
5159 | fail: | |
5160 | return NULL; | |
5161 | } | |
5162 | ||
5163 | ||
5164 | static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5165 | PyObject *resultobj; | |
5166 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5167 | PyObject * obj0 = 0 ; | |
5168 | char *kwnames[] = { | |
5169 | (char *) "self", NULL | |
5170 | }; | |
5171 | ||
5172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, |
5174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5175 | { |
5176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5177 | (arg1)->Hide(); | |
5178 | ||
5179 | wxPyEndAllowThreads(__tstate); | |
5180 | if (PyErr_Occurred()) SWIG_fail; | |
5181 | } | |
5182 | Py_INCREF(Py_None); resultobj = Py_None; | |
5183 | return resultobj; | |
5184 | fail: | |
5185 | return NULL; | |
5186 | } | |
5187 | ||
5188 | ||
5189 | static PyObject * Caret_swigregister(PyObject *self, PyObject *args) { | |
5190 | PyObject *obj; | |
5191 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5192 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
5193 | Py_INCREF(obj); | |
5194 | return Py_BuildValue((char *)""); | |
5195 | } | |
5196 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5197 | PyObject *resultobj; | |
5198 | int result; | |
5199 | char *kwnames[] = { | |
5200 | NULL | |
5201 | }; | |
5202 | ||
5203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
5204 | { | |
5205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5206 | result = (int)wxCaret_GetBlinkTime(); | |
5207 | ||
5208 | wxPyEndAllowThreads(__tstate); | |
5209 | if (PyErr_Occurred()) SWIG_fail; | |
5210 | } | |
15afbcd0 | 5211 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5212 | return resultobj; |
5213 | fail: | |
5214 | return NULL; | |
5215 | } | |
5216 | ||
5217 | ||
5218 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5219 | PyObject *resultobj; | |
5220 | int arg1 ; | |
994141e6 | 5221 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
5222 | char *kwnames[] = { |
5223 | (char *) "milliseconds", NULL | |
5224 | }; | |
5225 | ||
994141e6 | 5226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
5227 | arg1 = (int) SWIG_AsInt(obj0); |
5228 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5229 | { |
5230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5231 | wxCaret_SetBlinkTime(arg1); | |
5232 | ||
5233 | wxPyEndAllowThreads(__tstate); | |
5234 | if (PyErr_Occurred()) SWIG_fail; | |
5235 | } | |
5236 | Py_INCREF(Py_None); resultobj = Py_None; | |
5237 | return resultobj; | |
5238 | fail: | |
5239 | return NULL; | |
5240 | } | |
5241 | ||
5242 | ||
5243 | static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5244 | PyObject *resultobj; | |
5245 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
5246 | wxBusyCursor *result; | |
5247 | PyObject * obj0 = 0 ; | |
5248 | char *kwnames[] = { | |
5249 | (char *) "cursor", NULL | |
5250 | }; | |
5251 | ||
5252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
5253 | if (obj0) { | |
15afbcd0 RD |
5254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
5255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5256 | } |
5257 | { | |
e3b71cb8 | 5258 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5260 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
5261 | ||
5262 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 5263 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5264 | } |
15afbcd0 | 5265 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1); |
d14a1e28 RD |
5266 | return resultobj; |
5267 | fail: | |
5268 | return NULL; | |
5269 | } | |
5270 | ||
5271 | ||
5272 | static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5273 | PyObject *resultobj; | |
5274 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
5275 | PyObject * obj0 = 0 ; | |
5276 | char *kwnames[] = { | |
5277 | (char *) "self", NULL | |
5278 | }; | |
5279 | ||
5280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor, |
5282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5283 | { |
5284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5285 | delete arg1; | |
5286 | ||
5287 | wxPyEndAllowThreads(__tstate); | |
5288 | if (PyErr_Occurred()) SWIG_fail; | |
5289 | } | |
5290 | Py_INCREF(Py_None); resultobj = Py_None; | |
5291 | return resultobj; | |
5292 | fail: | |
5293 | return NULL; | |
5294 | } | |
5295 | ||
5296 | ||
5297 | static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) { | |
5298 | PyObject *obj; | |
5299 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5300 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
5301 | Py_INCREF(obj); | |
5302 | return Py_BuildValue((char *)""); | |
5303 | } | |
5304 | static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5305 | PyObject *resultobj; | |
5306 | wxWindow *arg1 = (wxWindow *) NULL ; | |
5307 | wxWindowDisabler *result; | |
5308 | PyObject * obj0 = 0 ; | |
5309 | char *kwnames[] = { | |
5310 | (char *) "winToSkip", NULL | |
5311 | }; | |
5312 | ||
5313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
5314 | if (obj0) { | |
15afbcd0 RD |
5315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5317 | } |
5318 | { | |
e3b71cb8 | 5319 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5321 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
5322 | ||
5323 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 5324 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5325 | } |
15afbcd0 | 5326 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1); |
d14a1e28 RD |
5327 | return resultobj; |
5328 | fail: | |
5329 | return NULL; | |
5330 | } | |
5331 | ||
5332 | ||
5333 | static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5334 | PyObject *resultobj; | |
5335 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
5336 | PyObject * obj0 = 0 ; | |
5337 | char *kwnames[] = { | |
5338 | (char *) "self", NULL | |
5339 | }; | |
5340 | ||
5341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler, |
5343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5344 | { |
5345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5346 | delete arg1; | |
5347 | ||
5348 | wxPyEndAllowThreads(__tstate); | |
5349 | if (PyErr_Occurred()) SWIG_fail; | |
5350 | } | |
5351 | Py_INCREF(Py_None); resultobj = Py_None; | |
5352 | return resultobj; | |
5353 | fail: | |
5354 | return NULL; | |
5355 | } | |
5356 | ||
5357 | ||
5358 | static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) { | |
5359 | PyObject *obj; | |
5360 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5361 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
5362 | Py_INCREF(obj); | |
5363 | return Py_BuildValue((char *)""); | |
5364 | } | |
5365 | static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5366 | PyObject *resultobj; | |
5367 | wxString *arg1 = 0 ; | |
5368 | wxBusyInfo *result; | |
e811c8ce | 5369 | bool temp1 = False ; |
d14a1e28 RD |
5370 | PyObject * obj0 = 0 ; |
5371 | char *kwnames[] = { | |
5372 | (char *) "message", NULL | |
5373 | }; | |
5374 | ||
5375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
5376 | { | |
5377 | arg1 = wxString_in_helper(obj0); | |
5378 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 5379 | temp1 = True; |
d14a1e28 RD |
5380 | } |
5381 | { | |
e3b71cb8 | 5382 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5384 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
5385 | ||
5386 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 5387 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5388 | } |
15afbcd0 | 5389 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1); |
d14a1e28 RD |
5390 | { |
5391 | if (temp1) | |
5392 | delete arg1; | |
5393 | } | |
5394 | return resultobj; | |
5395 | fail: | |
5396 | { | |
5397 | if (temp1) | |
5398 | delete arg1; | |
5399 | } | |
5400 | return NULL; | |
5401 | } | |
5402 | ||
5403 | ||
5404 | static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5405 | PyObject *resultobj; | |
5406 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
5407 | PyObject * obj0 = 0 ; | |
5408 | char *kwnames[] = { | |
5409 | (char *) "self", NULL | |
5410 | }; | |
5411 | ||
5412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo, |
5414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5415 | { |
5416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5417 | delete arg1; | |
5418 | ||
5419 | wxPyEndAllowThreads(__tstate); | |
5420 | if (PyErr_Occurred()) SWIG_fail; | |
5421 | } | |
5422 | Py_INCREF(Py_None); resultobj = Py_None; | |
5423 | return resultobj; | |
5424 | fail: | |
5425 | return NULL; | |
5426 | } | |
5427 | ||
5428 | ||
5429 | static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) { | |
5430 | PyObject *obj; | |
5431 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5432 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
5433 | Py_INCREF(obj); | |
5434 | return Py_BuildValue((char *)""); | |
5435 | } | |
5436 | static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5437 | PyObject *resultobj; | |
5438 | wxStopWatch *result; | |
5439 | char *kwnames[] = { | |
5440 | NULL | |
5441 | }; | |
5442 | ||
5443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
5444 | { | |
5445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5446 | result = (wxStopWatch *)new wxStopWatch(); | |
5447 | ||
5448 | wxPyEndAllowThreads(__tstate); | |
5449 | if (PyErr_Occurred()) SWIG_fail; | |
5450 | } | |
15afbcd0 | 5451 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1); |
d14a1e28 RD |
5452 | return resultobj; |
5453 | fail: | |
5454 | return NULL; | |
5455 | } | |
5456 | ||
5457 | ||
5458 | static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5459 | PyObject *resultobj; | |
5460 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5461 | long arg2 = (long) 0 ; | |
5462 | PyObject * obj0 = 0 ; | |
994141e6 | 5463 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5464 | char *kwnames[] = { |
5465 | (char *) "self",(char *) "t0", NULL | |
5466 | }; | |
5467 | ||
994141e6 | 5468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5471 | if (obj1) { |
15afbcd0 RD |
5472 | arg2 = (long) SWIG_AsLong(obj1); |
5473 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5474 | } |
d14a1e28 RD |
5475 | { |
5476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5477 | (arg1)->Start(arg2); | |
5478 | ||
5479 | wxPyEndAllowThreads(__tstate); | |
5480 | if (PyErr_Occurred()) SWIG_fail; | |
5481 | } | |
5482 | Py_INCREF(Py_None); resultobj = Py_None; | |
5483 | return resultobj; | |
5484 | fail: | |
5485 | return NULL; | |
5486 | } | |
5487 | ||
5488 | ||
5489 | static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5490 | PyObject *resultobj; | |
5491 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5492 | PyObject * obj0 = 0 ; | |
5493 | char *kwnames[] = { | |
5494 | (char *) "self", NULL | |
5495 | }; | |
5496 | ||
5497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5500 | { |
5501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5502 | (arg1)->Pause(); | |
5503 | ||
5504 | wxPyEndAllowThreads(__tstate); | |
5505 | if (PyErr_Occurred()) SWIG_fail; | |
5506 | } | |
5507 | Py_INCREF(Py_None); resultobj = Py_None; | |
5508 | return resultobj; | |
5509 | fail: | |
5510 | return NULL; | |
5511 | } | |
5512 | ||
5513 | ||
5514 | static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5515 | PyObject *resultobj; | |
5516 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5517 | PyObject * obj0 = 0 ; | |
5518 | char *kwnames[] = { | |
5519 | (char *) "self", NULL | |
5520 | }; | |
5521 | ||
5522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5525 | { |
5526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5527 | (arg1)->Resume(); | |
5528 | ||
5529 | wxPyEndAllowThreads(__tstate); | |
5530 | if (PyErr_Occurred()) SWIG_fail; | |
5531 | } | |
5532 | Py_INCREF(Py_None); resultobj = Py_None; | |
5533 | return resultobj; | |
5534 | fail: | |
5535 | return NULL; | |
5536 | } | |
5537 | ||
5538 | ||
5539 | static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5540 | PyObject *resultobj; | |
5541 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5542 | long result; | |
5543 | PyObject * obj0 = 0 ; | |
5544 | char *kwnames[] = { | |
5545 | (char *) "self", NULL | |
5546 | }; | |
5547 | ||
5548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, |
5550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5551 | { |
5552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5553 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
5554 | ||
5555 | wxPyEndAllowThreads(__tstate); | |
5556 | if (PyErr_Occurred()) SWIG_fail; | |
5557 | } | |
15afbcd0 | 5558 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
5559 | return resultobj; |
5560 | fail: | |
5561 | return NULL; | |
5562 | } | |
5563 | ||
5564 | ||
5565 | static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) { | |
5566 | PyObject *obj; | |
5567 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5568 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
5569 | Py_INCREF(obj); | |
5570 | return Py_BuildValue((char *)""); | |
5571 | } | |
5572 | static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5573 | PyObject *resultobj; | |
5574 | int arg1 = (int) 9 ; | |
5575 | wxFileHistory *result; | |
994141e6 | 5576 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
5577 | char *kwnames[] = { |
5578 | (char *) "maxFiles", NULL | |
5579 | }; | |
5580 | ||
994141e6 RD |
5581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail; |
5582 | if (obj0) { | |
15afbcd0 RD |
5583 | arg1 = (int) SWIG_AsInt(obj0); |
5584 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5585 | } |
d14a1e28 RD |
5586 | { |
5587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5588 | result = (wxFileHistory *)new wxFileHistory(arg1); | |
5589 | ||
5590 | wxPyEndAllowThreads(__tstate); | |
5591 | if (PyErr_Occurred()) SWIG_fail; | |
5592 | } | |
15afbcd0 | 5593 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1); |
d14a1e28 RD |
5594 | return resultobj; |
5595 | fail: | |
5596 | return NULL; | |
5597 | } | |
5598 | ||
5599 | ||
5600 | static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5601 | PyObject *resultobj; | |
5602 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5603 | PyObject * obj0 = 0 ; | |
5604 | char *kwnames[] = { | |
5605 | (char *) "self", NULL | |
5606 | }; | |
5607 | ||
5608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5611 | { |
5612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5613 | delete arg1; | |
5614 | ||
5615 | wxPyEndAllowThreads(__tstate); | |
5616 | if (PyErr_Occurred()) SWIG_fail; | |
5617 | } | |
5618 | Py_INCREF(Py_None); resultobj = Py_None; | |
5619 | return resultobj; | |
5620 | fail: | |
5621 | return NULL; | |
5622 | } | |
5623 | ||
5624 | ||
5625 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5626 | PyObject *resultobj; | |
5627 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5628 | wxString *arg2 = 0 ; | |
e811c8ce | 5629 | bool temp2 = False ; |
d14a1e28 RD |
5630 | PyObject * obj0 = 0 ; |
5631 | PyObject * obj1 = 0 ; | |
5632 | char *kwnames[] = { | |
5633 | (char *) "self",(char *) "file", NULL | |
5634 | }; | |
5635 | ||
5636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5639 | { |
5640 | arg2 = wxString_in_helper(obj1); | |
5641 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5642 | temp2 = True; |
d14a1e28 RD |
5643 | } |
5644 | { | |
5645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5646 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
5647 | ||
5648 | wxPyEndAllowThreads(__tstate); | |
5649 | if (PyErr_Occurred()) SWIG_fail; | |
5650 | } | |
5651 | Py_INCREF(Py_None); resultobj = Py_None; | |
5652 | { | |
5653 | if (temp2) | |
5654 | delete arg2; | |
5655 | } | |
5656 | return resultobj; | |
5657 | fail: | |
5658 | { | |
5659 | if (temp2) | |
5660 | delete arg2; | |
5661 | } | |
5662 | return NULL; | |
5663 | } | |
5664 | ||
5665 | ||
5666 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5667 | PyObject *resultobj; | |
5668 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5669 | int arg2 ; | |
5670 | PyObject * obj0 = 0 ; | |
994141e6 | 5671 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5672 | char *kwnames[] = { |
5673 | (char *) "self",(char *) "i", NULL | |
5674 | }; | |
5675 | ||
994141e6 | 5676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5679 | arg2 = (int) SWIG_AsInt(obj1); | |
5680 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5681 | { |
5682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5683 | (arg1)->RemoveFileFromHistory(arg2); | |
5684 | ||
5685 | wxPyEndAllowThreads(__tstate); | |
5686 | if (PyErr_Occurred()) SWIG_fail; | |
5687 | } | |
5688 | Py_INCREF(Py_None); resultobj = Py_None; | |
5689 | return resultobj; | |
5690 | fail: | |
5691 | return NULL; | |
5692 | } | |
5693 | ||
5694 | ||
5695 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5696 | PyObject *resultobj; | |
5697 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5698 | int result; | |
5699 | PyObject * obj0 = 0 ; | |
5700 | char *kwnames[] = { | |
5701 | (char *) "self", NULL | |
5702 | }; | |
5703 | ||
5704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5707 | { |
5708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5709 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
5710 | ||
5711 | wxPyEndAllowThreads(__tstate); | |
5712 | if (PyErr_Occurred()) SWIG_fail; | |
5713 | } | |
15afbcd0 | 5714 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5715 | return resultobj; |
5716 | fail: | |
5717 | return NULL; | |
5718 | } | |
5719 | ||
5720 | ||
5721 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5722 | PyObject *resultobj; | |
5723 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5724 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5725 | PyObject * obj0 = 0 ; | |
5726 | PyObject * obj1 = 0 ; | |
5727 | char *kwnames[] = { | |
5728 | (char *) "self",(char *) "menu", NULL | |
5729 | }; | |
5730 | ||
5731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5734 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5736 | { |
5737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5738 | (arg1)->UseMenu(arg2); | |
5739 | ||
5740 | wxPyEndAllowThreads(__tstate); | |
5741 | if (PyErr_Occurred()) SWIG_fail; | |
5742 | } | |
5743 | Py_INCREF(Py_None); resultobj = Py_None; | |
5744 | return resultobj; | |
5745 | fail: | |
5746 | return NULL; | |
5747 | } | |
5748 | ||
5749 | ||
5750 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5751 | PyObject *resultobj; | |
5752 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5753 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5754 | PyObject * obj0 = 0 ; | |
5755 | PyObject * obj1 = 0 ; | |
5756 | char *kwnames[] = { | |
5757 | (char *) "self",(char *) "menu", NULL | |
5758 | }; | |
5759 | ||
5760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5763 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5765 | { |
5766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5767 | (arg1)->RemoveMenu(arg2); | |
5768 | ||
5769 | wxPyEndAllowThreads(__tstate); | |
5770 | if (PyErr_Occurred()) SWIG_fail; | |
5771 | } | |
5772 | Py_INCREF(Py_None); resultobj = Py_None; | |
5773 | return resultobj; | |
5774 | fail: | |
5775 | return NULL; | |
5776 | } | |
5777 | ||
5778 | ||
5779 | static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5780 | PyObject *resultobj; | |
5781 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5782 | wxConfigBase *arg2 = 0 ; | |
5783 | PyObject * obj0 = 0 ; | |
5784 | PyObject * obj1 = 0 ; | |
5785 | char *kwnames[] = { | |
5786 | (char *) "self",(char *) "config", NULL | |
5787 | }; | |
5788 | ||
5789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5792 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
5793 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5794 | SWIG_fail; | |
d14a1e28 | 5795 | if (arg2 == NULL) { |
15afbcd0 RD |
5796 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5797 | SWIG_fail; | |
d14a1e28 RD |
5798 | } |
5799 | { | |
5800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5801 | (arg1)->Load(*arg2); | |
5802 | ||
5803 | wxPyEndAllowThreads(__tstate); | |
5804 | if (PyErr_Occurred()) SWIG_fail; | |
5805 | } | |
5806 | Py_INCREF(Py_None); resultobj = Py_None; | |
5807 | return resultobj; | |
5808 | fail: | |
5809 | return NULL; | |
5810 | } | |
5811 | ||
5812 | ||
5813 | static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5814 | PyObject *resultobj; | |
5815 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5816 | wxConfigBase *arg2 = 0 ; | |
5817 | PyObject * obj0 = 0 ; | |
5818 | PyObject * obj1 = 0 ; | |
5819 | char *kwnames[] = { | |
5820 | (char *) "self",(char *) "config", NULL | |
5821 | }; | |
5822 | ||
5823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5826 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
5827 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5828 | SWIG_fail; | |
d14a1e28 | 5829 | if (arg2 == NULL) { |
15afbcd0 RD |
5830 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5831 | SWIG_fail; | |
d14a1e28 RD |
5832 | } |
5833 | { | |
5834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5835 | (arg1)->Save(*arg2); | |
5836 | ||
5837 | wxPyEndAllowThreads(__tstate); | |
5838 | if (PyErr_Occurred()) SWIG_fail; | |
5839 | } | |
5840 | Py_INCREF(Py_None); resultobj = Py_None; | |
5841 | return resultobj; | |
5842 | fail: | |
5843 | return NULL; | |
5844 | } | |
5845 | ||
5846 | ||
5847 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5848 | PyObject *resultobj; | |
5849 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5850 | PyObject * obj0 = 0 ; | |
5851 | char *kwnames[] = { | |
5852 | (char *) "self", NULL | |
5853 | }; | |
5854 | ||
5855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5858 | { |
5859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5860 | (arg1)->AddFilesToMenu(); | |
5861 | ||
5862 | wxPyEndAllowThreads(__tstate); | |
5863 | if (PyErr_Occurred()) SWIG_fail; | |
5864 | } | |
5865 | Py_INCREF(Py_None); resultobj = Py_None; | |
5866 | return resultobj; | |
5867 | fail: | |
5868 | return NULL; | |
5869 | } | |
5870 | ||
5871 | ||
5872 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5873 | PyObject *resultobj; | |
5874 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5875 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5876 | PyObject * obj0 = 0 ; | |
5877 | PyObject * obj1 = 0 ; | |
5878 | char *kwnames[] = { | |
5879 | (char *) "self",(char *) "menu", NULL | |
5880 | }; | |
5881 | ||
5882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5885 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5887 | { |
5888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5889 | (arg1)->AddFilesToMenu(arg2); | |
5890 | ||
5891 | wxPyEndAllowThreads(__tstate); | |
5892 | if (PyErr_Occurred()) SWIG_fail; | |
5893 | } | |
5894 | Py_INCREF(Py_None); resultobj = Py_None; | |
5895 | return resultobj; | |
5896 | fail: | |
5897 | return NULL; | |
5898 | } | |
5899 | ||
5900 | ||
5901 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5902 | PyObject *resultobj; | |
5903 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5904 | int arg2 ; | |
5905 | wxString result; | |
5906 | PyObject * obj0 = 0 ; | |
994141e6 | 5907 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5908 | char *kwnames[] = { |
5909 | (char *) "self",(char *) "i", NULL | |
5910 | }; | |
5911 | ||
994141e6 | 5912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5915 | arg2 = (int) SWIG_AsInt(obj1); | |
5916 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5917 | { |
5918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5919 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
5920 | ||
5921 | wxPyEndAllowThreads(__tstate); | |
5922 | if (PyErr_Occurred()) SWIG_fail; | |
5923 | } | |
5924 | { | |
5925 | #if wxUSE_UNICODE | |
5926 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5927 | #else | |
5928 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5929 | #endif | |
5930 | } | |
5931 | return resultobj; | |
5932 | fail: | |
5933 | return NULL; | |
5934 | } | |
5935 | ||
5936 | ||
5937 | static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5938 | PyObject *resultobj; | |
5939 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5940 | int result; | |
5941 | PyObject * obj0 = 0 ; | |
5942 | char *kwnames[] = { | |
5943 | (char *) "self", NULL | |
5944 | }; | |
5945 | ||
5946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, |
5948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5949 | { |
5950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5951 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
5952 | ||
5953 | wxPyEndAllowThreads(__tstate); | |
5954 | if (PyErr_Occurred()) SWIG_fail; | |
5955 | } | |
15afbcd0 | 5956 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5957 | return resultobj; |
5958 | fail: | |
5959 | return NULL; | |
5960 | } | |
5961 | ||
5962 | ||
5963 | static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) { | |
5964 | PyObject *obj; | |
5965 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5966 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
5967 | Py_INCREF(obj); | |
5968 | return Py_BuildValue((char *)""); | |
5969 | } | |
5970 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5971 | PyObject *resultobj; | |
5972 | wxString *arg1 = 0 ; | |
5973 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5974 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5975 | wxSingleInstanceChecker *result; | |
e811c8ce RD |
5976 | bool temp1 = False ; |
5977 | bool temp2 = False ; | |
d14a1e28 RD |
5978 | PyObject * obj0 = 0 ; |
5979 | PyObject * obj1 = 0 ; | |
5980 | char *kwnames[] = { | |
5981 | (char *) "name",(char *) "path", NULL | |
5982 | }; | |
5983 | ||
5984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
5985 | { | |
5986 | arg1 = wxString_in_helper(obj0); | |
5987 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 5988 | temp1 = True; |
d14a1e28 RD |
5989 | } |
5990 | if (obj1) { | |
5991 | { | |
5992 | arg2 = wxString_in_helper(obj1); | |
5993 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5994 | temp2 = True; |
d14a1e28 RD |
5995 | } |
5996 | } | |
5997 | { | |
5998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5999 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
6000 | ||
6001 | wxPyEndAllowThreads(__tstate); | |
6002 | if (PyErr_Occurred()) SWIG_fail; | |
6003 | } | |
15afbcd0 | 6004 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); |
d14a1e28 RD |
6005 | { |
6006 | if (temp1) | |
6007 | delete arg1; | |
6008 | } | |
6009 | { | |
6010 | if (temp2) | |
6011 | delete arg2; | |
6012 | } | |
6013 | return resultobj; | |
6014 | fail: | |
6015 | { | |
6016 | if (temp1) | |
6017 | delete arg1; | |
6018 | } | |
6019 | { | |
6020 | if (temp2) | |
6021 | delete arg2; | |
6022 | } | |
6023 | return NULL; | |
6024 | } | |
6025 | ||
6026 | ||
6027 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6028 | PyObject *resultobj; | |
6029 | wxSingleInstanceChecker *result; | |
6030 | char *kwnames[] = { | |
6031 | NULL | |
6032 | }; | |
6033 | ||
6034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
6035 | { | |
6036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6037 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
6038 | ||
6039 | wxPyEndAllowThreads(__tstate); | |
6040 | if (PyErr_Occurred()) SWIG_fail; | |
6041 | } | |
15afbcd0 | 6042 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); |
d14a1e28 RD |
6043 | return resultobj; |
6044 | fail: | |
6045 | return NULL; | |
6046 | } | |
6047 | ||
6048 | ||
6049 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6050 | PyObject *resultobj; | |
6051 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6052 | PyObject * obj0 = 0 ; | |
6053 | char *kwnames[] = { | |
6054 | (char *) "self", NULL | |
6055 | }; | |
6056 | ||
6057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, |
6059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6060 | { |
6061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6062 | delete arg1; | |
6063 | ||
6064 | wxPyEndAllowThreads(__tstate); | |
6065 | if (PyErr_Occurred()) SWIG_fail; | |
6066 | } | |
6067 | Py_INCREF(Py_None); resultobj = Py_None; | |
6068 | return resultobj; | |
6069 | fail: | |
6070 | return NULL; | |
6071 | } | |
6072 | ||
6073 | ||
6074 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6075 | PyObject *resultobj; | |
6076 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6077 | wxString *arg2 = 0 ; | |
6078 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6079 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6080 | bool result; | |
e811c8ce RD |
6081 | bool temp2 = False ; |
6082 | bool temp3 = False ; | |
d14a1e28 RD |
6083 | PyObject * obj0 = 0 ; |
6084 | PyObject * obj1 = 0 ; | |
6085 | PyObject * obj2 = 0 ; | |
6086 | char *kwnames[] = { | |
6087 | (char *) "self",(char *) "name",(char *) "path", NULL | |
6088 | }; | |
6089 | ||
6090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, |
6092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6093 | { |
6094 | arg2 = wxString_in_helper(obj1); | |
6095 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6096 | temp2 = True; |
d14a1e28 RD |
6097 | } |
6098 | if (obj2) { | |
6099 | { | |
6100 | arg3 = wxString_in_helper(obj2); | |
6101 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 6102 | temp3 = True; |
d14a1e28 RD |
6103 | } |
6104 | } | |
6105 | { | |
6106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6107 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
6108 | ||
6109 | wxPyEndAllowThreads(__tstate); | |
6110 | if (PyErr_Occurred()) SWIG_fail; | |
6111 | } | |
4f89f6a3 RD |
6112 | { |
6113 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6114 | } | |
d14a1e28 RD |
6115 | { |
6116 | if (temp2) | |
6117 | delete arg2; | |
6118 | } | |
6119 | { | |
6120 | if (temp3) | |
6121 | delete arg3; | |
6122 | } | |
6123 | return resultobj; | |
6124 | fail: | |
6125 | { | |
6126 | if (temp2) | |
6127 | delete arg2; | |
6128 | } | |
6129 | { | |
6130 | if (temp3) | |
6131 | delete arg3; | |
6132 | } | |
6133 | return NULL; | |
6134 | } | |
6135 | ||
6136 | ||
6137 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6138 | PyObject *resultobj; | |
6139 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6140 | bool result; | |
6141 | PyObject * obj0 = 0 ; | |
6142 | char *kwnames[] = { | |
6143 | (char *) "self", NULL | |
6144 | }; | |
6145 | ||
6146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, |
6148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6149 | { |
6150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6151 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
6152 | ||
6153 | wxPyEndAllowThreads(__tstate); | |
6154 | if (PyErr_Occurred()) SWIG_fail; | |
6155 | } | |
4f89f6a3 RD |
6156 | { |
6157 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6158 | } | |
d14a1e28 RD |
6159 | return resultobj; |
6160 | fail: | |
6161 | return NULL; | |
6162 | } | |
6163 | ||
6164 | ||
6165 | static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) { | |
6166 | PyObject *obj; | |
6167 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6168 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
6169 | Py_INCREF(obj); | |
6170 | return Py_BuildValue((char *)""); | |
6171 | } | |
6172 | static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6173 | PyObject *resultobj; | |
6174 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6175 | wxDC *arg2 = 0 ; | |
6176 | int arg3 ; | |
6177 | PyObject * obj0 = 0 ; | |
6178 | PyObject * obj1 = 0 ; | |
994141e6 | 6179 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6180 | char *kwnames[] = { |
6181 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
6182 | }; | |
6183 | ||
994141e6 | 6184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6187 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
6188 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6189 | SWIG_fail; | |
d14a1e28 | 6190 | if (arg2 == NULL) { |
15afbcd0 RD |
6191 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6192 | SWIG_fail; | |
994141e6 | 6193 | } |
15afbcd0 RD |
6194 | arg3 = (int) SWIG_AsInt(obj2); |
6195 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6196 | { |
6197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6198 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
6199 | ||
6200 | wxPyEndAllowThreads(__tstate); | |
6201 | if (PyErr_Occurred()) SWIG_fail; | |
6202 | } | |
6203 | Py_INCREF(Py_None); resultobj = Py_None; | |
6204 | return resultobj; | |
6205 | fail: | |
6206 | return NULL; | |
6207 | } | |
6208 | ||
6209 | ||
6210 | static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6211 | PyObject *resultobj; | |
6212 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6213 | PyObject * obj0 = 0 ; | |
6214 | char *kwnames[] = { | |
6215 | (char *) "self", NULL | |
6216 | }; | |
6217 | ||
6218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6221 | { |
6222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6223 | delete arg1; | |
6224 | ||
6225 | wxPyEndAllowThreads(__tstate); | |
6226 | if (PyErr_Occurred()) SWIG_fail; | |
6227 | } | |
6228 | Py_INCREF(Py_None); resultobj = Py_None; | |
6229 | return resultobj; | |
6230 | fail: | |
6231 | return NULL; | |
6232 | } | |
6233 | ||
6234 | ||
6235 | static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6236 | PyObject *resultobj; | |
6237 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6238 | wxString result; | |
6239 | PyObject * obj0 = 0 ; | |
6240 | char *kwnames[] = { | |
6241 | (char *) "self", NULL | |
6242 | }; | |
6243 | ||
6244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6247 | { |
6248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6249 | result = (arg1)->GetTip(); | |
6250 | ||
6251 | wxPyEndAllowThreads(__tstate); | |
6252 | if (PyErr_Occurred()) SWIG_fail; | |
6253 | } | |
6254 | { | |
6255 | #if wxUSE_UNICODE | |
6256 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6257 | #else | |
6258 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6259 | #endif | |
6260 | } | |
6261 | return resultobj; | |
6262 | fail: | |
6263 | return NULL; | |
6264 | } | |
6265 | ||
6266 | ||
6267 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6268 | PyObject *resultobj; | |
6269 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6270 | size_t result; | |
6271 | PyObject * obj0 = 0 ; | |
6272 | char *kwnames[] = { | |
6273 | (char *) "self", NULL | |
6274 | }; | |
6275 | ||
6276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6279 | { |
6280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6281 | result = (size_t)(arg1)->GetCurrentTip(); | |
6282 | ||
6283 | wxPyEndAllowThreads(__tstate); | |
6284 | if (PyErr_Occurred()) SWIG_fail; | |
6285 | } | |
15afbcd0 | 6286 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
6287 | return resultobj; |
6288 | fail: | |
6289 | return NULL; | |
6290 | } | |
6291 | ||
6292 | ||
6293 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6294 | PyObject *resultobj; | |
6295 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6296 | wxString *arg2 = 0 ; | |
6297 | wxString result; | |
e811c8ce | 6298 | bool temp2 = False ; |
d14a1e28 RD |
6299 | PyObject * obj0 = 0 ; |
6300 | PyObject * obj1 = 0 ; | |
6301 | char *kwnames[] = { | |
6302 | (char *) "self",(char *) "tip", NULL | |
6303 | }; | |
6304 | ||
6305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, |
6307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6308 | { |
6309 | arg2 = wxString_in_helper(obj1); | |
6310 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6311 | temp2 = True; |
d14a1e28 RD |
6312 | } |
6313 | { | |
6314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6315 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
6316 | ||
6317 | wxPyEndAllowThreads(__tstate); | |
6318 | if (PyErr_Occurred()) SWIG_fail; | |
6319 | } | |
6320 | { | |
6321 | #if wxUSE_UNICODE | |
6322 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6323 | #else | |
6324 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6325 | #endif | |
6326 | } | |
6327 | { | |
6328 | if (temp2) | |
6329 | delete arg2; | |
6330 | } | |
6331 | return resultobj; | |
6332 | fail: | |
6333 | { | |
6334 | if (temp2) | |
6335 | delete arg2; | |
6336 | } | |
6337 | return NULL; | |
6338 | } | |
6339 | ||
6340 | ||
6341 | static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) { | |
6342 | PyObject *obj; | |
6343 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6344 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
6345 | Py_INCREF(obj); | |
6346 | return Py_BuildValue((char *)""); | |
6347 | } | |
6348 | static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6349 | PyObject *resultobj; | |
6350 | size_t arg1 ; | |
6351 | wxPyTipProvider *result; | |
6352 | PyObject * obj0 = 0 ; | |
6353 | char *kwnames[] = { | |
6354 | (char *) "currentTip", NULL | |
6355 | }; | |
6356 | ||
6357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6358 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); |
6359 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6360 | { |
6361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6362 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
6363 | ||
6364 | wxPyEndAllowThreads(__tstate); | |
6365 | if (PyErr_Occurred()) SWIG_fail; | |
6366 | } | |
15afbcd0 | 6367 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1); |
d14a1e28 RD |
6368 | return resultobj; |
6369 | fail: | |
6370 | return NULL; | |
6371 | } | |
6372 | ||
6373 | ||
6374 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6375 | PyObject *resultobj; | |
6376 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
6377 | PyObject *arg2 = (PyObject *) 0 ; | |
6378 | PyObject *arg3 = (PyObject *) 0 ; | |
6379 | PyObject * obj0 = 0 ; | |
6380 | PyObject * obj1 = 0 ; | |
6381 | PyObject * obj2 = 0 ; | |
6382 | char *kwnames[] = { | |
6383 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6384 | }; | |
6385 | ||
6386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider, |
6388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6389 | arg2 = obj1; |
6390 | arg3 = obj2; | |
6391 | { | |
6392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6393 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6394 | ||
6395 | wxPyEndAllowThreads(__tstate); | |
6396 | if (PyErr_Occurred()) SWIG_fail; | |
6397 | } | |
6398 | Py_INCREF(Py_None); resultobj = Py_None; | |
6399 | return resultobj; | |
6400 | fail: | |
6401 | return NULL; | |
6402 | } | |
6403 | ||
6404 | ||
6405 | static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) { | |
6406 | PyObject *obj; | |
6407 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6408 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
6409 | Py_INCREF(obj); | |
6410 | return Py_BuildValue((char *)""); | |
6411 | } | |
6412 | static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6413 | PyObject *resultobj; | |
6414 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6415 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
e811c8ce | 6416 | bool arg3 = (bool) True ; |
d14a1e28 RD |
6417 | bool result; |
6418 | PyObject * obj0 = 0 ; | |
6419 | PyObject * obj1 = 0 ; | |
6420 | PyObject * obj2 = 0 ; | |
6421 | char *kwnames[] = { | |
6422 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
6423 | }; | |
6424 | ||
6425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6428 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider, | |
6429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6430 | if (obj2) { |
15afbcd0 RD |
6431 | arg3 = (bool) SWIG_AsBool(obj2); |
6432 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6433 | } |
6434 | { | |
e3b71cb8 | 6435 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6437 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
6438 | ||
6439 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 6440 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6441 | } |
4f89f6a3 RD |
6442 | { |
6443 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6444 | } | |
d14a1e28 RD |
6445 | return resultobj; |
6446 | fail: | |
6447 | return NULL; | |
6448 | } | |
6449 | ||
6450 | ||
6451 | static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6452 | PyObject *resultobj; | |
6453 | wxString *arg1 = 0 ; | |
6454 | size_t arg2 ; | |
6455 | wxTipProvider *result; | |
e811c8ce | 6456 | bool temp1 = False ; |
d14a1e28 RD |
6457 | PyObject * obj0 = 0 ; |
6458 | PyObject * obj1 = 0 ; | |
6459 | char *kwnames[] = { | |
6460 | (char *) "filename",(char *) "currentTip", NULL | |
6461 | }; | |
6462 | ||
6463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
6464 | { | |
6465 | arg1 = wxString_in_helper(obj0); | |
6466 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 6467 | temp1 = True; |
d14a1e28 | 6468 | } |
15afbcd0 RD |
6469 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); |
6470 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 6471 | { |
e3b71cb8 | 6472 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6474 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
6475 | ||
6476 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 6477 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6478 | } |
15afbcd0 | 6479 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1); |
d14a1e28 RD |
6480 | { |
6481 | if (temp1) | |
6482 | delete arg1; | |
6483 | } | |
6484 | return resultobj; | |
6485 | fail: | |
6486 | { | |
6487 | if (temp1) | |
6488 | delete arg1; | |
6489 | } | |
6490 | return NULL; | |
6491 | } | |
6492 | ||
6493 | ||
6494 | static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6495 | PyObject *resultobj; | |
6496 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
6497 | int arg2 = (int) -1 ; | |
6498 | wxPyTimer *result; | |
6499 | PyObject * obj0 = 0 ; | |
994141e6 | 6500 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6501 | char *kwnames[] = { |
6502 | (char *) "owner",(char *) "id", NULL | |
6503 | }; | |
6504 | ||
994141e6 | 6505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6506 | if (obj0) { |
15afbcd0 RD |
6507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
6508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 6509 | } |
994141e6 | 6510 | if (obj1) { |
15afbcd0 RD |
6511 | arg2 = (int) SWIG_AsInt(obj1); |
6512 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6513 | } |
d14a1e28 | 6514 | { |
e3b71cb8 | 6515 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6517 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
6518 | ||
6519 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 6520 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6521 | } |
15afbcd0 | 6522 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1); |
d14a1e28 RD |
6523 | return resultobj; |
6524 | fail: | |
6525 | return NULL; | |
6526 | } | |
6527 | ||
6528 | ||
6529 | static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6530 | PyObject *resultobj; | |
6531 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6532 | PyObject * obj0 = 0 ; | |
6533 | char *kwnames[] = { | |
6534 | (char *) "self", NULL | |
6535 | }; | |
6536 | ||
6537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6540 | { |
6541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6542 | delete arg1; | |
6543 | ||
6544 | wxPyEndAllowThreads(__tstate); | |
6545 | if (PyErr_Occurred()) SWIG_fail; | |
6546 | } | |
6547 | Py_INCREF(Py_None); resultobj = Py_None; | |
6548 | return resultobj; | |
6549 | fail: | |
6550 | return NULL; | |
6551 | } | |
6552 | ||
6553 | ||
7722248d RD |
6554 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
6555 | PyObject *resultobj; | |
6556 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6557 | PyObject *arg2 = (PyObject *) 0 ; | |
6558 | PyObject *arg3 = (PyObject *) 0 ; | |
4276dc52 | 6559 | int arg4 = (int) 1 ; |
7722248d RD |
6560 | PyObject * obj0 = 0 ; |
6561 | PyObject * obj1 = 0 ; | |
6562 | PyObject * obj2 = 0 ; | |
4276dc52 | 6563 | PyObject * obj3 = 0 ; |
7722248d | 6564 | char *kwnames[] = { |
4276dc52 | 6565 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL |
7722248d RD |
6566 | }; |
6567 | ||
4276dc52 | 6568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
6569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7722248d RD |
6571 | arg2 = obj1; |
6572 | arg3 = obj2; | |
4276dc52 RD |
6573 | if (obj3) { |
6574 | arg4 = (int) SWIG_AsInt(obj3); | |
6575 | if (PyErr_Occurred()) SWIG_fail; | |
6576 | } | |
7722248d RD |
6577 | { |
6578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4276dc52 | 6579 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); |
7722248d RD |
6580 | |
6581 | wxPyEndAllowThreads(__tstate); | |
6582 | if (PyErr_Occurred()) SWIG_fail; | |
6583 | } | |
6584 | Py_INCREF(Py_None); resultobj = Py_None; | |
6585 | return resultobj; | |
6586 | fail: | |
6587 | return NULL; | |
6588 | } | |
6589 | ||
6590 | ||
d14a1e28 RD |
6591 | static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { |
6592 | PyObject *resultobj; | |
6593 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6594 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
6595 | int arg3 = (int) -1 ; | |
6596 | PyObject * obj0 = 0 ; | |
6597 | PyObject * obj1 = 0 ; | |
994141e6 | 6598 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6599 | char *kwnames[] = { |
6600 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
6601 | }; | |
6602 | ||
994141e6 | 6603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6606 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
6607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 6608 | if (obj2) { |
15afbcd0 RD |
6609 | arg3 = (int) SWIG_AsInt(obj2); |
6610 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6611 | } |
d14a1e28 RD |
6612 | { |
6613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6614 | (arg1)->SetOwner(arg2,arg3); | |
6615 | ||
6616 | wxPyEndAllowThreads(__tstate); | |
6617 | if (PyErr_Occurred()) SWIG_fail; | |
6618 | } | |
6619 | Py_INCREF(Py_None); resultobj = Py_None; | |
6620 | return resultobj; | |
6621 | fail: | |
6622 | return NULL; | |
6623 | } | |
6624 | ||
6625 | ||
1c0f361b RD |
6626 | static PyObject *_wrap_Timer_GetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { |
6627 | PyObject *resultobj; | |
6628 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6629 | wxEvtHandler *result; | |
6630 | PyObject * obj0 = 0 ; | |
6631 | char *kwnames[] = { | |
6632 | (char *) "self", NULL | |
6633 | }; | |
6634 | ||
6635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail; | |
6636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6638 | { | |
6639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6640 | result = (wxEvtHandler *)(arg1)->GetOwner(); | |
6641 | ||
6642 | wxPyEndAllowThreads(__tstate); | |
6643 | if (PyErr_Occurred()) SWIG_fail; | |
6644 | } | |
6645 | { | |
6646 | resultobj = wxPyMake_wxObject(result); | |
6647 | } | |
6648 | return resultobj; | |
6649 | fail: | |
6650 | return NULL; | |
6651 | } | |
6652 | ||
6653 | ||
d14a1e28 RD |
6654 | static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { |
6655 | PyObject *resultobj; | |
6656 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6657 | int arg2 = (int) -1 ; | |
e811c8ce | 6658 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6659 | bool result; |
6660 | PyObject * obj0 = 0 ; | |
994141e6 | 6661 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6662 | PyObject * obj2 = 0 ; |
6663 | char *kwnames[] = { | |
6664 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
6665 | }; | |
6666 | ||
994141e6 | 6667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 6670 | if (obj1) { |
15afbcd0 RD |
6671 | arg2 = (int) SWIG_AsInt(obj1); |
6672 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6673 | } |
d14a1e28 | 6674 | if (obj2) { |
15afbcd0 RD |
6675 | arg3 = (bool) SWIG_AsBool(obj2); |
6676 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6677 | } |
6678 | { | |
6679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6680 | result = (bool)(arg1)->Start(arg2,arg3); | |
6681 | ||
6682 | wxPyEndAllowThreads(__tstate); | |
6683 | if (PyErr_Occurred()) SWIG_fail; | |
6684 | } | |
4f89f6a3 RD |
6685 | { |
6686 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6687 | } | |
d14a1e28 RD |
6688 | return resultobj; |
6689 | fail: | |
6690 | return NULL; | |
6691 | } | |
6692 | ||
6693 | ||
6694 | static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6695 | PyObject *resultobj; | |
6696 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6697 | PyObject * obj0 = 0 ; | |
6698 | char *kwnames[] = { | |
6699 | (char *) "self", NULL | |
6700 | }; | |
6701 | ||
6702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6705 | { |
6706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6707 | (arg1)->Stop(); | |
6708 | ||
6709 | wxPyEndAllowThreads(__tstate); | |
6710 | if (PyErr_Occurred()) SWIG_fail; | |
6711 | } | |
6712 | Py_INCREF(Py_None); resultobj = Py_None; | |
6713 | return resultobj; | |
6714 | fail: | |
6715 | return NULL; | |
6716 | } | |
6717 | ||
6718 | ||
d14a1e28 RD |
6719 | static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { |
6720 | PyObject *resultobj; | |
6721 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6722 | bool result; | |
6723 | PyObject * obj0 = 0 ; | |
6724 | char *kwnames[] = { | |
6725 | (char *) "self", NULL | |
6726 | }; | |
6727 | ||
6728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6731 | { |
6732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6733 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
6734 | ||
6735 | wxPyEndAllowThreads(__tstate); | |
6736 | if (PyErr_Occurred()) SWIG_fail; | |
6737 | } | |
4f89f6a3 RD |
6738 | { |
6739 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6740 | } | |
d14a1e28 RD |
6741 | return resultobj; |
6742 | fail: | |
6743 | return NULL; | |
6744 | } | |
6745 | ||
6746 | ||
6747 | static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6748 | PyObject *resultobj; | |
6749 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6750 | int result; | |
6751 | PyObject * obj0 = 0 ; | |
6752 | char *kwnames[] = { | |
6753 | (char *) "self", NULL | |
6754 | }; | |
6755 | ||
6756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6759 | { |
6760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6761 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
6762 | ||
6763 | wxPyEndAllowThreads(__tstate); | |
6764 | if (PyErr_Occurred()) SWIG_fail; | |
6765 | } | |
15afbcd0 | 6766 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6767 | return resultobj; |
6768 | fail: | |
6769 | return NULL; | |
6770 | } | |
6771 | ||
6772 | ||
6773 | static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6774 | PyObject *resultobj; | |
6775 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6776 | bool result; | |
6777 | PyObject * obj0 = 0 ; | |
6778 | char *kwnames[] = { | |
6779 | (char *) "self", NULL | |
6780 | }; | |
6781 | ||
6782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6785 | { |
6786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6787 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
6788 | ||
6789 | wxPyEndAllowThreads(__tstate); | |
6790 | if (PyErr_Occurred()) SWIG_fail; | |
6791 | } | |
4f89f6a3 RD |
6792 | { |
6793 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6794 | } | |
d14a1e28 RD |
6795 | return resultobj; |
6796 | fail: | |
6797 | return NULL; | |
6798 | } | |
6799 | ||
6800 | ||
cc6dd355 RD |
6801 | static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
6802 | PyObject *resultobj; | |
6803 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6804 | int result; | |
6805 | PyObject * obj0 = 0 ; | |
6806 | char *kwnames[] = { | |
6807 | (char *) "self", NULL | |
6808 | }; | |
6809 | ||
6810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, |
6812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
cc6dd355 RD |
6813 | { |
6814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6815 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
6816 | ||
6817 | wxPyEndAllowThreads(__tstate); | |
6818 | if (PyErr_Occurred()) SWIG_fail; | |
6819 | } | |
15afbcd0 | 6820 | resultobj = SWIG_FromInt((int)result); |
cc6dd355 RD |
6821 | return resultobj; |
6822 | fail: | |
6823 | return NULL; | |
6824 | } | |
6825 | ||
6826 | ||
d14a1e28 RD |
6827 | static PyObject * Timer_swigregister(PyObject *self, PyObject *args) { |
6828 | PyObject *obj; | |
6829 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6830 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
6831 | Py_INCREF(obj); | |
6832 | return Py_BuildValue((char *)""); | |
6833 | } | |
6834 | static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6835 | PyObject *resultobj; | |
6836 | int arg1 = (int) 0 ; | |
6837 | int arg2 = (int) 0 ; | |
6838 | wxTimerEvent *result; | |
994141e6 RD |
6839 | PyObject * obj0 = 0 ; |
6840 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
6841 | char *kwnames[] = { |
6842 | (char *) "timerid",(char *) "interval", NULL | |
6843 | }; | |
6844 | ||
994141e6 RD |
6845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; |
6846 | if (obj0) { | |
15afbcd0 RD |
6847 | arg1 = (int) SWIG_AsInt(obj0); |
6848 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
6849 | } |
6850 | if (obj1) { | |
15afbcd0 RD |
6851 | arg2 = (int) SWIG_AsInt(obj1); |
6852 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6853 | } |
d14a1e28 RD |
6854 | { |
6855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6856 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
6857 | ||
6858 | wxPyEndAllowThreads(__tstate); | |
6859 | if (PyErr_Occurred()) SWIG_fail; | |
6860 | } | |
15afbcd0 | 6861 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1); |
d14a1e28 RD |
6862 | return resultobj; |
6863 | fail: | |
6864 | return NULL; | |
6865 | } | |
6866 | ||
6867 | ||
6868 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6869 | PyObject *resultobj; | |
6870 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
6871 | int result; | |
6872 | PyObject * obj0 = 0 ; | |
6873 | char *kwnames[] = { | |
6874 | (char *) "self", NULL | |
6875 | }; | |
6876 | ||
6877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent, |
6879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6880 | { |
6881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6882 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
6883 | ||
6884 | wxPyEndAllowThreads(__tstate); | |
6885 | if (PyErr_Occurred()) SWIG_fail; | |
6886 | } | |
15afbcd0 | 6887 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6888 | return resultobj; |
6889 | fail: | |
6890 | return NULL; | |
6891 | } | |
6892 | ||
6893 | ||
6894 | static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) { | |
6895 | PyObject *obj; | |
6896 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6897 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
6898 | Py_INCREF(obj); | |
6899 | return Py_BuildValue((char *)""); | |
6900 | } | |
6901 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) { | |
6902 | PyObject *resultobj; | |
6903 | wxTimer *arg1 = 0 ; | |
6904 | wxTimerRunner *result; | |
6905 | PyObject * obj0 = 0 ; | |
6906 | ||
6907 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
15afbcd0 RD |
6908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, |
6909 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6910 | SWIG_fail; | |
d14a1e28 | 6911 | if (arg1 == NULL) { |
15afbcd0 RD |
6912 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6913 | SWIG_fail; | |
d14a1e28 RD |
6914 | } |
6915 | { | |
e3b71cb8 | 6916 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6918 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
6919 | ||
6920 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 6921 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6922 | } |
15afbcd0 | 6923 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); |
d14a1e28 RD |
6924 | return resultobj; |
6925 | fail: | |
6926 | return NULL; | |
6927 | } | |
6928 | ||
6929 | ||
6930 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) { | |
6931 | PyObject *resultobj; | |
6932 | wxTimer *arg1 = 0 ; | |
6933 | int arg2 ; | |
e811c8ce | 6934 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6935 | wxTimerRunner *result; |
6936 | PyObject * obj0 = 0 ; | |
994141e6 | 6937 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6938 | PyObject * obj2 = 0 ; |
6939 | ||
994141e6 | 6940 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, |
6942 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6943 | SWIG_fail; | |
d14a1e28 | 6944 | if (arg1 == NULL) { |
15afbcd0 RD |
6945 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6946 | SWIG_fail; | |
994141e6 | 6947 | } |
15afbcd0 RD |
6948 | arg2 = (int) SWIG_AsInt(obj1); |
6949 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 6950 | if (obj2) { |
15afbcd0 RD |
6951 | arg3 = (bool) SWIG_AsBool(obj2); |
6952 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6953 | } |
6954 | { | |
e3b71cb8 | 6955 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6957 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
6958 | ||
6959 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 6960 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6961 | } |
15afbcd0 | 6962 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); |
d14a1e28 RD |
6963 | return resultobj; |
6964 | fail: | |
6965 | return NULL; | |
6966 | } | |
6967 | ||
6968 | ||
6969 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
6970 | int argc; | |
6971 | PyObject *argv[4]; | |
6972 | int ii; | |
6973 | ||
6974 | argc = PyObject_Length(args); | |
6975 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
6976 | argv[ii] = PyTuple_GetItem(args,ii); | |
6977 | } | |
6978 | if (argc == 1) { | |
6979 | int _v; | |
6980 | { | |
6981 | void *ptr; | |
15afbcd0 | 6982 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { |
d14a1e28 RD |
6983 | _v = 0; |
6984 | PyErr_Clear(); | |
6985 | } else { | |
6986 | _v = 1; | |
6987 | } | |
6988 | } | |
6989 | if (_v) { | |
6990 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
6991 | } | |
6992 | } | |
6993 | if ((argc >= 2) && (argc <= 3)) { | |
6994 | int _v; | |
6995 | { | |
6996 | void *ptr; | |
15afbcd0 | 6997 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { |
d14a1e28 RD |
6998 | _v = 0; |
6999 | PyErr_Clear(); | |
7000 | } else { | |
7001 | _v = 1; | |
7002 | } | |
7003 | } | |
7004 | if (_v) { | |
15afbcd0 | 7005 | _v = SWIG_CheckInt(argv[1]); |
d14a1e28 RD |
7006 | if (_v) { |
7007 | if (argc <= 2) { | |
7008 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
7009 | } | |
15afbcd0 | 7010 | _v = SWIG_CheckBool(argv[2]); |
d14a1e28 RD |
7011 | if (_v) { |
7012 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
7013 | } | |
7014 | } | |
7015 | } | |
7016 | } | |
7017 | ||
7018 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
7019 | return NULL; | |
7020 | } | |
7021 | ||
7022 | ||
7023 | static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7024 | PyObject *resultobj; | |
7025 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
7026 | PyObject * obj0 = 0 ; | |
7027 | char *kwnames[] = { | |
7028 | (char *) "self", NULL | |
7029 | }; | |
7030 | ||
7031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, |
7033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7034 | { |
7035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7036 | delete arg1; | |
7037 | ||
7038 | wxPyEndAllowThreads(__tstate); | |
7039 | if (PyErr_Occurred()) SWIG_fail; | |
7040 | } | |
7041 | Py_INCREF(Py_None); resultobj = Py_None; | |
7042 | return resultobj; | |
7043 | fail: | |
7044 | return NULL; | |
7045 | } | |
7046 | ||
7047 | ||
7048 | static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7049 | PyObject *resultobj; | |
7050 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
7051 | int arg2 ; | |
e811c8ce | 7052 | bool arg3 = (bool) False ; |
d14a1e28 | 7053 | PyObject * obj0 = 0 ; |
994141e6 | 7054 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7055 | PyObject * obj2 = 0 ; |
7056 | char *kwnames[] = { | |
7057 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
7058 | }; | |
7059 | ||
994141e6 | 7060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, |
7062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7063 | arg2 = (int) SWIG_AsInt(obj1); | |
7064 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 7065 | if (obj2) { |
15afbcd0 RD |
7066 | arg3 = (bool) SWIG_AsBool(obj2); |
7067 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7068 | } |
7069 | { | |
7070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7071 | (arg1)->Start(arg2,arg3); | |
7072 | ||
7073 | wxPyEndAllowThreads(__tstate); | |
7074 | if (PyErr_Occurred()) SWIG_fail; | |
7075 | } | |
7076 | Py_INCREF(Py_None); resultobj = Py_None; | |
7077 | return resultobj; | |
7078 | fail: | |
7079 | return NULL; | |
7080 | } | |
7081 | ||
7082 | ||
7083 | static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) { | |
7084 | PyObject *obj; | |
7085 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7086 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
7087 | Py_INCREF(obj); | |
7088 | return Py_BuildValue((char *)""); | |
7089 | } | |
7090 | static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7091 | PyObject *resultobj; | |
7092 | wxLog *result; | |
7093 | char *kwnames[] = { | |
7094 | NULL | |
7095 | }; | |
7096 | ||
7097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
7098 | { | |
7099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7100 | result = (wxLog *)new wxLog(); | |
7101 | ||
7102 | wxPyEndAllowThreads(__tstate); | |
7103 | if (PyErr_Occurred()) SWIG_fail; | |
7104 | } | |
15afbcd0 | 7105 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); |
d14a1e28 RD |
7106 | return resultobj; |
7107 | fail: | |
7108 | return NULL; | |
7109 | } | |
7110 | ||
7111 | ||
7112 | static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7113 | PyObject *resultobj; | |
7114 | bool result; | |
7115 | char *kwnames[] = { | |
7116 | NULL | |
7117 | }; | |
7118 | ||
7119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
7120 | { | |
7121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7122 | result = (bool)wxLog::IsEnabled(); | |
7123 | ||
7124 | wxPyEndAllowThreads(__tstate); | |
7125 | if (PyErr_Occurred()) SWIG_fail; | |
7126 | } | |
4f89f6a3 RD |
7127 | { |
7128 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7129 | } | |
d14a1e28 RD |
7130 | return resultobj; |
7131 | fail: | |
7132 | return NULL; | |
7133 | } | |
7134 | ||
7135 | ||
7136 | static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7137 | PyObject *resultobj; | |
e811c8ce | 7138 | bool arg1 = (bool) True ; |
d14a1e28 RD |
7139 | bool result; |
7140 | PyObject * obj0 = 0 ; | |
7141 | char *kwnames[] = { | |
7142 | (char *) "doIt", NULL | |
7143 | }; | |
7144 | ||
7145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
7146 | if (obj0) { | |
15afbcd0 RD |
7147 | arg1 = (bool) SWIG_AsBool(obj0); |
7148 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7149 | } |
7150 | { | |
7151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7152 | result = (bool)wxLog::EnableLogging(arg1); | |
7153 | ||
7154 | wxPyEndAllowThreads(__tstate); | |
7155 | if (PyErr_Occurred()) SWIG_fail; | |
7156 | } | |
4f89f6a3 RD |
7157 | { |
7158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7159 | } | |
d14a1e28 RD |
7160 | return resultobj; |
7161 | fail: | |
7162 | return NULL; | |
7163 | } | |
7164 | ||
7165 | ||
7166 | static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7167 | PyObject *resultobj; | |
7168 | wxLogLevel arg1 ; | |
7169 | wxChar *arg2 = (wxChar *) 0 ; | |
7170 | time_t arg3 ; | |
7171 | PyObject * obj0 = 0 ; | |
7172 | PyObject * obj1 = 0 ; | |
7173 | PyObject * obj2 = 0 ; | |
7174 | char *kwnames[] = { | |
7175 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
7176 | }; | |
7177 | ||
7178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7179 | arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); |
7180 | if (PyErr_Occurred()) SWIG_fail; | |
7181 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar, | |
7182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7183 | arg3 = (time_t) SWIG_AsUnsignedInt(obj2); | |
7184 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7185 | { |
7186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7187 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
7188 | ||
7189 | wxPyEndAllowThreads(__tstate); | |
7190 | if (PyErr_Occurred()) SWIG_fail; | |
7191 | } | |
7192 | Py_INCREF(Py_None); resultobj = Py_None; | |
7193 | return resultobj; | |
7194 | fail: | |
7195 | return NULL; | |
7196 | } | |
7197 | ||
7198 | ||
7199 | static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7200 | PyObject *resultobj; | |
7201 | wxLog *arg1 = (wxLog *) 0 ; | |
7202 | PyObject * obj0 = 0 ; | |
7203 | char *kwnames[] = { | |
7204 | (char *) "self", NULL | |
7205 | }; | |
7206 | ||
7207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
7209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7210 | { |
7211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7212 | (arg1)->Flush(); | |
7213 | ||
7214 | wxPyEndAllowThreads(__tstate); | |
7215 | if (PyErr_Occurred()) SWIG_fail; | |
7216 | } | |
7217 | Py_INCREF(Py_None); resultobj = Py_None; | |
7218 | return resultobj; | |
7219 | fail: | |
7220 | return NULL; | |
7221 | } | |
7222 | ||
7223 | ||
7224 | static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7225 | PyObject *resultobj; | |
7226 | char *kwnames[] = { | |
7227 | NULL | |
7228 | }; | |
7229 | ||
7230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
7231 | { | |
7232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7233 | wxLog::FlushActive(); | |
7234 | ||
7235 | wxPyEndAllowThreads(__tstate); | |
7236 | if (PyErr_Occurred()) SWIG_fail; | |
7237 | } | |
7238 | Py_INCREF(Py_None); resultobj = Py_None; | |
7239 | return resultobj; | |
7240 | fail: | |
7241 | return NULL; | |
7242 | } | |
7243 | ||
7244 | ||
7245 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7246 | PyObject *resultobj; | |
7247 | wxLog *result; | |
7248 | char *kwnames[] = { | |
7249 | NULL | |
7250 | }; | |
7251 | ||
7252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
7253 | { | |
7254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7255 | result = (wxLog *)wxLog::GetActiveTarget(); | |
7256 | ||
7257 | wxPyEndAllowThreads(__tstate); | |
7258 | if (PyErr_Occurred()) SWIG_fail; | |
7259 | } | |
15afbcd0 | 7260 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
7261 | return resultobj; |
7262 | fail: | |
7263 | return NULL; | |
7264 | } | |
7265 | ||
7266 | ||
7267 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7268 | PyObject *resultobj; | |
7269 | wxLog *arg1 = (wxLog *) 0 ; | |
7270 | wxLog *result; | |
7271 | PyObject * obj0 = 0 ; | |
7272 | char *kwnames[] = { | |
7273 | (char *) "pLogger", NULL | |
7274 | }; | |
7275 | ||
7276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
7278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7279 | { |
7280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7281 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
7282 | ||
7283 | wxPyEndAllowThreads(__tstate); | |
7284 | if (PyErr_Occurred()) SWIG_fail; | |
7285 | } | |
15afbcd0 | 7286 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
7287 | return resultobj; |
7288 | fail: | |
7289 | return NULL; | |
7290 | } | |
7291 | ||
7292 | ||
7293 | static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7294 | PyObject *resultobj; | |
7295 | char *kwnames[] = { | |
7296 | NULL | |
7297 | }; | |
7298 | ||
7299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
7300 | { | |
7301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7302 | wxLog::Suspend(); | |
7303 | ||
7304 | wxPyEndAllowThreads(__tstate); | |
7305 | if (PyErr_Occurred()) SWIG_fail; | |
7306 | } | |
7307 | Py_INCREF(Py_None); resultobj = Py_None; | |
7308 | return resultobj; | |
7309 | fail: | |
7310 | return NULL; | |
7311 | } | |
7312 | ||
7313 | ||
7314 | static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7315 | PyObject *resultobj; | |
7316 | char *kwnames[] = { | |
7317 | NULL | |
7318 | }; | |
7319 | ||
7320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
7321 | { | |
7322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7323 | wxLog::Resume(); | |
7324 | ||
7325 | wxPyEndAllowThreads(__tstate); | |
7326 | if (PyErr_Occurred()) SWIG_fail; | |
7327 | } | |
7328 | Py_INCREF(Py_None); resultobj = Py_None; | |
7329 | return resultobj; | |
7330 | fail: | |
7331 | return NULL; | |
7332 | } | |
7333 | ||
7334 | ||
7335 | static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7336 | PyObject *resultobj; | |
e811c8ce | 7337 | bool arg1 = (bool) True ; |
d14a1e28 RD |
7338 | PyObject * obj0 = 0 ; |
7339 | char *kwnames[] = { | |
7340 | (char *) "bVerbose", NULL | |
7341 | }; | |
7342 | ||
7343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
7344 | if (obj0) { | |
15afbcd0 RD |
7345 | arg1 = (bool) SWIG_AsBool(obj0); |
7346 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7347 | } |
7348 | { | |
7349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7350 | wxLog::SetVerbose(arg1); | |
7351 | ||
7352 | wxPyEndAllowThreads(__tstate); | |
7353 | if (PyErr_Occurred()) SWIG_fail; | |
7354 | } | |
7355 | Py_INCREF(Py_None); resultobj = Py_None; | |
7356 | return resultobj; | |
7357 | fail: | |
7358 | return NULL; | |
7359 | } | |
7360 | ||
7361 | ||
7362 | static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7363 | PyObject *resultobj; | |
7364 | wxLogLevel arg1 ; | |
7365 | PyObject * obj0 = 0 ; | |
7366 | char *kwnames[] = { | |
7367 | (char *) "logLevel", NULL | |
7368 | }; | |
7369 | ||
7370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7371 | arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); |
7372 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7373 | { |
7374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7375 | wxLog::SetLogLevel(arg1); | |
7376 | ||
7377 | wxPyEndAllowThreads(__tstate); | |
7378 | if (PyErr_Occurred()) SWIG_fail; | |
7379 | } | |
7380 | Py_INCREF(Py_None); resultobj = Py_None; | |
7381 | return resultobj; | |
7382 | fail: | |
7383 | return NULL; | |
7384 | } | |
7385 | ||
7386 | ||
7387 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7388 | PyObject *resultobj; | |
7389 | char *kwnames[] = { | |
7390 | NULL | |
7391 | }; | |
7392 | ||
7393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
7394 | { | |
7395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7396 | wxLog::DontCreateOnDemand(); | |
7397 | ||
7398 | wxPyEndAllowThreads(__tstate); | |
7399 | if (PyErr_Occurred()) SWIG_fail; | |
7400 | } | |
7401 | Py_INCREF(Py_None); resultobj = Py_None; | |
7402 | return resultobj; | |
7403 | fail: | |
7404 | return NULL; | |
7405 | } | |
7406 | ||
7407 | ||
7408 | static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7409 | PyObject *resultobj; | |
7410 | wxTraceMask arg1 ; | |
7411 | PyObject * obj0 = 0 ; | |
7412 | char *kwnames[] = { | |
7413 | (char *) "ulMask", NULL | |
7414 | }; | |
7415 | ||
7416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7417 | arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0); |
7418 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7419 | { |
7420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7421 | wxLog::SetTraceMask(arg1); | |
7422 | ||
7423 | wxPyEndAllowThreads(__tstate); | |
7424 | if (PyErr_Occurred()) SWIG_fail; | |
7425 | } | |
7426 | Py_INCREF(Py_None); resultobj = Py_None; | |
7427 | return resultobj; | |
7428 | fail: | |
7429 | return NULL; | |
7430 | } | |
7431 | ||
7432 | ||
7433 | static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7434 | PyObject *resultobj; | |
7435 | wxString *arg1 = 0 ; | |
e811c8ce | 7436 | bool temp1 = False ; |
d14a1e28 RD |
7437 | PyObject * obj0 = 0 ; |
7438 | char *kwnames[] = { | |
7439 | (char *) "str", NULL | |
7440 | }; | |
7441 | ||
7442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
7443 | { | |
7444 | arg1 = wxString_in_helper(obj0); | |
7445 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7446 | temp1 = True; |
d14a1e28 RD |
7447 | } |
7448 | { | |
7449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7450 | wxLog::AddTraceMask((wxString const &)*arg1); | |
7451 | ||
7452 | wxPyEndAllowThreads(__tstate); | |
7453 | if (PyErr_Occurred()) SWIG_fail; | |
7454 | } | |
7455 | Py_INCREF(Py_None); resultobj = Py_None; | |
7456 | { | |
7457 | if (temp1) | |
7458 | delete arg1; | |
7459 | } | |
7460 | return resultobj; | |
7461 | fail: | |
7462 | { | |
7463 | if (temp1) | |
7464 | delete arg1; | |
7465 | } | |
7466 | return NULL; | |
7467 | } | |
7468 | ||
7469 | ||
7470 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7471 | PyObject *resultobj; | |
7472 | wxString *arg1 = 0 ; | |
e811c8ce | 7473 | bool temp1 = False ; |
d14a1e28 RD |
7474 | PyObject * obj0 = 0 ; |
7475 | char *kwnames[] = { | |
7476 | (char *) "str", NULL | |
7477 | }; | |
7478 | ||
7479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
7480 | { | |
7481 | arg1 = wxString_in_helper(obj0); | |
7482 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7483 | temp1 = True; |
d14a1e28 RD |
7484 | } |
7485 | { | |
7486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7487 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
7488 | ||
7489 | wxPyEndAllowThreads(__tstate); | |
7490 | if (PyErr_Occurred()) SWIG_fail; | |
7491 | } | |
7492 | Py_INCREF(Py_None); resultobj = Py_None; | |
7493 | { | |
7494 | if (temp1) | |
7495 | delete arg1; | |
7496 | } | |
7497 | return resultobj; | |
7498 | fail: | |
7499 | { | |
7500 | if (temp1) | |
7501 | delete arg1; | |
7502 | } | |
7503 | return NULL; | |
7504 | } | |
7505 | ||
7506 | ||
7507 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7508 | PyObject *resultobj; | |
7509 | char *kwnames[] = { | |
7510 | NULL | |
7511 | }; | |
7512 | ||
7513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
7514 | { | |
7515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7516 | wxLog::ClearTraceMasks(); | |
7517 | ||
7518 | wxPyEndAllowThreads(__tstate); | |
7519 | if (PyErr_Occurred()) SWIG_fail; | |
7520 | } | |
7521 | Py_INCREF(Py_None); resultobj = Py_None; | |
7522 | return resultobj; | |
7523 | fail: | |
7524 | return NULL; | |
7525 | } | |
7526 | ||
7527 | ||
7528 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7529 | PyObject *resultobj; | |
7530 | wxArrayString *result; | |
7531 | char *kwnames[] = { | |
7532 | NULL | |
7533 | }; | |
7534 | ||
7535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
7536 | { | |
7537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7538 | { | |
7539 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
7540 | result = (wxArrayString *) &_result_ref; | |
7541 | } | |
7542 | ||
7543 | wxPyEndAllowThreads(__tstate); | |
7544 | if (PyErr_Occurred()) SWIG_fail; | |
7545 | } | |
7546 | { | |
7547 | resultobj = wxArrayString2PyList_helper(*result); | |
7548 | } | |
7549 | return resultobj; | |
7550 | fail: | |
7551 | return NULL; | |
7552 | } | |
7553 | ||
7554 | ||
7555 | static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7556 | PyObject *resultobj; | |
7557 | wxChar *arg1 = (wxChar *) 0 ; | |
7558 | PyObject * obj0 = 0 ; | |
7559 | char *kwnames[] = { | |
7560 | (char *) "ts", NULL | |
7561 | }; | |
7562 | ||
7563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, |
7565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7566 | { |
7567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7568 | wxLog::SetTimestamp((wxChar const *)arg1); | |
7569 | ||
7570 | wxPyEndAllowThreads(__tstate); | |
7571 | if (PyErr_Occurred()) SWIG_fail; | |
7572 | } | |
7573 | Py_INCREF(Py_None); resultobj = Py_None; | |
7574 | return resultobj; | |
7575 | fail: | |
7576 | return NULL; | |
7577 | } | |
7578 | ||
7579 | ||
7580 | static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7581 | PyObject *resultobj; | |
7582 | bool result; | |
7583 | char *kwnames[] = { | |
7584 | NULL | |
7585 | }; | |
7586 | ||
7587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
7588 | { | |
7589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7590 | result = (bool)wxLog::GetVerbose(); | |
7591 | ||
7592 | wxPyEndAllowThreads(__tstate); | |
7593 | if (PyErr_Occurred()) SWIG_fail; | |
7594 | } | |
4f89f6a3 RD |
7595 | { |
7596 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7597 | } | |
d14a1e28 RD |
7598 | return resultobj; |
7599 | fail: | |
7600 | return NULL; | |
7601 | } | |
7602 | ||
7603 | ||
7604 | static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7605 | PyObject *resultobj; | |
7606 | wxTraceMask result; | |
7607 | char *kwnames[] = { | |
7608 | NULL | |
7609 | }; | |
7610 | ||
7611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
7612 | { | |
7613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7614 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
7615 | ||
7616 | wxPyEndAllowThreads(__tstate); | |
7617 | if (PyErr_Occurred()) SWIG_fail; | |
7618 | } | |
15afbcd0 | 7619 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7620 | return resultobj; |
7621 | fail: | |
7622 | return NULL; | |
7623 | } | |
7624 | ||
7625 | ||
7626 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7627 | PyObject *resultobj; | |
7628 | wxChar *arg1 = (wxChar *) 0 ; | |
7629 | bool result; | |
7630 | PyObject * obj0 = 0 ; | |
7631 | char *kwnames[] = { | |
7632 | (char *) "mask", NULL | |
7633 | }; | |
7634 | ||
7635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, |
7637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7638 | { |
7639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7640 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
7641 | ||
7642 | wxPyEndAllowThreads(__tstate); | |
7643 | if (PyErr_Occurred()) SWIG_fail; | |
7644 | } | |
4f89f6a3 RD |
7645 | { |
7646 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7647 | } | |
d14a1e28 RD |
7648 | return resultobj; |
7649 | fail: | |
7650 | return NULL; | |
7651 | } | |
7652 | ||
7653 | ||
7654 | static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7655 | PyObject *resultobj; | |
7656 | wxLogLevel result; | |
7657 | char *kwnames[] = { | |
7658 | NULL | |
7659 | }; | |
7660 | ||
7661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
7662 | { | |
7663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7664 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
7665 | ||
7666 | wxPyEndAllowThreads(__tstate); | |
7667 | if (PyErr_Occurred()) SWIG_fail; | |
7668 | } | |
15afbcd0 | 7669 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7670 | return resultobj; |
7671 | fail: | |
7672 | return NULL; | |
7673 | } | |
7674 | ||
7675 | ||
7676 | static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7677 | PyObject *resultobj; | |
7678 | wxChar *result; | |
7679 | char *kwnames[] = { | |
7680 | NULL | |
7681 | }; | |
7682 | ||
7683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
7684 | { | |
7685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7686 | result = (wxChar *)wxLog::GetTimestamp(); | |
7687 | ||
7688 | wxPyEndAllowThreads(__tstate); | |
7689 | if (PyErr_Occurred()) SWIG_fail; | |
7690 | } | |
15afbcd0 | 7691 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0); |
d14a1e28 RD |
7692 | return resultobj; |
7693 | fail: | |
7694 | return NULL; | |
7695 | } | |
7696 | ||
7697 | ||
7698 | static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7699 | PyObject *resultobj; | |
7700 | wxString result; | |
7701 | char *kwnames[] = { | |
7702 | NULL | |
7703 | }; | |
7704 | ||
7705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
7706 | { | |
7707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7708 | result = Log_TimeStamp(); | |
7709 | ||
7710 | wxPyEndAllowThreads(__tstate); | |
7711 | if (PyErr_Occurred()) SWIG_fail; | |
7712 | } | |
7713 | { | |
7714 | #if wxUSE_UNICODE | |
7715 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7716 | #else | |
7717 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7718 | #endif | |
7719 | } | |
7720 | return resultobj; | |
7721 | fail: | |
7722 | return NULL; | |
7723 | } | |
7724 | ||
7725 | ||
7726 | static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7727 | PyObject *resultobj; | |
7728 | wxLog *arg1 = (wxLog *) 0 ; | |
7729 | PyObject * obj0 = 0 ; | |
7730 | char *kwnames[] = { | |
7731 | (char *) "self", NULL | |
7732 | }; | |
7733 | ||
7734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
7736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7737 | { |
7738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7739 | wxLog_Destroy(arg1); | |
7740 | ||
7741 | wxPyEndAllowThreads(__tstate); | |
7742 | if (PyErr_Occurred()) SWIG_fail; | |
7743 | } | |
7744 | Py_INCREF(Py_None); resultobj = Py_None; | |
7745 | return resultobj; | |
7746 | fail: | |
7747 | return NULL; | |
7748 | } | |
7749 | ||
7750 | ||
7751 | static PyObject * Log_swigregister(PyObject *self, PyObject *args) { | |
7752 | PyObject *obj; | |
7753 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7754 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
7755 | Py_INCREF(obj); | |
7756 | return Py_BuildValue((char *)""); | |
7757 | } | |
7758 | static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7759 | PyObject *resultobj; | |
7760 | wxLogStderr *result; | |
7761 | char *kwnames[] = { | |
7762 | NULL | |
7763 | }; | |
7764 | ||
7765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
7766 | { | |
7767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7768 | result = (wxLogStderr *)new wxLogStderr(); | |
7769 | ||
7770 | wxPyEndAllowThreads(__tstate); | |
7771 | if (PyErr_Occurred()) SWIG_fail; | |
7772 | } | |
15afbcd0 | 7773 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1); |
d14a1e28 RD |
7774 | return resultobj; |
7775 | fail: | |
7776 | return NULL; | |
7777 | } | |
7778 | ||
7779 | ||
7780 | static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) { | |
7781 | PyObject *obj; | |
7782 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7783 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
7784 | Py_INCREF(obj); | |
7785 | return Py_BuildValue((char *)""); | |
7786 | } | |
7787 | static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7788 | PyObject *resultobj; | |
7789 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7790 | wxLogTextCtrl *result; | |
7791 | PyObject * obj0 = 0 ; | |
7792 | char *kwnames[] = { | |
7793 | (char *) "pTextCtrl", NULL | |
7794 | }; | |
7795 | ||
7796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7799 | { |
7800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7801 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
7802 | ||
7803 | wxPyEndAllowThreads(__tstate); | |
7804 | if (PyErr_Occurred()) SWIG_fail; | |
7805 | } | |
15afbcd0 | 7806 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1); |
d14a1e28 RD |
7807 | return resultobj; |
7808 | fail: | |
7809 | return NULL; | |
7810 | } | |
7811 | ||
7812 | ||
7813 | static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) { | |
7814 | PyObject *obj; | |
7815 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7816 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
7817 | Py_INCREF(obj); | |
7818 | return Py_BuildValue((char *)""); | |
7819 | } | |
7820 | static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7821 | PyObject *resultobj; | |
7822 | wxLogGui *result; | |
7823 | char *kwnames[] = { | |
7824 | NULL | |
7825 | }; | |
7826 | ||
7827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
7828 | { | |
7829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7830 | result = (wxLogGui *)new wxLogGui(); | |
7831 | ||
7832 | wxPyEndAllowThreads(__tstate); | |
7833 | if (PyErr_Occurred()) SWIG_fail; | |
7834 | } | |
15afbcd0 | 7835 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1); |
d14a1e28 RD |
7836 | return resultobj; |
7837 | fail: | |
7838 | return NULL; | |
7839 | } | |
7840 | ||
7841 | ||
7842 | static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) { | |
7843 | PyObject *obj; | |
7844 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7845 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
7846 | Py_INCREF(obj); | |
7847 | return Py_BuildValue((char *)""); | |
7848 | } | |
7849 | static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7850 | PyObject *resultobj; | |
7851 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7852 | wxString *arg2 = 0 ; | |
e811c8ce RD |
7853 | bool arg3 = (bool) True ; |
7854 | bool arg4 = (bool) True ; | |
d14a1e28 | 7855 | wxLogWindow *result; |
e811c8ce | 7856 | bool temp2 = False ; |
d14a1e28 RD |
7857 | PyObject * obj0 = 0 ; |
7858 | PyObject * obj1 = 0 ; | |
7859 | PyObject * obj2 = 0 ; | |
7860 | PyObject * obj3 = 0 ; | |
7861 | char *kwnames[] = { | |
7862 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
7863 | }; | |
7864 | ||
7865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
7866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, |
7867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7868 | { |
7869 | arg2 = wxString_in_helper(obj1); | |
7870 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7871 | temp2 = True; |
d14a1e28 RD |
7872 | } |
7873 | if (obj2) { | |
15afbcd0 RD |
7874 | arg3 = (bool) SWIG_AsBool(obj2); |
7875 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7876 | } |
7877 | if (obj3) { | |
15afbcd0 RD |
7878 | arg4 = (bool) SWIG_AsBool(obj3); |
7879 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7880 | } |
7881 | { | |
7882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7883 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
7884 | ||
7885 | wxPyEndAllowThreads(__tstate); | |
7886 | if (PyErr_Occurred()) SWIG_fail; | |
7887 | } | |
15afbcd0 | 7888 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1); |
d14a1e28 RD |
7889 | { |
7890 | if (temp2) | |
7891 | delete arg2; | |
7892 | } | |
7893 | return resultobj; | |
7894 | fail: | |
7895 | { | |
7896 | if (temp2) | |
7897 | delete arg2; | |
7898 | } | |
7899 | return NULL; | |
7900 | } | |
7901 | ||
7902 | ||
7903 | static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7904 | PyObject *resultobj; | |
7905 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
e811c8ce | 7906 | bool arg2 = (bool) True ; |
d14a1e28 RD |
7907 | PyObject * obj0 = 0 ; |
7908 | PyObject * obj1 = 0 ; | |
7909 | char *kwnames[] = { | |
7910 | (char *) "self",(char *) "bShow", NULL | |
7911 | }; | |
7912 | ||
7913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 7916 | if (obj1) { |
15afbcd0 RD |
7917 | arg2 = (bool) SWIG_AsBool(obj1); |
7918 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7919 | } |
7920 | { | |
7921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7922 | (arg1)->Show(arg2); | |
7923 | ||
7924 | wxPyEndAllowThreads(__tstate); | |
7925 | if (PyErr_Occurred()) SWIG_fail; | |
7926 | } | |
7927 | Py_INCREF(Py_None); resultobj = Py_None; | |
7928 | return resultobj; | |
7929 | fail: | |
7930 | return NULL; | |
7931 | } | |
7932 | ||
7933 | ||
7934 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7935 | PyObject *resultobj; | |
7936 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7937 | wxFrame *result; | |
7938 | PyObject * obj0 = 0 ; | |
7939 | char *kwnames[] = { | |
7940 | (char *) "self", NULL | |
7941 | }; | |
7942 | ||
7943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7946 | { |
7947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7948 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
7949 | ||
7950 | wxPyEndAllowThreads(__tstate); | |
7951 | if (PyErr_Occurred()) SWIG_fail; | |
7952 | } | |
7953 | { | |
7954 | resultobj = wxPyMake_wxObject(result); | |
7955 | } | |
7956 | return resultobj; | |
7957 | fail: | |
7958 | return NULL; | |
7959 | } | |
7960 | ||
7961 | ||
7962 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7963 | PyObject *resultobj; | |
7964 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7965 | wxLog *result; | |
7966 | PyObject * obj0 = 0 ; | |
7967 | char *kwnames[] = { | |
7968 | (char *) "self", NULL | |
7969 | }; | |
7970 | ||
7971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7974 | { |
7975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7976 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
7977 | ||
7978 | wxPyEndAllowThreads(__tstate); | |
7979 | if (PyErr_Occurred()) SWIG_fail; | |
7980 | } | |
15afbcd0 | 7981 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
7982 | return resultobj; |
7983 | fail: | |
7984 | return NULL; | |
7985 | } | |
7986 | ||
7987 | ||
7988 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7989 | PyObject *resultobj; | |
7990 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7991 | bool result; | |
7992 | PyObject * obj0 = 0 ; | |
7993 | char *kwnames[] = { | |
7994 | (char *) "self", NULL | |
7995 | }; | |
7996 | ||
7997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
7999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8000 | { |
8001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8002 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
8003 | ||
8004 | wxPyEndAllowThreads(__tstate); | |
8005 | if (PyErr_Occurred()) SWIG_fail; | |
8006 | } | |
4f89f6a3 RD |
8007 | { |
8008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8009 | } | |
d14a1e28 RD |
8010 | return resultobj; |
8011 | fail: | |
8012 | return NULL; | |
8013 | } | |
8014 | ||
8015 | ||
8016 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8017 | PyObject *resultobj; | |
8018 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8019 | bool arg2 ; | |
8020 | PyObject * obj0 = 0 ; | |
8021 | PyObject * obj1 = 0 ; | |
8022 | char *kwnames[] = { | |
8023 | (char *) "self",(char *) "bDoPass", NULL | |
8024 | }; | |
8025 | ||
8026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, |
8028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8029 | arg2 = (bool) SWIG_AsBool(obj1); | |
8030 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8031 | { |
8032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8033 | (arg1)->PassMessages(arg2); | |
8034 | ||
8035 | wxPyEndAllowThreads(__tstate); | |
8036 | if (PyErr_Occurred()) SWIG_fail; | |
8037 | } | |
8038 | Py_INCREF(Py_None); resultobj = Py_None; | |
8039 | return resultobj; | |
8040 | fail: | |
8041 | return NULL; | |
8042 | } | |
8043 | ||
8044 | ||
8045 | static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) { | |
8046 | PyObject *obj; | |
8047 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8048 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
8049 | Py_INCREF(obj); | |
8050 | return Py_BuildValue((char *)""); | |
8051 | } | |
8052 | static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8053 | PyObject *resultobj; | |
8054 | wxLog *arg1 = (wxLog *) 0 ; | |
8055 | wxLogChain *result; | |
8056 | PyObject * obj0 = 0 ; | |
8057 | char *kwnames[] = { | |
8058 | (char *) "logger", NULL | |
8059 | }; | |
8060 | ||
8061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, |
8063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8064 | { |
8065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8066 | result = (wxLogChain *)new wxLogChain(arg1); | |
8067 | ||
8068 | wxPyEndAllowThreads(__tstate); | |
8069 | if (PyErr_Occurred()) SWIG_fail; | |
8070 | } | |
15afbcd0 | 8071 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1); |
d14a1e28 RD |
8072 | return resultobj; |
8073 | fail: | |
8074 | return NULL; | |
8075 | } | |
8076 | ||
8077 | ||
8078 | static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8079 | PyObject *resultobj; | |
8080 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8081 | wxLog *arg2 = (wxLog *) 0 ; | |
8082 | PyObject * obj0 = 0 ; | |
8083 | PyObject * obj1 = 0 ; | |
8084 | char *kwnames[] = { | |
8085 | (char *) "self",(char *) "logger", NULL | |
8086 | }; | |
8087 | ||
8088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
8090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8091 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog, | |
8092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8093 | { |
8094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8095 | (arg1)->SetLog(arg2); | |
8096 | ||
8097 | wxPyEndAllowThreads(__tstate); | |
8098 | if (PyErr_Occurred()) SWIG_fail; | |
8099 | } | |
8100 | Py_INCREF(Py_None); resultobj = Py_None; | |
8101 | return resultobj; | |
8102 | fail: | |
8103 | return NULL; | |
8104 | } | |
8105 | ||
8106 | ||
8107 | static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8108 | PyObject *resultobj; | |
8109 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8110 | bool arg2 ; | |
8111 | PyObject * obj0 = 0 ; | |
8112 | PyObject * obj1 = 0 ; | |
8113 | char *kwnames[] = { | |
8114 | (char *) "self",(char *) "bDoPass", NULL | |
8115 | }; | |
8116 | ||
8117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
8119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8120 | arg2 = (bool) SWIG_AsBool(obj1); | |
8121 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8122 | { |
8123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8124 | (arg1)->PassMessages(arg2); | |
8125 | ||
8126 | wxPyEndAllowThreads(__tstate); | |
8127 | if (PyErr_Occurred()) SWIG_fail; | |
8128 | } | |
8129 | Py_INCREF(Py_None); resultobj = Py_None; | |
8130 | return resultobj; | |
8131 | fail: | |
8132 | return NULL; | |
8133 | } | |
8134 | ||
8135 | ||
8136 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8137 | PyObject *resultobj; | |
8138 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8139 | bool result; | |
8140 | PyObject * obj0 = 0 ; | |
8141 | char *kwnames[] = { | |
8142 | (char *) "self", NULL | |
8143 | }; | |
8144 | ||
8145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
8147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8148 | { |
8149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8150 | result = (bool)(arg1)->IsPassingMessages(); | |
8151 | ||
8152 | wxPyEndAllowThreads(__tstate); | |
8153 | if (PyErr_Occurred()) SWIG_fail; | |
8154 | } | |
4f89f6a3 RD |
8155 | { |
8156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8157 | } | |
d14a1e28 RD |
8158 | return resultobj; |
8159 | fail: | |
8160 | return NULL; | |
8161 | } | |
8162 | ||
8163 | ||
8164 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8165 | PyObject *resultobj; | |
8166 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8167 | wxLog *result; | |
8168 | PyObject * obj0 = 0 ; | |
8169 | char *kwnames[] = { | |
8170 | (char *) "self", NULL | |
8171 | }; | |
8172 | ||
8173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, |
8175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8176 | { |
8177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8178 | result = (wxLog *)(arg1)->GetOldLog(); | |
8179 | ||
8180 | wxPyEndAllowThreads(__tstate); | |
8181 | if (PyErr_Occurred()) SWIG_fail; | |
8182 | } | |
15afbcd0 | 8183 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); |
d14a1e28 RD |
8184 | return resultobj; |
8185 | fail: | |
8186 | return NULL; | |
8187 | } | |
8188 | ||
8189 | ||
8190 | static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) { | |
8191 | PyObject *obj; | |
8192 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8193 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
8194 | Py_INCREF(obj); | |
8195 | return Py_BuildValue((char *)""); | |
8196 | } | |
8197 | static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8198 | PyObject *resultobj; | |
8199 | unsigned long result; | |
8200 | char *kwnames[] = { | |
8201 | NULL | |
8202 | }; | |
8203 | ||
8204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
8205 | { | |
8206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8207 | result = (unsigned long)wxSysErrorCode(); | |
8208 | ||
8209 | wxPyEndAllowThreads(__tstate); | |
8210 | if (PyErr_Occurred()) SWIG_fail; | |
8211 | } | |
15afbcd0 | 8212 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
8213 | return resultobj; |
8214 | fail: | |
8215 | return NULL; | |
8216 | } | |
8217 | ||
8218 | ||
8219 | static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8220 | PyObject *resultobj; | |
8221 | unsigned long arg1 = (unsigned long) 0 ; | |
8222 | wxString result; | |
8223 | PyObject * obj0 = 0 ; | |
8224 | char *kwnames[] = { | |
8225 | (char *) "nErrCode", NULL | |
8226 | }; | |
8227 | ||
8228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
8229 | if (obj0) { | |
15afbcd0 RD |
8230 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
8231 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8232 | } |
8233 | { | |
8234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8235 | result = wxSysErrorMsg(arg1); | |
8236 | ||
8237 | wxPyEndAllowThreads(__tstate); | |
8238 | if (PyErr_Occurred()) SWIG_fail; | |
8239 | } | |
8240 | { | |
8241 | #if wxUSE_UNICODE | |
8242 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8243 | #else | |
8244 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8245 | #endif | |
8246 | } | |
8247 | return resultobj; | |
8248 | fail: | |
8249 | return NULL; | |
8250 | } | |
8251 | ||
8252 | ||
8253 | static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8254 | PyObject *resultobj; | |
8255 | wxString *arg1 = 0 ; | |
e811c8ce | 8256 | bool temp1 = False ; |
d14a1e28 RD |
8257 | PyObject * obj0 = 0 ; |
8258 | char *kwnames[] = { | |
8259 | (char *) "msg", NULL | |
8260 | }; | |
8261 | ||
8262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
8263 | { | |
8264 | arg1 = wxString_in_helper(obj0); | |
8265 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8266 | temp1 = True; |
d14a1e28 RD |
8267 | } |
8268 | { | |
8269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8270 | wxLogFatalError((wxString const &)*arg1); | |
8271 | ||
8272 | wxPyEndAllowThreads(__tstate); | |
8273 | if (PyErr_Occurred()) SWIG_fail; | |
8274 | } | |
8275 | Py_INCREF(Py_None); resultobj = Py_None; | |
8276 | { | |
8277 | if (temp1) | |
8278 | delete arg1; | |
8279 | } | |
8280 | return resultobj; | |
8281 | fail: | |
8282 | { | |
8283 | if (temp1) | |
8284 | delete arg1; | |
8285 | } | |
8286 | return NULL; | |
8287 | } | |
8288 | ||
8289 | ||
8290 | static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8291 | PyObject *resultobj; | |
8292 | wxString *arg1 = 0 ; | |
e811c8ce | 8293 | bool temp1 = False ; |
d14a1e28 RD |
8294 | PyObject * obj0 = 0 ; |
8295 | char *kwnames[] = { | |
8296 | (char *) "msg", NULL | |
8297 | }; | |
8298 | ||
8299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
8300 | { | |
8301 | arg1 = wxString_in_helper(obj0); | |
8302 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8303 | temp1 = True; |
d14a1e28 RD |
8304 | } |
8305 | { | |
8306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8307 | wxLogError((wxString const &)*arg1); | |
8308 | ||
8309 | wxPyEndAllowThreads(__tstate); | |
8310 | if (PyErr_Occurred()) SWIG_fail; | |
8311 | } | |
8312 | Py_INCREF(Py_None); resultobj = Py_None; | |
8313 | { | |
8314 | if (temp1) | |
8315 | delete arg1; | |
8316 | } | |
8317 | return resultobj; | |
8318 | fail: | |
8319 | { | |
8320 | if (temp1) | |
8321 | delete arg1; | |
8322 | } | |
8323 | return NULL; | |
8324 | } | |
8325 | ||
8326 | ||
8327 | static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8328 | PyObject *resultobj; | |
8329 | wxString *arg1 = 0 ; | |
e811c8ce | 8330 | bool temp1 = False ; |
d14a1e28 RD |
8331 | PyObject * obj0 = 0 ; |
8332 | char *kwnames[] = { | |
8333 | (char *) "msg", NULL | |
8334 | }; | |
8335 | ||
8336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
8337 | { | |
8338 | arg1 = wxString_in_helper(obj0); | |
8339 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8340 | temp1 = True; |
d14a1e28 RD |
8341 | } |
8342 | { | |
8343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8344 | wxLogWarning((wxString const &)*arg1); | |
8345 | ||
8346 | wxPyEndAllowThreads(__tstate); | |
8347 | if (PyErr_Occurred()) SWIG_fail; | |
8348 | } | |
8349 | Py_INCREF(Py_None); resultobj = Py_None; | |
8350 | { | |
8351 | if (temp1) | |
8352 | delete arg1; | |
8353 | } | |
8354 | return resultobj; | |
8355 | fail: | |
8356 | { | |
8357 | if (temp1) | |
8358 | delete arg1; | |
8359 | } | |
8360 | return NULL; | |
8361 | } | |
8362 | ||
8363 | ||
8364 | static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8365 | PyObject *resultobj; | |
8366 | wxString *arg1 = 0 ; | |
e811c8ce | 8367 | bool temp1 = False ; |
d14a1e28 RD |
8368 | PyObject * obj0 = 0 ; |
8369 | char *kwnames[] = { | |
8370 | (char *) "msg", NULL | |
8371 | }; | |
8372 | ||
8373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
8374 | { | |
8375 | arg1 = wxString_in_helper(obj0); | |
8376 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8377 | temp1 = True; |
d14a1e28 RD |
8378 | } |
8379 | { | |
8380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8381 | wxLogMessage((wxString const &)*arg1); | |
8382 | ||
8383 | wxPyEndAllowThreads(__tstate); | |
8384 | if (PyErr_Occurred()) SWIG_fail; | |
8385 | } | |
8386 | Py_INCREF(Py_None); resultobj = Py_None; | |
8387 | { | |
8388 | if (temp1) | |
8389 | delete arg1; | |
8390 | } | |
8391 | return resultobj; | |
8392 | fail: | |
8393 | { | |
8394 | if (temp1) | |
8395 | delete arg1; | |
8396 | } | |
8397 | return NULL; | |
8398 | } | |
8399 | ||
8400 | ||
8401 | static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8402 | PyObject *resultobj; | |
8403 | wxString *arg1 = 0 ; | |
e811c8ce | 8404 | bool temp1 = False ; |
d14a1e28 RD |
8405 | PyObject * obj0 = 0 ; |
8406 | char *kwnames[] = { | |
8407 | (char *) "msg", NULL | |
8408 | }; | |
8409 | ||
8410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
8411 | { | |
8412 | arg1 = wxString_in_helper(obj0); | |
8413 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8414 | temp1 = True; |
d14a1e28 RD |
8415 | } |
8416 | { | |
8417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8418 | wxLogInfo((wxString const &)*arg1); | |
8419 | ||
8420 | wxPyEndAllowThreads(__tstate); | |
8421 | if (PyErr_Occurred()) SWIG_fail; | |
8422 | } | |
8423 | Py_INCREF(Py_None); resultobj = Py_None; | |
8424 | { | |
8425 | if (temp1) | |
8426 | delete arg1; | |
8427 | } | |
8428 | return resultobj; | |
8429 | fail: | |
8430 | { | |
8431 | if (temp1) | |
8432 | delete arg1; | |
8433 | } | |
8434 | return NULL; | |
8435 | } | |
8436 | ||
8437 | ||
8438 | static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8439 | PyObject *resultobj; | |
8440 | wxString *arg1 = 0 ; | |
e811c8ce | 8441 | bool temp1 = False ; |
d14a1e28 RD |
8442 | PyObject * obj0 = 0 ; |
8443 | char *kwnames[] = { | |
8444 | (char *) "msg", NULL | |
8445 | }; | |
8446 | ||
8447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
8448 | { | |
8449 | arg1 = wxString_in_helper(obj0); | |
8450 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8451 | temp1 = True; |
d14a1e28 RD |
8452 | } |
8453 | { | |
8454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8455 | wxLogDebug((wxString const &)*arg1); | |
8456 | ||
8457 | wxPyEndAllowThreads(__tstate); | |
8458 | if (PyErr_Occurred()) SWIG_fail; | |
8459 | } | |
8460 | Py_INCREF(Py_None); resultobj = Py_None; | |
8461 | { | |
8462 | if (temp1) | |
8463 | delete arg1; | |
8464 | } | |
8465 | return resultobj; | |
8466 | fail: | |
8467 | { | |
8468 | if (temp1) | |
8469 | delete arg1; | |
8470 | } | |
8471 | return NULL; | |
8472 | } | |
8473 | ||
8474 | ||
8475 | static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8476 | PyObject *resultobj; | |
8477 | wxString *arg1 = 0 ; | |
e811c8ce | 8478 | bool temp1 = False ; |
d14a1e28 RD |
8479 | PyObject * obj0 = 0 ; |
8480 | char *kwnames[] = { | |
8481 | (char *) "msg", NULL | |
8482 | }; | |
8483 | ||
8484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
8485 | { | |
8486 | arg1 = wxString_in_helper(obj0); | |
8487 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8488 | temp1 = True; |
d14a1e28 RD |
8489 | } |
8490 | { | |
8491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8492 | wxLogVerbose((wxString const &)*arg1); | |
8493 | ||
8494 | wxPyEndAllowThreads(__tstate); | |
8495 | if (PyErr_Occurred()) SWIG_fail; | |
8496 | } | |
8497 | Py_INCREF(Py_None); resultobj = Py_None; | |
8498 | { | |
8499 | if (temp1) | |
8500 | delete arg1; | |
8501 | } | |
8502 | return resultobj; | |
8503 | fail: | |
8504 | { | |
8505 | if (temp1) | |
8506 | delete arg1; | |
8507 | } | |
8508 | return NULL; | |
8509 | } | |
8510 | ||
8511 | ||
8512 | static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8513 | PyObject *resultobj; | |
8514 | wxString *arg1 = 0 ; | |
e811c8ce | 8515 | bool temp1 = False ; |
d14a1e28 RD |
8516 | PyObject * obj0 = 0 ; |
8517 | char *kwnames[] = { | |
8518 | (char *) "msg", NULL | |
8519 | }; | |
8520 | ||
8521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
8522 | { | |
8523 | arg1 = wxString_in_helper(obj0); | |
8524 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8525 | temp1 = True; |
d14a1e28 RD |
8526 | } |
8527 | { | |
8528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8529 | wxLogStatus((wxString const &)*arg1); | |
8530 | ||
8531 | wxPyEndAllowThreads(__tstate); | |
8532 | if (PyErr_Occurred()) SWIG_fail; | |
8533 | } | |
8534 | Py_INCREF(Py_None); resultobj = Py_None; | |
8535 | { | |
8536 | if (temp1) | |
8537 | delete arg1; | |
8538 | } | |
8539 | return resultobj; | |
8540 | fail: | |
8541 | { | |
8542 | if (temp1) | |
8543 | delete arg1; | |
8544 | } | |
8545 | return NULL; | |
8546 | } | |
8547 | ||
8548 | ||
8549 | static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8550 | PyObject *resultobj; | |
8551 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8552 | wxString *arg2 = 0 ; | |
e811c8ce | 8553 | bool temp2 = False ; |
d14a1e28 RD |
8554 | PyObject * obj0 = 0 ; |
8555 | PyObject * obj1 = 0 ; | |
8556 | char *kwnames[] = { | |
8557 | (char *) "pFrame",(char *) "msg", NULL | |
8558 | }; | |
8559 | ||
8560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, |
8562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8563 | { |
8564 | arg2 = wxString_in_helper(obj1); | |
8565 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8566 | temp2 = True; |
d14a1e28 RD |
8567 | } |
8568 | { | |
8569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8570 | wxLogStatus(arg1,(wxString const &)*arg2); | |
8571 | ||
8572 | wxPyEndAllowThreads(__tstate); | |
8573 | if (PyErr_Occurred()) SWIG_fail; | |
8574 | } | |
8575 | Py_INCREF(Py_None); resultobj = Py_None; | |
8576 | { | |
8577 | if (temp2) | |
8578 | delete arg2; | |
8579 | } | |
8580 | return resultobj; | |
8581 | fail: | |
8582 | { | |
8583 | if (temp2) | |
8584 | delete arg2; | |
8585 | } | |
8586 | return NULL; | |
8587 | } | |
8588 | ||
8589 | ||
8590 | static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8591 | PyObject *resultobj; | |
8592 | wxString *arg1 = 0 ; | |
e811c8ce | 8593 | bool temp1 = False ; |
d14a1e28 RD |
8594 | PyObject * obj0 = 0 ; |
8595 | char *kwnames[] = { | |
8596 | (char *) "msg", NULL | |
8597 | }; | |
8598 | ||
8599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
8600 | { | |
8601 | arg1 = wxString_in_helper(obj0); | |
8602 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8603 | temp1 = True; |
d14a1e28 RD |
8604 | } |
8605 | { | |
8606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8607 | wxLogSysError((wxString const &)*arg1); | |
8608 | ||
8609 | wxPyEndAllowThreads(__tstate); | |
8610 | if (PyErr_Occurred()) SWIG_fail; | |
8611 | } | |
8612 | Py_INCREF(Py_None); resultobj = Py_None; | |
8613 | { | |
8614 | if (temp1) | |
8615 | delete arg1; | |
8616 | } | |
8617 | return resultobj; | |
8618 | fail: | |
8619 | { | |
8620 | if (temp1) | |
8621 | delete arg1; | |
8622 | } | |
8623 | return NULL; | |
8624 | } | |
8625 | ||
8626 | ||
cc6dd355 | 8627 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 | 8628 | PyObject *resultobj; |
cc6dd355 RD |
8629 | unsigned long arg1 ; |
8630 | wxString *arg2 = 0 ; | |
8631 | bool temp2 = False ; | |
d14a1e28 | 8632 | PyObject * obj0 = 0 ; |
cc6dd355 | 8633 | PyObject * obj1 = 0 ; |
d14a1e28 | 8634 | |
cc6dd355 | 8635 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8636 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
8637 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 8638 | { |
cc6dd355 RD |
8639 | arg2 = wxString_in_helper(obj1); |
8640 | if (arg2 == NULL) SWIG_fail; | |
8641 | temp2 = True; | |
d14a1e28 RD |
8642 | } |
8643 | { | |
8644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
cc6dd355 | 8645 | wxLogTrace(arg1,(wxString const &)*arg2); |
d14a1e28 RD |
8646 | |
8647 | wxPyEndAllowThreads(__tstate); | |
8648 | if (PyErr_Occurred()) SWIG_fail; | |
8649 | } | |
8650 | Py_INCREF(Py_None); resultobj = Py_None; | |
8651 | { | |
cc6dd355 RD |
8652 | if (temp2) |
8653 | delete arg2; | |
d14a1e28 RD |
8654 | } |
8655 | return resultobj; | |
8656 | fail: | |
8657 | { | |
cc6dd355 RD |
8658 | if (temp2) |
8659 | delete arg2; | |
d14a1e28 RD |
8660 | } |
8661 | return NULL; | |
8662 | } | |
8663 | ||
8664 | ||
cc6dd355 | 8665 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
8666 | PyObject *resultobj; |
8667 | wxString *arg1 = 0 ; | |
8668 | wxString *arg2 = 0 ; | |
e811c8ce RD |
8669 | bool temp1 = False ; |
8670 | bool temp2 = False ; | |
d14a1e28 RD |
8671 | PyObject * obj0 = 0 ; |
8672 | PyObject * obj1 = 0 ; | |
d14a1e28 | 8673 | |
cc6dd355 | 8674 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
8675 | { |
8676 | arg1 = wxString_in_helper(obj0); | |
8677 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8678 | temp1 = True; |
d14a1e28 RD |
8679 | } |
8680 | { | |
8681 | arg2 = wxString_in_helper(obj1); | |
8682 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8683 | temp2 = True; |
d14a1e28 RD |
8684 | } |
8685 | { | |
8686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8687 | wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); | |
8688 | ||
8689 | wxPyEndAllowThreads(__tstate); | |
8690 | if (PyErr_Occurred()) SWIG_fail; | |
8691 | } | |
8692 | Py_INCREF(Py_None); resultobj = Py_None; | |
8693 | { | |
8694 | if (temp1) | |
8695 | delete arg1; | |
8696 | } | |
8697 | { | |
8698 | if (temp2) | |
8699 | delete arg2; | |
8700 | } | |
8701 | return resultobj; | |
8702 | fail: | |
8703 | { | |
8704 | if (temp1) | |
8705 | delete arg1; | |
8706 | } | |
8707 | { | |
8708 | if (temp2) | |
8709 | delete arg2; | |
8710 | } | |
8711 | return NULL; | |
8712 | } | |
8713 | ||
8714 | ||
cc6dd355 RD |
8715 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { |
8716 | int argc; | |
8717 | PyObject *argv[3]; | |
8718 | int ii; | |
8719 | ||
8720 | argc = PyObject_Length(args); | |
8721 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
8722 | argv[ii] = PyTuple_GetItem(args,ii); | |
8723 | } | |
8724 | if (argc == 2) { | |
8725 | int _v; | |
8726 | { | |
4d5c3d91 | 8727 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
cc6dd355 RD |
8728 | } |
8729 | if (_v) { | |
8730 | { | |
4d5c3d91 | 8731 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
cc6dd355 RD |
8732 | } |
8733 | if (_v) { | |
8734 | return _wrap_LogTrace__SWIG_1(self,args); | |
8735 | } | |
8736 | } | |
8737 | } | |
8738 | if (argc == 2) { | |
8739 | int _v; | |
15afbcd0 | 8740 | _v = SWIG_CheckUnsignedLong(argv[0]); |
cc6dd355 RD |
8741 | if (_v) { |
8742 | { | |
4d5c3d91 | 8743 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
cc6dd355 RD |
8744 | } |
8745 | if (_v) { | |
8746 | return _wrap_LogTrace__SWIG_0(self,args); | |
8747 | } | |
8748 | } | |
8749 | } | |
8750 | ||
8751 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
8752 | return NULL; | |
8753 | } | |
8754 | ||
8755 | ||
d14a1e28 RD |
8756 | static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { |
8757 | PyObject *resultobj; | |
8758 | unsigned long arg1 ; | |
8759 | wxString *arg2 = 0 ; | |
e811c8ce | 8760 | bool temp2 = False ; |
d14a1e28 RD |
8761 | PyObject * obj0 = 0 ; |
8762 | PyObject * obj1 = 0 ; | |
8763 | char *kwnames[] = { | |
8764 | (char *) "level",(char *) "msg", NULL | |
8765 | }; | |
8766 | ||
8767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8768 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
8769 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8770 | { |
8771 | arg2 = wxString_in_helper(obj1); | |
8772 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8773 | temp2 = True; |
d14a1e28 RD |
8774 | } |
8775 | { | |
8776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8777 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
8778 | ||
8779 | wxPyEndAllowThreads(__tstate); | |
8780 | if (PyErr_Occurred()) SWIG_fail; | |
8781 | } | |
8782 | Py_INCREF(Py_None); resultobj = Py_None; | |
8783 | { | |
8784 | if (temp2) | |
8785 | delete arg2; | |
8786 | } | |
8787 | return resultobj; | |
8788 | fail: | |
8789 | { | |
8790 | if (temp2) | |
8791 | delete arg2; | |
8792 | } | |
8793 | return NULL; | |
8794 | } | |
8795 | ||
8796 | ||
8797 | static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8798 | PyObject *resultobj; | |
8799 | wxString *arg1 = 0 ; | |
8800 | wxString *arg2 = 0 ; | |
e811c8ce RD |
8801 | bool temp1 = False ; |
8802 | bool temp2 = False ; | |
d14a1e28 RD |
8803 | PyObject * obj0 = 0 ; |
8804 | PyObject * obj1 = 0 ; | |
8805 | char *kwnames[] = { | |
8806 | (char *) "title",(char *) "text", NULL | |
8807 | }; | |
8808 | ||
8809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
8810 | { | |
8811 | arg1 = wxString_in_helper(obj0); | |
8812 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8813 | temp1 = True; |
d14a1e28 RD |
8814 | } |
8815 | { | |
8816 | arg2 = wxString_in_helper(obj1); | |
8817 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8818 | temp2 = True; |
d14a1e28 RD |
8819 | } |
8820 | { | |
8821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8822 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
8823 | ||
8824 | wxPyEndAllowThreads(__tstate); | |
8825 | if (PyErr_Occurred()) SWIG_fail; | |
8826 | } | |
8827 | Py_INCREF(Py_None); resultobj = Py_None; | |
8828 | { | |
8829 | if (temp1) | |
8830 | delete arg1; | |
8831 | } | |
8832 | { | |
8833 | if (temp2) | |
8834 | delete arg2; | |
8835 | } | |
8836 | return resultobj; | |
8837 | fail: | |
8838 | { | |
8839 | if (temp1) | |
8840 | delete arg1; | |
8841 | } | |
8842 | { | |
8843 | if (temp2) | |
8844 | delete arg2; | |
8845 | } | |
8846 | return NULL; | |
8847 | } | |
8848 | ||
8849 | ||
8850 | static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8851 | PyObject *resultobj; | |
8852 | wxLogNull *result; | |
8853 | char *kwnames[] = { | |
8854 | NULL | |
8855 | }; | |
8856 | ||
8857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
8858 | { | |
8859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8860 | result = (wxLogNull *)new wxLogNull(); | |
8861 | ||
8862 | wxPyEndAllowThreads(__tstate); | |
8863 | if (PyErr_Occurred()) SWIG_fail; | |
8864 | } | |
15afbcd0 | 8865 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1); |
d14a1e28 RD |
8866 | return resultobj; |
8867 | fail: | |
8868 | return NULL; | |
8869 | } | |
8870 | ||
8871 | ||
8872 | static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8873 | PyObject *resultobj; | |
8874 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
8875 | PyObject * obj0 = 0 ; | |
8876 | char *kwnames[] = { | |
8877 | (char *) "self", NULL | |
8878 | }; | |
8879 | ||
8880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull, |
8882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8883 | { |
8884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8885 | delete arg1; | |
8886 | ||
8887 | wxPyEndAllowThreads(__tstate); | |
8888 | if (PyErr_Occurred()) SWIG_fail; | |
8889 | } | |
8890 | Py_INCREF(Py_None); resultobj = Py_None; | |
8891 | return resultobj; | |
8892 | fail: | |
8893 | return NULL; | |
8894 | } | |
8895 | ||
8896 | ||
8897 | static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) { | |
8898 | PyObject *obj; | |
8899 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8900 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
8901 | Py_INCREF(obj); | |
8902 | return Py_BuildValue((char *)""); | |
8903 | } | |
8904 | static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8905 | PyObject *resultobj; | |
8906 | wxPyLog *result; | |
8907 | char *kwnames[] = { | |
8908 | NULL | |
8909 | }; | |
8910 | ||
8911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
8912 | { | |
8913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8914 | result = (wxPyLog *)new wxPyLog(); | |
8915 | ||
8916 | wxPyEndAllowThreads(__tstate); | |
8917 | if (PyErr_Occurred()) SWIG_fail; | |
8918 | } | |
15afbcd0 | 8919 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1); |
d14a1e28 RD |
8920 | return resultobj; |
8921 | fail: | |
8922 | return NULL; | |
8923 | } | |
8924 | ||
8925 | ||
8926 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8927 | PyObject *resultobj; | |
8928 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
8929 | PyObject *arg2 = (PyObject *) 0 ; | |
8930 | PyObject *arg3 = (PyObject *) 0 ; | |
8931 | PyObject * obj0 = 0 ; | |
8932 | PyObject * obj1 = 0 ; | |
8933 | PyObject * obj2 = 0 ; | |
8934 | char *kwnames[] = { | |
8935 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8936 | }; | |
8937 | ||
8938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
8939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog, |
8940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8941 | arg2 = obj1; |
8942 | arg3 = obj2; | |
8943 | { | |
8944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8945 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8946 | ||
8947 | wxPyEndAllowThreads(__tstate); | |
8948 | if (PyErr_Occurred()) SWIG_fail; | |
8949 | } | |
8950 | Py_INCREF(Py_None); resultobj = Py_None; | |
8951 | return resultobj; | |
8952 | fail: | |
8953 | return NULL; | |
8954 | } | |
8955 | ||
8956 | ||
8957 | static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) { | |
8958 | PyObject *obj; | |
8959 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8960 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
8961 | Py_INCREF(obj); | |
8962 | return Py_BuildValue((char *)""); | |
8963 | } | |
8964 | static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8965 | PyObject *resultobj; | |
8966 | int arg1 ; | |
8967 | int arg2 = (int) wxSIGTERM ; | |
8968 | int result; | |
994141e6 RD |
8969 | PyObject * obj0 = 0 ; |
8970 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8971 | char *kwnames[] = { |
8972 | (char *) "pid",(char *) "sig", NULL | |
8973 | }; | |
8974 | ||
994141e6 | 8975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8976 | arg1 = (int) SWIG_AsInt(obj0); |
8977 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8978 | if (obj1) { |
15afbcd0 RD |
8979 | arg2 = (wxSignal) SWIG_AsInt(obj1); |
8980 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8981 | } |
d14a1e28 RD |
8982 | { |
8983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8984 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
8985 | ||
8986 | wxPyEndAllowThreads(__tstate); | |
8987 | if (PyErr_Occurred()) SWIG_fail; | |
8988 | } | |
15afbcd0 | 8989 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8990 | return resultobj; |
8991 | fail: | |
8992 | return NULL; | |
8993 | } | |
8994 | ||
8995 | ||
8996 | static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8997 | PyObject *resultobj; | |
8998 | int arg1 ; | |
8999 | bool result; | |
994141e6 | 9000 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9001 | char *kwnames[] = { |
9002 | (char *) "pid", NULL | |
9003 | }; | |
9004 | ||
994141e6 | 9005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
9006 | arg1 = (int) SWIG_AsInt(obj0); |
9007 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9008 | { |
9009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9010 | result = (bool)wxPyProcess::Exists(arg1); | |
9011 | ||
9012 | wxPyEndAllowThreads(__tstate); | |
9013 | if (PyErr_Occurred()) SWIG_fail; | |
9014 | } | |
4f89f6a3 RD |
9015 | { |
9016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9017 | } | |
d14a1e28 RD |
9018 | return resultobj; |
9019 | fail: | |
9020 | return NULL; | |
9021 | } | |
9022 | ||
9023 | ||
9024 | static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9025 | PyObject *resultobj; | |
9026 | wxString *arg1 = 0 ; | |
9027 | int arg2 = (int) wxEXEC_ASYNC ; | |
9028 | wxPyProcess *result; | |
e811c8ce | 9029 | bool temp1 = False ; |
d14a1e28 | 9030 | PyObject * obj0 = 0 ; |
994141e6 | 9031 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9032 | char *kwnames[] = { |
9033 | (char *) "cmd",(char *) "flags", NULL | |
9034 | }; | |
9035 | ||
994141e6 | 9036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
9037 | { |
9038 | arg1 = wxString_in_helper(obj0); | |
9039 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9040 | temp1 = True; |
d14a1e28 | 9041 | } |
994141e6 | 9042 | if (obj1) { |
15afbcd0 RD |
9043 | arg2 = (int) SWIG_AsInt(obj1); |
9044 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9045 | } |
d14a1e28 RD |
9046 | { |
9047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9048 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
9049 | ||
9050 | wxPyEndAllowThreads(__tstate); | |
9051 | if (PyErr_Occurred()) SWIG_fail; | |
9052 | } | |
15afbcd0 | 9053 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0); |
d14a1e28 RD |
9054 | { |
9055 | if (temp1) | |
9056 | delete arg1; | |
9057 | } | |
9058 | return resultobj; | |
9059 | fail: | |
9060 | { | |
9061 | if (temp1) | |
9062 | delete arg1; | |
9063 | } | |
9064 | return NULL; | |
9065 | } | |
9066 | ||
9067 | ||
9068 | static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9069 | PyObject *resultobj; | |
9070 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
9071 | int arg2 = (int) -1 ; | |
9072 | wxPyProcess *result; | |
9073 | PyObject * obj0 = 0 ; | |
994141e6 | 9074 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9075 | char *kwnames[] = { |
9076 | (char *) "parent",(char *) "id", NULL | |
9077 | }; | |
9078 | ||
994141e6 | 9079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9080 | if (obj0) { |
15afbcd0 RD |
9081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
9082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 9083 | } |
994141e6 | 9084 | if (obj1) { |
15afbcd0 RD |
9085 | arg2 = (int) SWIG_AsInt(obj1); |
9086 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9087 | } |
d14a1e28 RD |
9088 | { |
9089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9090 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
9091 | ||
9092 | wxPyEndAllowThreads(__tstate); | |
9093 | if (PyErr_Occurred()) SWIG_fail; | |
9094 | } | |
15afbcd0 | 9095 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1); |
d14a1e28 RD |
9096 | return resultobj; |
9097 | fail: | |
9098 | return NULL; | |
9099 | } | |
9100 | ||
9101 | ||
9102 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9103 | PyObject *resultobj; | |
9104 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9105 | PyObject *arg2 = (PyObject *) 0 ; | |
9106 | PyObject *arg3 = (PyObject *) 0 ; | |
9107 | PyObject * obj0 = 0 ; | |
9108 | PyObject * obj1 = 0 ; | |
9109 | PyObject * obj2 = 0 ; | |
9110 | char *kwnames[] = { | |
9111 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9112 | }; | |
9113 | ||
9114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
9115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9117 | arg2 = obj1; |
9118 | arg3 = obj2; | |
9119 | { | |
9120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9121 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9122 | ||
9123 | wxPyEndAllowThreads(__tstate); | |
9124 | if (PyErr_Occurred()) SWIG_fail; | |
9125 | } | |
9126 | Py_INCREF(Py_None); resultobj = Py_None; | |
9127 | return resultobj; | |
9128 | fail: | |
9129 | return NULL; | |
9130 | } | |
9131 | ||
9132 | ||
9133 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9134 | PyObject *resultobj; | |
9135 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9136 | int arg2 ; | |
9137 | int arg3 ; | |
9138 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9139 | PyObject * obj1 = 0 ; |
9140 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9141 | char *kwnames[] = { |
9142 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
9143 | }; | |
9144 | ||
994141e6 | 9145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9148 | arg2 = (int) SWIG_AsInt(obj1); | |
9149 | if (PyErr_Occurred()) SWIG_fail; | |
9150 | arg3 = (int) SWIG_AsInt(obj2); | |
9151 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9152 | { |
9153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9154 | (arg1)->base_OnTerminate(arg2,arg3); | |
9155 | ||
9156 | wxPyEndAllowThreads(__tstate); | |
9157 | if (PyErr_Occurred()) SWIG_fail; | |
9158 | } | |
9159 | Py_INCREF(Py_None); resultobj = Py_None; | |
9160 | return resultobj; | |
9161 | fail: | |
9162 | return NULL; | |
9163 | } | |
9164 | ||
9165 | ||
9166 | static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9167 | PyObject *resultobj; | |
9168 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9169 | PyObject * obj0 = 0 ; | |
9170 | char *kwnames[] = { | |
9171 | (char *) "self", NULL | |
9172 | }; | |
9173 | ||
9174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9177 | { |
9178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9179 | (arg1)->Redirect(); | |
9180 | ||
9181 | wxPyEndAllowThreads(__tstate); | |
9182 | if (PyErr_Occurred()) SWIG_fail; | |
9183 | } | |
9184 | Py_INCREF(Py_None); resultobj = Py_None; | |
9185 | return resultobj; | |
9186 | fail: | |
9187 | return NULL; | |
9188 | } | |
9189 | ||
9190 | ||
9191 | static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9192 | PyObject *resultobj; | |
9193 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9194 | bool result; | |
9195 | PyObject * obj0 = 0 ; | |
9196 | char *kwnames[] = { | |
9197 | (char *) "self", NULL | |
9198 | }; | |
9199 | ||
9200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9203 | { |
9204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9205 | result = (bool)(arg1)->IsRedirected(); | |
9206 | ||
9207 | wxPyEndAllowThreads(__tstate); | |
9208 | if (PyErr_Occurred()) SWIG_fail; | |
9209 | } | |
4f89f6a3 RD |
9210 | { |
9211 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9212 | } | |
d14a1e28 RD |
9213 | return resultobj; |
9214 | fail: | |
9215 | return NULL; | |
9216 | } | |
9217 | ||
9218 | ||
9219 | static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9220 | PyObject *resultobj; | |
9221 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9222 | PyObject * obj0 = 0 ; | |
9223 | char *kwnames[] = { | |
9224 | (char *) "self", NULL | |
9225 | }; | |
9226 | ||
9227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9230 | { |
9231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9232 | (arg1)->Detach(); | |
9233 | ||
9234 | wxPyEndAllowThreads(__tstate); | |
9235 | if (PyErr_Occurred()) SWIG_fail; | |
9236 | } | |
9237 | Py_INCREF(Py_None); resultobj = Py_None; | |
9238 | return resultobj; | |
9239 | fail: | |
9240 | return NULL; | |
9241 | } | |
9242 | ||
9243 | ||
9244 | static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9245 | PyObject *resultobj; | |
9246 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9247 | wxInputStream *result; | |
9248 | PyObject * obj0 = 0 ; | |
9249 | char *kwnames[] = { | |
9250 | (char *) "self", NULL | |
9251 | }; | |
9252 | ||
9253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9256 | { |
9257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9258 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
9259 | ||
9260 | wxPyEndAllowThreads(__tstate); | |
9261 | if (PyErr_Occurred()) SWIG_fail; | |
9262 | } | |
9263 | { | |
9264 | wxPyInputStream * _ptr = NULL; | |
9265 | ||
9266 | if (result) { | |
9267 | _ptr = new wxPyInputStream(result); | |
9268 | } | |
e811c8ce | 9269 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
9270 | } |
9271 | return resultobj; | |
9272 | fail: | |
9273 | return NULL; | |
9274 | } | |
9275 | ||
9276 | ||
9277 | static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9278 | PyObject *resultobj; | |
9279 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9280 | wxInputStream *result; | |
9281 | PyObject * obj0 = 0 ; | |
9282 | char *kwnames[] = { | |
9283 | (char *) "self", NULL | |
9284 | }; | |
9285 | ||
9286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9289 | { |
9290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9291 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
9292 | ||
9293 | wxPyEndAllowThreads(__tstate); | |
9294 | if (PyErr_Occurred()) SWIG_fail; | |
9295 | } | |
9296 | { | |
9297 | wxPyInputStream * _ptr = NULL; | |
9298 | ||
9299 | if (result) { | |
9300 | _ptr = new wxPyInputStream(result); | |
9301 | } | |
e811c8ce | 9302 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
9303 | } |
9304 | return resultobj; | |
9305 | fail: | |
9306 | return NULL; | |
9307 | } | |
9308 | ||
9309 | ||
9310 | static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9311 | PyObject *resultobj; | |
9312 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9313 | wxOutputStream *result; | |
9314 | PyObject * obj0 = 0 ; | |
9315 | char *kwnames[] = { | |
9316 | (char *) "self", NULL | |
9317 | }; | |
9318 | ||
9319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9322 | { |
9323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9324 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
9325 | ||
9326 | wxPyEndAllowThreads(__tstate); | |
9327 | if (PyErr_Occurred()) SWIG_fail; | |
9328 | } | |
15afbcd0 | 9329 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); |
d14a1e28 RD |
9330 | return resultobj; |
9331 | fail: | |
9332 | return NULL; | |
9333 | } | |
9334 | ||
9335 | ||
9336 | static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9337 | PyObject *resultobj; | |
9338 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9339 | PyObject * obj0 = 0 ; | |
9340 | char *kwnames[] = { | |
9341 | (char *) "self", NULL | |
9342 | }; | |
9343 | ||
9344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9347 | { |
9348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9349 | (arg1)->CloseOutput(); | |
9350 | ||
9351 | wxPyEndAllowThreads(__tstate); | |
9352 | if (PyErr_Occurred()) SWIG_fail; | |
9353 | } | |
9354 | Py_INCREF(Py_None); resultobj = Py_None; | |
9355 | return resultobj; | |
9356 | fail: | |
9357 | return NULL; | |
9358 | } | |
9359 | ||
9360 | ||
9361 | static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9362 | PyObject *resultobj; | |
9363 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9364 | bool result; | |
9365 | PyObject * obj0 = 0 ; | |
9366 | char *kwnames[] = { | |
9367 | (char *) "self", NULL | |
9368 | }; | |
9369 | ||
9370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9373 | { |
9374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9375 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
9376 | ||
9377 | wxPyEndAllowThreads(__tstate); | |
9378 | if (PyErr_Occurred()) SWIG_fail; | |
9379 | } | |
4f89f6a3 RD |
9380 | { |
9381 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9382 | } | |
d14a1e28 RD |
9383 | return resultobj; |
9384 | fail: | |
9385 | return NULL; | |
9386 | } | |
9387 | ||
9388 | ||
9389 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9390 | PyObject *resultobj; | |
9391 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9392 | bool result; | |
9393 | PyObject * obj0 = 0 ; | |
9394 | char *kwnames[] = { | |
9395 | (char *) "self", NULL | |
9396 | }; | |
9397 | ||
9398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9401 | { |
9402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9403 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
9404 | ||
9405 | wxPyEndAllowThreads(__tstate); | |
9406 | if (PyErr_Occurred()) SWIG_fail; | |
9407 | } | |
4f89f6a3 RD |
9408 | { |
9409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9410 | } | |
d14a1e28 RD |
9411 | return resultobj; |
9412 | fail: | |
9413 | return NULL; | |
9414 | } | |
9415 | ||
9416 | ||
9417 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9418 | PyObject *resultobj; | |
9419 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9420 | bool result; | |
9421 | PyObject * obj0 = 0 ; | |
9422 | char *kwnames[] = { | |
9423 | (char *) "self", NULL | |
9424 | }; | |
9425 | ||
9426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, |
9428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9429 | { |
9430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9431 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
9432 | ||
9433 | wxPyEndAllowThreads(__tstate); | |
9434 | if (PyErr_Occurred()) SWIG_fail; | |
9435 | } | |
4f89f6a3 RD |
9436 | { |
9437 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9438 | } | |
d14a1e28 RD |
9439 | return resultobj; |
9440 | fail: | |
9441 | return NULL; | |
9442 | } | |
9443 | ||
9444 | ||
9445 | static PyObject * Process_swigregister(PyObject *self, PyObject *args) { | |
9446 | PyObject *obj; | |
9447 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9448 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
9449 | Py_INCREF(obj); | |
9450 | return Py_BuildValue((char *)""); | |
9451 | } | |
9452 | static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9453 | PyObject *resultobj; | |
9454 | int arg1 = (int) 0 ; | |
9455 | int arg2 = (int) 0 ; | |
9456 | int arg3 = (int) 0 ; | |
9457 | wxProcessEvent *result; | |
994141e6 RD |
9458 | PyObject * obj0 = 0 ; |
9459 | PyObject * obj1 = 0 ; | |
9460 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9461 | char *kwnames[] = { |
9462 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
9463 | }; | |
9464 | ||
994141e6 RD |
9465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
9466 | if (obj0) { | |
15afbcd0 RD |
9467 | arg1 = (int) SWIG_AsInt(obj0); |
9468 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
9469 | } |
9470 | if (obj1) { | |
15afbcd0 RD |
9471 | arg2 = (int) SWIG_AsInt(obj1); |
9472 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
9473 | } |
9474 | if (obj2) { | |
15afbcd0 RD |
9475 | arg3 = (int) SWIG_AsInt(obj2); |
9476 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9477 | } |
d14a1e28 RD |
9478 | { |
9479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9480 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
9481 | ||
9482 | wxPyEndAllowThreads(__tstate); | |
9483 | if (PyErr_Occurred()) SWIG_fail; | |
9484 | } | |
15afbcd0 | 9485 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1); |
d14a1e28 RD |
9486 | return resultobj; |
9487 | fail: | |
9488 | return NULL; | |
9489 | } | |
9490 | ||
9491 | ||
9492 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9493 | PyObject *resultobj; | |
9494 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9495 | int result; | |
9496 | PyObject * obj0 = 0 ; | |
9497 | char *kwnames[] = { | |
9498 | (char *) "self", NULL | |
9499 | }; | |
9500 | ||
9501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9504 | { |
9505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9506 | result = (int)(arg1)->GetPid(); | |
9507 | ||
9508 | wxPyEndAllowThreads(__tstate); | |
9509 | if (PyErr_Occurred()) SWIG_fail; | |
9510 | } | |
15afbcd0 | 9511 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9512 | return resultobj; |
9513 | fail: | |
9514 | return NULL; | |
9515 | } | |
9516 | ||
9517 | ||
9518 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9519 | PyObject *resultobj; | |
9520 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9521 | int result; | |
9522 | PyObject * obj0 = 0 ; | |
9523 | char *kwnames[] = { | |
9524 | (char *) "self", NULL | |
9525 | }; | |
9526 | ||
9527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9530 | { |
9531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9532 | result = (int)(arg1)->GetExitCode(); | |
9533 | ||
9534 | wxPyEndAllowThreads(__tstate); | |
9535 | if (PyErr_Occurred()) SWIG_fail; | |
9536 | } | |
15afbcd0 | 9537 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9538 | return resultobj; |
9539 | fail: | |
9540 | return NULL; | |
9541 | } | |
9542 | ||
9543 | ||
9544 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9545 | PyObject *resultobj; | |
9546 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9547 | int arg2 ; | |
9548 | PyObject * obj0 = 0 ; | |
994141e6 | 9549 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9550 | char *kwnames[] = { |
9551 | (char *) "self",(char *) "m_pid", NULL | |
9552 | }; | |
9553 | ||
994141e6 | 9554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9557 | arg2 = (int) SWIG_AsInt(obj1); | |
9558 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9559 | if (arg1) (arg1)->m_pid = arg2; |
9560 | ||
9561 | Py_INCREF(Py_None); resultobj = Py_None; | |
9562 | return resultobj; | |
9563 | fail: | |
9564 | return NULL; | |
9565 | } | |
9566 | ||
9567 | ||
9568 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9569 | PyObject *resultobj; | |
9570 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9571 | int result; | |
9572 | PyObject * obj0 = 0 ; | |
9573 | char *kwnames[] = { | |
9574 | (char *) "self", NULL | |
9575 | }; | |
9576 | ||
9577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9580 | result = (int) ((arg1)->m_pid); |
9581 | ||
15afbcd0 | 9582 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9583 | return resultobj; |
9584 | fail: | |
9585 | return NULL; | |
9586 | } | |
9587 | ||
9588 | ||
9589 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9590 | PyObject *resultobj; | |
9591 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9592 | int arg2 ; | |
9593 | PyObject * obj0 = 0 ; | |
994141e6 | 9594 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9595 | char *kwnames[] = { |
9596 | (char *) "self",(char *) "m_exitcode", NULL | |
9597 | }; | |
9598 | ||
994141e6 | 9599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9602 | arg2 = (int) SWIG_AsInt(obj1); | |
9603 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9604 | if (arg1) (arg1)->m_exitcode = arg2; |
9605 | ||
9606 | Py_INCREF(Py_None); resultobj = Py_None; | |
9607 | return resultobj; | |
9608 | fail: | |
9609 | return NULL; | |
9610 | } | |
9611 | ||
9612 | ||
9613 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9614 | PyObject *resultobj; | |
9615 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9616 | int result; | |
9617 | PyObject * obj0 = 0 ; | |
9618 | char *kwnames[] = { | |
9619 | (char *) "self", NULL | |
9620 | }; | |
9621 | ||
9622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, |
9624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9625 | result = (int) ((arg1)->m_exitcode); |
9626 | ||
15afbcd0 | 9627 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9628 | return resultobj; |
9629 | fail: | |
9630 | return NULL; | |
9631 | } | |
9632 | ||
9633 | ||
9634 | static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) { | |
9635 | PyObject *obj; | |
9636 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9637 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
9638 | Py_INCREF(obj); | |
9639 | return Py_BuildValue((char *)""); | |
9640 | } | |
9641 | static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9642 | PyObject *resultobj; | |
9643 | wxString *arg1 = 0 ; | |
9644 | int arg2 = (int) wxEXEC_ASYNC ; | |
9645 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
9646 | long result; | |
e811c8ce | 9647 | bool temp1 = False ; |
d14a1e28 | 9648 | PyObject * obj0 = 0 ; |
994141e6 | 9649 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9650 | PyObject * obj2 = 0 ; |
9651 | char *kwnames[] = { | |
9652 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
9653 | }; | |
9654 | ||
994141e6 | 9655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
9656 | { |
9657 | arg1 = wxString_in_helper(obj0); | |
9658 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9659 | temp1 = True; |
d14a1e28 | 9660 | } |
994141e6 | 9661 | if (obj1) { |
15afbcd0 RD |
9662 | arg2 = (int) SWIG_AsInt(obj1); |
9663 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9664 | } |
d14a1e28 | 9665 | if (obj2) { |
15afbcd0 RD |
9666 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess, |
9667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9668 | } |
9669 | { | |
e3b71cb8 | 9670 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
9671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9672 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
9673 | ||
9674 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 9675 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 9676 | } |
15afbcd0 | 9677 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9678 | { |
9679 | if (temp1) | |
9680 | delete arg1; | |
9681 | } | |
9682 | return resultobj; | |
9683 | fail: | |
9684 | { | |
9685 | if (temp1) | |
9686 | delete arg1; | |
9687 | } | |
9688 | return NULL; | |
9689 | } | |
9690 | ||
9691 | ||
9692 | static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9693 | PyObject *resultobj; | |
9694 | int arg1 = (int) wxJOYSTICK1 ; | |
9695 | wxJoystick *result; | |
994141e6 | 9696 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9697 | char *kwnames[] = { |
9698 | (char *) "joystick", NULL | |
9699 | }; | |
9700 | ||
994141e6 RD |
9701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; |
9702 | if (obj0) { | |
15afbcd0 RD |
9703 | arg1 = (int) SWIG_AsInt(obj0); |
9704 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9705 | } |
d14a1e28 | 9706 | { |
e3b71cb8 | 9707 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
9708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9709 | result = (wxJoystick *)new wxJoystick(arg1); | |
9710 | ||
9711 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 9712 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 9713 | } |
15afbcd0 | 9714 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1); |
d14a1e28 RD |
9715 | return resultobj; |
9716 | fail: | |
9717 | return NULL; | |
9718 | } | |
9719 | ||
9720 | ||
9721 | static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9722 | PyObject *resultobj; | |
9723 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9724 | PyObject * obj0 = 0 ; | |
9725 | char *kwnames[] = { | |
9726 | (char *) "self", NULL | |
9727 | }; | |
9728 | ||
9729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9732 | { |
9733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9734 | delete arg1; | |
9735 | ||
9736 | wxPyEndAllowThreads(__tstate); | |
9737 | if (PyErr_Occurred()) SWIG_fail; | |
9738 | } | |
9739 | Py_INCREF(Py_None); resultobj = Py_None; | |
9740 | return resultobj; | |
9741 | fail: | |
9742 | return NULL; | |
9743 | } | |
9744 | ||
9745 | ||
9746 | static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9747 | PyObject *resultobj; | |
9748 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9749 | wxPoint result; | |
9750 | PyObject * obj0 = 0 ; | |
9751 | char *kwnames[] = { | |
9752 | (char *) "self", NULL | |
9753 | }; | |
9754 | ||
9755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9758 | { |
9759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9760 | result = (arg1)->GetPosition(); | |
9761 | ||
9762 | wxPyEndAllowThreads(__tstate); | |
9763 | if (PyErr_Occurred()) SWIG_fail; | |
9764 | } | |
9765 | { | |
9766 | wxPoint * resultptr; | |
9767 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 9768 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
9769 | } |
9770 | return resultobj; | |
9771 | fail: | |
9772 | return NULL; | |
9773 | } | |
9774 | ||
9775 | ||
9776 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9777 | PyObject *resultobj; | |
9778 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9779 | int result; | |
9780 | PyObject * obj0 = 0 ; | |
9781 | char *kwnames[] = { | |
9782 | (char *) "self", NULL | |
9783 | }; | |
9784 | ||
9785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9788 | { |
9789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9790 | result = (int)(arg1)->GetZPosition(); | |
9791 | ||
9792 | wxPyEndAllowThreads(__tstate); | |
9793 | if (PyErr_Occurred()) SWIG_fail; | |
9794 | } | |
15afbcd0 | 9795 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9796 | return resultobj; |
9797 | fail: | |
9798 | return NULL; | |
9799 | } | |
9800 | ||
9801 | ||
9802 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9803 | PyObject *resultobj; | |
9804 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9805 | int result; | |
9806 | PyObject * obj0 = 0 ; | |
9807 | char *kwnames[] = { | |
9808 | (char *) "self", NULL | |
9809 | }; | |
9810 | ||
9811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9814 | { |
9815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9816 | result = (int)(arg1)->GetButtonState(); | |
9817 | ||
9818 | wxPyEndAllowThreads(__tstate); | |
9819 | if (PyErr_Occurred()) SWIG_fail; | |
9820 | } | |
15afbcd0 | 9821 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9822 | return resultobj; |
9823 | fail: | |
9824 | return NULL; | |
9825 | } | |
9826 | ||
9827 | ||
9828 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9829 | PyObject *resultobj; | |
9830 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9831 | int result; | |
9832 | PyObject * obj0 = 0 ; | |
9833 | char *kwnames[] = { | |
9834 | (char *) "self", NULL | |
9835 | }; | |
9836 | ||
9837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9840 | { |
9841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9842 | result = (int)(arg1)->GetPOVPosition(); | |
9843 | ||
9844 | wxPyEndAllowThreads(__tstate); | |
9845 | if (PyErr_Occurred()) SWIG_fail; | |
9846 | } | |
15afbcd0 | 9847 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9848 | return resultobj; |
9849 | fail: | |
9850 | return NULL; | |
9851 | } | |
9852 | ||
9853 | ||
9854 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9855 | PyObject *resultobj; | |
9856 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9857 | int result; | |
9858 | PyObject * obj0 = 0 ; | |
9859 | char *kwnames[] = { | |
9860 | (char *) "self", NULL | |
9861 | }; | |
9862 | ||
9863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9866 | { |
9867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9868 | result = (int)(arg1)->GetPOVCTSPosition(); | |
9869 | ||
9870 | wxPyEndAllowThreads(__tstate); | |
9871 | if (PyErr_Occurred()) SWIG_fail; | |
9872 | } | |
15afbcd0 | 9873 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9874 | return resultobj; |
9875 | fail: | |
9876 | return NULL; | |
9877 | } | |
9878 | ||
9879 | ||
9880 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9881 | PyObject *resultobj; | |
9882 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9883 | int result; | |
9884 | PyObject * obj0 = 0 ; | |
9885 | char *kwnames[] = { | |
9886 | (char *) "self", NULL | |
9887 | }; | |
9888 | ||
9889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9892 | { |
9893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9894 | result = (int)(arg1)->GetRudderPosition(); | |
9895 | ||
9896 | wxPyEndAllowThreads(__tstate); | |
9897 | if (PyErr_Occurred()) SWIG_fail; | |
9898 | } | |
15afbcd0 | 9899 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9900 | return resultobj; |
9901 | fail: | |
9902 | return NULL; | |
9903 | } | |
9904 | ||
9905 | ||
9906 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9907 | PyObject *resultobj; | |
9908 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9909 | int result; | |
9910 | PyObject * obj0 = 0 ; | |
9911 | char *kwnames[] = { | |
9912 | (char *) "self", NULL | |
9913 | }; | |
9914 | ||
9915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9918 | { |
9919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9920 | result = (int)(arg1)->GetUPosition(); | |
9921 | ||
9922 | wxPyEndAllowThreads(__tstate); | |
9923 | if (PyErr_Occurred()) SWIG_fail; | |
9924 | } | |
15afbcd0 | 9925 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9926 | return resultobj; |
9927 | fail: | |
9928 | return NULL; | |
9929 | } | |
9930 | ||
9931 | ||
9932 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9933 | PyObject *resultobj; | |
9934 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9935 | int result; | |
9936 | PyObject * obj0 = 0 ; | |
9937 | char *kwnames[] = { | |
9938 | (char *) "self", NULL | |
9939 | }; | |
9940 | ||
9941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9944 | { |
9945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9946 | result = (int)(arg1)->GetVPosition(); | |
9947 | ||
9948 | wxPyEndAllowThreads(__tstate); | |
9949 | if (PyErr_Occurred()) SWIG_fail; | |
9950 | } | |
15afbcd0 | 9951 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9952 | return resultobj; |
9953 | fail: | |
9954 | return NULL; | |
9955 | } | |
9956 | ||
9957 | ||
9958 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9959 | PyObject *resultobj; | |
9960 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9961 | int result; | |
9962 | PyObject * obj0 = 0 ; | |
9963 | char *kwnames[] = { | |
9964 | (char *) "self", NULL | |
9965 | }; | |
9966 | ||
9967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9970 | { |
9971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9972 | result = (int)(arg1)->GetMovementThreshold(); | |
9973 | ||
9974 | wxPyEndAllowThreads(__tstate); | |
9975 | if (PyErr_Occurred()) SWIG_fail; | |
9976 | } | |
15afbcd0 | 9977 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9978 | return resultobj; |
9979 | fail: | |
9980 | return NULL; | |
9981 | } | |
9982 | ||
9983 | ||
9984 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9985 | PyObject *resultobj; | |
9986 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9987 | int arg2 ; | |
9988 | PyObject * obj0 = 0 ; | |
994141e6 | 9989 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9990 | char *kwnames[] = { |
9991 | (char *) "self",(char *) "threshold", NULL | |
9992 | }; | |
9993 | ||
994141e6 | 9994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
9996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9997 | arg2 = (int) SWIG_AsInt(obj1); | |
9998 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9999 | { |
10000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10001 | (arg1)->SetMovementThreshold(arg2); | |
10002 | ||
10003 | wxPyEndAllowThreads(__tstate); | |
10004 | if (PyErr_Occurred()) SWIG_fail; | |
10005 | } | |
10006 | Py_INCREF(Py_None); resultobj = Py_None; | |
10007 | return resultobj; | |
10008 | fail: | |
10009 | return NULL; | |
10010 | } | |
10011 | ||
10012 | ||
10013 | static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10014 | PyObject *resultobj; | |
10015 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10016 | bool result; | |
10017 | PyObject * obj0 = 0 ; | |
10018 | char *kwnames[] = { | |
10019 | (char *) "self", NULL | |
10020 | }; | |
10021 | ||
10022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10025 | { |
10026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10027 | result = (bool)(arg1)->IsOk(); | |
10028 | ||
10029 | wxPyEndAllowThreads(__tstate); | |
10030 | if (PyErr_Occurred()) SWIG_fail; | |
10031 | } | |
4f89f6a3 RD |
10032 | { |
10033 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10034 | } | |
d14a1e28 RD |
10035 | return resultobj; |
10036 | fail: | |
10037 | return NULL; | |
10038 | } | |
10039 | ||
10040 | ||
10041 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10042 | PyObject *resultobj; | |
10043 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10044 | int result; | |
10045 | PyObject * obj0 = 0 ; | |
10046 | char *kwnames[] = { | |
10047 | (char *) "self", NULL | |
10048 | }; | |
10049 | ||
10050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10053 | { |
10054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10055 | result = (int)(arg1)->GetNumberJoysticks(); | |
10056 | ||
10057 | wxPyEndAllowThreads(__tstate); | |
10058 | if (PyErr_Occurred()) SWIG_fail; | |
10059 | } | |
15afbcd0 | 10060 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10061 | return resultobj; |
10062 | fail: | |
10063 | return NULL; | |
10064 | } | |
10065 | ||
10066 | ||
10067 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10068 | PyObject *resultobj; | |
10069 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10070 | int result; | |
10071 | PyObject * obj0 = 0 ; | |
10072 | char *kwnames[] = { | |
10073 | (char *) "self", NULL | |
10074 | }; | |
10075 | ||
10076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10079 | { |
10080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10081 | result = (int)(arg1)->GetManufacturerId(); | |
10082 | ||
10083 | wxPyEndAllowThreads(__tstate); | |
10084 | if (PyErr_Occurred()) SWIG_fail; | |
10085 | } | |
15afbcd0 | 10086 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10087 | return resultobj; |
10088 | fail: | |
10089 | return NULL; | |
10090 | } | |
10091 | ||
10092 | ||
10093 | static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10094 | PyObject *resultobj; | |
10095 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10096 | int result; | |
10097 | PyObject * obj0 = 0 ; | |
10098 | char *kwnames[] = { | |
10099 | (char *) "self", NULL | |
10100 | }; | |
10101 | ||
10102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10105 | { |
10106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10107 | result = (int)(arg1)->GetProductId(); | |
10108 | ||
10109 | wxPyEndAllowThreads(__tstate); | |
10110 | if (PyErr_Occurred()) SWIG_fail; | |
10111 | } | |
15afbcd0 | 10112 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10113 | return resultobj; |
10114 | fail: | |
10115 | return NULL; | |
10116 | } | |
10117 | ||
10118 | ||
10119 | static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10120 | PyObject *resultobj; | |
10121 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10122 | wxString result; | |
10123 | PyObject * obj0 = 0 ; | |
10124 | char *kwnames[] = { | |
10125 | (char *) "self", NULL | |
10126 | }; | |
10127 | ||
10128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10131 | { |
10132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10133 | result = (arg1)->GetProductName(); | |
10134 | ||
10135 | wxPyEndAllowThreads(__tstate); | |
10136 | if (PyErr_Occurred()) SWIG_fail; | |
10137 | } | |
10138 | { | |
10139 | #if wxUSE_UNICODE | |
10140 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10141 | #else | |
10142 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10143 | #endif | |
10144 | } | |
10145 | return resultobj; | |
10146 | fail: | |
10147 | return NULL; | |
10148 | } | |
10149 | ||
10150 | ||
10151 | static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10152 | PyObject *resultobj; | |
10153 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10154 | int result; | |
10155 | PyObject * obj0 = 0 ; | |
10156 | char *kwnames[] = { | |
10157 | (char *) "self", NULL | |
10158 | }; | |
10159 | ||
10160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10163 | { |
10164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10165 | result = (int)(arg1)->GetXMin(); | |
10166 | ||
10167 | wxPyEndAllowThreads(__tstate); | |
10168 | if (PyErr_Occurred()) SWIG_fail; | |
10169 | } | |
15afbcd0 | 10170 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10171 | return resultobj; |
10172 | fail: | |
10173 | return NULL; | |
10174 | } | |
10175 | ||
10176 | ||
10177 | static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10178 | PyObject *resultobj; | |
10179 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10180 | int result; | |
10181 | PyObject * obj0 = 0 ; | |
10182 | char *kwnames[] = { | |
10183 | (char *) "self", NULL | |
10184 | }; | |
10185 | ||
10186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10189 | { |
10190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10191 | result = (int)(arg1)->GetYMin(); | |
10192 | ||
10193 | wxPyEndAllowThreads(__tstate); | |
10194 | if (PyErr_Occurred()) SWIG_fail; | |
10195 | } | |
15afbcd0 | 10196 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10197 | return resultobj; |
10198 | fail: | |
10199 | return NULL; | |
10200 | } | |
10201 | ||
10202 | ||
10203 | static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10204 | PyObject *resultobj; | |
10205 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10206 | int result; | |
10207 | PyObject * obj0 = 0 ; | |
10208 | char *kwnames[] = { | |
10209 | (char *) "self", NULL | |
10210 | }; | |
10211 | ||
10212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10215 | { |
10216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10217 | result = (int)(arg1)->GetZMin(); | |
10218 | ||
10219 | wxPyEndAllowThreads(__tstate); | |
10220 | if (PyErr_Occurred()) SWIG_fail; | |
10221 | } | |
15afbcd0 | 10222 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10223 | return resultobj; |
10224 | fail: | |
10225 | return NULL; | |
10226 | } | |
10227 | ||
10228 | ||
10229 | static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10230 | PyObject *resultobj; | |
10231 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10232 | int result; | |
10233 | PyObject * obj0 = 0 ; | |
10234 | char *kwnames[] = { | |
10235 | (char *) "self", NULL | |
10236 | }; | |
10237 | ||
10238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10241 | { |
10242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10243 | result = (int)(arg1)->GetXMax(); | |
10244 | ||
10245 | wxPyEndAllowThreads(__tstate); | |
10246 | if (PyErr_Occurred()) SWIG_fail; | |
10247 | } | |
15afbcd0 | 10248 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10249 | return resultobj; |
10250 | fail: | |
10251 | return NULL; | |
10252 | } | |
10253 | ||
10254 | ||
10255 | static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10256 | PyObject *resultobj; | |
10257 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10258 | int result; | |
10259 | PyObject * obj0 = 0 ; | |
10260 | char *kwnames[] = { | |
10261 | (char *) "self", NULL | |
10262 | }; | |
10263 | ||
10264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10267 | { |
10268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10269 | result = (int)(arg1)->GetYMax(); | |
10270 | ||
10271 | wxPyEndAllowThreads(__tstate); | |
10272 | if (PyErr_Occurred()) SWIG_fail; | |
10273 | } | |
15afbcd0 | 10274 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10275 | return resultobj; |
10276 | fail: | |
10277 | return NULL; | |
10278 | } | |
10279 | ||
10280 | ||
10281 | static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10282 | PyObject *resultobj; | |
10283 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10284 | int result; | |
10285 | PyObject * obj0 = 0 ; | |
10286 | char *kwnames[] = { | |
10287 | (char *) "self", NULL | |
10288 | }; | |
10289 | ||
10290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10293 | { |
10294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10295 | result = (int)(arg1)->GetZMax(); | |
10296 | ||
10297 | wxPyEndAllowThreads(__tstate); | |
10298 | if (PyErr_Occurred()) SWIG_fail; | |
10299 | } | |
15afbcd0 | 10300 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10301 | return resultobj; |
10302 | fail: | |
10303 | return NULL; | |
10304 | } | |
10305 | ||
10306 | ||
10307 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10308 | PyObject *resultobj; | |
10309 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10310 | int result; | |
10311 | PyObject * obj0 = 0 ; | |
10312 | char *kwnames[] = { | |
10313 | (char *) "self", NULL | |
10314 | }; | |
10315 | ||
10316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10319 | { |
10320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10321 | result = (int)(arg1)->GetNumberButtons(); | |
10322 | ||
10323 | wxPyEndAllowThreads(__tstate); | |
10324 | if (PyErr_Occurred()) SWIG_fail; | |
10325 | } | |
15afbcd0 | 10326 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10327 | return resultobj; |
10328 | fail: | |
10329 | return NULL; | |
10330 | } | |
10331 | ||
10332 | ||
10333 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10334 | PyObject *resultobj; | |
10335 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10336 | int result; | |
10337 | PyObject * obj0 = 0 ; | |
10338 | char *kwnames[] = { | |
10339 | (char *) "self", NULL | |
10340 | }; | |
10341 | ||
10342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10345 | { |
10346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10347 | result = (int)(arg1)->GetNumberAxes(); | |
10348 | ||
10349 | wxPyEndAllowThreads(__tstate); | |
10350 | if (PyErr_Occurred()) SWIG_fail; | |
10351 | } | |
15afbcd0 | 10352 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10353 | return resultobj; |
10354 | fail: | |
10355 | return NULL; | |
10356 | } | |
10357 | ||
10358 | ||
10359 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10360 | PyObject *resultobj; | |
10361 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10362 | int result; | |
10363 | PyObject * obj0 = 0 ; | |
10364 | char *kwnames[] = { | |
10365 | (char *) "self", NULL | |
10366 | }; | |
10367 | ||
10368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10371 | { |
10372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10373 | result = (int)(arg1)->GetMaxButtons(); | |
10374 | ||
10375 | wxPyEndAllowThreads(__tstate); | |
10376 | if (PyErr_Occurred()) SWIG_fail; | |
10377 | } | |
15afbcd0 | 10378 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10379 | return resultobj; |
10380 | fail: | |
10381 | return NULL; | |
10382 | } | |
10383 | ||
10384 | ||
10385 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10386 | PyObject *resultobj; | |
10387 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10388 | int result; | |
10389 | PyObject * obj0 = 0 ; | |
10390 | char *kwnames[] = { | |
10391 | (char *) "self", NULL | |
10392 | }; | |
10393 | ||
10394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10397 | { |
10398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10399 | result = (int)(arg1)->GetMaxAxes(); | |
10400 | ||
10401 | wxPyEndAllowThreads(__tstate); | |
10402 | if (PyErr_Occurred()) SWIG_fail; | |
10403 | } | |
15afbcd0 | 10404 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10405 | return resultobj; |
10406 | fail: | |
10407 | return NULL; | |
10408 | } | |
10409 | ||
10410 | ||
10411 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10412 | PyObject *resultobj; | |
10413 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10414 | int result; | |
10415 | PyObject * obj0 = 0 ; | |
10416 | char *kwnames[] = { | |
10417 | (char *) "self", NULL | |
10418 | }; | |
10419 | ||
10420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10423 | { |
10424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10425 | result = (int)(arg1)->GetPollingMin(); | |
10426 | ||
10427 | wxPyEndAllowThreads(__tstate); | |
10428 | if (PyErr_Occurred()) SWIG_fail; | |
10429 | } | |
15afbcd0 | 10430 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10431 | return resultobj; |
10432 | fail: | |
10433 | return NULL; | |
10434 | } | |
10435 | ||
10436 | ||
10437 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10438 | PyObject *resultobj; | |
10439 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10440 | int result; | |
10441 | PyObject * obj0 = 0 ; | |
10442 | char *kwnames[] = { | |
10443 | (char *) "self", NULL | |
10444 | }; | |
10445 | ||
10446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10449 | { |
10450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10451 | result = (int)(arg1)->GetPollingMax(); | |
10452 | ||
10453 | wxPyEndAllowThreads(__tstate); | |
10454 | if (PyErr_Occurred()) SWIG_fail; | |
10455 | } | |
15afbcd0 | 10456 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10457 | return resultobj; |
10458 | fail: | |
10459 | return NULL; | |
10460 | } | |
10461 | ||
10462 | ||
10463 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10464 | PyObject *resultobj; | |
10465 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10466 | int result; | |
10467 | PyObject * obj0 = 0 ; | |
10468 | char *kwnames[] = { | |
10469 | (char *) "self", NULL | |
10470 | }; | |
10471 | ||
10472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10475 | { |
10476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10477 | result = (int)(arg1)->GetRudderMin(); | |
10478 | ||
10479 | wxPyEndAllowThreads(__tstate); | |
10480 | if (PyErr_Occurred()) SWIG_fail; | |
10481 | } | |
15afbcd0 | 10482 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10483 | return resultobj; |
10484 | fail: | |
10485 | return NULL; | |
10486 | } | |
10487 | ||
10488 | ||
10489 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10490 | PyObject *resultobj; | |
10491 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10492 | int result; | |
10493 | PyObject * obj0 = 0 ; | |
10494 | char *kwnames[] = { | |
10495 | (char *) "self", NULL | |
10496 | }; | |
10497 | ||
10498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10501 | { |
10502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10503 | result = (int)(arg1)->GetRudderMax(); | |
10504 | ||
10505 | wxPyEndAllowThreads(__tstate); | |
10506 | if (PyErr_Occurred()) SWIG_fail; | |
10507 | } | |
15afbcd0 | 10508 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10509 | return resultobj; |
10510 | fail: | |
10511 | return NULL; | |
10512 | } | |
10513 | ||
10514 | ||
10515 | static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10516 | PyObject *resultobj; | |
10517 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10518 | int result; | |
10519 | PyObject * obj0 = 0 ; | |
10520 | char *kwnames[] = { | |
10521 | (char *) "self", NULL | |
10522 | }; | |
10523 | ||
10524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10527 | { |
10528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10529 | result = (int)(arg1)->GetUMin(); | |
10530 | ||
10531 | wxPyEndAllowThreads(__tstate); | |
10532 | if (PyErr_Occurred()) SWIG_fail; | |
10533 | } | |
15afbcd0 | 10534 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10535 | return resultobj; |
10536 | fail: | |
10537 | return NULL; | |
10538 | } | |
10539 | ||
10540 | ||
10541 | static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10542 | PyObject *resultobj; | |
10543 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10544 | int result; | |
10545 | PyObject * obj0 = 0 ; | |
10546 | char *kwnames[] = { | |
10547 | (char *) "self", NULL | |
10548 | }; | |
10549 | ||
10550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10553 | { |
10554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10555 | result = (int)(arg1)->GetUMax(); | |
10556 | ||
10557 | wxPyEndAllowThreads(__tstate); | |
10558 | if (PyErr_Occurred()) SWIG_fail; | |
10559 | } | |
15afbcd0 | 10560 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10561 | return resultobj; |
10562 | fail: | |
10563 | return NULL; | |
10564 | } | |
10565 | ||
10566 | ||
10567 | static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10568 | PyObject *resultobj; | |
10569 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10570 | int result; | |
10571 | PyObject * obj0 = 0 ; | |
10572 | char *kwnames[] = { | |
10573 | (char *) "self", NULL | |
10574 | }; | |
10575 | ||
10576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10579 | { |
10580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10581 | result = (int)(arg1)->GetVMin(); | |
10582 | ||
10583 | wxPyEndAllowThreads(__tstate); | |
10584 | if (PyErr_Occurred()) SWIG_fail; | |
10585 | } | |
15afbcd0 | 10586 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10587 | return resultobj; |
10588 | fail: | |
10589 | return NULL; | |
10590 | } | |
10591 | ||
10592 | ||
10593 | static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10594 | PyObject *resultobj; | |
10595 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10596 | int result; | |
10597 | PyObject * obj0 = 0 ; | |
10598 | char *kwnames[] = { | |
10599 | (char *) "self", NULL | |
10600 | }; | |
10601 | ||
10602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10605 | { |
10606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10607 | result = (int)(arg1)->GetVMax(); | |
10608 | ||
10609 | wxPyEndAllowThreads(__tstate); | |
10610 | if (PyErr_Occurred()) SWIG_fail; | |
10611 | } | |
15afbcd0 | 10612 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10613 | return resultobj; |
10614 | fail: | |
10615 | return NULL; | |
10616 | } | |
10617 | ||
10618 | ||
10619 | static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10620 | PyObject *resultobj; | |
10621 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10622 | bool result; | |
10623 | PyObject * obj0 = 0 ; | |
10624 | char *kwnames[] = { | |
10625 | (char *) "self", NULL | |
10626 | }; | |
10627 | ||
10628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10631 | { |
10632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10633 | result = (bool)(arg1)->HasRudder(); | |
10634 | ||
10635 | wxPyEndAllowThreads(__tstate); | |
10636 | if (PyErr_Occurred()) SWIG_fail; | |
10637 | } | |
4f89f6a3 RD |
10638 | { |
10639 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10640 | } | |
d14a1e28 RD |
10641 | return resultobj; |
10642 | fail: | |
10643 | return NULL; | |
10644 | } | |
10645 | ||
10646 | ||
10647 | static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10648 | PyObject *resultobj; | |
10649 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10650 | bool result; | |
10651 | PyObject * obj0 = 0 ; | |
10652 | char *kwnames[] = { | |
10653 | (char *) "self", NULL | |
10654 | }; | |
10655 | ||
10656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10659 | { |
10660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10661 | result = (bool)(arg1)->HasZ(); | |
10662 | ||
10663 | wxPyEndAllowThreads(__tstate); | |
10664 | if (PyErr_Occurred()) SWIG_fail; | |
10665 | } | |
4f89f6a3 RD |
10666 | { |
10667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10668 | } | |
d14a1e28 RD |
10669 | return resultobj; |
10670 | fail: | |
10671 | return NULL; | |
10672 | } | |
10673 | ||
10674 | ||
10675 | static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10676 | PyObject *resultobj; | |
10677 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10678 | bool result; | |
10679 | PyObject * obj0 = 0 ; | |
10680 | char *kwnames[] = { | |
10681 | (char *) "self", NULL | |
10682 | }; | |
10683 | ||
10684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10687 | { |
10688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10689 | result = (bool)(arg1)->HasU(); | |
10690 | ||
10691 | wxPyEndAllowThreads(__tstate); | |
10692 | if (PyErr_Occurred()) SWIG_fail; | |
10693 | } | |
4f89f6a3 RD |
10694 | { |
10695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10696 | } | |
d14a1e28 RD |
10697 | return resultobj; |
10698 | fail: | |
10699 | return NULL; | |
10700 | } | |
10701 | ||
10702 | ||
10703 | static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10704 | PyObject *resultobj; | |
10705 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10706 | bool result; | |
10707 | PyObject * obj0 = 0 ; | |
10708 | char *kwnames[] = { | |
10709 | (char *) "self", NULL | |
10710 | }; | |
10711 | ||
10712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10715 | { |
10716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10717 | result = (bool)(arg1)->HasV(); | |
10718 | ||
10719 | wxPyEndAllowThreads(__tstate); | |
10720 | if (PyErr_Occurred()) SWIG_fail; | |
10721 | } | |
4f89f6a3 RD |
10722 | { |
10723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10724 | } | |
d14a1e28 RD |
10725 | return resultobj; |
10726 | fail: | |
10727 | return NULL; | |
10728 | } | |
10729 | ||
10730 | ||
10731 | static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10732 | PyObject *resultobj; | |
10733 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10734 | bool result; | |
10735 | PyObject * obj0 = 0 ; | |
10736 | char *kwnames[] = { | |
10737 | (char *) "self", NULL | |
10738 | }; | |
10739 | ||
10740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10743 | { |
10744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10745 | result = (bool)(arg1)->HasPOV(); | |
10746 | ||
10747 | wxPyEndAllowThreads(__tstate); | |
10748 | if (PyErr_Occurred()) SWIG_fail; | |
10749 | } | |
4f89f6a3 RD |
10750 | { |
10751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10752 | } | |
d14a1e28 RD |
10753 | return resultobj; |
10754 | fail: | |
10755 | return NULL; | |
10756 | } | |
10757 | ||
10758 | ||
10759 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10760 | PyObject *resultobj; | |
10761 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10762 | bool result; | |
10763 | PyObject * obj0 = 0 ; | |
10764 | char *kwnames[] = { | |
10765 | (char *) "self", NULL | |
10766 | }; | |
10767 | ||
10768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10771 | { |
10772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10773 | result = (bool)(arg1)->HasPOV4Dir(); | |
10774 | ||
10775 | wxPyEndAllowThreads(__tstate); | |
10776 | if (PyErr_Occurred()) SWIG_fail; | |
10777 | } | |
4f89f6a3 RD |
10778 | { |
10779 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10780 | } | |
d14a1e28 RD |
10781 | return resultobj; |
10782 | fail: | |
10783 | return NULL; | |
10784 | } | |
10785 | ||
10786 | ||
10787 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10788 | PyObject *resultobj; | |
10789 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10790 | bool result; | |
10791 | PyObject * obj0 = 0 ; | |
10792 | char *kwnames[] = { | |
10793 | (char *) "self", NULL | |
10794 | }; | |
10795 | ||
10796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10799 | { |
10800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10801 | result = (bool)(arg1)->HasPOVCTS(); | |
10802 | ||
10803 | wxPyEndAllowThreads(__tstate); | |
10804 | if (PyErr_Occurred()) SWIG_fail; | |
10805 | } | |
4f89f6a3 RD |
10806 | { |
10807 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10808 | } | |
d14a1e28 RD |
10809 | return resultobj; |
10810 | fail: | |
10811 | return NULL; | |
10812 | } | |
10813 | ||
10814 | ||
10815 | static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10816 | PyObject *resultobj; | |
10817 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10818 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10819 | int arg3 = (int) 0 ; | |
10820 | bool result; | |
10821 | PyObject * obj0 = 0 ; | |
10822 | PyObject * obj1 = 0 ; | |
994141e6 | 10823 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10824 | char *kwnames[] = { |
10825 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
10826 | }; | |
10827 | ||
994141e6 | 10828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10831 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10833 | if (obj2) { |
15afbcd0 RD |
10834 | arg3 = (int) SWIG_AsInt(obj2); |
10835 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10836 | } |
d14a1e28 RD |
10837 | { |
10838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10839 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
10840 | ||
10841 | wxPyEndAllowThreads(__tstate); | |
10842 | if (PyErr_Occurred()) SWIG_fail; | |
10843 | } | |
4f89f6a3 RD |
10844 | { |
10845 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10846 | } | |
d14a1e28 RD |
10847 | return resultobj; |
10848 | fail: | |
10849 | return NULL; | |
10850 | } | |
10851 | ||
10852 | ||
10853 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10854 | PyObject *resultobj; | |
10855 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10856 | bool result; | |
10857 | PyObject * obj0 = 0 ; | |
10858 | char *kwnames[] = { | |
10859 | (char *) "self", NULL | |
10860 | }; | |
10861 | ||
10862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, |
10864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10865 | { |
10866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10867 | result = (bool)(arg1)->ReleaseCapture(); | |
10868 | ||
10869 | wxPyEndAllowThreads(__tstate); | |
10870 | if (PyErr_Occurred()) SWIG_fail; | |
10871 | } | |
4f89f6a3 RD |
10872 | { |
10873 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10874 | } | |
d14a1e28 RD |
10875 | return resultobj; |
10876 | fail: | |
10877 | return NULL; | |
10878 | } | |
10879 | ||
10880 | ||
10881 | static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) { | |
10882 | PyObject *obj; | |
10883 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10884 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
10885 | Py_INCREF(obj); | |
10886 | return Py_BuildValue((char *)""); | |
10887 | } | |
10888 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10889 | PyObject *resultobj; | |
10890 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10891 | wxPoint *arg2 = (wxPoint *) 0 ; | |
10892 | PyObject * obj0 = 0 ; | |
10893 | PyObject * obj1 = 0 ; | |
10894 | char *kwnames[] = { | |
10895 | (char *) "self",(char *) "m_pos", NULL | |
10896 | }; | |
10897 | ||
10898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10901 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
10902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10903 | if (arg1) (arg1)->m_pos = *arg2; |
10904 | ||
10905 | Py_INCREF(Py_None); resultobj = Py_None; | |
10906 | return resultobj; | |
10907 | fail: | |
10908 | return NULL; | |
10909 | } | |
10910 | ||
10911 | ||
10912 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10913 | PyObject *resultobj; | |
10914 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10915 | wxPoint *result; | |
10916 | PyObject * obj0 = 0 ; | |
10917 | char *kwnames[] = { | |
10918 | (char *) "self", NULL | |
10919 | }; | |
10920 | ||
10921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10924 | result = (wxPoint *)& ((arg1)->m_pos); |
10925 | ||
15afbcd0 | 10926 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
10927 | return resultobj; |
10928 | fail: | |
10929 | return NULL; | |
10930 | } | |
10931 | ||
10932 | ||
10933 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10934 | PyObject *resultobj; | |
10935 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10936 | int arg2 ; | |
10937 | PyObject * obj0 = 0 ; | |
994141e6 | 10938 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10939 | char *kwnames[] = { |
10940 | (char *) "self",(char *) "m_zPosition", NULL | |
10941 | }; | |
10942 | ||
994141e6 | 10943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10946 | arg2 = (int) SWIG_AsInt(obj1); | |
10947 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10948 | if (arg1) (arg1)->m_zPosition = arg2; |
10949 | ||
10950 | Py_INCREF(Py_None); resultobj = Py_None; | |
10951 | return resultobj; | |
10952 | fail: | |
10953 | return NULL; | |
10954 | } | |
10955 | ||
10956 | ||
10957 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10958 | PyObject *resultobj; | |
10959 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10960 | int result; | |
10961 | PyObject * obj0 = 0 ; | |
10962 | char *kwnames[] = { | |
10963 | (char *) "self", NULL | |
10964 | }; | |
10965 | ||
10966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10969 | result = (int) ((arg1)->m_zPosition); |
10970 | ||
15afbcd0 | 10971 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10972 | return resultobj; |
10973 | fail: | |
10974 | return NULL; | |
10975 | } | |
10976 | ||
10977 | ||
10978 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10979 | PyObject *resultobj; | |
10980 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10981 | int arg2 ; | |
10982 | PyObject * obj0 = 0 ; | |
994141e6 | 10983 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10984 | char *kwnames[] = { |
10985 | (char *) "self",(char *) "m_buttonChange", NULL | |
10986 | }; | |
10987 | ||
994141e6 | 10988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
10990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10991 | arg2 = (int) SWIG_AsInt(obj1); | |
10992 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10993 | if (arg1) (arg1)->m_buttonChange = arg2; |
10994 | ||
10995 | Py_INCREF(Py_None); resultobj = Py_None; | |
10996 | return resultobj; | |
10997 | fail: | |
10998 | return NULL; | |
10999 | } | |
11000 | ||
11001 | ||
11002 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11003 | PyObject *resultobj; | |
11004 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11005 | int result; | |
11006 | PyObject * obj0 = 0 ; | |
11007 | char *kwnames[] = { | |
11008 | (char *) "self", NULL | |
11009 | }; | |
11010 | ||
11011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11014 | result = (int) ((arg1)->m_buttonChange); |
11015 | ||
15afbcd0 | 11016 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11017 | return resultobj; |
11018 | fail: | |
11019 | return NULL; | |
11020 | } | |
11021 | ||
11022 | ||
11023 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11024 | PyObject *resultobj; | |
11025 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11026 | int arg2 ; | |
11027 | PyObject * obj0 = 0 ; | |
994141e6 | 11028 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11029 | char *kwnames[] = { |
11030 | (char *) "self",(char *) "m_buttonState", NULL | |
11031 | }; | |
11032 | ||
994141e6 | 11033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11036 | arg2 = (int) SWIG_AsInt(obj1); | |
11037 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11038 | if (arg1) (arg1)->m_buttonState = arg2; |
11039 | ||
11040 | Py_INCREF(Py_None); resultobj = Py_None; | |
11041 | return resultobj; | |
11042 | fail: | |
11043 | return NULL; | |
11044 | } | |
11045 | ||
11046 | ||
11047 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11048 | PyObject *resultobj; | |
11049 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11050 | int result; | |
11051 | PyObject * obj0 = 0 ; | |
11052 | char *kwnames[] = { | |
11053 | (char *) "self", NULL | |
11054 | }; | |
11055 | ||
11056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11059 | result = (int) ((arg1)->m_buttonState); |
11060 | ||
15afbcd0 | 11061 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11062 | return resultobj; |
11063 | fail: | |
11064 | return NULL; | |
11065 | } | |
11066 | ||
11067 | ||
11068 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11069 | PyObject *resultobj; | |
11070 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11071 | int arg2 ; | |
11072 | PyObject * obj0 = 0 ; | |
994141e6 | 11073 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11074 | char *kwnames[] = { |
11075 | (char *) "self",(char *) "m_joyStick", NULL | |
11076 | }; | |
11077 | ||
994141e6 | 11078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11081 | arg2 = (int) SWIG_AsInt(obj1); | |
11082 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11083 | if (arg1) (arg1)->m_joyStick = arg2; |
11084 | ||
11085 | Py_INCREF(Py_None); resultobj = Py_None; | |
11086 | return resultobj; | |
11087 | fail: | |
11088 | return NULL; | |
11089 | } | |
11090 | ||
11091 | ||
11092 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11093 | PyObject *resultobj; | |
11094 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11095 | int result; | |
11096 | PyObject * obj0 = 0 ; | |
11097 | char *kwnames[] = { | |
11098 | (char *) "self", NULL | |
11099 | }; | |
11100 | ||
11101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11104 | result = (int) ((arg1)->m_joyStick); |
11105 | ||
15afbcd0 | 11106 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11107 | return resultobj; |
11108 | fail: | |
11109 | return NULL; | |
11110 | } | |
11111 | ||
11112 | ||
11113 | static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11114 | PyObject *resultobj; | |
11115 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11116 | int arg2 = (int) 0 ; | |
11117 | int arg3 = (int) wxJOYSTICK1 ; | |
11118 | int arg4 = (int) 0 ; | |
11119 | wxJoystickEvent *result; | |
994141e6 RD |
11120 | PyObject * obj0 = 0 ; |
11121 | PyObject * obj1 = 0 ; | |
11122 | PyObject * obj2 = 0 ; | |
11123 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11124 | char *kwnames[] = { |
11125 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
11126 | }; | |
11127 | ||
994141e6 RD |
11128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
11129 | if (obj0) { | |
15afbcd0 RD |
11130 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
11131 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11132 | } |
11133 | if (obj1) { | |
15afbcd0 RD |
11134 | arg2 = (int) SWIG_AsInt(obj1); |
11135 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11136 | } |
11137 | if (obj2) { | |
15afbcd0 RD |
11138 | arg3 = (int) SWIG_AsInt(obj2); |
11139 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11140 | } |
11141 | if (obj3) { | |
15afbcd0 RD |
11142 | arg4 = (int) SWIG_AsInt(obj3); |
11143 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11144 | } |
d14a1e28 RD |
11145 | { |
11146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11147 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
11148 | ||
11149 | wxPyEndAllowThreads(__tstate); | |
11150 | if (PyErr_Occurred()) SWIG_fail; | |
11151 | } | |
15afbcd0 | 11152 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1); |
d14a1e28 RD |
11153 | return resultobj; |
11154 | fail: | |
11155 | return NULL; | |
11156 | } | |
11157 | ||
11158 | ||
11159 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11160 | PyObject *resultobj; | |
11161 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11162 | wxPoint result; | |
11163 | PyObject * obj0 = 0 ; | |
11164 | char *kwnames[] = { | |
11165 | (char *) "self", NULL | |
11166 | }; | |
11167 | ||
11168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11171 | { |
11172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11173 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
11174 | ||
11175 | wxPyEndAllowThreads(__tstate); | |
11176 | if (PyErr_Occurred()) SWIG_fail; | |
11177 | } | |
11178 | { | |
11179 | wxPoint * resultptr; | |
11180 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 11181 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
11182 | } |
11183 | return resultobj; | |
11184 | fail: | |
11185 | return NULL; | |
11186 | } | |
11187 | ||
11188 | ||
11189 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11190 | PyObject *resultobj; | |
11191 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11192 | int result; | |
11193 | PyObject * obj0 = 0 ; | |
11194 | char *kwnames[] = { | |
11195 | (char *) "self", NULL | |
11196 | }; | |
11197 | ||
11198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11201 | { |
11202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11203 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
11204 | ||
11205 | wxPyEndAllowThreads(__tstate); | |
11206 | if (PyErr_Occurred()) SWIG_fail; | |
11207 | } | |
15afbcd0 | 11208 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11209 | return resultobj; |
11210 | fail: | |
11211 | return NULL; | |
11212 | } | |
11213 | ||
11214 | ||
11215 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11216 | PyObject *resultobj; | |
11217 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11218 | int result; | |
11219 | PyObject * obj0 = 0 ; | |
11220 | char *kwnames[] = { | |
11221 | (char *) "self", NULL | |
11222 | }; | |
11223 | ||
11224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11227 | { |
11228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11229 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
11230 | ||
11231 | wxPyEndAllowThreads(__tstate); | |
11232 | if (PyErr_Occurred()) SWIG_fail; | |
11233 | } | |
15afbcd0 | 11234 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11235 | return resultobj; |
11236 | fail: | |
11237 | return NULL; | |
11238 | } | |
11239 | ||
11240 | ||
11241 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11242 | PyObject *resultobj; | |
11243 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11244 | int result; | |
11245 | PyObject * obj0 = 0 ; | |
11246 | char *kwnames[] = { | |
11247 | (char *) "self", NULL | |
11248 | }; | |
11249 | ||
11250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11253 | { |
11254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11255 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
11256 | ||
11257 | wxPyEndAllowThreads(__tstate); | |
11258 | if (PyErr_Occurred()) SWIG_fail; | |
11259 | } | |
15afbcd0 | 11260 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11261 | return resultobj; |
11262 | fail: | |
11263 | return NULL; | |
11264 | } | |
11265 | ||
11266 | ||
11267 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11268 | PyObject *resultobj; | |
11269 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11270 | int result; | |
11271 | PyObject * obj0 = 0 ; | |
11272 | char *kwnames[] = { | |
11273 | (char *) "self", NULL | |
11274 | }; | |
11275 | ||
11276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11279 | { |
11280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11281 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
11282 | ||
11283 | wxPyEndAllowThreads(__tstate); | |
11284 | if (PyErr_Occurred()) SWIG_fail; | |
11285 | } | |
15afbcd0 | 11286 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11287 | return resultobj; |
11288 | fail: | |
11289 | return NULL; | |
11290 | } | |
11291 | ||
11292 | ||
11293 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11294 | PyObject *resultobj; | |
11295 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11296 | int arg2 ; | |
11297 | PyObject * obj0 = 0 ; | |
994141e6 | 11298 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11299 | char *kwnames[] = { |
11300 | (char *) "self",(char *) "stick", NULL | |
11301 | }; | |
11302 | ||
994141e6 | 11303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11306 | arg2 = (int) SWIG_AsInt(obj1); | |
11307 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11308 | { |
11309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11310 | (arg1)->SetJoystick(arg2); | |
11311 | ||
11312 | wxPyEndAllowThreads(__tstate); | |
11313 | if (PyErr_Occurred()) SWIG_fail; | |
11314 | } | |
11315 | Py_INCREF(Py_None); resultobj = Py_None; | |
11316 | return resultobj; | |
11317 | fail: | |
11318 | return NULL; | |
11319 | } | |
11320 | ||
11321 | ||
11322 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11323 | PyObject *resultobj; | |
11324 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11325 | int arg2 ; | |
11326 | PyObject * obj0 = 0 ; | |
994141e6 | 11327 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11328 | char *kwnames[] = { |
11329 | (char *) "self",(char *) "state", NULL | |
11330 | }; | |
11331 | ||
994141e6 | 11332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11335 | arg2 = (int) SWIG_AsInt(obj1); | |
11336 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11337 | { |
11338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11339 | (arg1)->SetButtonState(arg2); | |
11340 | ||
11341 | wxPyEndAllowThreads(__tstate); | |
11342 | if (PyErr_Occurred()) SWIG_fail; | |
11343 | } | |
11344 | Py_INCREF(Py_None); resultobj = Py_None; | |
11345 | return resultobj; | |
11346 | fail: | |
11347 | return NULL; | |
11348 | } | |
11349 | ||
11350 | ||
11351 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11352 | PyObject *resultobj; | |
11353 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11354 | int arg2 ; | |
11355 | PyObject * obj0 = 0 ; | |
994141e6 | 11356 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11357 | char *kwnames[] = { |
11358 | (char *) "self",(char *) "change", NULL | |
11359 | }; | |
11360 | ||
994141e6 | 11361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11364 | arg2 = (int) SWIG_AsInt(obj1); | |
11365 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11366 | { |
11367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11368 | (arg1)->SetButtonChange(arg2); | |
11369 | ||
11370 | wxPyEndAllowThreads(__tstate); | |
11371 | if (PyErr_Occurred()) SWIG_fail; | |
11372 | } | |
11373 | Py_INCREF(Py_None); resultobj = Py_None; | |
11374 | return resultobj; | |
11375 | fail: | |
11376 | return NULL; | |
11377 | } | |
11378 | ||
11379 | ||
11380 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11381 | PyObject *resultobj; | |
11382 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11383 | wxPoint *arg2 = 0 ; | |
11384 | wxPoint temp2 ; | |
11385 | PyObject * obj0 = 0 ; | |
11386 | PyObject * obj1 = 0 ; | |
11387 | char *kwnames[] = { | |
11388 | (char *) "self",(char *) "pos", NULL | |
11389 | }; | |
11390 | ||
11391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11394 | { |
11395 | arg2 = &temp2; | |
11396 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11397 | } | |
11398 | { | |
11399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11400 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
11401 | ||
11402 | wxPyEndAllowThreads(__tstate); | |
11403 | if (PyErr_Occurred()) SWIG_fail; | |
11404 | } | |
11405 | Py_INCREF(Py_None); resultobj = Py_None; | |
11406 | return resultobj; | |
11407 | fail: | |
11408 | return NULL; | |
11409 | } | |
11410 | ||
11411 | ||
11412 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11413 | PyObject *resultobj; | |
11414 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11415 | int arg2 ; | |
11416 | PyObject * obj0 = 0 ; | |
994141e6 | 11417 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11418 | char *kwnames[] = { |
11419 | (char *) "self",(char *) "zPos", NULL | |
11420 | }; | |
11421 | ||
994141e6 | 11422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11425 | arg2 = (int) SWIG_AsInt(obj1); | |
11426 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11427 | { |
11428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11429 | (arg1)->SetZPosition(arg2); | |
11430 | ||
11431 | wxPyEndAllowThreads(__tstate); | |
11432 | if (PyErr_Occurred()) SWIG_fail; | |
11433 | } | |
11434 | Py_INCREF(Py_None); resultobj = Py_None; | |
11435 | return resultobj; | |
11436 | fail: | |
11437 | return NULL; | |
11438 | } | |
11439 | ||
11440 | ||
11441 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11442 | PyObject *resultobj; | |
11443 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11444 | bool result; | |
11445 | PyObject * obj0 = 0 ; | |
11446 | char *kwnames[] = { | |
11447 | (char *) "self", NULL | |
11448 | }; | |
11449 | ||
11450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11453 | { |
11454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11455 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
11456 | ||
11457 | wxPyEndAllowThreads(__tstate); | |
11458 | if (PyErr_Occurred()) SWIG_fail; | |
11459 | } | |
4f89f6a3 RD |
11460 | { |
11461 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11462 | } | |
d14a1e28 RD |
11463 | return resultobj; |
11464 | fail: | |
11465 | return NULL; | |
11466 | } | |
11467 | ||
11468 | ||
11469 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11470 | PyObject *resultobj; | |
11471 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11472 | bool result; | |
11473 | PyObject * obj0 = 0 ; | |
11474 | char *kwnames[] = { | |
11475 | (char *) "self", NULL | |
11476 | }; | |
11477 | ||
11478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11481 | { |
11482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11483 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
11484 | ||
11485 | wxPyEndAllowThreads(__tstate); | |
11486 | if (PyErr_Occurred()) SWIG_fail; | |
11487 | } | |
4f89f6a3 RD |
11488 | { |
11489 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11490 | } | |
d14a1e28 RD |
11491 | return resultobj; |
11492 | fail: | |
11493 | return NULL; | |
11494 | } | |
11495 | ||
11496 | ||
11497 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11498 | PyObject *resultobj; | |
11499 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11500 | bool result; | |
11501 | PyObject * obj0 = 0 ; | |
11502 | char *kwnames[] = { | |
11503 | (char *) "self", NULL | |
11504 | }; | |
11505 | ||
11506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11509 | { |
11510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11511 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
11512 | ||
11513 | wxPyEndAllowThreads(__tstate); | |
11514 | if (PyErr_Occurred()) SWIG_fail; | |
11515 | } | |
4f89f6a3 RD |
11516 | { |
11517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11518 | } | |
d14a1e28 RD |
11519 | return resultobj; |
11520 | fail: | |
11521 | return NULL; | |
11522 | } | |
11523 | ||
11524 | ||
11525 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11526 | PyObject *resultobj; | |
11527 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11528 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11529 | bool result; | |
11530 | PyObject * obj0 = 0 ; | |
994141e6 | 11531 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11532 | char *kwnames[] = { |
11533 | (char *) "self",(char *) "but", NULL | |
11534 | }; | |
11535 | ||
994141e6 | 11536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11539 | if (obj1) { |
15afbcd0 RD |
11540 | arg2 = (int) SWIG_AsInt(obj1); |
11541 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11542 | } |
d14a1e28 RD |
11543 | { |
11544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11545 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
11546 | ||
11547 | wxPyEndAllowThreads(__tstate); | |
11548 | if (PyErr_Occurred()) SWIG_fail; | |
11549 | } | |
4f89f6a3 RD |
11550 | { |
11551 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11552 | } | |
d14a1e28 RD |
11553 | return resultobj; |
11554 | fail: | |
11555 | return NULL; | |
11556 | } | |
11557 | ||
11558 | ||
11559 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11560 | PyObject *resultobj; | |
11561 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11562 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11563 | bool result; | |
11564 | PyObject * obj0 = 0 ; | |
994141e6 | 11565 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11566 | char *kwnames[] = { |
11567 | (char *) "self",(char *) "but", NULL | |
11568 | }; | |
11569 | ||
994141e6 | 11570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11573 | if (obj1) { |
15afbcd0 RD |
11574 | arg2 = (int) SWIG_AsInt(obj1); |
11575 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11576 | } |
d14a1e28 RD |
11577 | { |
11578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11579 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
11580 | ||
11581 | wxPyEndAllowThreads(__tstate); | |
11582 | if (PyErr_Occurred()) SWIG_fail; | |
11583 | } | |
4f89f6a3 RD |
11584 | { |
11585 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11586 | } | |
d14a1e28 RD |
11587 | return resultobj; |
11588 | fail: | |
11589 | return NULL; | |
11590 | } | |
11591 | ||
11592 | ||
11593 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11594 | PyObject *resultobj; | |
11595 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11596 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11597 | bool result; | |
11598 | PyObject * obj0 = 0 ; | |
994141e6 | 11599 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11600 | char *kwnames[] = { |
11601 | (char *) "self",(char *) "but", NULL | |
11602 | }; | |
11603 | ||
994141e6 | 11604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, |
11606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11607 | if (obj1) { |
15afbcd0 RD |
11608 | arg2 = (int) SWIG_AsInt(obj1); |
11609 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11610 | } |
d14a1e28 RD |
11611 | { |
11612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11613 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
11614 | ||
11615 | wxPyEndAllowThreads(__tstate); | |
11616 | if (PyErr_Occurred()) SWIG_fail; | |
11617 | } | |
4f89f6a3 RD |
11618 | { |
11619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11620 | } | |
d14a1e28 RD |
11621 | return resultobj; |
11622 | fail: | |
11623 | return NULL; | |
11624 | } | |
11625 | ||
11626 | ||
11627 | static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) { | |
11628 | PyObject *obj; | |
11629 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11630 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
11631 | Py_INCREF(obj); | |
11632 | return Py_BuildValue((char *)""); | |
11633 | } | |
36cadbf7 | 11634 | static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11635 | PyObject *resultobj; |
36cadbf7 RD |
11636 | wxString const &arg1_defvalue = wxPyEmptyString ; |
11637 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
4d5c3d91 | 11638 | wxSound *result; |
e811c8ce | 11639 | bool temp1 = False ; |
d14a1e28 | 11640 | PyObject * obj0 = 0 ; |
36cadbf7 RD |
11641 | char *kwnames[] = { |
11642 | (char *) "fileName", NULL | |
11643 | }; | |
d14a1e28 | 11644 | |
36cadbf7 RD |
11645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail; |
11646 | if (obj0) { | |
11647 | { | |
11648 | arg1 = wxString_in_helper(obj0); | |
11649 | if (arg1 == NULL) SWIG_fail; | |
11650 | temp1 = True; | |
11651 | } | |
d14a1e28 RD |
11652 | } |
11653 | { | |
e3b71cb8 | 11654 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 11655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36cadbf7 | 11656 | result = (wxSound *)new_wxSound((wxString const &)*arg1); |
d14a1e28 RD |
11657 | |
11658 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 11659 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11660 | } |
15afbcd0 | 11661 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); |
d14a1e28 RD |
11662 | { |
11663 | if (temp1) | |
11664 | delete arg1; | |
11665 | } | |
11666 | return resultobj; | |
11667 | fail: | |
11668 | { | |
11669 | if (temp1) | |
11670 | delete arg1; | |
11671 | } | |
11672 | return NULL; | |
11673 | } | |
11674 | ||
11675 | ||
36cadbf7 | 11676 | static PyObject *_wrap_new_SoundFromData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11677 | PyObject *resultobj; |
36cadbf7 | 11678 | PyObject *arg1 = (PyObject *) 0 ; |
4d5c3d91 | 11679 | wxSound *result; |
d14a1e28 | 11680 | PyObject * obj0 = 0 ; |
36cadbf7 RD |
11681 | char *kwnames[] = { |
11682 | (char *) "data", NULL | |
11683 | }; | |
d14a1e28 | 11684 | |
36cadbf7 RD |
11685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail; |
11686 | arg1 = obj0; | |
d14a1e28 | 11687 | { |
e3b71cb8 | 11688 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 11689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36cadbf7 | 11690 | result = (wxSound *)new_wxSound(arg1); |
d14a1e28 RD |
11691 | |
11692 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 11693 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11694 | } |
15afbcd0 | 11695 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); |
d14a1e28 RD |
11696 | return resultobj; |
11697 | fail: | |
4d5c3d91 RD |
11698 | return NULL; |
11699 | } | |
11700 | ||
11701 | ||
4d5c3d91 | 11702 | static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11703 | PyObject *resultobj; |
4d5c3d91 | 11704 | wxSound *arg1 = (wxSound *) 0 ; |
d14a1e28 RD |
11705 | PyObject * obj0 = 0 ; |
11706 | char *kwnames[] = { | |
11707 | (char *) "self", NULL | |
11708 | }; | |
11709 | ||
4d5c3d91 | 11710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
11711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11713 | { |
11714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11715 | delete arg1; | |
11716 | ||
11717 | wxPyEndAllowThreads(__tstate); | |
11718 | if (PyErr_Occurred()) SWIG_fail; | |
11719 | } | |
11720 | Py_INCREF(Py_None); resultobj = Py_None; | |
11721 | return resultobj; | |
11722 | fail: | |
11723 | return NULL; | |
11724 | } | |
11725 | ||
11726 | ||
36cadbf7 | 11727 | static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11728 | PyObject *resultobj; |
4d5c3d91 RD |
11729 | wxSound *arg1 = (wxSound *) 0 ; |
11730 | wxString *arg2 = 0 ; | |
d14a1e28 | 11731 | bool result; |
4d5c3d91 | 11732 | bool temp2 = False ; |
d14a1e28 | 11733 | PyObject * obj0 = 0 ; |
4d5c3d91 | 11734 | PyObject * obj1 = 0 ; |
36cadbf7 RD |
11735 | char *kwnames[] = { |
11736 | (char *) "self",(char *) "fileName", NULL | |
11737 | }; | |
d14a1e28 | 11738 | |
36cadbf7 | 11739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4d5c3d91 RD |
11742 | { |
11743 | arg2 = wxString_in_helper(obj1); | |
11744 | if (arg2 == NULL) SWIG_fail; | |
11745 | temp2 = True; | |
11746 | } | |
d14a1e28 RD |
11747 | { |
11748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36cadbf7 | 11749 | result = (bool)(arg1)->Create((wxString const &)*arg2); |
d14a1e28 RD |
11750 | |
11751 | wxPyEndAllowThreads(__tstate); | |
11752 | if (PyErr_Occurred()) SWIG_fail; | |
11753 | } | |
4f89f6a3 RD |
11754 | { |
11755 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11756 | } | |
4d5c3d91 RD |
11757 | { |
11758 | if (temp2) | |
11759 | delete arg2; | |
11760 | } | |
d14a1e28 RD |
11761 | return resultobj; |
11762 | fail: | |
4d5c3d91 RD |
11763 | { |
11764 | if (temp2) | |
11765 | delete arg2; | |
11766 | } | |
d14a1e28 RD |
11767 | return NULL; |
11768 | } | |
11769 | ||
11770 | ||
36cadbf7 | 11771 | static PyObject *_wrap_Sound_CreateFromData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 11772 | PyObject *resultobj; |
4d5c3d91 | 11773 | wxSound *arg1 = (wxSound *) 0 ; |
36cadbf7 | 11774 | PyObject *arg2 = (PyObject *) 0 ; |
d14a1e28 RD |
11775 | bool result; |
11776 | PyObject * obj0 = 0 ; | |
11777 | PyObject * obj1 = 0 ; | |
36cadbf7 RD |
11778 | char *kwnames[] = { |
11779 | (char *) "self",(char *) "data", NULL | |
11780 | }; | |
4d5c3d91 | 11781 | |
36cadbf7 | 11782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36cadbf7 | 11785 | arg2 = obj1; |
4d5c3d91 RD |
11786 | { |
11787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36cadbf7 | 11788 | result = (bool)wxSound_CreateFromData(arg1,arg2); |
4d5c3d91 RD |
11789 | |
11790 | wxPyEndAllowThreads(__tstate); | |
11791 | if (PyErr_Occurred()) SWIG_fail; | |
11792 | } | |
4f89f6a3 RD |
11793 | { |
11794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11795 | } | |
4d5c3d91 RD |
11796 | return resultobj; |
11797 | fail: | |
11798 | return NULL; | |
11799 | } | |
11800 | ||
11801 | ||
4d5c3d91 RD |
11802 | static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { |
11803 | PyObject *resultobj; | |
11804 | wxSound *arg1 = (wxSound *) 0 ; | |
11805 | bool result; | |
11806 | PyObject * obj0 = 0 ; | |
d14a1e28 | 11807 | char *kwnames[] = { |
4d5c3d91 | 11808 | (char *) "self", NULL |
d14a1e28 RD |
11809 | }; |
11810 | ||
4d5c3d91 | 11811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
11812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4d5c3d91 RD |
11814 | { |
11815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11816 | result = (bool)(arg1)->IsOk(); | |
11817 | ||
11818 | wxPyEndAllowThreads(__tstate); | |
11819 | if (PyErr_Occurred()) SWIG_fail; | |
11820 | } | |
4f89f6a3 RD |
11821 | { |
11822 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11823 | } | |
4d5c3d91 RD |
11824 | return resultobj; |
11825 | fail: | |
11826 | return NULL; | |
11827 | } | |
11828 | ||
11829 | ||
36cadbf7 | 11830 | static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args, PyObject *kwargs) { |
4d5c3d91 RD |
11831 | PyObject *resultobj; |
11832 | wxSound *arg1 = (wxSound *) 0 ; | |
11833 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11834 | bool result; | |
11835 | PyObject * obj0 = 0 ; | |
11836 | PyObject * obj1 = 0 ; | |
36cadbf7 RD |
11837 | char *kwnames[] = { |
11838 | (char *) "self",(char *) "flags", NULL | |
11839 | }; | |
4d5c3d91 | 11840 | |
36cadbf7 | 11841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 11844 | if (obj1) { |
15afbcd0 RD |
11845 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); |
11846 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 11847 | } |
4d5c3d91 | 11848 | { |
e3b71cb8 | 11849 | if (!wxPyCheckForApp()) SWIG_fail; |
4d5c3d91 RD |
11850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11851 | result = (bool)((wxSound const *)arg1)->Play(arg2); | |
11852 | ||
11853 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 11854 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 | 11855 | } |
4f89f6a3 RD |
11856 | { |
11857 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11858 | } | |
4d5c3d91 RD |
11859 | return resultobj; |
11860 | fail: | |
11861 | return NULL; | |
11862 | } | |
11863 | ||
11864 | ||
36cadbf7 | 11865 | static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args, PyObject *kwargs) { |
4d5c3d91 RD |
11866 | PyObject *resultobj; |
11867 | wxString *arg1 = 0 ; | |
11868 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11869 | bool result; | |
11870 | bool temp1 = False ; | |
11871 | PyObject * obj0 = 0 ; | |
11872 | PyObject * obj1 = 0 ; | |
36cadbf7 RD |
11873 | char *kwnames[] = { |
11874 | (char *) "filename",(char *) "flags", NULL | |
11875 | }; | |
4d5c3d91 | 11876 | |
36cadbf7 | 11877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail; |
4d5c3d91 RD |
11878 | { |
11879 | arg1 = wxString_in_helper(obj0); | |
11880 | if (arg1 == NULL) SWIG_fail; | |
11881 | temp1 = True; | |
11882 | } | |
11883 | if (obj1) { | |
15afbcd0 RD |
11884 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); |
11885 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11886 | } |
11887 | { | |
e3b71cb8 | 11888 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 11889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 11890 | result = (bool)wxSound::Play((wxString const &)*arg1,arg2); |
d14a1e28 RD |
11891 | |
11892 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 11893 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11894 | } |
4f89f6a3 RD |
11895 | { |
11896 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11897 | } | |
4d5c3d91 RD |
11898 | { |
11899 | if (temp1) | |
11900 | delete arg1; | |
11901 | } | |
d14a1e28 RD |
11902 | return resultobj; |
11903 | fail: | |
4d5c3d91 RD |
11904 | { |
11905 | if (temp1) | |
11906 | delete arg1; | |
11907 | } | |
d14a1e28 RD |
11908 | return NULL; |
11909 | } | |
11910 | ||
11911 | ||
4d5c3d91 RD |
11912 | static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { |
11913 | PyObject *resultobj; | |
11914 | char *kwnames[] = { | |
11915 | NULL | |
11916 | }; | |
11917 | ||
11918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; | |
11919 | { | |
e3b71cb8 | 11920 | if (!wxPyCheckForApp()) SWIG_fail; |
4d5c3d91 RD |
11921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11922 | wxSound::Stop(); | |
11923 | ||
11924 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 11925 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
11926 | } |
11927 | Py_INCREF(Py_None); resultobj = Py_None; | |
11928 | return resultobj; | |
11929 | fail: | |
11930 | return NULL; | |
11931 | } | |
11932 | ||
11933 | ||
11934 | static PyObject * Sound_swigregister(PyObject *self, PyObject *args) { | |
d14a1e28 RD |
11935 | PyObject *obj; |
11936 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4d5c3d91 | 11937 | SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); |
d14a1e28 RD |
11938 | Py_INCREF(obj); |
11939 | return Py_BuildValue((char *)""); | |
11940 | } | |
11941 | static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11942 | PyObject *resultobj; | |
11943 | wxString *arg1 = 0 ; | |
11944 | wxString *arg2 = 0 ; | |
11945 | wxString *arg3 = 0 ; | |
11946 | wxString *arg4 = 0 ; | |
11947 | wxFileTypeInfo *result; | |
e811c8ce RD |
11948 | bool temp1 = False ; |
11949 | bool temp2 = False ; | |
11950 | bool temp3 = False ; | |
11951 | bool temp4 = False ; | |
d14a1e28 RD |
11952 | PyObject * obj0 = 0 ; |
11953 | PyObject * obj1 = 0 ; | |
11954 | PyObject * obj2 = 0 ; | |
11955 | PyObject * obj3 = 0 ; | |
11956 | char *kwnames[] = { | |
11957 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
11958 | }; | |
11959 | ||
11960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11961 | { | |
11962 | arg1 = wxString_in_helper(obj0); | |
11963 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 11964 | temp1 = True; |
d14a1e28 RD |
11965 | } |
11966 | { | |
11967 | arg2 = wxString_in_helper(obj1); | |
11968 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11969 | temp2 = True; |
d14a1e28 RD |
11970 | } |
11971 | { | |
11972 | arg3 = wxString_in_helper(obj2); | |
11973 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11974 | temp3 = True; |
d14a1e28 RD |
11975 | } |
11976 | { | |
11977 | arg4 = wxString_in_helper(obj3); | |
11978 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 11979 | temp4 = True; |
d14a1e28 RD |
11980 | } |
11981 | { | |
11982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11983 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
11984 | ||
11985 | wxPyEndAllowThreads(__tstate); | |
11986 | if (PyErr_Occurred()) SWIG_fail; | |
11987 | } | |
15afbcd0 | 11988 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 RD |
11989 | { |
11990 | if (temp1) | |
11991 | delete arg1; | |
11992 | } | |
11993 | { | |
11994 | if (temp2) | |
11995 | delete arg2; | |
11996 | } | |
11997 | { | |
11998 | if (temp3) | |
11999 | delete arg3; | |
12000 | } | |
12001 | { | |
12002 | if (temp4) | |
12003 | delete arg4; | |
12004 | } | |
12005 | return resultobj; | |
12006 | fail: | |
12007 | { | |
12008 | if (temp1) | |
12009 | delete arg1; | |
12010 | } | |
12011 | { | |
12012 | if (temp2) | |
12013 | delete arg2; | |
12014 | } | |
12015 | { | |
12016 | if (temp3) | |
12017 | delete arg3; | |
12018 | } | |
12019 | { | |
12020 | if (temp4) | |
12021 | delete arg4; | |
12022 | } | |
12023 | return NULL; | |
12024 | } | |
12025 | ||
12026 | ||
12027 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12028 | PyObject *resultobj; | |
12029 | wxArrayString *arg1 = 0 ; | |
12030 | wxFileTypeInfo *result; | |
3adfb63b | 12031 | bool temp1 = False ; |
d14a1e28 RD |
12032 | PyObject * obj0 = 0 ; |
12033 | char *kwnames[] = { | |
12034 | (char *) "sArray", NULL | |
12035 | }; | |
12036 | ||
12037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
12038 | { | |
12039 | if (! PySequence_Check(obj0)) { | |
12040 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
12041 | SWIG_fail; | |
12042 | } | |
12043 | arg1 = new wxArrayString; | |
3adfb63b | 12044 | temp1 = True; |
d14a1e28 RD |
12045 | int i, len=PySequence_Length(obj0); |
12046 | for (i=0; i<len; i++) { | |
12047 | PyObject* item = PySequence_GetItem(obj0, i); | |
12048 | #if wxUSE_UNICODE | |
12049 | PyObject* str = PyObject_Unicode(item); | |
12050 | #else | |
12051 | PyObject* str = PyObject_Str(item); | |
12052 | #endif | |
74a57fcd | 12053 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
12054 | arg1->Add(Py2wxString(str)); |
12055 | Py_DECREF(item); | |
12056 | Py_DECREF(str); | |
12057 | } | |
12058 | } | |
12059 | { | |
12060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12061 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
12062 | ||
12063 | wxPyEndAllowThreads(__tstate); | |
12064 | if (PyErr_Occurred()) SWIG_fail; | |
12065 | } | |
15afbcd0 | 12066 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 | 12067 | { |
3adfb63b | 12068 | if (temp1) delete arg1; |
d14a1e28 RD |
12069 | } |
12070 | return resultobj; | |
12071 | fail: | |
12072 | { | |
3adfb63b | 12073 | if (temp1) delete arg1; |
d14a1e28 RD |
12074 | } |
12075 | return NULL; | |
12076 | } | |
12077 | ||
12078 | ||
12079 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12080 | PyObject *resultobj; | |
12081 | wxFileTypeInfo *result; | |
12082 | char *kwnames[] = { | |
12083 | NULL | |
12084 | }; | |
12085 | ||
12086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
12087 | { | |
12088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12089 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
12090 | ||
12091 | wxPyEndAllowThreads(__tstate); | |
12092 | if (PyErr_Occurred()) SWIG_fail; | |
12093 | } | |
15afbcd0 | 12094 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); |
d14a1e28 RD |
12095 | return resultobj; |
12096 | fail: | |
12097 | return NULL; | |
12098 | } | |
12099 | ||
12100 | ||
12101 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12102 | PyObject *resultobj; | |
12103 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12104 | bool result; | |
12105 | PyObject * obj0 = 0 ; | |
12106 | char *kwnames[] = { | |
12107 | (char *) "self", NULL | |
12108 | }; | |
12109 | ||
12110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12113 | { |
12114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12115 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
12116 | ||
12117 | wxPyEndAllowThreads(__tstate); | |
12118 | if (PyErr_Occurred()) SWIG_fail; | |
12119 | } | |
4f89f6a3 RD |
12120 | { |
12121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12122 | } | |
d14a1e28 RD |
12123 | return resultobj; |
12124 | fail: | |
12125 | return NULL; | |
12126 | } | |
12127 | ||
12128 | ||
12129 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12130 | PyObject *resultobj; | |
12131 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12132 | wxString *arg2 = 0 ; | |
12133 | int arg3 = (int) 0 ; | |
e811c8ce | 12134 | bool temp2 = False ; |
d14a1e28 RD |
12135 | PyObject * obj0 = 0 ; |
12136 | PyObject * obj1 = 0 ; | |
994141e6 | 12137 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12138 | char *kwnames[] = { |
12139 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
12140 | }; | |
12141 | ||
994141e6 | 12142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12145 | { |
12146 | arg2 = wxString_in_helper(obj1); | |
12147 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12148 | temp2 = True; |
d14a1e28 | 12149 | } |
994141e6 | 12150 | if (obj2) { |
15afbcd0 RD |
12151 | arg3 = (int) SWIG_AsInt(obj2); |
12152 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12153 | } |
d14a1e28 RD |
12154 | { |
12155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12156 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
12157 | ||
12158 | wxPyEndAllowThreads(__tstate); | |
12159 | if (PyErr_Occurred()) SWIG_fail; | |
12160 | } | |
12161 | Py_INCREF(Py_None); resultobj = Py_None; | |
12162 | { | |
12163 | if (temp2) | |
12164 | delete arg2; | |
12165 | } | |
12166 | return resultobj; | |
12167 | fail: | |
12168 | { | |
12169 | if (temp2) | |
12170 | delete arg2; | |
12171 | } | |
12172 | return NULL; | |
12173 | } | |
12174 | ||
12175 | ||
12176 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12177 | PyObject *resultobj; | |
12178 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12179 | wxString *arg2 = 0 ; | |
e811c8ce | 12180 | bool temp2 = False ; |
d14a1e28 RD |
12181 | PyObject * obj0 = 0 ; |
12182 | PyObject * obj1 = 0 ; | |
12183 | char *kwnames[] = { | |
12184 | (char *) "self",(char *) "shortDesc", NULL | |
12185 | }; | |
12186 | ||
12187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12190 | { |
12191 | arg2 = wxString_in_helper(obj1); | |
12192 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12193 | temp2 = True; |
d14a1e28 RD |
12194 | } |
12195 | { | |
12196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12197 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
12198 | ||
12199 | wxPyEndAllowThreads(__tstate); | |
12200 | if (PyErr_Occurred()) SWIG_fail; | |
12201 | } | |
12202 | Py_INCREF(Py_None); resultobj = Py_None; | |
12203 | { | |
12204 | if (temp2) | |
12205 | delete arg2; | |
12206 | } | |
12207 | return resultobj; | |
12208 | fail: | |
12209 | { | |
12210 | if (temp2) | |
12211 | delete arg2; | |
12212 | } | |
12213 | return NULL; | |
12214 | } | |
12215 | ||
12216 | ||
12217 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12218 | PyObject *resultobj; | |
12219 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12220 | wxString *result; | |
12221 | PyObject * obj0 = 0 ; | |
12222 | char *kwnames[] = { | |
12223 | (char *) "self", NULL | |
12224 | }; | |
12225 | ||
12226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12229 | { |
12230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12231 | { | |
12232 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
12233 | result = (wxString *) &_result_ref; | |
12234 | } | |
12235 | ||
12236 | wxPyEndAllowThreads(__tstate); | |
12237 | if (PyErr_Occurred()) SWIG_fail; | |
12238 | } | |
cc6dd355 RD |
12239 | { |
12240 | #if wxUSE_UNICODE | |
12241 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12242 | #else | |
12243 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12244 | #endif | |
12245 | } | |
d14a1e28 RD |
12246 | return resultobj; |
12247 | fail: | |
12248 | return NULL; | |
12249 | } | |
12250 | ||
12251 | ||
12252 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12253 | PyObject *resultobj; | |
12254 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12255 | wxString *result; | |
12256 | PyObject * obj0 = 0 ; | |
12257 | char *kwnames[] = { | |
12258 | (char *) "self", NULL | |
12259 | }; | |
12260 | ||
12261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12264 | { |
12265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12266 | { | |
12267 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
12268 | result = (wxString *) &_result_ref; | |
12269 | } | |
12270 | ||
12271 | wxPyEndAllowThreads(__tstate); | |
12272 | if (PyErr_Occurred()) SWIG_fail; | |
12273 | } | |
cc6dd355 RD |
12274 | { |
12275 | #if wxUSE_UNICODE | |
12276 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12277 | #else | |
12278 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12279 | #endif | |
12280 | } | |
d14a1e28 RD |
12281 | return resultobj; |
12282 | fail: | |
12283 | return NULL; | |
12284 | } | |
12285 | ||
12286 | ||
12287 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12288 | PyObject *resultobj; | |
12289 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12290 | wxString *result; | |
12291 | PyObject * obj0 = 0 ; | |
12292 | char *kwnames[] = { | |
12293 | (char *) "self", NULL | |
12294 | }; | |
12295 | ||
12296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12299 | { |
12300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12301 | { | |
12302 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
12303 | result = (wxString *) &_result_ref; | |
12304 | } | |
12305 | ||
12306 | wxPyEndAllowThreads(__tstate); | |
12307 | if (PyErr_Occurred()) SWIG_fail; | |
12308 | } | |
cc6dd355 RD |
12309 | { |
12310 | #if wxUSE_UNICODE | |
12311 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12312 | #else | |
12313 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12314 | #endif | |
12315 | } | |
d14a1e28 RD |
12316 | return resultobj; |
12317 | fail: | |
12318 | return NULL; | |
12319 | } | |
12320 | ||
12321 | ||
12322 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12323 | PyObject *resultobj; | |
12324 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12325 | wxString *result; | |
12326 | PyObject * obj0 = 0 ; | |
12327 | char *kwnames[] = { | |
12328 | (char *) "self", NULL | |
12329 | }; | |
12330 | ||
12331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12334 | { |
12335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12336 | { | |
12337 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
12338 | result = (wxString *) &_result_ref; | |
12339 | } | |
12340 | ||
12341 | wxPyEndAllowThreads(__tstate); | |
12342 | if (PyErr_Occurred()) SWIG_fail; | |
12343 | } | |
cc6dd355 RD |
12344 | { |
12345 | #if wxUSE_UNICODE | |
12346 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12347 | #else | |
12348 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12349 | #endif | |
12350 | } | |
d14a1e28 RD |
12351 | return resultobj; |
12352 | fail: | |
12353 | return NULL; | |
12354 | } | |
12355 | ||
12356 | ||
12357 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12358 | PyObject *resultobj; | |
12359 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12360 | wxString *result; | |
12361 | PyObject * obj0 = 0 ; | |
12362 | char *kwnames[] = { | |
12363 | (char *) "self", NULL | |
12364 | }; | |
12365 | ||
12366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12369 | { |
12370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12371 | { | |
12372 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
12373 | result = (wxString *) &_result_ref; | |
12374 | } | |
12375 | ||
12376 | wxPyEndAllowThreads(__tstate); | |
12377 | if (PyErr_Occurred()) SWIG_fail; | |
12378 | } | |
cc6dd355 RD |
12379 | { |
12380 | #if wxUSE_UNICODE | |
12381 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12382 | #else | |
12383 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12384 | #endif | |
12385 | } | |
d14a1e28 RD |
12386 | return resultobj; |
12387 | fail: | |
12388 | return NULL; | |
12389 | } | |
12390 | ||
12391 | ||
12392 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12393 | PyObject *resultobj; | |
12394 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12395 | wxArrayString *result; | |
12396 | PyObject * obj0 = 0 ; | |
12397 | char *kwnames[] = { | |
12398 | (char *) "self", NULL | |
12399 | }; | |
12400 | ||
12401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12404 | { |
12405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12406 | { | |
12407 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
12408 | result = (wxArrayString *) &_result_ref; | |
12409 | } | |
12410 | ||
12411 | wxPyEndAllowThreads(__tstate); | |
12412 | if (PyErr_Occurred()) SWIG_fail; | |
12413 | } | |
12414 | { | |
12415 | resultobj = wxArrayString2PyList_helper(*result); | |
12416 | } | |
12417 | return resultobj; | |
12418 | fail: | |
12419 | return NULL; | |
12420 | } | |
12421 | ||
12422 | ||
12423 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12424 | PyObject *resultobj; | |
12425 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12426 | int result; | |
12427 | PyObject * obj0 = 0 ; | |
12428 | char *kwnames[] = { | |
12429 | (char *) "self", NULL | |
12430 | }; | |
12431 | ||
12432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12435 | { |
12436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12437 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
12438 | ||
12439 | wxPyEndAllowThreads(__tstate); | |
12440 | if (PyErr_Occurred()) SWIG_fail; | |
12441 | } | |
15afbcd0 | 12442 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12443 | return resultobj; |
12444 | fail: | |
12445 | return NULL; | |
12446 | } | |
12447 | ||
12448 | ||
12449 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12450 | PyObject *resultobj; | |
12451 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12452 | wxString *result; | |
12453 | PyObject * obj0 = 0 ; | |
12454 | char *kwnames[] = { | |
12455 | (char *) "self", NULL | |
12456 | }; | |
12457 | ||
12458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12461 | { |
12462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12463 | { | |
12464 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
12465 | result = (wxString *) &_result_ref; | |
12466 | } | |
12467 | ||
12468 | wxPyEndAllowThreads(__tstate); | |
12469 | if (PyErr_Occurred()) SWIG_fail; | |
12470 | } | |
cc6dd355 RD |
12471 | { |
12472 | #if wxUSE_UNICODE | |
12473 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12474 | #else | |
12475 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12476 | #endif | |
12477 | } | |
d14a1e28 RD |
12478 | return resultobj; |
12479 | fail: | |
12480 | return NULL; | |
12481 | } | |
12482 | ||
12483 | ||
12484 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12485 | PyObject *resultobj; | |
12486 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12487 | int result; | |
12488 | PyObject * obj0 = 0 ; | |
12489 | char *kwnames[] = { | |
12490 | (char *) "self", NULL | |
12491 | }; | |
12492 | ||
12493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12496 | { |
12497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12498 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
12499 | ||
12500 | wxPyEndAllowThreads(__tstate); | |
12501 | if (PyErr_Occurred()) SWIG_fail; | |
12502 | } | |
15afbcd0 | 12503 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12504 | return resultobj; |
12505 | fail: | |
12506 | return NULL; | |
12507 | } | |
12508 | ||
12509 | ||
12510 | static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) { | |
12511 | PyObject *obj; | |
12512 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12513 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
12514 | Py_INCREF(obj); | |
12515 | return Py_BuildValue((char *)""); | |
12516 | } | |
12517 | static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12518 | PyObject *resultobj; | |
12519 | wxFileTypeInfo *arg1 = 0 ; | |
12520 | wxFileType *result; | |
12521 | PyObject * obj0 = 0 ; | |
12522 | char *kwnames[] = { | |
12523 | (char *) "ftInfo", NULL | |
12524 | }; | |
12525 | ||
12526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, |
12528 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12529 | SWIG_fail; | |
d14a1e28 | 12530 | if (arg1 == NULL) { |
15afbcd0 RD |
12531 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12532 | SWIG_fail; | |
d14a1e28 RD |
12533 | } |
12534 | { | |
12535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12536 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
12537 | ||
12538 | wxPyEndAllowThreads(__tstate); | |
12539 | if (PyErr_Occurred()) SWIG_fail; | |
12540 | } | |
15afbcd0 | 12541 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
12542 | return resultobj; |
12543 | fail: | |
12544 | return NULL; | |
12545 | } | |
12546 | ||
12547 | ||
12548 | static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12549 | PyObject *resultobj; | |
12550 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12551 | PyObject * obj0 = 0 ; | |
12552 | char *kwnames[] = { | |
12553 | (char *) "self", NULL | |
12554 | }; | |
12555 | ||
12556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12559 | { |
12560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12561 | delete arg1; | |
12562 | ||
12563 | wxPyEndAllowThreads(__tstate); | |
12564 | if (PyErr_Occurred()) SWIG_fail; | |
12565 | } | |
12566 | Py_INCREF(Py_None); resultobj = Py_None; | |
12567 | return resultobj; | |
12568 | fail: | |
12569 | return NULL; | |
12570 | } | |
12571 | ||
12572 | ||
12573 | static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12574 | PyObject *resultobj; | |
12575 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12576 | PyObject *result; | |
12577 | PyObject * obj0 = 0 ; | |
12578 | char *kwnames[] = { | |
12579 | (char *) "self", NULL | |
12580 | }; | |
12581 | ||
12582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12585 | { |
12586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12587 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
12588 | ||
12589 | wxPyEndAllowThreads(__tstate); | |
12590 | if (PyErr_Occurred()) SWIG_fail; | |
12591 | } | |
12592 | resultobj = result; | |
12593 | return resultobj; | |
12594 | fail: | |
12595 | return NULL; | |
12596 | } | |
12597 | ||
12598 | ||
12599 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12600 | PyObject *resultobj; | |
12601 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12602 | PyObject *result; | |
12603 | PyObject * obj0 = 0 ; | |
12604 | char *kwnames[] = { | |
12605 | (char *) "self", NULL | |
12606 | }; | |
12607 | ||
12608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12611 | { |
12612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12613 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
12614 | ||
12615 | wxPyEndAllowThreads(__tstate); | |
12616 | if (PyErr_Occurred()) SWIG_fail; | |
12617 | } | |
12618 | resultobj = result; | |
12619 | return resultobj; | |
12620 | fail: | |
12621 | return NULL; | |
12622 | } | |
12623 | ||
12624 | ||
12625 | static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12626 | PyObject *resultobj; | |
12627 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12628 | PyObject *result; | |
12629 | PyObject * obj0 = 0 ; | |
12630 | char *kwnames[] = { | |
12631 | (char *) "self", NULL | |
12632 | }; | |
12633 | ||
12634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12637 | { |
12638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12639 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
12640 | ||
12641 | wxPyEndAllowThreads(__tstate); | |
12642 | if (PyErr_Occurred()) SWIG_fail; | |
12643 | } | |
12644 | resultobj = result; | |
12645 | return resultobj; | |
12646 | fail: | |
12647 | return NULL; | |
12648 | } | |
12649 | ||
12650 | ||
12651 | static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12652 | PyObject *resultobj; | |
12653 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12654 | wxIcon *result; | |
12655 | PyObject * obj0 = 0 ; | |
12656 | char *kwnames[] = { | |
12657 | (char *) "self", NULL | |
12658 | }; | |
12659 | ||
12660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12663 | { |
12664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12665 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
12666 | ||
12667 | wxPyEndAllowThreads(__tstate); | |
12668 | if (PyErr_Occurred()) SWIG_fail; | |
12669 | } | |
15afbcd0 | 12670 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
12671 | return resultobj; |
12672 | fail: | |
12673 | return NULL; | |
12674 | } | |
12675 | ||
12676 | ||
12677 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12678 | PyObject *resultobj; | |
12679 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12680 | PyObject *result; | |
12681 | PyObject * obj0 = 0 ; | |
12682 | char *kwnames[] = { | |
12683 | (char *) "self", NULL | |
12684 | }; | |
12685 | ||
12686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12689 | { |
12690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12691 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
12692 | ||
12693 | wxPyEndAllowThreads(__tstate); | |
12694 | if (PyErr_Occurred()) SWIG_fail; | |
12695 | } | |
12696 | resultobj = result; | |
12697 | return resultobj; | |
12698 | fail: | |
12699 | return NULL; | |
12700 | } | |
12701 | ||
12702 | ||
12703 | static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12704 | PyObject *resultobj; | |
12705 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12706 | PyObject *result; | |
12707 | PyObject * obj0 = 0 ; | |
12708 | char *kwnames[] = { | |
12709 | (char *) "self", NULL | |
12710 | }; | |
12711 | ||
12712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12715 | { |
12716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12717 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
12718 | ||
12719 | wxPyEndAllowThreads(__tstate); | |
12720 | if (PyErr_Occurred()) SWIG_fail; | |
12721 | } | |
12722 | resultobj = result; | |
12723 | return resultobj; | |
12724 | fail: | |
12725 | return NULL; | |
12726 | } | |
12727 | ||
12728 | ||
12729 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12730 | PyObject *resultobj; | |
12731 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12732 | wxString *arg2 = 0 ; | |
12733 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12734 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12735 | PyObject *result; | |
e811c8ce RD |
12736 | bool temp2 = False ; |
12737 | bool temp3 = False ; | |
d14a1e28 RD |
12738 | PyObject * obj0 = 0 ; |
12739 | PyObject * obj1 = 0 ; | |
12740 | PyObject * obj2 = 0 ; | |
12741 | char *kwnames[] = { | |
12742 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12743 | }; | |
12744 | ||
12745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
12746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12748 | { |
12749 | arg2 = wxString_in_helper(obj1); | |
12750 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12751 | temp2 = True; |
d14a1e28 RD |
12752 | } |
12753 | if (obj2) { | |
12754 | { | |
12755 | arg3 = wxString_in_helper(obj2); | |
12756 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12757 | temp3 = True; |
d14a1e28 RD |
12758 | } |
12759 | } | |
12760 | { | |
12761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12762 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12763 | ||
12764 | wxPyEndAllowThreads(__tstate); | |
12765 | if (PyErr_Occurred()) SWIG_fail; | |
12766 | } | |
12767 | resultobj = result; | |
12768 | { | |
12769 | if (temp2) | |
12770 | delete arg2; | |
12771 | } | |
12772 | { | |
12773 | if (temp3) | |
12774 | delete arg3; | |
12775 | } | |
12776 | return resultobj; | |
12777 | fail: | |
12778 | { | |
12779 | if (temp2) | |
12780 | delete arg2; | |
12781 | } | |
12782 | { | |
12783 | if (temp3) | |
12784 | delete arg3; | |
12785 | } | |
12786 | return NULL; | |
12787 | } | |
12788 | ||
12789 | ||
12790 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12791 | PyObject *resultobj; | |
12792 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12793 | wxString *arg2 = 0 ; | |
12794 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12795 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12796 | PyObject *result; | |
e811c8ce RD |
12797 | bool temp2 = False ; |
12798 | bool temp3 = False ; | |
d14a1e28 RD |
12799 | PyObject * obj0 = 0 ; |
12800 | PyObject * obj1 = 0 ; | |
12801 | PyObject * obj2 = 0 ; | |
12802 | char *kwnames[] = { | |
12803 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12804 | }; | |
12805 | ||
12806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
12807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12809 | { |
12810 | arg2 = wxString_in_helper(obj1); | |
12811 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12812 | temp2 = True; |
d14a1e28 RD |
12813 | } |
12814 | if (obj2) { | |
12815 | { | |
12816 | arg3 = wxString_in_helper(obj2); | |
12817 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12818 | temp3 = True; |
d14a1e28 RD |
12819 | } |
12820 | } | |
12821 | { | |
12822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12823 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12824 | ||
12825 | wxPyEndAllowThreads(__tstate); | |
12826 | if (PyErr_Occurred()) SWIG_fail; | |
12827 | } | |
12828 | resultobj = result; | |
12829 | { | |
12830 | if (temp2) | |
12831 | delete arg2; | |
12832 | } | |
12833 | { | |
12834 | if (temp3) | |
12835 | delete arg3; | |
12836 | } | |
12837 | return resultobj; | |
12838 | fail: | |
12839 | { | |
12840 | if (temp2) | |
12841 | delete arg2; | |
12842 | } | |
12843 | { | |
12844 | if (temp3) | |
12845 | delete arg3; | |
12846 | } | |
12847 | return NULL; | |
12848 | } | |
12849 | ||
12850 | ||
12851 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12852 | PyObject *resultobj; | |
12853 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12854 | wxString *arg2 = 0 ; | |
12855 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12856 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12857 | PyObject *result; | |
e811c8ce RD |
12858 | bool temp2 = False ; |
12859 | bool temp3 = False ; | |
d14a1e28 RD |
12860 | PyObject * obj0 = 0 ; |
12861 | PyObject * obj1 = 0 ; | |
12862 | PyObject * obj2 = 0 ; | |
12863 | char *kwnames[] = { | |
12864 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12865 | }; | |
12866 | ||
12867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
12868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12870 | { |
12871 | arg2 = wxString_in_helper(obj1); | |
12872 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12873 | temp2 = True; |
d14a1e28 RD |
12874 | } |
12875 | if (obj2) { | |
12876 | { | |
12877 | arg3 = wxString_in_helper(obj2); | |
12878 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12879 | temp3 = True; |
d14a1e28 RD |
12880 | } |
12881 | } | |
12882 | { | |
12883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12884 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12885 | ||
12886 | wxPyEndAllowThreads(__tstate); | |
12887 | if (PyErr_Occurred()) SWIG_fail; | |
12888 | } | |
12889 | resultobj = result; | |
12890 | { | |
12891 | if (temp2) | |
12892 | delete arg2; | |
12893 | } | |
12894 | { | |
12895 | if (temp3) | |
12896 | delete arg3; | |
12897 | } | |
12898 | return resultobj; | |
12899 | fail: | |
12900 | { | |
12901 | if (temp2) | |
12902 | delete arg2; | |
12903 | } | |
12904 | { | |
12905 | if (temp3) | |
12906 | delete arg3; | |
12907 | } | |
12908 | return NULL; | |
12909 | } | |
12910 | ||
12911 | ||
12912 | static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12913 | PyObject *resultobj; | |
12914 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12915 | wxString *arg2 = 0 ; | |
12916 | wxString *arg3 = 0 ; | |
e811c8ce | 12917 | bool arg4 = (bool) True ; |
d14a1e28 | 12918 | bool result; |
e811c8ce RD |
12919 | bool temp2 = False ; |
12920 | bool temp3 = False ; | |
d14a1e28 RD |
12921 | PyObject * obj0 = 0 ; |
12922 | PyObject * obj1 = 0 ; | |
12923 | PyObject * obj2 = 0 ; | |
12924 | PyObject * obj3 = 0 ; | |
12925 | char *kwnames[] = { | |
12926 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
12927 | }; | |
12928 | ||
12929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
12930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12932 | { |
12933 | arg2 = wxString_in_helper(obj1); | |
12934 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12935 | temp2 = True; |
d14a1e28 RD |
12936 | } |
12937 | { | |
12938 | arg3 = wxString_in_helper(obj2); | |
12939 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12940 | temp3 = True; |
d14a1e28 RD |
12941 | } |
12942 | if (obj3) { | |
15afbcd0 RD |
12943 | arg4 = (bool) SWIG_AsBool(obj3); |
12944 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12945 | } |
12946 | { | |
12947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12948 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
12949 | ||
12950 | wxPyEndAllowThreads(__tstate); | |
12951 | if (PyErr_Occurred()) SWIG_fail; | |
12952 | } | |
4f89f6a3 RD |
12953 | { |
12954 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12955 | } | |
d14a1e28 RD |
12956 | { |
12957 | if (temp2) | |
12958 | delete arg2; | |
12959 | } | |
12960 | { | |
12961 | if (temp3) | |
12962 | delete arg3; | |
12963 | } | |
12964 | return resultobj; | |
12965 | fail: | |
12966 | { | |
12967 | if (temp2) | |
12968 | delete arg2; | |
12969 | } | |
12970 | { | |
12971 | if (temp3) | |
12972 | delete arg3; | |
12973 | } | |
12974 | return NULL; | |
12975 | } | |
12976 | ||
12977 | ||
12978 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12979 | PyObject *resultobj; | |
12980 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12981 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
12982 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
12983 | int arg3 = (int) 0 ; | |
12984 | bool result; | |
e811c8ce | 12985 | bool temp2 = False ; |
d14a1e28 RD |
12986 | PyObject * obj0 = 0 ; |
12987 | PyObject * obj1 = 0 ; | |
994141e6 | 12988 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12989 | char *kwnames[] = { |
12990 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
12991 | }; | |
12992 | ||
994141e6 | 12993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
12995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12996 | if (obj1) { |
12997 | { | |
12998 | arg2 = wxString_in_helper(obj1); | |
12999 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13000 | temp2 = True; |
d14a1e28 RD |
13001 | } |
13002 | } | |
994141e6 | 13003 | if (obj2) { |
15afbcd0 RD |
13004 | arg3 = (int) SWIG_AsInt(obj2); |
13005 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13006 | } |
d14a1e28 RD |
13007 | { |
13008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13009 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
13010 | ||
13011 | wxPyEndAllowThreads(__tstate); | |
13012 | if (PyErr_Occurred()) SWIG_fail; | |
13013 | } | |
4f89f6a3 RD |
13014 | { |
13015 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13016 | } | |
d14a1e28 RD |
13017 | { |
13018 | if (temp2) | |
13019 | delete arg2; | |
13020 | } | |
13021 | return resultobj; | |
13022 | fail: | |
13023 | { | |
13024 | if (temp2) | |
13025 | delete arg2; | |
13026 | } | |
13027 | return NULL; | |
13028 | } | |
13029 | ||
13030 | ||
13031 | static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13032 | PyObject *resultobj; | |
13033 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13034 | bool result; | |
13035 | PyObject * obj0 = 0 ; | |
13036 | char *kwnames[] = { | |
13037 | (char *) "self", NULL | |
13038 | }; | |
13039 | ||
13040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, |
13042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13043 | { |
13044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13045 | result = (bool)(arg1)->Unassociate(); | |
13046 | ||
13047 | wxPyEndAllowThreads(__tstate); | |
13048 | if (PyErr_Occurred()) SWIG_fail; | |
13049 | } | |
4f89f6a3 RD |
13050 | { |
13051 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13052 | } | |
d14a1e28 RD |
13053 | return resultobj; |
13054 | fail: | |
13055 | return NULL; | |
13056 | } | |
13057 | ||
13058 | ||
13059 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13060 | PyObject *resultobj; | |
13061 | wxString *arg1 = 0 ; | |
13062 | wxString *arg2 = 0 ; | |
13063 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13064 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13065 | wxString result; | |
e811c8ce RD |
13066 | bool temp1 = False ; |
13067 | bool temp2 = False ; | |
13068 | bool temp3 = False ; | |
d14a1e28 RD |
13069 | PyObject * obj0 = 0 ; |
13070 | PyObject * obj1 = 0 ; | |
13071 | PyObject * obj2 = 0 ; | |
13072 | char *kwnames[] = { | |
13073 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
13074 | }; | |
13075 | ||
13076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13077 | { | |
13078 | arg1 = wxString_in_helper(obj0); | |
13079 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 13080 | temp1 = True; |
d14a1e28 RD |
13081 | } |
13082 | { | |
13083 | arg2 = wxString_in_helper(obj1); | |
13084 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13085 | temp2 = True; |
d14a1e28 RD |
13086 | } |
13087 | if (obj2) { | |
13088 | { | |
13089 | arg3 = wxString_in_helper(obj2); | |
13090 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 13091 | temp3 = True; |
d14a1e28 RD |
13092 | } |
13093 | } | |
13094 | { | |
13095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13096 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13097 | ||
13098 | wxPyEndAllowThreads(__tstate); | |
13099 | if (PyErr_Occurred()) SWIG_fail; | |
13100 | } | |
13101 | { | |
13102 | #if wxUSE_UNICODE | |
13103 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13104 | #else | |
13105 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13106 | #endif | |
13107 | } | |
13108 | { | |
13109 | if (temp1) | |
13110 | delete arg1; | |
13111 | } | |
13112 | { | |
13113 | if (temp2) | |
13114 | delete arg2; | |
13115 | } | |
13116 | { | |
13117 | if (temp3) | |
13118 | delete arg3; | |
13119 | } | |
13120 | return resultobj; | |
13121 | fail: | |
13122 | { | |
13123 | if (temp1) | |
13124 | delete arg1; | |
13125 | } | |
13126 | { | |
13127 | if (temp2) | |
13128 | delete arg2; | |
13129 | } | |
13130 | { | |
13131 | if (temp3) | |
13132 | delete arg3; | |
13133 | } | |
13134 | return NULL; | |
13135 | } | |
13136 | ||
13137 | ||
13138 | static PyObject * FileType_swigregister(PyObject *self, PyObject *args) { | |
13139 | PyObject *obj; | |
13140 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13141 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
13142 | Py_INCREF(obj); | |
13143 | return Py_BuildValue((char *)""); | |
13144 | } | |
13145 | static int _wrap_TheMimeTypesManager_set(PyObject *_val) { | |
13146 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); | |
13147 | return 1; | |
13148 | } | |
13149 | ||
13150 | ||
13151 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
13152 | PyObject *pyobj; | |
13153 | ||
15afbcd0 | 13154 | pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0); |
d14a1e28 RD |
13155 | return pyobj; |
13156 | } | |
13157 | ||
13158 | ||
13159 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13160 | PyObject *resultobj; | |
13161 | wxString *arg1 = 0 ; | |
13162 | wxString *arg2 = 0 ; | |
13163 | bool result; | |
e811c8ce RD |
13164 | bool temp1 = False ; |
13165 | bool temp2 = False ; | |
d14a1e28 RD |
13166 | PyObject * obj0 = 0 ; |
13167 | PyObject * obj1 = 0 ; | |
13168 | char *kwnames[] = { | |
13169 | (char *) "mimeType",(char *) "wildcard", NULL | |
13170 | }; | |
13171 | ||
13172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
13173 | { | |
13174 | arg1 = wxString_in_helper(obj0); | |
13175 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 13176 | temp1 = True; |
d14a1e28 RD |
13177 | } |
13178 | { | |
13179 | arg2 = wxString_in_helper(obj1); | |
13180 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13181 | temp2 = True; |
d14a1e28 RD |
13182 | } |
13183 | { | |
13184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13185 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
13186 | ||
13187 | wxPyEndAllowThreads(__tstate); | |
13188 | if (PyErr_Occurred()) SWIG_fail; | |
13189 | } | |
4f89f6a3 RD |
13190 | { |
13191 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13192 | } | |
d14a1e28 RD |
13193 | { |
13194 | if (temp1) | |
13195 | delete arg1; | |
13196 | } | |
13197 | { | |
13198 | if (temp2) | |
13199 | delete arg2; | |
13200 | } | |
13201 | return resultobj; | |
13202 | fail: | |
13203 | { | |
13204 | if (temp1) | |
13205 | delete arg1; | |
13206 | } | |
13207 | { | |
13208 | if (temp2) | |
13209 | delete arg2; | |
13210 | } | |
13211 | return NULL; | |
13212 | } | |
13213 | ||
13214 | ||
13215 | static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13216 | PyObject *resultobj; | |
13217 | wxMimeTypesManager *result; | |
13218 | char *kwnames[] = { | |
13219 | NULL | |
13220 | }; | |
13221 | ||
13222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
13223 | { | |
13224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13225 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
13226 | ||
13227 | wxPyEndAllowThreads(__tstate); | |
13228 | if (PyErr_Occurred()) SWIG_fail; | |
13229 | } | |
15afbcd0 | 13230 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1); |
d14a1e28 RD |
13231 | return resultobj; |
13232 | fail: | |
13233 | return NULL; | |
13234 | } | |
13235 | ||
13236 | ||
13237 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13238 | PyObject *resultobj; | |
13239 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13240 | int arg2 = (int) wxMAILCAP_ALL ; | |
13241 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13242 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
e811c8ce | 13243 | bool temp3 = False ; |
d14a1e28 | 13244 | PyObject * obj0 = 0 ; |
994141e6 | 13245 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13246 | PyObject * obj2 = 0 ; |
13247 | char *kwnames[] = { | |
13248 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
13249 | }; | |
13250 | ||
994141e6 | 13251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 13254 | if (obj1) { |
15afbcd0 RD |
13255 | arg2 = (int) SWIG_AsInt(obj1); |
13256 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13257 | } |
d14a1e28 RD |
13258 | if (obj2) { |
13259 | { | |
13260 | arg3 = wxString_in_helper(obj2); | |
13261 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 13262 | temp3 = True; |
d14a1e28 RD |
13263 | } |
13264 | } | |
13265 | { | |
13266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13267 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
13268 | ||
13269 | wxPyEndAllowThreads(__tstate); | |
13270 | if (PyErr_Occurred()) SWIG_fail; | |
13271 | } | |
13272 | Py_INCREF(Py_None); resultobj = Py_None; | |
13273 | { | |
13274 | if (temp3) | |
13275 | delete arg3; | |
13276 | } | |
13277 | return resultobj; | |
13278 | fail: | |
13279 | { | |
13280 | if (temp3) | |
13281 | delete arg3; | |
13282 | } | |
13283 | return NULL; | |
13284 | } | |
13285 | ||
13286 | ||
13287 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13288 | PyObject *resultobj; | |
13289 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13290 | PyObject * obj0 = 0 ; | |
13291 | char *kwnames[] = { | |
13292 | (char *) "self", NULL | |
13293 | }; | |
13294 | ||
13295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13298 | { |
13299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13300 | (arg1)->ClearData(); | |
13301 | ||
13302 | wxPyEndAllowThreads(__tstate); | |
13303 | if (PyErr_Occurred()) SWIG_fail; | |
13304 | } | |
13305 | Py_INCREF(Py_None); resultobj = Py_None; | |
13306 | return resultobj; | |
13307 | fail: | |
13308 | return NULL; | |
13309 | } | |
13310 | ||
13311 | ||
13312 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13313 | PyObject *resultobj; | |
13314 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13315 | wxString *arg2 = 0 ; | |
13316 | wxFileType *result; | |
e811c8ce | 13317 | bool temp2 = False ; |
d14a1e28 RD |
13318 | PyObject * obj0 = 0 ; |
13319 | PyObject * obj1 = 0 ; | |
13320 | char *kwnames[] = { | |
13321 | (char *) "self",(char *) "ext", NULL | |
13322 | }; | |
13323 | ||
13324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13327 | { |
13328 | arg2 = wxString_in_helper(obj1); | |
13329 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13330 | temp2 = True; |
d14a1e28 RD |
13331 | } |
13332 | { | |
13333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13334 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
13335 | ||
13336 | wxPyEndAllowThreads(__tstate); | |
13337 | if (PyErr_Occurred()) SWIG_fail; | |
13338 | } | |
15afbcd0 | 13339 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
13340 | { |
13341 | if (temp2) | |
13342 | delete arg2; | |
13343 | } | |
13344 | return resultobj; | |
13345 | fail: | |
13346 | { | |
13347 | if (temp2) | |
13348 | delete arg2; | |
13349 | } | |
13350 | return NULL; | |
13351 | } | |
13352 | ||
13353 | ||
13354 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13355 | PyObject *resultobj; | |
13356 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13357 | wxString *arg2 = 0 ; | |
13358 | wxFileType *result; | |
e811c8ce | 13359 | bool temp2 = False ; |
d14a1e28 RD |
13360 | PyObject * obj0 = 0 ; |
13361 | PyObject * obj1 = 0 ; | |
13362 | char *kwnames[] = { | |
13363 | (char *) "self",(char *) "mimeType", NULL | |
13364 | }; | |
13365 | ||
13366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13369 | { |
13370 | arg2 = wxString_in_helper(obj1); | |
13371 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13372 | temp2 = True; |
d14a1e28 RD |
13373 | } |
13374 | { | |
13375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13376 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
13377 | ||
13378 | wxPyEndAllowThreads(__tstate); | |
13379 | if (PyErr_Occurred()) SWIG_fail; | |
13380 | } | |
15afbcd0 | 13381 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
13382 | { |
13383 | if (temp2) | |
13384 | delete arg2; | |
13385 | } | |
13386 | return resultobj; | |
13387 | fail: | |
13388 | { | |
13389 | if (temp2) | |
13390 | delete arg2; | |
13391 | } | |
13392 | return NULL; | |
13393 | } | |
13394 | ||
13395 | ||
13396 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13397 | PyObject *resultobj; | |
13398 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13399 | wxString *arg2 = 0 ; | |
e811c8ce | 13400 | bool arg3 = (bool) False ; |
d14a1e28 | 13401 | bool result; |
e811c8ce | 13402 | bool temp2 = False ; |
d14a1e28 RD |
13403 | PyObject * obj0 = 0 ; |
13404 | PyObject * obj1 = 0 ; | |
13405 | PyObject * obj2 = 0 ; | |
13406 | char *kwnames[] = { | |
13407 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
13408 | }; | |
13409 | ||
13410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
13411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13413 | { |
13414 | arg2 = wxString_in_helper(obj1); | |
13415 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13416 | temp2 = True; |
d14a1e28 RD |
13417 | } |
13418 | if (obj2) { | |
15afbcd0 RD |
13419 | arg3 = (bool) SWIG_AsBool(obj2); |
13420 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13421 | } |
13422 | { | |
13423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13424 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
13425 | ||
13426 | wxPyEndAllowThreads(__tstate); | |
13427 | if (PyErr_Occurred()) SWIG_fail; | |
13428 | } | |
4f89f6a3 RD |
13429 | { |
13430 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13431 | } | |
d14a1e28 RD |
13432 | { |
13433 | if (temp2) | |
13434 | delete arg2; | |
13435 | } | |
13436 | return resultobj; | |
13437 | fail: | |
13438 | { | |
13439 | if (temp2) | |
13440 | delete arg2; | |
13441 | } | |
13442 | return NULL; | |
13443 | } | |
13444 | ||
13445 | ||
13446 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13447 | PyObject *resultobj; | |
13448 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13449 | wxString *arg2 = 0 ; | |
13450 | bool result; | |
e811c8ce | 13451 | bool temp2 = False ; |
d14a1e28 RD |
13452 | PyObject * obj0 = 0 ; |
13453 | PyObject * obj1 = 0 ; | |
13454 | char *kwnames[] = { | |
13455 | (char *) "self",(char *) "filename", NULL | |
13456 | }; | |
13457 | ||
13458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13461 | { |
13462 | arg2 = wxString_in_helper(obj1); | |
13463 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13464 | temp2 = True; |
d14a1e28 RD |
13465 | } |
13466 | { | |
13467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13468 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
13469 | ||
13470 | wxPyEndAllowThreads(__tstate); | |
13471 | if (PyErr_Occurred()) SWIG_fail; | |
13472 | } | |
4f89f6a3 RD |
13473 | { |
13474 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13475 | } | |
d14a1e28 RD |
13476 | { |
13477 | if (temp2) | |
13478 | delete arg2; | |
13479 | } | |
13480 | return resultobj; | |
13481 | fail: | |
13482 | { | |
13483 | if (temp2) | |
13484 | delete arg2; | |
13485 | } | |
13486 | return NULL; | |
13487 | } | |
13488 | ||
13489 | ||
13490 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13491 | PyObject *resultobj; | |
13492 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13493 | PyObject *result; | |
13494 | PyObject * obj0 = 0 ; | |
13495 | char *kwnames[] = { | |
13496 | (char *) "self", NULL | |
13497 | }; | |
13498 | ||
13499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13502 | { |
13503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13504 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
13505 | ||
13506 | wxPyEndAllowThreads(__tstate); | |
13507 | if (PyErr_Occurred()) SWIG_fail; | |
13508 | } | |
13509 | resultobj = result; | |
13510 | return resultobj; | |
13511 | fail: | |
13512 | return NULL; | |
13513 | } | |
13514 | ||
13515 | ||
13516 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13517 | PyObject *resultobj; | |
13518 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13519 | wxFileTypeInfo *arg2 = 0 ; | |
13520 | PyObject * obj0 = 0 ; | |
13521 | PyObject * obj1 = 0 ; | |
13522 | char *kwnames[] = { | |
13523 | (char *) "self",(char *) "ft", NULL | |
13524 | }; | |
13525 | ||
13526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13529 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13530 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13531 | SWIG_fail; | |
d14a1e28 | 13532 | if (arg2 == NULL) { |
15afbcd0 RD |
13533 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13534 | SWIG_fail; | |
d14a1e28 RD |
13535 | } |
13536 | { | |
13537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13538 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
13539 | ||
13540 | wxPyEndAllowThreads(__tstate); | |
13541 | if (PyErr_Occurred()) SWIG_fail; | |
13542 | } | |
13543 | Py_INCREF(Py_None); resultobj = Py_None; | |
13544 | return resultobj; | |
13545 | fail: | |
13546 | return NULL; | |
13547 | } | |
13548 | ||
13549 | ||
13550 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13551 | PyObject *resultobj; | |
13552 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13553 | wxFileTypeInfo *arg2 = 0 ; | |
13554 | wxFileType *result; | |
13555 | PyObject * obj0 = 0 ; | |
13556 | PyObject * obj1 = 0 ; | |
13557 | char *kwnames[] = { | |
13558 | (char *) "self",(char *) "ftInfo", NULL | |
13559 | }; | |
13560 | ||
13561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13564 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13565 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13566 | SWIG_fail; | |
d14a1e28 | 13567 | if (arg2 == NULL) { |
15afbcd0 RD |
13568 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13569 | SWIG_fail; | |
d14a1e28 RD |
13570 | } |
13571 | { | |
13572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13573 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
13574 | ||
13575 | wxPyEndAllowThreads(__tstate); | |
13576 | if (PyErr_Occurred()) SWIG_fail; | |
13577 | } | |
15afbcd0 | 13578 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); |
d14a1e28 RD |
13579 | return resultobj; |
13580 | fail: | |
13581 | return NULL; | |
13582 | } | |
13583 | ||
13584 | ||
13585 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13586 | PyObject *resultobj; | |
13587 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13588 | wxFileType *arg2 = (wxFileType *) 0 ; | |
13589 | bool result; | |
13590 | PyObject * obj0 = 0 ; | |
13591 | PyObject * obj1 = 0 ; | |
13592 | char *kwnames[] = { | |
13593 | (char *) "self",(char *) "ft", NULL | |
13594 | }; | |
13595 | ||
13596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13599 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType, | |
13600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13601 | { |
13602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13603 | result = (bool)(arg1)->Unassociate(arg2); | |
13604 | ||
13605 | wxPyEndAllowThreads(__tstate); | |
13606 | if (PyErr_Occurred()) SWIG_fail; | |
13607 | } | |
4f89f6a3 RD |
13608 | { |
13609 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13610 | } | |
d14a1e28 RD |
13611 | return resultobj; |
13612 | fail: | |
13613 | return NULL; | |
13614 | } | |
13615 | ||
13616 | ||
13617 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13618 | PyObject *resultobj; | |
13619 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13620 | PyObject * obj0 = 0 ; | |
13621 | char *kwnames[] = { | |
13622 | (char *) "self", NULL | |
13623 | }; | |
13624 | ||
13625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, |
13627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13628 | { |
13629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13630 | delete arg1; | |
13631 | ||
13632 | wxPyEndAllowThreads(__tstate); | |
13633 | if (PyErr_Occurred()) SWIG_fail; | |
13634 | } | |
13635 | Py_INCREF(Py_None); resultobj = Py_None; | |
13636 | return resultobj; | |
13637 | fail: | |
13638 | return NULL; | |
13639 | } | |
13640 | ||
13641 | ||
13642 | static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) { | |
13643 | PyObject *obj; | |
13644 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13645 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
13646 | Py_INCREF(obj); | |
13647 | return Py_BuildValue((char *)""); | |
13648 | } | |
13649 | static int _wrap_ART_TOOLBAR_set(PyObject *_val) { | |
13650 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); | |
13651 | return 1; | |
13652 | } | |
13653 | ||
13654 | ||
13655 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
13656 | PyObject *pyobj; | |
13657 | ||
13658 | { | |
13659 | #if wxUSE_UNICODE | |
13660 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13661 | #else | |
13662 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13663 | #endif | |
13664 | } | |
13665 | return pyobj; | |
13666 | } | |
13667 | ||
13668 | ||
13669 | static int _wrap_ART_MENU_set(PyObject *_val) { | |
13670 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); | |
13671 | return 1; | |
13672 | } | |
13673 | ||
13674 | ||
13675 | static PyObject *_wrap_ART_MENU_get() { | |
13676 | PyObject *pyobj; | |
13677 | ||
13678 | { | |
13679 | #if wxUSE_UNICODE | |
13680 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13681 | #else | |
13682 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13683 | #endif | |
13684 | } | |
13685 | return pyobj; | |
13686 | } | |
13687 | ||
13688 | ||
13689 | static int _wrap_ART_FRAME_ICON_set(PyObject *_val) { | |
13690 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); | |
13691 | return 1; | |
13692 | } | |
13693 | ||
13694 | ||
13695 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
13696 | PyObject *pyobj; | |
13697 | ||
13698 | { | |
13699 | #if wxUSE_UNICODE | |
13700 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13701 | #else | |
13702 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13703 | #endif | |
13704 | } | |
13705 | return pyobj; | |
13706 | } | |
13707 | ||
13708 | ||
13709 | static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) { | |
13710 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); | |
13711 | return 1; | |
13712 | } | |
13713 | ||
13714 | ||
13715 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
13716 | PyObject *pyobj; | |
13717 | ||
13718 | { | |
13719 | #if wxUSE_UNICODE | |
13720 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13721 | #else | |
13722 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13723 | #endif | |
13724 | } | |
13725 | return pyobj; | |
13726 | } | |
13727 | ||
13728 | ||
13729 | static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) { | |
13730 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); | |
13731 | return 1; | |
13732 | } | |
13733 | ||
13734 | ||
13735 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
13736 | PyObject *pyobj; | |
13737 | ||
13738 | { | |
13739 | #if wxUSE_UNICODE | |
13740 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13741 | #else | |
13742 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13743 | #endif | |
13744 | } | |
13745 | return pyobj; | |
13746 | } | |
13747 | ||
13748 | ||
13749 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) { | |
13750 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); | |
13751 | return 1; | |
13752 | } | |
13753 | ||
13754 | ||
13755 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
13756 | PyObject *pyobj; | |
13757 | ||
13758 | { | |
13759 | #if wxUSE_UNICODE | |
13760 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13761 | #else | |
13762 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13763 | #endif | |
13764 | } | |
13765 | return pyobj; | |
13766 | } | |
13767 | ||
13768 | ||
13769 | static int _wrap_ART_OTHER_set(PyObject *_val) { | |
13770 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); | |
13771 | return 1; | |
13772 | } | |
13773 | ||
13774 | ||
13775 | static PyObject *_wrap_ART_OTHER_get() { | |
13776 | PyObject *pyobj; | |
13777 | ||
13778 | { | |
13779 | #if wxUSE_UNICODE | |
13780 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13781 | #else | |
13782 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13783 | #endif | |
13784 | } | |
13785 | return pyobj; | |
13786 | } | |
13787 | ||
13788 | ||
13789 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) { | |
13790 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); | |
13791 | return 1; | |
13792 | } | |
13793 | ||
13794 | ||
13795 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
13796 | PyObject *pyobj; | |
13797 | ||
13798 | { | |
13799 | #if wxUSE_UNICODE | |
13800 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13801 | #else | |
13802 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13803 | #endif | |
13804 | } | |
13805 | return pyobj; | |
13806 | } | |
13807 | ||
13808 | ||
13809 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) { | |
13810 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); | |
13811 | return 1; | |
13812 | } | |
13813 | ||
13814 | ||
13815 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
13816 | PyObject *pyobj; | |
13817 | ||
13818 | { | |
13819 | #if wxUSE_UNICODE | |
13820 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13821 | #else | |
13822 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13823 | #endif | |
13824 | } | |
13825 | return pyobj; | |
13826 | } | |
13827 | ||
13828 | ||
13829 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) { | |
13830 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); | |
13831 | return 1; | |
13832 | } | |
13833 | ||
13834 | ||
13835 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
13836 | PyObject *pyobj; | |
13837 | ||
13838 | { | |
13839 | #if wxUSE_UNICODE | |
13840 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13841 | #else | |
13842 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13843 | #endif | |
13844 | } | |
13845 | return pyobj; | |
13846 | } | |
13847 | ||
13848 | ||
13849 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) { | |
13850 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); | |
13851 | return 1; | |
13852 | } | |
13853 | ||
13854 | ||
13855 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
13856 | PyObject *pyobj; | |
13857 | ||
13858 | { | |
13859 | #if wxUSE_UNICODE | |
13860 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13861 | #else | |
13862 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13863 | #endif | |
13864 | } | |
13865 | return pyobj; | |
13866 | } | |
13867 | ||
13868 | ||
13869 | static int _wrap_ART_HELP_BOOK_set(PyObject *_val) { | |
13870 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); | |
13871 | return 1; | |
13872 | } | |
13873 | ||
13874 | ||
13875 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
13876 | PyObject *pyobj; | |
13877 | ||
13878 | { | |
13879 | #if wxUSE_UNICODE | |
13880 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13881 | #else | |
13882 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13883 | #endif | |
13884 | } | |
13885 | return pyobj; | |
13886 | } | |
13887 | ||
13888 | ||
13889 | static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) { | |
13890 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); | |
13891 | return 1; | |
13892 | } | |
13893 | ||
13894 | ||
13895 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
13896 | PyObject *pyobj; | |
13897 | ||
13898 | { | |
13899 | #if wxUSE_UNICODE | |
13900 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13901 | #else | |
13902 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13903 | #endif | |
13904 | } | |
13905 | return pyobj; | |
13906 | } | |
13907 | ||
13908 | ||
13909 | static int _wrap_ART_HELP_PAGE_set(PyObject *_val) { | |
13910 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); | |
13911 | return 1; | |
13912 | } | |
13913 | ||
13914 | ||
13915 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
13916 | PyObject *pyobj; | |
13917 | ||
13918 | { | |
13919 | #if wxUSE_UNICODE | |
13920 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13921 | #else | |
13922 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13923 | #endif | |
13924 | } | |
13925 | return pyobj; | |
13926 | } | |
13927 | ||
13928 | ||
13929 | static int _wrap_ART_GO_BACK_set(PyObject *_val) { | |
13930 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); | |
13931 | return 1; | |
13932 | } | |
13933 | ||
13934 | ||
13935 | static PyObject *_wrap_ART_GO_BACK_get() { | |
13936 | PyObject *pyobj; | |
13937 | ||
13938 | { | |
13939 | #if wxUSE_UNICODE | |
13940 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13941 | #else | |
13942 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13943 | #endif | |
13944 | } | |
13945 | return pyobj; | |
13946 | } | |
13947 | ||
13948 | ||
13949 | static int _wrap_ART_GO_FORWARD_set(PyObject *_val) { | |
13950 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); | |
13951 | return 1; | |
13952 | } | |
13953 | ||
13954 | ||
13955 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
13956 | PyObject *pyobj; | |
13957 | ||
13958 | { | |
13959 | #if wxUSE_UNICODE | |
13960 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13961 | #else | |
13962 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13963 | #endif | |
13964 | } | |
13965 | return pyobj; | |
13966 | } | |
13967 | ||
13968 | ||
13969 | static int _wrap_ART_GO_UP_set(PyObject *_val) { | |
13970 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); | |
13971 | return 1; | |
13972 | } | |
13973 | ||
13974 | ||
13975 | static PyObject *_wrap_ART_GO_UP_get() { | |
13976 | PyObject *pyobj; | |
13977 | ||
13978 | { | |
13979 | #if wxUSE_UNICODE | |
13980 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13981 | #else | |
13982 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13983 | #endif | |
13984 | } | |
13985 | return pyobj; | |
13986 | } | |
13987 | ||
13988 | ||
13989 | static int _wrap_ART_GO_DOWN_set(PyObject *_val) { | |
13990 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); | |
13991 | return 1; | |
13992 | } | |
13993 | ||
13994 | ||
13995 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
13996 | PyObject *pyobj; | |
13997 | ||
13998 | { | |
13999 | #if wxUSE_UNICODE | |
14000 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
14001 | #else | |
14002 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
14003 | #endif | |
14004 | } | |
14005 | return pyobj; | |
14006 | } | |
14007 | ||
14008 | ||
14009 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) { | |
14010 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); | |
14011 | return 1; | |
14012 | } | |
14013 | ||
14014 | ||
14015 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
14016 | PyObject *pyobj; | |
14017 | ||
14018 | { | |
14019 | #if wxUSE_UNICODE | |
14020 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
14021 | #else | |
14022 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
14023 | #endif | |
14024 | } | |
14025 | return pyobj; | |
14026 | } | |
14027 | ||
14028 | ||
14029 | static int _wrap_ART_GO_HOME_set(PyObject *_val) { | |
14030 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); | |
14031 | return 1; | |
14032 | } | |
14033 | ||
14034 | ||
14035 | static PyObject *_wrap_ART_GO_HOME_get() { | |
14036 | PyObject *pyobj; | |
14037 | ||
14038 | { | |
14039 | #if wxUSE_UNICODE | |
14040 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
14041 | #else | |
14042 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
14043 | #endif | |
14044 | } | |
14045 | return pyobj; | |
14046 | } | |
14047 | ||
14048 | ||
14049 | static int _wrap_ART_FILE_OPEN_set(PyObject *_val) { | |
14050 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); | |
14051 | return 1; | |
14052 | } | |
14053 | ||
14054 | ||
14055 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
14056 | PyObject *pyobj; | |
14057 | ||
14058 | { | |
14059 | #if wxUSE_UNICODE | |
14060 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
14061 | #else | |
14062 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
14063 | #endif | |
14064 | } | |
14065 | return pyobj; | |
14066 | } | |
14067 | ||
14068 | ||
14069 | static int _wrap_ART_PRINT_set(PyObject *_val) { | |
14070 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); | |
14071 | return 1; | |
14072 | } | |
14073 | ||
14074 | ||
14075 | static PyObject *_wrap_ART_PRINT_get() { | |
14076 | PyObject *pyobj; | |
14077 | ||
14078 | { | |
14079 | #if wxUSE_UNICODE | |
14080 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
14081 | #else | |
14082 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
14083 | #endif | |
14084 | } | |
14085 | return pyobj; | |
14086 | } | |
14087 | ||
14088 | ||
14089 | static int _wrap_ART_HELP_set(PyObject *_val) { | |
14090 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); | |
14091 | return 1; | |
14092 | } | |
14093 | ||
14094 | ||
14095 | static PyObject *_wrap_ART_HELP_get() { | |
14096 | PyObject *pyobj; | |
14097 | ||
14098 | { | |
14099 | #if wxUSE_UNICODE | |
14100 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
14101 | #else | |
14102 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
14103 | #endif | |
14104 | } | |
14105 | return pyobj; | |
14106 | } | |
14107 | ||
14108 | ||
14109 | static int _wrap_ART_TIP_set(PyObject *_val) { | |
14110 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); | |
14111 | return 1; | |
14112 | } | |
14113 | ||
14114 | ||
14115 | static PyObject *_wrap_ART_TIP_get() { | |
14116 | PyObject *pyobj; | |
14117 | ||
14118 | { | |
14119 | #if wxUSE_UNICODE | |
14120 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14121 | #else | |
14122 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14123 | #endif | |
14124 | } | |
14125 | return pyobj; | |
14126 | } | |
14127 | ||
14128 | ||
14129 | static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) { | |
14130 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); | |
14131 | return 1; | |
14132 | } | |
14133 | ||
14134 | ||
14135 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
14136 | PyObject *pyobj; | |
14137 | ||
14138 | { | |
14139 | #if wxUSE_UNICODE | |
14140 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14141 | #else | |
14142 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14143 | #endif | |
14144 | } | |
14145 | return pyobj; | |
14146 | } | |
14147 | ||
14148 | ||
14149 | static int _wrap_ART_LIST_VIEW_set(PyObject *_val) { | |
14150 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); | |
14151 | return 1; | |
14152 | } | |
14153 | ||
14154 | ||
14155 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
14156 | PyObject *pyobj; | |
14157 | ||
14158 | { | |
14159 | #if wxUSE_UNICODE | |
14160 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14161 | #else | |
14162 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14163 | #endif | |
14164 | } | |
14165 | return pyobj; | |
14166 | } | |
14167 | ||
14168 | ||
14169 | static int _wrap_ART_NEW_DIR_set(PyObject *_val) { | |
14170 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); | |
14171 | return 1; | |
14172 | } | |
14173 | ||
14174 | ||
14175 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
14176 | PyObject *pyobj; | |
14177 | ||
14178 | { | |
14179 | #if wxUSE_UNICODE | |
14180 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14181 | #else | |
14182 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14183 | #endif | |
14184 | } | |
14185 | return pyobj; | |
14186 | } | |
14187 | ||
14188 | ||
14189 | static int _wrap_ART_FOLDER_set(PyObject *_val) { | |
14190 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); | |
14191 | return 1; | |
14192 | } | |
14193 | ||
14194 | ||
14195 | static PyObject *_wrap_ART_FOLDER_get() { | |
14196 | PyObject *pyobj; | |
14197 | ||
14198 | { | |
14199 | #if wxUSE_UNICODE | |
14200 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14201 | #else | |
14202 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14203 | #endif | |
14204 | } | |
14205 | return pyobj; | |
14206 | } | |
14207 | ||
14208 | ||
14209 | static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) { | |
14210 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); | |
14211 | return 1; | |
14212 | } | |
14213 | ||
14214 | ||
14215 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
14216 | PyObject *pyobj; | |
14217 | ||
14218 | { | |
14219 | #if wxUSE_UNICODE | |
14220 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14221 | #else | |
14222 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14223 | #endif | |
14224 | } | |
14225 | return pyobj; | |
14226 | } | |
14227 | ||
14228 | ||
14229 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) { | |
14230 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); | |
14231 | return 1; | |
14232 | } | |
14233 | ||
14234 | ||
14235 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
14236 | PyObject *pyobj; | |
14237 | ||
14238 | { | |
14239 | #if wxUSE_UNICODE | |
14240 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14241 | #else | |
14242 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14243 | #endif | |
14244 | } | |
14245 | return pyobj; | |
14246 | } | |
14247 | ||
14248 | ||
14249 | static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) { | |
14250 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); | |
14251 | return 1; | |
14252 | } | |
14253 | ||
14254 | ||
14255 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
14256 | PyObject *pyobj; | |
14257 | ||
14258 | { | |
14259 | #if wxUSE_UNICODE | |
14260 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14261 | #else | |
14262 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14263 | #endif | |
14264 | } | |
14265 | return pyobj; | |
14266 | } | |
14267 | ||
14268 | ||
14269 | static int _wrap_ART_TICK_MARK_set(PyObject *_val) { | |
14270 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); | |
14271 | return 1; | |
14272 | } | |
14273 | ||
14274 | ||
14275 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
14276 | PyObject *pyobj; | |
14277 | ||
14278 | { | |
14279 | #if wxUSE_UNICODE | |
14280 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14281 | #else | |
14282 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14283 | #endif | |
14284 | } | |
14285 | return pyobj; | |
14286 | } | |
14287 | ||
14288 | ||
14289 | static int _wrap_ART_CROSS_MARK_set(PyObject *_val) { | |
14290 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); | |
14291 | return 1; | |
14292 | } | |
14293 | ||
14294 | ||
14295 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
14296 | PyObject *pyobj; | |
14297 | ||
14298 | { | |
14299 | #if wxUSE_UNICODE | |
14300 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14301 | #else | |
14302 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14303 | #endif | |
14304 | } | |
14305 | return pyobj; | |
14306 | } | |
14307 | ||
14308 | ||
14309 | static int _wrap_ART_ERROR_set(PyObject *_val) { | |
14310 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); | |
14311 | return 1; | |
14312 | } | |
14313 | ||
14314 | ||
14315 | static PyObject *_wrap_ART_ERROR_get() { | |
14316 | PyObject *pyobj; | |
14317 | ||
14318 | { | |
14319 | #if wxUSE_UNICODE | |
14320 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14321 | #else | |
14322 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14323 | #endif | |
14324 | } | |
14325 | return pyobj; | |
14326 | } | |
14327 | ||
14328 | ||
14329 | static int _wrap_ART_QUESTION_set(PyObject *_val) { | |
14330 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); | |
14331 | return 1; | |
14332 | } | |
14333 | ||
14334 | ||
14335 | static PyObject *_wrap_ART_QUESTION_get() { | |
14336 | PyObject *pyobj; | |
14337 | ||
14338 | { | |
14339 | #if wxUSE_UNICODE | |
14340 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14341 | #else | |
14342 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14343 | #endif | |
14344 | } | |
14345 | return pyobj; | |
14346 | } | |
14347 | ||
14348 | ||
14349 | static int _wrap_ART_WARNING_set(PyObject *_val) { | |
14350 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); | |
14351 | return 1; | |
14352 | } | |
14353 | ||
14354 | ||
14355 | static PyObject *_wrap_ART_WARNING_get() { | |
14356 | PyObject *pyobj; | |
14357 | ||
14358 | { | |
14359 | #if wxUSE_UNICODE | |
14360 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14361 | #else | |
14362 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14363 | #endif | |
14364 | } | |
14365 | return pyobj; | |
14366 | } | |
14367 | ||
14368 | ||
14369 | static int _wrap_ART_INFORMATION_set(PyObject *_val) { | |
14370 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); | |
14371 | return 1; | |
14372 | } | |
14373 | ||
14374 | ||
14375 | static PyObject *_wrap_ART_INFORMATION_get() { | |
14376 | PyObject *pyobj; | |
14377 | ||
14378 | { | |
14379 | #if wxUSE_UNICODE | |
14380 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14381 | #else | |
14382 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14383 | #endif | |
14384 | } | |
14385 | return pyobj; | |
14386 | } | |
14387 | ||
14388 | ||
14389 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) { | |
14390 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); | |
14391 | return 1; | |
14392 | } | |
14393 | ||
14394 | ||
14395 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
14396 | PyObject *pyobj; | |
14397 | ||
14398 | { | |
14399 | #if wxUSE_UNICODE | |
14400 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14401 | #else | |
14402 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14403 | #endif | |
14404 | } | |
14405 | return pyobj; | |
14406 | } | |
14407 | ||
14408 | ||
14409 | static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14410 | PyObject *resultobj; | |
14411 | wxPyArtProvider *result; | |
14412 | char *kwnames[] = { | |
14413 | NULL | |
14414 | }; | |
14415 | ||
14416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
14417 | { | |
e3b71cb8 | 14418 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
14419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14420 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
14421 | ||
14422 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 14423 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 14424 | } |
15afbcd0 | 14425 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1); |
d14a1e28 RD |
14426 | return resultobj; |
14427 | fail: | |
14428 | return NULL; | |
14429 | } | |
14430 | ||
14431 | ||
d14a1e28 RD |
14432 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
14433 | PyObject *resultobj; | |
14434 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14435 | PyObject *arg2 = (PyObject *) 0 ; | |
14436 | PyObject *arg3 = (PyObject *) 0 ; | |
14437 | PyObject * obj0 = 0 ; | |
14438 | PyObject * obj1 = 0 ; | |
14439 | PyObject * obj2 = 0 ; | |
14440 | char *kwnames[] = { | |
14441 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14442 | }; | |
14443 | ||
14444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
14445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14447 | arg2 = obj1; |
14448 | arg3 = obj2; | |
14449 | { | |
14450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14451 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14452 | ||
14453 | wxPyEndAllowThreads(__tstate); | |
14454 | if (PyErr_Occurred()) SWIG_fail; | |
14455 | } | |
14456 | Py_INCREF(Py_None); resultobj = Py_None; | |
14457 | return resultobj; | |
14458 | fail: | |
14459 | return NULL; | |
14460 | } | |
14461 | ||
14462 | ||
14463 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14464 | PyObject *resultobj; | |
14465 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14466 | PyObject * obj0 = 0 ; | |
14467 | char *kwnames[] = { | |
14468 | (char *) "provider", NULL | |
14469 | }; | |
14470 | ||
14471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14474 | { |
14475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14476 | wxPyArtProvider::PushProvider(arg1); | |
14477 | ||
14478 | wxPyEndAllowThreads(__tstate); | |
14479 | if (PyErr_Occurred()) SWIG_fail; | |
14480 | } | |
14481 | Py_INCREF(Py_None); resultobj = Py_None; | |
14482 | return resultobj; | |
14483 | fail: | |
14484 | return NULL; | |
14485 | } | |
14486 | ||
14487 | ||
14488 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14489 | PyObject *resultobj; | |
14490 | bool result; | |
14491 | char *kwnames[] = { | |
14492 | NULL | |
14493 | }; | |
14494 | ||
14495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
14496 | { | |
14497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14498 | result = (bool)wxPyArtProvider::PopProvider(); | |
14499 | ||
14500 | wxPyEndAllowThreads(__tstate); | |
14501 | if (PyErr_Occurred()) SWIG_fail; | |
14502 | } | |
4f89f6a3 RD |
14503 | { |
14504 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14505 | } | |
d14a1e28 RD |
14506 | return resultobj; |
14507 | fail: | |
14508 | return NULL; | |
14509 | } | |
14510 | ||
14511 | ||
14512 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14513 | PyObject *resultobj; | |
14514 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14515 | bool result; | |
14516 | PyObject * obj0 = 0 ; | |
14517 | char *kwnames[] = { | |
14518 | (char *) "provider", NULL | |
14519 | }; | |
14520 | ||
14521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14524 | { |
14525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14526 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
14527 | ||
14528 | wxPyEndAllowThreads(__tstate); | |
14529 | if (PyErr_Occurred()) SWIG_fail; | |
14530 | } | |
4f89f6a3 RD |
14531 | { |
14532 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14533 | } | |
d14a1e28 RD |
14534 | return resultobj; |
14535 | fail: | |
14536 | return NULL; | |
14537 | } | |
14538 | ||
14539 | ||
14540 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14541 | PyObject *resultobj; | |
14542 | wxString *arg1 = 0 ; | |
14543 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14544 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14545 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14546 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14547 | wxBitmap result; | |
e811c8ce RD |
14548 | bool temp1 = False ; |
14549 | bool temp2 = False ; | |
d14a1e28 RD |
14550 | wxSize temp3 ; |
14551 | PyObject * obj0 = 0 ; | |
14552 | PyObject * obj1 = 0 ; | |
14553 | PyObject * obj2 = 0 ; | |
14554 | char *kwnames[] = { | |
14555 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14556 | }; | |
14557 | ||
14558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14559 | { | |
14560 | arg1 = wxString_in_helper(obj0); | |
14561 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 14562 | temp1 = True; |
d14a1e28 RD |
14563 | } |
14564 | if (obj1) { | |
14565 | { | |
14566 | arg2 = wxString_in_helper(obj1); | |
14567 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14568 | temp2 = True; |
d14a1e28 RD |
14569 | } |
14570 | } | |
14571 | if (obj2) { | |
14572 | { | |
14573 | arg3 = &temp3; | |
14574 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14575 | } | |
14576 | } | |
14577 | { | |
e3b71cb8 | 14578 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
14579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14580 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14581 | ||
14582 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 14583 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14584 | } |
14585 | { | |
14586 | wxBitmap * resultptr; | |
14587 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 14588 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
14589 | } |
14590 | { | |
14591 | if (temp1) | |
14592 | delete arg1; | |
14593 | } | |
14594 | { | |
14595 | if (temp2) | |
14596 | delete arg2; | |
14597 | } | |
14598 | return resultobj; | |
14599 | fail: | |
14600 | { | |
14601 | if (temp1) | |
14602 | delete arg1; | |
14603 | } | |
14604 | { | |
14605 | if (temp2) | |
14606 | delete arg2; | |
14607 | } | |
14608 | return NULL; | |
14609 | } | |
14610 | ||
14611 | ||
14612 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14613 | PyObject *resultobj; | |
14614 | wxString *arg1 = 0 ; | |
14615 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14616 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14617 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14618 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14619 | wxIcon result; | |
e811c8ce RD |
14620 | bool temp1 = False ; |
14621 | bool temp2 = False ; | |
d14a1e28 RD |
14622 | wxSize temp3 ; |
14623 | PyObject * obj0 = 0 ; | |
14624 | PyObject * obj1 = 0 ; | |
14625 | PyObject * obj2 = 0 ; | |
14626 | char *kwnames[] = { | |
14627 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14628 | }; | |
14629 | ||
14630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14631 | { | |
14632 | arg1 = wxString_in_helper(obj0); | |
14633 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 14634 | temp1 = True; |
d14a1e28 RD |
14635 | } |
14636 | if (obj1) { | |
14637 | { | |
14638 | arg2 = wxString_in_helper(obj1); | |
14639 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14640 | temp2 = True; |
d14a1e28 RD |
14641 | } |
14642 | } | |
14643 | if (obj2) { | |
14644 | { | |
14645 | arg3 = &temp3; | |
14646 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14647 | } | |
14648 | } | |
14649 | { | |
e3b71cb8 | 14650 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
14651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14652 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14653 | ||
14654 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 14655 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
14656 | } |
14657 | { | |
14658 | wxIcon * resultptr; | |
14659 | resultptr = new wxIcon((wxIcon &) result); | |
15afbcd0 | 14660 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
14661 | } |
14662 | { | |
14663 | if (temp1) | |
14664 | delete arg1; | |
14665 | } | |
14666 | { | |
14667 | if (temp2) | |
14668 | delete arg2; | |
14669 | } | |
14670 | return resultobj; | |
14671 | fail: | |
14672 | { | |
14673 | if (temp1) | |
14674 | delete arg1; | |
14675 | } | |
14676 | { | |
14677 | if (temp2) | |
14678 | delete arg2; | |
14679 | } | |
14680 | return NULL; | |
14681 | } | |
14682 | ||
14683 | ||
1e0c8722 RD |
14684 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
14685 | PyObject *resultobj; | |
14686 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14687 | PyObject * obj0 = 0 ; | |
14688 | char *kwnames[] = { | |
14689 | (char *) "self", NULL | |
14690 | }; | |
14691 | ||
14692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, |
14694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
14695 | { |
14696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14697 | wxPyArtProvider_Destroy(arg1); | |
14698 | ||
14699 | wxPyEndAllowThreads(__tstate); | |
14700 | if (PyErr_Occurred()) SWIG_fail; | |
14701 | } | |
14702 | Py_INCREF(Py_None); resultobj = Py_None; | |
14703 | return resultobj; | |
14704 | fail: | |
14705 | return NULL; | |
14706 | } | |
14707 | ||
14708 | ||
d14a1e28 RD |
14709 | static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) { |
14710 | PyObject *obj; | |
14711 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14712 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
14713 | Py_INCREF(obj); | |
14714 | return Py_BuildValue((char *)""); | |
14715 | } | |
14716 | static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14717 | PyObject *resultobj; | |
14718 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14719 | PyObject * obj0 = 0 ; | |
14720 | char *kwnames[] = { | |
14721 | (char *) "self", NULL | |
14722 | }; | |
14723 | ||
14724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14727 | { |
14728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14729 | delete arg1; | |
14730 | ||
14731 | wxPyEndAllowThreads(__tstate); | |
14732 | if (PyErr_Occurred()) SWIG_fail; | |
14733 | } | |
14734 | Py_INCREF(Py_None); resultobj = Py_None; | |
14735 | return resultobj; | |
14736 | fail: | |
14737 | return NULL; | |
14738 | } | |
14739 | ||
14740 | ||
14741 | static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14742 | PyObject *resultobj; | |
14743 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14744 | wxConfigBase *result; | |
14745 | PyObject * obj0 = 0 ; | |
14746 | char *kwnames[] = { | |
b88bce5f | 14747 | (char *) "config", NULL |
d14a1e28 RD |
14748 | }; |
14749 | ||
14750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14753 | { |
14754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14755 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
14756 | ||
14757 | wxPyEndAllowThreads(__tstate); | |
14758 | if (PyErr_Occurred()) SWIG_fail; | |
14759 | } | |
15afbcd0 | 14760 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
14761 | return resultobj; |
14762 | fail: | |
14763 | return NULL; | |
14764 | } | |
14765 | ||
14766 | ||
14767 | static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14768 | PyObject *resultobj; | |
e811c8ce | 14769 | bool arg1 = (bool) True ; |
d14a1e28 RD |
14770 | wxConfigBase *result; |
14771 | PyObject * obj0 = 0 ; | |
14772 | char *kwnames[] = { | |
14773 | (char *) "createOnDemand", NULL | |
14774 | }; | |
14775 | ||
14776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
14777 | if (obj0) { | |
15afbcd0 RD |
14778 | arg1 = (bool) SWIG_AsBool(obj0); |
14779 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14780 | } |
14781 | { | |
14782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14783 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
14784 | ||
14785 | wxPyEndAllowThreads(__tstate); | |
14786 | if (PyErr_Occurred()) SWIG_fail; | |
14787 | } | |
15afbcd0 | 14788 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
14789 | return resultobj; |
14790 | fail: | |
14791 | return NULL; | |
14792 | } | |
14793 | ||
14794 | ||
14795 | static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14796 | PyObject *resultobj; | |
14797 | wxConfigBase *result; | |
14798 | char *kwnames[] = { | |
14799 | NULL | |
14800 | }; | |
14801 | ||
14802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
14803 | { | |
14804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14805 | result = (wxConfigBase *)wxConfigBase::Create(); | |
14806 | ||
14807 | wxPyEndAllowThreads(__tstate); | |
14808 | if (PyErr_Occurred()) SWIG_fail; | |
14809 | } | |
15afbcd0 | 14810 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); |
d14a1e28 RD |
14811 | return resultobj; |
14812 | fail: | |
14813 | return NULL; | |
14814 | } | |
14815 | ||
14816 | ||
14817 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14818 | PyObject *resultobj; | |
14819 | char *kwnames[] = { | |
14820 | NULL | |
14821 | }; | |
14822 | ||
14823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
14824 | { | |
14825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14826 | wxConfigBase::DontCreateOnDemand(); | |
14827 | ||
14828 | wxPyEndAllowThreads(__tstate); | |
14829 | if (PyErr_Occurred()) SWIG_fail; | |
14830 | } | |
14831 | Py_INCREF(Py_None); resultobj = Py_None; | |
14832 | return resultobj; | |
14833 | fail: | |
14834 | return NULL; | |
14835 | } | |
14836 | ||
14837 | ||
14838 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14839 | PyObject *resultobj; | |
14840 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14841 | wxString *arg2 = 0 ; | |
e811c8ce | 14842 | bool temp2 = False ; |
d14a1e28 RD |
14843 | PyObject * obj0 = 0 ; |
14844 | PyObject * obj1 = 0 ; | |
14845 | char *kwnames[] = { | |
b88bce5f | 14846 | (char *) "self",(char *) "path", NULL |
d14a1e28 RD |
14847 | }; |
14848 | ||
14849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14852 | { |
14853 | arg2 = wxString_in_helper(obj1); | |
14854 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14855 | temp2 = True; |
d14a1e28 RD |
14856 | } |
14857 | { | |
14858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14859 | (arg1)->SetPath((wxString const &)*arg2); | |
14860 | ||
14861 | wxPyEndAllowThreads(__tstate); | |
14862 | if (PyErr_Occurred()) SWIG_fail; | |
14863 | } | |
14864 | Py_INCREF(Py_None); resultobj = Py_None; | |
14865 | { | |
14866 | if (temp2) | |
14867 | delete arg2; | |
14868 | } | |
14869 | return resultobj; | |
14870 | fail: | |
14871 | { | |
14872 | if (temp2) | |
14873 | delete arg2; | |
14874 | } | |
14875 | return NULL; | |
14876 | } | |
14877 | ||
14878 | ||
14879 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14880 | PyObject *resultobj; | |
14881 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14882 | wxString *result; | |
14883 | PyObject * obj0 = 0 ; | |
14884 | char *kwnames[] = { | |
14885 | (char *) "self", NULL | |
14886 | }; | |
14887 | ||
14888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14891 | { |
14892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14893 | { | |
14894 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
14895 | result = (wxString *) &_result_ref; | |
14896 | } | |
14897 | ||
14898 | wxPyEndAllowThreads(__tstate); | |
14899 | if (PyErr_Occurred()) SWIG_fail; | |
14900 | } | |
cc6dd355 RD |
14901 | { |
14902 | #if wxUSE_UNICODE | |
14903 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14904 | #else | |
14905 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14906 | #endif | |
14907 | } | |
d14a1e28 RD |
14908 | return resultobj; |
14909 | fail: | |
14910 | return NULL; | |
14911 | } | |
14912 | ||
14913 | ||
14914 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14915 | PyObject *resultobj; | |
14916 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14917 | PyObject *result; | |
14918 | PyObject * obj0 = 0 ; | |
14919 | char *kwnames[] = { | |
14920 | (char *) "self", NULL | |
14921 | }; | |
14922 | ||
14923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14926 | { |
14927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14928 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
14929 | ||
14930 | wxPyEndAllowThreads(__tstate); | |
14931 | if (PyErr_Occurred()) SWIG_fail; | |
14932 | } | |
14933 | resultobj = result; | |
14934 | return resultobj; | |
14935 | fail: | |
14936 | return NULL; | |
14937 | } | |
14938 | ||
14939 | ||
14940 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14941 | PyObject *resultobj; | |
14942 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14943 | long arg2 ; | |
14944 | PyObject *result; | |
14945 | PyObject * obj0 = 0 ; | |
994141e6 | 14946 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14947 | char *kwnames[] = { |
14948 | (char *) "self",(char *) "index", NULL | |
14949 | }; | |
14950 | ||
994141e6 | 14951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14954 | arg2 = (long) SWIG_AsLong(obj1); | |
14955 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14956 | { |
14957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14958 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
14959 | ||
14960 | wxPyEndAllowThreads(__tstate); | |
14961 | if (PyErr_Occurred()) SWIG_fail; | |
14962 | } | |
14963 | resultobj = result; | |
14964 | return resultobj; | |
14965 | fail: | |
14966 | return NULL; | |
14967 | } | |
14968 | ||
14969 | ||
14970 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14971 | PyObject *resultobj; | |
14972 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14973 | PyObject *result; | |
14974 | PyObject * obj0 = 0 ; | |
14975 | char *kwnames[] = { | |
14976 | (char *) "self", NULL | |
14977 | }; | |
14978 | ||
14979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
14981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14982 | { |
14983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14984 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
14985 | ||
14986 | wxPyEndAllowThreads(__tstate); | |
14987 | if (PyErr_Occurred()) SWIG_fail; | |
14988 | } | |
14989 | resultobj = result; | |
14990 | return resultobj; | |
14991 | fail: | |
14992 | return NULL; | |
14993 | } | |
14994 | ||
14995 | ||
14996 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14997 | PyObject *resultobj; | |
14998 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14999 | long arg2 ; | |
15000 | PyObject *result; | |
15001 | PyObject * obj0 = 0 ; | |
994141e6 | 15002 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15003 | char *kwnames[] = { |
15004 | (char *) "self",(char *) "index", NULL | |
15005 | }; | |
15006 | ||
994141e6 | 15007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15010 | arg2 = (long) SWIG_AsLong(obj1); | |
15011 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15012 | { |
15013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15014 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
15015 | ||
15016 | wxPyEndAllowThreads(__tstate); | |
15017 | if (PyErr_Occurred()) SWIG_fail; | |
15018 | } | |
15019 | resultobj = result; | |
15020 | return resultobj; | |
15021 | fail: | |
15022 | return NULL; | |
15023 | } | |
15024 | ||
15025 | ||
15026 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15027 | PyObject *resultobj; | |
15028 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 15029 | bool arg2 = (bool) False ; |
d14a1e28 RD |
15030 | size_t result; |
15031 | PyObject * obj0 = 0 ; | |
15032 | PyObject * obj1 = 0 ; | |
15033 | char *kwnames[] = { | |
b88bce5f | 15034 | (char *) "self",(char *) "recursive", NULL |
d14a1e28 RD |
15035 | }; |
15036 | ||
15037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15040 | if (obj1) { |
15afbcd0 RD |
15041 | arg2 = (bool) SWIG_AsBool(obj1); |
15042 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15043 | } |
15044 | { | |
15045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15046 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
15047 | ||
15048 | wxPyEndAllowThreads(__tstate); | |
15049 | if (PyErr_Occurred()) SWIG_fail; | |
15050 | } | |
15afbcd0 | 15051 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
15052 | return resultobj; |
15053 | fail: | |
15054 | return NULL; | |
15055 | } | |
15056 | ||
15057 | ||
15058 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15059 | PyObject *resultobj; | |
15060 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 15061 | bool arg2 = (bool) False ; |
d14a1e28 RD |
15062 | size_t result; |
15063 | PyObject * obj0 = 0 ; | |
15064 | PyObject * obj1 = 0 ; | |
15065 | char *kwnames[] = { | |
b88bce5f | 15066 | (char *) "self",(char *) "recursive", NULL |
d14a1e28 RD |
15067 | }; |
15068 | ||
15069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15072 | if (obj1) { |
15afbcd0 RD |
15073 | arg2 = (bool) SWIG_AsBool(obj1); |
15074 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15075 | } |
15076 | { | |
15077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15078 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
15079 | ||
15080 | wxPyEndAllowThreads(__tstate); | |
15081 | if (PyErr_Occurred()) SWIG_fail; | |
15082 | } | |
15afbcd0 | 15083 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
15084 | return resultobj; |
15085 | fail: | |
15086 | return NULL; | |
15087 | } | |
15088 | ||
15089 | ||
15090 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15091 | PyObject *resultobj; | |
15092 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15093 | wxString *arg2 = 0 ; | |
15094 | bool result; | |
e811c8ce | 15095 | bool temp2 = False ; |
d14a1e28 RD |
15096 | PyObject * obj0 = 0 ; |
15097 | PyObject * obj1 = 0 ; | |
15098 | char *kwnames[] = { | |
b88bce5f | 15099 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
15100 | }; |
15101 | ||
15102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15105 | { |
15106 | arg2 = wxString_in_helper(obj1); | |
15107 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15108 | temp2 = True; |
d14a1e28 RD |
15109 | } |
15110 | { | |
15111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15112 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
15113 | ||
15114 | wxPyEndAllowThreads(__tstate); | |
15115 | if (PyErr_Occurred()) SWIG_fail; | |
15116 | } | |
4f89f6a3 RD |
15117 | { |
15118 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15119 | } | |
d14a1e28 RD |
15120 | { |
15121 | if (temp2) | |
15122 | delete arg2; | |
15123 | } | |
15124 | return resultobj; | |
15125 | fail: | |
15126 | { | |
15127 | if (temp2) | |
15128 | delete arg2; | |
15129 | } | |
15130 | return NULL; | |
15131 | } | |
15132 | ||
15133 | ||
15134 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15135 | PyObject *resultobj; | |
15136 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15137 | wxString *arg2 = 0 ; | |
15138 | bool result; | |
e811c8ce | 15139 | bool temp2 = False ; |
d14a1e28 RD |
15140 | PyObject * obj0 = 0 ; |
15141 | PyObject * obj1 = 0 ; | |
15142 | char *kwnames[] = { | |
b88bce5f | 15143 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
15144 | }; |
15145 | ||
15146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15149 | { |
15150 | arg2 = wxString_in_helper(obj1); | |
15151 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15152 | temp2 = True; |
d14a1e28 RD |
15153 | } |
15154 | { | |
15155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15156 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
15157 | ||
15158 | wxPyEndAllowThreads(__tstate); | |
15159 | if (PyErr_Occurred()) SWIG_fail; | |
15160 | } | |
4f89f6a3 RD |
15161 | { |
15162 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15163 | } | |
d14a1e28 RD |
15164 | { |
15165 | if (temp2) | |
15166 | delete arg2; | |
15167 | } | |
15168 | return resultobj; | |
15169 | fail: | |
15170 | { | |
15171 | if (temp2) | |
15172 | delete arg2; | |
15173 | } | |
15174 | return NULL; | |
15175 | } | |
15176 | ||
15177 | ||
15178 | static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15179 | PyObject *resultobj; | |
15180 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15181 | wxString *arg2 = 0 ; | |
15182 | bool result; | |
e811c8ce | 15183 | bool temp2 = False ; |
d14a1e28 RD |
15184 | PyObject * obj0 = 0 ; |
15185 | PyObject * obj1 = 0 ; | |
15186 | char *kwnames[] = { | |
b88bce5f | 15187 | (char *) "self",(char *) "name", NULL |
d14a1e28 RD |
15188 | }; |
15189 | ||
15190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15193 | { |
15194 | arg2 = wxString_in_helper(obj1); | |
15195 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15196 | temp2 = True; |
d14a1e28 RD |
15197 | } |
15198 | { | |
15199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15200 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
15201 | ||
15202 | wxPyEndAllowThreads(__tstate); | |
15203 | if (PyErr_Occurred()) SWIG_fail; | |
15204 | } | |
4f89f6a3 RD |
15205 | { |
15206 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15207 | } | |
d14a1e28 RD |
15208 | { |
15209 | if (temp2) | |
15210 | delete arg2; | |
15211 | } | |
15212 | return resultobj; | |
15213 | fail: | |
15214 | { | |
15215 | if (temp2) | |
15216 | delete arg2; | |
15217 | } | |
15218 | return NULL; | |
15219 | } | |
15220 | ||
15221 | ||
15222 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15223 | PyObject *resultobj; | |
15224 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15225 | wxString *arg2 = 0 ; | |
15226 | int result; | |
e811c8ce | 15227 | bool temp2 = False ; |
d14a1e28 RD |
15228 | PyObject * obj0 = 0 ; |
15229 | PyObject * obj1 = 0 ; | |
15230 | char *kwnames[] = { | |
15231 | (char *) "self",(char *) "name", NULL | |
15232 | }; | |
15233 | ||
15234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15237 | { |
15238 | arg2 = wxString_in_helper(obj1); | |
15239 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15240 | temp2 = True; |
d14a1e28 RD |
15241 | } |
15242 | { | |
15243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15244 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
15245 | ||
15246 | wxPyEndAllowThreads(__tstate); | |
15247 | if (PyErr_Occurred()) SWIG_fail; | |
15248 | } | |
15afbcd0 | 15249 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15250 | { |
15251 | if (temp2) | |
15252 | delete arg2; | |
15253 | } | |
15254 | return resultobj; | |
15255 | fail: | |
15256 | { | |
15257 | if (temp2) | |
15258 | delete arg2; | |
15259 | } | |
15260 | return NULL; | |
15261 | } | |
15262 | ||
15263 | ||
15264 | static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15265 | PyObject *resultobj; | |
15266 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15267 | wxString *arg2 = 0 ; | |
15268 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15269 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15270 | wxString result; | |
e811c8ce RD |
15271 | bool temp2 = False ; |
15272 | bool temp3 = False ; | |
d14a1e28 RD |
15273 | PyObject * obj0 = 0 ; |
15274 | PyObject * obj1 = 0 ; | |
15275 | PyObject * obj2 = 0 ; | |
15276 | char *kwnames[] = { | |
15277 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15278 | }; | |
15279 | ||
15280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15283 | { |
15284 | arg2 = wxString_in_helper(obj1); | |
15285 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15286 | temp2 = True; |
d14a1e28 RD |
15287 | } |
15288 | if (obj2) { | |
15289 | { | |
15290 | arg3 = wxString_in_helper(obj2); | |
15291 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15292 | temp3 = True; |
d14a1e28 RD |
15293 | } |
15294 | } | |
15295 | { | |
15296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15297 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
15298 | ||
15299 | wxPyEndAllowThreads(__tstate); | |
15300 | if (PyErr_Occurred()) SWIG_fail; | |
15301 | } | |
15302 | { | |
15303 | #if wxUSE_UNICODE | |
15304 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15305 | #else | |
15306 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15307 | #endif | |
15308 | } | |
15309 | { | |
15310 | if (temp2) | |
15311 | delete arg2; | |
15312 | } | |
15313 | { | |
15314 | if (temp3) | |
15315 | delete arg3; | |
15316 | } | |
15317 | return resultobj; | |
15318 | fail: | |
15319 | { | |
15320 | if (temp2) | |
15321 | delete arg2; | |
15322 | } | |
15323 | { | |
15324 | if (temp3) | |
15325 | delete arg3; | |
15326 | } | |
15327 | return NULL; | |
15328 | } | |
15329 | ||
15330 | ||
15331 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15332 | PyObject *resultobj; | |
15333 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15334 | wxString *arg2 = 0 ; | |
15335 | long arg3 = (long) 0 ; | |
15336 | long result; | |
e811c8ce | 15337 | bool temp2 = False ; |
d14a1e28 RD |
15338 | PyObject * obj0 = 0 ; |
15339 | PyObject * obj1 = 0 ; | |
994141e6 | 15340 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15341 | char *kwnames[] = { |
15342 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15343 | }; | |
15344 | ||
994141e6 | 15345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15348 | { |
15349 | arg2 = wxString_in_helper(obj1); | |
15350 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15351 | temp2 = True; |
d14a1e28 | 15352 | } |
994141e6 | 15353 | if (obj2) { |
15afbcd0 RD |
15354 | arg3 = (long) SWIG_AsLong(obj2); |
15355 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15356 | } |
d14a1e28 RD |
15357 | { |
15358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15359 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
15360 | ||
15361 | wxPyEndAllowThreads(__tstate); | |
15362 | if (PyErr_Occurred()) SWIG_fail; | |
15363 | } | |
15afbcd0 | 15364 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
15365 | { |
15366 | if (temp2) | |
15367 | delete arg2; | |
15368 | } | |
15369 | return resultobj; | |
15370 | fail: | |
15371 | { | |
15372 | if (temp2) | |
15373 | delete arg2; | |
15374 | } | |
15375 | return NULL; | |
15376 | } | |
15377 | ||
15378 | ||
15379 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15380 | PyObject *resultobj; | |
15381 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15382 | wxString *arg2 = 0 ; | |
15383 | double arg3 = (double) 0.0 ; | |
15384 | double result; | |
e811c8ce | 15385 | bool temp2 = False ; |
d14a1e28 RD |
15386 | PyObject * obj0 = 0 ; |
15387 | PyObject * obj1 = 0 ; | |
994141e6 | 15388 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15389 | char *kwnames[] = { |
15390 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15391 | }; | |
15392 | ||
994141e6 | 15393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15396 | { |
15397 | arg2 = wxString_in_helper(obj1); | |
15398 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15399 | temp2 = True; |
d14a1e28 | 15400 | } |
994141e6 | 15401 | if (obj2) { |
15afbcd0 RD |
15402 | arg3 = (double) SWIG_AsDouble(obj2); |
15403 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15404 | } |
d14a1e28 RD |
15405 | { |
15406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15407 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
15408 | ||
15409 | wxPyEndAllowThreads(__tstate); | |
15410 | if (PyErr_Occurred()) SWIG_fail; | |
15411 | } | |
15afbcd0 | 15412 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
15413 | { |
15414 | if (temp2) | |
15415 | delete arg2; | |
15416 | } | |
15417 | return resultobj; | |
15418 | fail: | |
15419 | { | |
15420 | if (temp2) | |
15421 | delete arg2; | |
15422 | } | |
15423 | return NULL; | |
15424 | } | |
15425 | ||
15426 | ||
15427 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15428 | PyObject *resultobj; | |
15429 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15430 | wxString *arg2 = 0 ; | |
e811c8ce | 15431 | bool arg3 = (bool) False ; |
d14a1e28 | 15432 | bool result; |
e811c8ce | 15433 | bool temp2 = False ; |
d14a1e28 RD |
15434 | PyObject * obj0 = 0 ; |
15435 | PyObject * obj1 = 0 ; | |
15436 | PyObject * obj2 = 0 ; | |
15437 | char *kwnames[] = { | |
15438 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15439 | }; | |
15440 | ||
15441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15444 | { |
15445 | arg2 = wxString_in_helper(obj1); | |
15446 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15447 | temp2 = True; |
d14a1e28 RD |
15448 | } |
15449 | if (obj2) { | |
15afbcd0 RD |
15450 | arg3 = (bool) SWIG_AsBool(obj2); |
15451 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15452 | } |
15453 | { | |
15454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15455 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
15456 | ||
15457 | wxPyEndAllowThreads(__tstate); | |
15458 | if (PyErr_Occurred()) SWIG_fail; | |
15459 | } | |
4f89f6a3 RD |
15460 | { |
15461 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15462 | } | |
d14a1e28 RD |
15463 | { |
15464 | if (temp2) | |
15465 | delete arg2; | |
15466 | } | |
15467 | return resultobj; | |
15468 | fail: | |
15469 | { | |
15470 | if (temp2) | |
15471 | delete arg2; | |
15472 | } | |
15473 | return NULL; | |
15474 | } | |
15475 | ||
15476 | ||
15477 | static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15478 | PyObject *resultobj; | |
15479 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15480 | wxString *arg2 = 0 ; | |
15481 | wxString *arg3 = 0 ; | |
15482 | bool result; | |
e811c8ce RD |
15483 | bool temp2 = False ; |
15484 | bool temp3 = False ; | |
d14a1e28 RD |
15485 | PyObject * obj0 = 0 ; |
15486 | PyObject * obj1 = 0 ; | |
15487 | PyObject * obj2 = 0 ; | |
15488 | char *kwnames[] = { | |
15489 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15490 | }; | |
15491 | ||
15492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15495 | { |
15496 | arg2 = wxString_in_helper(obj1); | |
15497 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15498 | temp2 = True; |
d14a1e28 RD |
15499 | } |
15500 | { | |
15501 | arg3 = wxString_in_helper(obj2); | |
15502 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15503 | temp3 = True; |
d14a1e28 RD |
15504 | } |
15505 | { | |
15506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15507 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
15508 | ||
15509 | wxPyEndAllowThreads(__tstate); | |
15510 | if (PyErr_Occurred()) SWIG_fail; | |
15511 | } | |
4f89f6a3 RD |
15512 | { |
15513 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15514 | } | |
d14a1e28 RD |
15515 | { |
15516 | if (temp2) | |
15517 | delete arg2; | |
15518 | } | |
15519 | { | |
15520 | if (temp3) | |
15521 | delete arg3; | |
15522 | } | |
15523 | return resultobj; | |
15524 | fail: | |
15525 | { | |
15526 | if (temp2) | |
15527 | delete arg2; | |
15528 | } | |
15529 | { | |
15530 | if (temp3) | |
15531 | delete arg3; | |
15532 | } | |
15533 | return NULL; | |
15534 | } | |
15535 | ||
15536 | ||
15537 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15538 | PyObject *resultobj; | |
15539 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15540 | wxString *arg2 = 0 ; | |
15541 | long arg3 ; | |
15542 | bool result; | |
e811c8ce | 15543 | bool temp2 = False ; |
d14a1e28 RD |
15544 | PyObject * obj0 = 0 ; |
15545 | PyObject * obj1 = 0 ; | |
994141e6 | 15546 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15547 | char *kwnames[] = { |
15548 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15549 | }; | |
15550 | ||
994141e6 | 15551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15554 | { |
15555 | arg2 = wxString_in_helper(obj1); | |
15556 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15557 | temp2 = True; |
d14a1e28 | 15558 | } |
15afbcd0 RD |
15559 | arg3 = (long) SWIG_AsLong(obj2); |
15560 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15561 | { |
15562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15563 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15564 | ||
15565 | wxPyEndAllowThreads(__tstate); | |
15566 | if (PyErr_Occurred()) SWIG_fail; | |
15567 | } | |
4f89f6a3 RD |
15568 | { |
15569 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15570 | } | |
d14a1e28 RD |
15571 | { |
15572 | if (temp2) | |
15573 | delete arg2; | |
15574 | } | |
15575 | return resultobj; | |
15576 | fail: | |
15577 | { | |
15578 | if (temp2) | |
15579 | delete arg2; | |
15580 | } | |
15581 | return NULL; | |
15582 | } | |
15583 | ||
15584 | ||
15585 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15586 | PyObject *resultobj; | |
15587 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15588 | wxString *arg2 = 0 ; | |
15589 | double arg3 ; | |
15590 | bool result; | |
e811c8ce | 15591 | bool temp2 = False ; |
d14a1e28 RD |
15592 | PyObject * obj0 = 0 ; |
15593 | PyObject * obj1 = 0 ; | |
994141e6 | 15594 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15595 | char *kwnames[] = { |
15596 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15597 | }; | |
15598 | ||
994141e6 | 15599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
15600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15602 | { |
15603 | arg2 = wxString_in_helper(obj1); | |
15604 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15605 | temp2 = True; |
d14a1e28 | 15606 | } |
15afbcd0 RD |
15607 | arg3 = (double) SWIG_AsDouble(obj2); |
15608 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15609 | { |
15610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15611 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15612 | ||
15613 | wxPyEndAllowThreads(__tstate); | |
15614 | if (PyErr_Occurred()) SWIG_fail; | |
15615 | } | |
4f89f6a3 RD |
15616 | { |
15617 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15618 | } | |
d14a1e28 RD |
15619 | { |
15620 | if (temp2) | |
15621 | delete arg2; | |
15622 | } | |
15623 | return resultobj; | |
15624 | fail: | |
15625 | { | |
15626 | if (temp2) | |
15627 | delete arg2; | |
15628 | } | |
15629 | return NULL; | |
15630 | } | |
15631 | ||
15632 | ||
15633 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15634 | PyObject *resultobj; | |
15635 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15636 | wxString *arg2 = 0 ; | |
15637 | bool arg3 ; | |
15638 | bool result; | |
e811c8ce | 15639 | bool temp2 = False ; |
d14a1e28 RD |
15640 | PyObject * obj0 = 0 ; |
15641 | PyObject * obj1 = 0 ; | |
15642 | PyObject * obj2 = 0 ; | |
15643 | char *kwnames[] = { | |
15644 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15645 | }; | |
15646 | ||
15647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15650 | { |
15651 | arg2 = wxString_in_helper(obj1); | |
15652 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15653 | temp2 = True; |
d14a1e28 | 15654 | } |
15afbcd0 RD |
15655 | arg3 = (bool) SWIG_AsBool(obj2); |
15656 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15657 | { |
15658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15659 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15660 | ||
15661 | wxPyEndAllowThreads(__tstate); | |
15662 | if (PyErr_Occurred()) SWIG_fail; | |
15663 | } | |
4f89f6a3 RD |
15664 | { |
15665 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15666 | } | |
d14a1e28 RD |
15667 | { |
15668 | if (temp2) | |
15669 | delete arg2; | |
15670 | } | |
15671 | return resultobj; | |
15672 | fail: | |
15673 | { | |
15674 | if (temp2) | |
15675 | delete arg2; | |
15676 | } | |
15677 | return NULL; | |
15678 | } | |
15679 | ||
15680 | ||
15681 | static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15682 | PyObject *resultobj; | |
15683 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 15684 | bool arg2 = (bool) False ; |
d14a1e28 RD |
15685 | bool result; |
15686 | PyObject * obj0 = 0 ; | |
15687 | PyObject * obj1 = 0 ; | |
15688 | char *kwnames[] = { | |
b88bce5f | 15689 | (char *) "self",(char *) "currentOnly", NULL |
d14a1e28 RD |
15690 | }; |
15691 | ||
15692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15695 | if (obj1) { |
15afbcd0 RD |
15696 | arg2 = (bool) SWIG_AsBool(obj1); |
15697 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15698 | } |
15699 | { | |
15700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15701 | result = (bool)(arg1)->Flush(arg2); | |
15702 | ||
15703 | wxPyEndAllowThreads(__tstate); | |
15704 | if (PyErr_Occurred()) SWIG_fail; | |
15705 | } | |
4f89f6a3 RD |
15706 | { |
15707 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15708 | } | |
d14a1e28 RD |
15709 | return resultobj; |
15710 | fail: | |
15711 | return NULL; | |
15712 | } | |
15713 | ||
15714 | ||
15715 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15716 | PyObject *resultobj; | |
15717 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15718 | wxString *arg2 = 0 ; | |
15719 | wxString *arg3 = 0 ; | |
15720 | bool result; | |
e811c8ce RD |
15721 | bool temp2 = False ; |
15722 | bool temp3 = False ; | |
d14a1e28 RD |
15723 | PyObject * obj0 = 0 ; |
15724 | PyObject * obj1 = 0 ; | |
15725 | PyObject * obj2 = 0 ; | |
15726 | char *kwnames[] = { | |
15727 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15728 | }; | |
15729 | ||
15730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15733 | { |
15734 | arg2 = wxString_in_helper(obj1); | |
15735 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15736 | temp2 = True; |
d14a1e28 RD |
15737 | } |
15738 | { | |
15739 | arg3 = wxString_in_helper(obj2); | |
15740 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15741 | temp3 = True; |
d14a1e28 RD |
15742 | } |
15743 | { | |
15744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15745 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
15746 | ||
15747 | wxPyEndAllowThreads(__tstate); | |
15748 | if (PyErr_Occurred()) SWIG_fail; | |
15749 | } | |
4f89f6a3 RD |
15750 | { |
15751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15752 | } | |
d14a1e28 RD |
15753 | { |
15754 | if (temp2) | |
15755 | delete arg2; | |
15756 | } | |
15757 | { | |
15758 | if (temp3) | |
15759 | delete arg3; | |
15760 | } | |
15761 | return resultobj; | |
15762 | fail: | |
15763 | { | |
15764 | if (temp2) | |
15765 | delete arg2; | |
15766 | } | |
15767 | { | |
15768 | if (temp3) | |
15769 | delete arg3; | |
15770 | } | |
15771 | return NULL; | |
15772 | } | |
15773 | ||
15774 | ||
15775 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15776 | PyObject *resultobj; | |
15777 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15778 | wxString *arg2 = 0 ; | |
15779 | wxString *arg3 = 0 ; | |
15780 | bool result; | |
e811c8ce RD |
15781 | bool temp2 = False ; |
15782 | bool temp3 = False ; | |
d14a1e28 RD |
15783 | PyObject * obj0 = 0 ; |
15784 | PyObject * obj1 = 0 ; | |
15785 | PyObject * obj2 = 0 ; | |
15786 | char *kwnames[] = { | |
15787 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15788 | }; | |
15789 | ||
15790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15793 | { |
15794 | arg2 = wxString_in_helper(obj1); | |
15795 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15796 | temp2 = True; |
d14a1e28 RD |
15797 | } |
15798 | { | |
15799 | arg3 = wxString_in_helper(obj2); | |
15800 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 15801 | temp3 = True; |
d14a1e28 RD |
15802 | } |
15803 | { | |
15804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15805 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
15806 | ||
15807 | wxPyEndAllowThreads(__tstate); | |
15808 | if (PyErr_Occurred()) SWIG_fail; | |
15809 | } | |
4f89f6a3 RD |
15810 | { |
15811 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15812 | } | |
d14a1e28 RD |
15813 | { |
15814 | if (temp2) | |
15815 | delete arg2; | |
15816 | } | |
15817 | { | |
15818 | if (temp3) | |
15819 | delete arg3; | |
15820 | } | |
15821 | return resultobj; | |
15822 | fail: | |
15823 | { | |
15824 | if (temp2) | |
15825 | delete arg2; | |
15826 | } | |
15827 | { | |
15828 | if (temp3) | |
15829 | delete arg3; | |
15830 | } | |
15831 | return NULL; | |
15832 | } | |
15833 | ||
15834 | ||
15835 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15836 | PyObject *resultobj; | |
15837 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15838 | wxString *arg2 = 0 ; | |
e811c8ce | 15839 | bool arg3 = (bool) True ; |
d14a1e28 | 15840 | bool result; |
e811c8ce | 15841 | bool temp2 = False ; |
d14a1e28 RD |
15842 | PyObject * obj0 = 0 ; |
15843 | PyObject * obj1 = 0 ; | |
15844 | PyObject * obj2 = 0 ; | |
15845 | char *kwnames[] = { | |
b88bce5f | 15846 | (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL |
d14a1e28 RD |
15847 | }; |
15848 | ||
15849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15852 | { |
15853 | arg2 = wxString_in_helper(obj1); | |
15854 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15855 | temp2 = True; |
d14a1e28 RD |
15856 | } |
15857 | if (obj2) { | |
15afbcd0 RD |
15858 | arg3 = (bool) SWIG_AsBool(obj2); |
15859 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15860 | } |
15861 | { | |
15862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15863 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
15864 | ||
15865 | wxPyEndAllowThreads(__tstate); | |
15866 | if (PyErr_Occurred()) SWIG_fail; | |
15867 | } | |
4f89f6a3 RD |
15868 | { |
15869 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15870 | } | |
d14a1e28 RD |
15871 | { |
15872 | if (temp2) | |
15873 | delete arg2; | |
15874 | } | |
15875 | return resultobj; | |
15876 | fail: | |
15877 | { | |
15878 | if (temp2) | |
15879 | delete arg2; | |
15880 | } | |
15881 | return NULL; | |
15882 | } | |
15883 | ||
15884 | ||
15885 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15886 | PyObject *resultobj; | |
15887 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15888 | wxString *arg2 = 0 ; | |
15889 | bool result; | |
e811c8ce | 15890 | bool temp2 = False ; |
d14a1e28 RD |
15891 | PyObject * obj0 = 0 ; |
15892 | PyObject * obj1 = 0 ; | |
15893 | char *kwnames[] = { | |
15894 | (char *) "self",(char *) "key", NULL | |
15895 | }; | |
15896 | ||
15897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15900 | { |
15901 | arg2 = wxString_in_helper(obj1); | |
15902 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 15903 | temp2 = True; |
d14a1e28 RD |
15904 | } |
15905 | { | |
15906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15907 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
15908 | ||
15909 | wxPyEndAllowThreads(__tstate); | |
15910 | if (PyErr_Occurred()) SWIG_fail; | |
15911 | } | |
4f89f6a3 RD |
15912 | { |
15913 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15914 | } | |
d14a1e28 RD |
15915 | { |
15916 | if (temp2) | |
15917 | delete arg2; | |
15918 | } | |
15919 | return resultobj; | |
15920 | fail: | |
15921 | { | |
15922 | if (temp2) | |
15923 | delete arg2; | |
15924 | } | |
15925 | return NULL; | |
15926 | } | |
15927 | ||
15928 | ||
15929 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15930 | PyObject *resultobj; | |
15931 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15932 | bool result; | |
15933 | PyObject * obj0 = 0 ; | |
15934 | char *kwnames[] = { | |
15935 | (char *) "self", NULL | |
15936 | }; | |
15937 | ||
15938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15941 | { |
15942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15943 | result = (bool)(arg1)->DeleteAll(); | |
15944 | ||
15945 | wxPyEndAllowThreads(__tstate); | |
15946 | if (PyErr_Occurred()) SWIG_fail; | |
15947 | } | |
4f89f6a3 RD |
15948 | { |
15949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15950 | } | |
d14a1e28 RD |
15951 | return resultobj; |
15952 | fail: | |
15953 | return NULL; | |
15954 | } | |
15955 | ||
15956 | ||
b88bce5f | 15957 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15958 | PyObject *resultobj; |
15959 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b88bce5f | 15960 | bool arg2 = (bool) True ; |
d14a1e28 | 15961 | PyObject * obj0 = 0 ; |
b88bce5f | 15962 | PyObject * obj1 = 0 ; |
d14a1e28 | 15963 | char *kwnames[] = { |
b88bce5f | 15964 | (char *) "self",(char *) "doIt", NULL |
d14a1e28 RD |
15965 | }; |
15966 | ||
b88bce5f | 15967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f | 15970 | if (obj1) { |
15afbcd0 RD |
15971 | arg2 = (bool) SWIG_AsBool(obj1); |
15972 | if (PyErr_Occurred()) SWIG_fail; | |
b88bce5f | 15973 | } |
d14a1e28 RD |
15974 | { |
15975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 15976 | (arg1)->SetExpandEnvVars(arg2); |
d14a1e28 RD |
15977 | |
15978 | wxPyEndAllowThreads(__tstate); | |
15979 | if (PyErr_Occurred()) SWIG_fail; | |
15980 | } | |
b88bce5f | 15981 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
15982 | return resultobj; |
15983 | fail: | |
15984 | return NULL; | |
15985 | } | |
15986 | ||
15987 | ||
b88bce5f | 15988 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15989 | PyObject *resultobj; |
15990 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b88bce5f | 15991 | bool result; |
d14a1e28 | 15992 | PyObject * obj0 = 0 ; |
d14a1e28 | 15993 | char *kwnames[] = { |
b88bce5f | 15994 | (char *) "self", NULL |
d14a1e28 RD |
15995 | }; |
15996 | ||
b88bce5f | 15997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
15998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
15999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16000 | { |
16001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 16002 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); |
d14a1e28 RD |
16003 | |
16004 | wxPyEndAllowThreads(__tstate); | |
16005 | if (PyErr_Occurred()) SWIG_fail; | |
16006 | } | |
4f89f6a3 RD |
16007 | { |
16008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16009 | } | |
d14a1e28 RD |
16010 | return resultobj; |
16011 | fail: | |
16012 | return NULL; | |
16013 | } | |
16014 | ||
16015 | ||
16016 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16017 | PyObject *resultobj; | |
16018 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
e811c8ce | 16019 | bool arg2 = (bool) True ; |
d14a1e28 RD |
16020 | PyObject * obj0 = 0 ; |
16021 | PyObject * obj1 = 0 ; | |
16022 | char *kwnames[] = { | |
b88bce5f | 16023 | (char *) "self",(char *) "doIt", NULL |
d14a1e28 RD |
16024 | }; |
16025 | ||
16026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 16029 | if (obj1) { |
15afbcd0 RD |
16030 | arg2 = (bool) SWIG_AsBool(obj1); |
16031 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16032 | } |
16033 | { | |
16034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16035 | (arg1)->SetRecordDefaults(arg2); | |
16036 | ||
16037 | wxPyEndAllowThreads(__tstate); | |
16038 | if (PyErr_Occurred()) SWIG_fail; | |
16039 | } | |
16040 | Py_INCREF(Py_None); resultobj = Py_None; | |
16041 | return resultobj; | |
16042 | fail: | |
16043 | return NULL; | |
16044 | } | |
16045 | ||
16046 | ||
16047 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16048 | PyObject *resultobj; | |
16049 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16050 | bool result; | |
16051 | PyObject * obj0 = 0 ; | |
16052 | char *kwnames[] = { | |
16053 | (char *) "self", NULL | |
16054 | }; | |
16055 | ||
16056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16059 | { |
16060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16061 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
16062 | ||
16063 | wxPyEndAllowThreads(__tstate); | |
16064 | if (PyErr_Occurred()) SWIG_fail; | |
16065 | } | |
4f89f6a3 RD |
16066 | { |
16067 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16068 | } | |
d14a1e28 RD |
16069 | return resultobj; |
16070 | fail: | |
16071 | return NULL; | |
16072 | } | |
16073 | ||
16074 | ||
16075 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16076 | PyObject *resultobj; | |
16077 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16078 | wxString *arg2 = 0 ; | |
16079 | wxString result; | |
e811c8ce | 16080 | bool temp2 = False ; |
d14a1e28 RD |
16081 | PyObject * obj0 = 0 ; |
16082 | PyObject * obj1 = 0 ; | |
16083 | char *kwnames[] = { | |
16084 | (char *) "self",(char *) "str", NULL | |
16085 | }; | |
16086 | ||
16087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16090 | { |
16091 | arg2 = wxString_in_helper(obj1); | |
16092 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16093 | temp2 = True; |
d14a1e28 RD |
16094 | } |
16095 | { | |
16096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16097 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
16098 | ||
16099 | wxPyEndAllowThreads(__tstate); | |
16100 | if (PyErr_Occurred()) SWIG_fail; | |
16101 | } | |
16102 | { | |
16103 | #if wxUSE_UNICODE | |
16104 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16105 | #else | |
16106 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16107 | #endif | |
16108 | } | |
16109 | { | |
16110 | if (temp2) | |
16111 | delete arg2; | |
16112 | } | |
16113 | return resultobj; | |
16114 | fail: | |
16115 | { | |
16116 | if (temp2) | |
16117 | delete arg2; | |
16118 | } | |
16119 | return NULL; | |
16120 | } | |
16121 | ||
16122 | ||
16123 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16124 | PyObject *resultobj; | |
16125 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16126 | wxString result; | |
16127 | PyObject * obj0 = 0 ; | |
16128 | char *kwnames[] = { | |
16129 | (char *) "self", NULL | |
16130 | }; | |
16131 | ||
16132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16135 | { |
16136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16137 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
16138 | ||
16139 | wxPyEndAllowThreads(__tstate); | |
16140 | if (PyErr_Occurred()) SWIG_fail; | |
16141 | } | |
16142 | { | |
16143 | #if wxUSE_UNICODE | |
16144 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16145 | #else | |
16146 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16147 | #endif | |
16148 | } | |
16149 | return resultobj; | |
16150 | fail: | |
16151 | return NULL; | |
16152 | } | |
16153 | ||
16154 | ||
16155 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16156 | PyObject *resultobj; | |
16157 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16158 | wxString result; | |
16159 | PyObject * obj0 = 0 ; | |
16160 | char *kwnames[] = { | |
16161 | (char *) "self", NULL | |
16162 | }; | |
16163 | ||
16164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16167 | { |
16168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16169 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
16170 | ||
16171 | wxPyEndAllowThreads(__tstate); | |
16172 | if (PyErr_Occurred()) SWIG_fail; | |
16173 | } | |
16174 | { | |
16175 | #if wxUSE_UNICODE | |
16176 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16177 | #else | |
16178 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16179 | #endif | |
16180 | } | |
16181 | return resultobj; | |
16182 | fail: | |
16183 | return NULL; | |
16184 | } | |
16185 | ||
16186 | ||
16187 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16188 | PyObject *resultobj; | |
16189 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16190 | wxString *arg2 = 0 ; | |
e811c8ce | 16191 | bool temp2 = False ; |
d14a1e28 RD |
16192 | PyObject * obj0 = 0 ; |
16193 | PyObject * obj1 = 0 ; | |
16194 | char *kwnames[] = { | |
16195 | (char *) "self",(char *) "appName", NULL | |
16196 | }; | |
16197 | ||
16198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16201 | { |
16202 | arg2 = wxString_in_helper(obj1); | |
16203 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16204 | temp2 = True; |
d14a1e28 RD |
16205 | } |
16206 | { | |
16207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16208 | (arg1)->SetAppName((wxString const &)*arg2); | |
16209 | ||
16210 | wxPyEndAllowThreads(__tstate); | |
16211 | if (PyErr_Occurred()) SWIG_fail; | |
16212 | } | |
16213 | Py_INCREF(Py_None); resultobj = Py_None; | |
16214 | { | |
16215 | if (temp2) | |
16216 | delete arg2; | |
16217 | } | |
16218 | return resultobj; | |
16219 | fail: | |
16220 | { | |
16221 | if (temp2) | |
16222 | delete arg2; | |
16223 | } | |
16224 | return NULL; | |
16225 | } | |
16226 | ||
16227 | ||
16228 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16229 | PyObject *resultobj; | |
16230 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16231 | wxString *arg2 = 0 ; | |
e811c8ce | 16232 | bool temp2 = False ; |
d14a1e28 RD |
16233 | PyObject * obj0 = 0 ; |
16234 | PyObject * obj1 = 0 ; | |
16235 | char *kwnames[] = { | |
16236 | (char *) "self",(char *) "vendorName", NULL | |
16237 | }; | |
16238 | ||
16239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16242 | { |
16243 | arg2 = wxString_in_helper(obj1); | |
16244 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16245 | temp2 = True; |
d14a1e28 RD |
16246 | } |
16247 | { | |
16248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16249 | (arg1)->SetVendorName((wxString const &)*arg2); | |
16250 | ||
16251 | wxPyEndAllowThreads(__tstate); | |
16252 | if (PyErr_Occurred()) SWIG_fail; | |
16253 | } | |
16254 | Py_INCREF(Py_None); resultobj = Py_None; | |
16255 | { | |
16256 | if (temp2) | |
16257 | delete arg2; | |
16258 | } | |
16259 | return resultobj; | |
16260 | fail: | |
16261 | { | |
16262 | if (temp2) | |
16263 | delete arg2; | |
16264 | } | |
16265 | return NULL; | |
16266 | } | |
16267 | ||
16268 | ||
16269 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16270 | PyObject *resultobj; | |
16271 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16272 | long arg2 ; | |
16273 | PyObject * obj0 = 0 ; | |
994141e6 | 16274 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16275 | char *kwnames[] = { |
16276 | (char *) "self",(char *) "style", NULL | |
16277 | }; | |
16278 | ||
994141e6 | 16279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16282 | arg2 = (long) SWIG_AsLong(obj1); | |
16283 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16284 | { |
16285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16286 | (arg1)->SetStyle(arg2); | |
16287 | ||
16288 | wxPyEndAllowThreads(__tstate); | |
16289 | if (PyErr_Occurred()) SWIG_fail; | |
16290 | } | |
16291 | Py_INCREF(Py_None); resultobj = Py_None; | |
16292 | return resultobj; | |
16293 | fail: | |
16294 | return NULL; | |
16295 | } | |
16296 | ||
16297 | ||
16298 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16299 | PyObject *resultobj; | |
16300 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16301 | long result; | |
16302 | PyObject * obj0 = 0 ; | |
16303 | char *kwnames[] = { | |
16304 | (char *) "self", NULL | |
16305 | }; | |
16306 | ||
16307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16310 | { |
16311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16312 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
16313 | ||
16314 | wxPyEndAllowThreads(__tstate); | |
16315 | if (PyErr_Occurred()) SWIG_fail; | |
16316 | } | |
15afbcd0 | 16317 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
16318 | return resultobj; |
16319 | fail: | |
16320 | return NULL; | |
16321 | } | |
16322 | ||
16323 | ||
16324 | static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) { | |
16325 | PyObject *obj; | |
16326 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16327 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
16328 | Py_INCREF(obj); | |
16329 | return Py_BuildValue((char *)""); | |
16330 | } | |
d14a1e28 RD |
16331 | static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) { |
16332 | PyObject *resultobj; | |
16333 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16334 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16335 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16336 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16337 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16338 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16339 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16340 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4f89f6a3 | 16341 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; |
d14a1e28 | 16342 | wxConfig *result; |
e811c8ce RD |
16343 | bool temp1 = False ; |
16344 | bool temp2 = False ; | |
16345 | bool temp3 = False ; | |
16346 | bool temp4 = False ; | |
d14a1e28 RD |
16347 | PyObject * obj0 = 0 ; |
16348 | PyObject * obj1 = 0 ; | |
16349 | PyObject * obj2 = 0 ; | |
16350 | PyObject * obj3 = 0 ; | |
994141e6 | 16351 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
16352 | char *kwnames[] = { |
16353 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16354 | }; | |
16355 | ||
994141e6 | 16356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
16357 | if (obj0) { |
16358 | { | |
16359 | arg1 = wxString_in_helper(obj0); | |
16360 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 16361 | temp1 = True; |
d14a1e28 RD |
16362 | } |
16363 | } | |
16364 | if (obj1) { | |
16365 | { | |
16366 | arg2 = wxString_in_helper(obj1); | |
16367 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16368 | temp2 = True; |
d14a1e28 RD |
16369 | } |
16370 | } | |
16371 | if (obj2) { | |
16372 | { | |
16373 | arg3 = wxString_in_helper(obj2); | |
16374 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 16375 | temp3 = True; |
d14a1e28 RD |
16376 | } |
16377 | } | |
16378 | if (obj3) { | |
16379 | { | |
16380 | arg4 = wxString_in_helper(obj3); | |
16381 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 16382 | temp4 = True; |
d14a1e28 RD |
16383 | } |
16384 | } | |
994141e6 | 16385 | if (obj4) { |
15afbcd0 RD |
16386 | arg5 = (long) SWIG_AsLong(obj4); |
16387 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16388 | } |
d14a1e28 RD |
16389 | { |
16390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16391 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16392 | ||
16393 | wxPyEndAllowThreads(__tstate); | |
16394 | if (PyErr_Occurred()) SWIG_fail; | |
16395 | } | |
15afbcd0 | 16396 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1); |
d14a1e28 RD |
16397 | { |
16398 | if (temp1) | |
16399 | delete arg1; | |
16400 | } | |
16401 | { | |
16402 | if (temp2) | |
16403 | delete arg2; | |
16404 | } | |
16405 | { | |
16406 | if (temp3) | |
16407 | delete arg3; | |
16408 | } | |
16409 | { | |
16410 | if (temp4) | |
16411 | delete arg4; | |
16412 | } | |
16413 | return resultobj; | |
16414 | fail: | |
16415 | { | |
16416 | if (temp1) | |
16417 | delete arg1; | |
16418 | } | |
16419 | { | |
16420 | if (temp2) | |
16421 | delete arg2; | |
16422 | } | |
16423 | { | |
16424 | if (temp3) | |
16425 | delete arg3; | |
16426 | } | |
16427 | { | |
16428 | if (temp4) | |
16429 | delete arg4; | |
16430 | } | |
16431 | return NULL; | |
16432 | } | |
16433 | ||
16434 | ||
16435 | static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16436 | PyObject *resultobj; | |
16437 | wxConfig *arg1 = (wxConfig *) 0 ; | |
16438 | PyObject * obj0 = 0 ; | |
16439 | char *kwnames[] = { | |
16440 | (char *) "self", NULL | |
16441 | }; | |
16442 | ||
16443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig, |
16445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16446 | { |
16447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16448 | delete arg1; | |
16449 | ||
16450 | wxPyEndAllowThreads(__tstate); | |
16451 | if (PyErr_Occurred()) SWIG_fail; | |
16452 | } | |
16453 | Py_INCREF(Py_None); resultobj = Py_None; | |
16454 | return resultobj; | |
16455 | fail: | |
16456 | return NULL; | |
16457 | } | |
16458 | ||
16459 | ||
16460 | static PyObject * Config_swigregister(PyObject *self, PyObject *args) { | |
16461 | PyObject *obj; | |
16462 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16463 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
16464 | Py_INCREF(obj); | |
16465 | return Py_BuildValue((char *)""); | |
16466 | } | |
16467 | static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16468 | PyObject *resultobj; | |
16469 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16470 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16471 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16472 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16473 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16474 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16475 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16476 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4276dc52 | 16477 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; |
d14a1e28 | 16478 | wxFileConfig *result; |
e811c8ce RD |
16479 | bool temp1 = False ; |
16480 | bool temp2 = False ; | |
16481 | bool temp3 = False ; | |
16482 | bool temp4 = False ; | |
d14a1e28 RD |
16483 | PyObject * obj0 = 0 ; |
16484 | PyObject * obj1 = 0 ; | |
16485 | PyObject * obj2 = 0 ; | |
16486 | PyObject * obj3 = 0 ; | |
994141e6 | 16487 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
16488 | char *kwnames[] = { |
16489 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16490 | }; | |
16491 | ||
994141e6 | 16492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
16493 | if (obj0) { |
16494 | { | |
16495 | arg1 = wxString_in_helper(obj0); | |
16496 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 16497 | temp1 = True; |
d14a1e28 RD |
16498 | } |
16499 | } | |
16500 | if (obj1) { | |
16501 | { | |
16502 | arg2 = wxString_in_helper(obj1); | |
16503 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16504 | temp2 = True; |
d14a1e28 RD |
16505 | } |
16506 | } | |
16507 | if (obj2) { | |
16508 | { | |
16509 | arg3 = wxString_in_helper(obj2); | |
16510 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 16511 | temp3 = True; |
d14a1e28 RD |
16512 | } |
16513 | } | |
16514 | if (obj3) { | |
16515 | { | |
16516 | arg4 = wxString_in_helper(obj3); | |
16517 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 16518 | temp4 = True; |
d14a1e28 RD |
16519 | } |
16520 | } | |
994141e6 | 16521 | if (obj4) { |
15afbcd0 RD |
16522 | arg5 = (long) SWIG_AsLong(obj4); |
16523 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16524 | } |
d14a1e28 RD |
16525 | { |
16526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16527 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16528 | ||
16529 | wxPyEndAllowThreads(__tstate); | |
16530 | if (PyErr_Occurred()) SWIG_fail; | |
16531 | } | |
15afbcd0 | 16532 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1); |
d14a1e28 RD |
16533 | { |
16534 | if (temp1) | |
16535 | delete arg1; | |
16536 | } | |
16537 | { | |
16538 | if (temp2) | |
16539 | delete arg2; | |
16540 | } | |
16541 | { | |
16542 | if (temp3) | |
16543 | delete arg3; | |
16544 | } | |
16545 | { | |
16546 | if (temp4) | |
16547 | delete arg4; | |
16548 | } | |
16549 | return resultobj; | |
16550 | fail: | |
16551 | { | |
16552 | if (temp1) | |
16553 | delete arg1; | |
16554 | } | |
16555 | { | |
16556 | if (temp2) | |
16557 | delete arg2; | |
16558 | } | |
16559 | { | |
16560 | if (temp3) | |
16561 | delete arg3; | |
16562 | } | |
16563 | { | |
16564 | if (temp4) | |
16565 | delete arg4; | |
16566 | } | |
16567 | return NULL; | |
16568 | } | |
16569 | ||
16570 | ||
16571 | static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16572 | PyObject *resultobj; | |
16573 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
16574 | PyObject * obj0 = 0 ; | |
16575 | char *kwnames[] = { | |
16576 | (char *) "self", NULL | |
16577 | }; | |
16578 | ||
16579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig, |
16581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16582 | { |
16583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16584 | delete arg1; | |
16585 | ||
16586 | wxPyEndAllowThreads(__tstate); | |
16587 | if (PyErr_Occurred()) SWIG_fail; | |
16588 | } | |
16589 | Py_INCREF(Py_None); resultobj = Py_None; | |
16590 | return resultobj; | |
16591 | fail: | |
16592 | return NULL; | |
16593 | } | |
16594 | ||
16595 | ||
16596 | static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) { | |
16597 | PyObject *obj; | |
16598 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16599 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
16600 | Py_INCREF(obj); | |
16601 | return Py_BuildValue((char *)""); | |
16602 | } | |
b88bce5f RD |
16603 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { |
16604 | PyObject *resultobj; | |
16605 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16606 | wxString *arg2 = 0 ; | |
16607 | wxConfigPathChanger *result; | |
16608 | bool temp2 = False ; | |
16609 | PyObject * obj0 = 0 ; | |
16610 | PyObject * obj1 = 0 ; | |
16611 | char *kwnames[] = { | |
16612 | (char *) "config",(char *) "entry", NULL | |
16613 | }; | |
16614 | ||
16615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, |
16617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
16618 | { |
16619 | arg2 = wxString_in_helper(obj1); | |
16620 | if (arg2 == NULL) SWIG_fail; | |
16621 | temp2 = True; | |
16622 | } | |
16623 | { | |
16624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16625 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
16626 | ||
16627 | wxPyEndAllowThreads(__tstate); | |
16628 | if (PyErr_Occurred()) SWIG_fail; | |
16629 | } | |
15afbcd0 | 16630 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1); |
b88bce5f RD |
16631 | { |
16632 | if (temp2) | |
16633 | delete arg2; | |
16634 | } | |
16635 | return resultobj; | |
16636 | fail: | |
16637 | { | |
16638 | if (temp2) | |
16639 | delete arg2; | |
16640 | } | |
16641 | return NULL; | |
16642 | } | |
16643 | ||
16644 | ||
16645 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16646 | PyObject *resultobj; | |
16647 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16648 | PyObject * obj0 = 0 ; | |
16649 | char *kwnames[] = { | |
16650 | (char *) "self", NULL | |
16651 | }; | |
16652 | ||
16653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, |
16655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
16656 | { |
16657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16658 | delete arg1; | |
16659 | ||
16660 | wxPyEndAllowThreads(__tstate); | |
16661 | if (PyErr_Occurred()) SWIG_fail; | |
16662 | } | |
16663 | Py_INCREF(Py_None); resultobj = Py_None; | |
16664 | return resultobj; | |
16665 | fail: | |
16666 | return NULL; | |
16667 | } | |
16668 | ||
16669 | ||
16670 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16671 | PyObject *resultobj; | |
16672 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16673 | wxString *result; | |
16674 | PyObject * obj0 = 0 ; | |
16675 | char *kwnames[] = { | |
16676 | (char *) "self", NULL | |
16677 | }; | |
16678 | ||
16679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, |
16681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
16682 | { |
16683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16684 | { | |
16685 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
16686 | result = (wxString *) &_result_ref; | |
16687 | } | |
16688 | ||
16689 | wxPyEndAllowThreads(__tstate); | |
16690 | if (PyErr_Occurred()) SWIG_fail; | |
16691 | } | |
16692 | { | |
16693 | #if wxUSE_UNICODE | |
16694 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16695 | #else | |
16696 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16697 | #endif | |
16698 | } | |
16699 | return resultobj; | |
16700 | fail: | |
16701 | return NULL; | |
16702 | } | |
16703 | ||
16704 | ||
16705 | static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) { | |
16706 | PyObject *obj; | |
16707 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16708 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
16709 | Py_INCREF(obj); | |
16710 | return Py_BuildValue((char *)""); | |
16711 | } | |
d14a1e28 RD |
16712 | static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { |
16713 | PyObject *resultobj; | |
16714 | wxString *arg1 = 0 ; | |
16715 | wxString result; | |
e811c8ce | 16716 | bool temp1 = False ; |
d14a1e28 RD |
16717 | PyObject * obj0 = 0 ; |
16718 | char *kwnames[] = { | |
16719 | (char *) "sz", NULL | |
16720 | }; | |
16721 | ||
16722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
16723 | { | |
16724 | arg1 = wxString_in_helper(obj0); | |
16725 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 16726 | temp1 = True; |
d14a1e28 RD |
16727 | } |
16728 | { | |
16729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16730 | result = wxExpandEnvVars((wxString const &)*arg1); | |
16731 | ||
16732 | wxPyEndAllowThreads(__tstate); | |
16733 | if (PyErr_Occurred()) SWIG_fail; | |
16734 | } | |
16735 | { | |
16736 | #if wxUSE_UNICODE | |
16737 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16738 | #else | |
16739 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16740 | #endif | |
16741 | } | |
16742 | { | |
16743 | if (temp1) | |
16744 | delete arg1; | |
16745 | } | |
16746 | return resultobj; | |
16747 | fail: | |
16748 | { | |
16749 | if (temp1) | |
16750 | delete arg1; | |
16751 | } | |
16752 | return NULL; | |
16753 | } | |
16754 | ||
16755 | ||
b2dc1044 RD |
16756 | static int _wrap_DateFormatStr_set(PyObject *_val) { |
16757 | PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); | |
16758 | return 1; | |
16759 | } | |
16760 | ||
16761 | ||
16762 | static PyObject *_wrap_DateFormatStr_get() { | |
16763 | PyObject *pyobj; | |
16764 | ||
16765 | { | |
16766 | #if wxUSE_UNICODE | |
16767 | pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16768 | #else | |
16769 | pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16770 | #endif | |
16771 | } | |
16772 | return pyobj; | |
16773 | } | |
16774 | ||
16775 | ||
16776 | static int _wrap_TimeSpanFormatStr_set(PyObject *_val) { | |
16777 | PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); | |
16778 | return 1; | |
16779 | } | |
16780 | ||
16781 | ||
16782 | static PyObject *_wrap_TimeSpanFormatStr_get() { | |
16783 | PyObject *pyobj; | |
16784 | ||
16785 | { | |
16786 | #if wxUSE_UNICODE | |
16787 | pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16788 | #else | |
16789 | pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16790 | #endif | |
16791 | } | |
16792 | return pyobj; | |
16793 | } | |
16794 | ||
16795 | ||
d14a1e28 RD |
16796 | static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { |
16797 | PyObject *resultobj; | |
16798 | int arg1 ; | |
994141e6 | 16799 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16800 | char *kwnames[] = { |
16801 | (char *) "country", NULL | |
16802 | }; | |
16803 | ||
994141e6 | 16804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
16805 | arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); |
16806 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16807 | { |
16808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16809 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
16810 | ||
16811 | wxPyEndAllowThreads(__tstate); | |
16812 | if (PyErr_Occurred()) SWIG_fail; | |
16813 | } | |
16814 | Py_INCREF(Py_None); resultobj = Py_None; | |
16815 | return resultobj; | |
16816 | fail: | |
16817 | return NULL; | |
16818 | } | |
16819 | ||
16820 | ||
16821 | static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16822 | PyObject *resultobj; | |
16823 | int result; | |
16824 | char *kwnames[] = { | |
16825 | NULL | |
16826 | }; | |
16827 | ||
16828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
16829 | { | |
16830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16831 | result = (int)wxDateTime::GetCountry(); | |
16832 | ||
16833 | wxPyEndAllowThreads(__tstate); | |
16834 | if (PyErr_Occurred()) SWIG_fail; | |
16835 | } | |
15afbcd0 | 16836 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16837 | return resultobj; |
16838 | fail: | |
16839 | return NULL; | |
16840 | } | |
16841 | ||
16842 | ||
16843 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16844 | PyObject *resultobj; | |
16845 | int arg1 = (int) wxDateTime::Country_Default ; | |
16846 | bool result; | |
994141e6 | 16847 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16848 | char *kwnames[] = { |
16849 | (char *) "country", NULL | |
16850 | }; | |
16851 | ||
994141e6 RD |
16852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; |
16853 | if (obj0) { | |
15afbcd0 RD |
16854 | arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); |
16855 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16856 | } |
d14a1e28 RD |
16857 | { |
16858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16859 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
16860 | ||
16861 | wxPyEndAllowThreads(__tstate); | |
16862 | if (PyErr_Occurred()) SWIG_fail; | |
16863 | } | |
4f89f6a3 RD |
16864 | { |
16865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16866 | } | |
d14a1e28 RD |
16867 | return resultobj; |
16868 | fail: | |
16869 | return NULL; | |
16870 | } | |
16871 | ||
16872 | ||
16873 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16874 | PyObject *resultobj; | |
16875 | int arg1 = (int) wxDateTime::Gregorian ; | |
16876 | int result; | |
994141e6 | 16877 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16878 | char *kwnames[] = { |
16879 | (char *) "cal", NULL | |
16880 | }; | |
16881 | ||
994141e6 RD |
16882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; |
16883 | if (obj0) { | |
15afbcd0 RD |
16884 | arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); |
16885 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16886 | } |
d14a1e28 RD |
16887 | { |
16888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16889 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
16890 | ||
16891 | wxPyEndAllowThreads(__tstate); | |
16892 | if (PyErr_Occurred()) SWIG_fail; | |
16893 | } | |
15afbcd0 | 16894 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16895 | return resultobj; |
16896 | fail: | |
16897 | return NULL; | |
16898 | } | |
16899 | ||
16900 | ||
16901 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16902 | PyObject *resultobj; | |
16903 | int arg1 ; | |
16904 | int result; | |
994141e6 | 16905 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16906 | char *kwnames[] = { |
16907 | (char *) "year", NULL | |
16908 | }; | |
16909 | ||
994141e6 | 16910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
16911 | arg1 = (int) SWIG_AsInt(obj0); |
16912 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16913 | { |
16914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16915 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
16916 | ||
16917 | wxPyEndAllowThreads(__tstate); | |
16918 | if (PyErr_Occurred()) SWIG_fail; | |
16919 | } | |
15afbcd0 | 16920 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16921 | return resultobj; |
16922 | fail: | |
16923 | return NULL; | |
16924 | } | |
16925 | ||
16926 | ||
16927 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16928 | PyObject *resultobj; | |
16929 | int arg1 = (int) wxDateTime::Gregorian ; | |
16930 | int result; | |
994141e6 | 16931 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16932 | char *kwnames[] = { |
16933 | (char *) "cal", NULL | |
16934 | }; | |
16935 | ||
994141e6 RD |
16936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; |
16937 | if (obj0) { | |
15afbcd0 RD |
16938 | arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); |
16939 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16940 | } |
d14a1e28 RD |
16941 | { |
16942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16943 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
16944 | ||
16945 | wxPyEndAllowThreads(__tstate); | |
16946 | if (PyErr_Occurred()) SWIG_fail; | |
16947 | } | |
15afbcd0 | 16948 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16949 | return resultobj; |
16950 | fail: | |
16951 | return NULL; | |
16952 | } | |
16953 | ||
16954 | ||
16955 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16956 | PyObject *resultobj; | |
16957 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16958 | int arg2 = (int) wxDateTime::Gregorian ; | |
16959 | bool result; | |
994141e6 RD |
16960 | PyObject * obj0 = 0 ; |
16961 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16962 | char *kwnames[] = { |
16963 | (char *) "year",(char *) "cal", NULL | |
16964 | }; | |
16965 | ||
994141e6 RD |
16966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; |
16967 | if (obj0) { | |
15afbcd0 RD |
16968 | arg1 = (int) SWIG_AsInt(obj0); |
16969 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
16970 | } |
16971 | if (obj1) { | |
15afbcd0 RD |
16972 | arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); |
16973 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16974 | } |
d14a1e28 RD |
16975 | { |
16976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16977 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
16978 | ||
16979 | wxPyEndAllowThreads(__tstate); | |
16980 | if (PyErr_Occurred()) SWIG_fail; | |
16981 | } | |
4f89f6a3 RD |
16982 | { |
16983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16984 | } | |
d14a1e28 RD |
16985 | return resultobj; |
16986 | fail: | |
16987 | return NULL; | |
16988 | } | |
16989 | ||
16990 | ||
16991 | static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16992 | PyObject *resultobj; | |
16993 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16994 | int result; | |
994141e6 | 16995 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16996 | char *kwnames[] = { |
16997 | (char *) "year", NULL | |
16998 | }; | |
16999 | ||
994141e6 RD |
17000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; |
17001 | if (obj0) { | |
15afbcd0 RD |
17002 | arg1 = (int) SWIG_AsInt(obj0); |
17003 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17004 | } |
d14a1e28 RD |
17005 | { |
17006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17007 | result = (int)wxDateTime::GetCentury(arg1); | |
17008 | ||
17009 | wxPyEndAllowThreads(__tstate); | |
17010 | if (PyErr_Occurred()) SWIG_fail; | |
17011 | } | |
15afbcd0 | 17012 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17013 | return resultobj; |
17014 | fail: | |
17015 | return NULL; | |
17016 | } | |
17017 | ||
17018 | ||
17019 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17020 | PyObject *resultobj; | |
17021 | int arg1 ; | |
17022 | int arg2 = (int) wxDateTime::Gregorian ; | |
322913ce | 17023 | int result; |
994141e6 RD |
17024 | PyObject * obj0 = 0 ; |
17025 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17026 | char *kwnames[] = { |
17027 | (char *) "year",(char *) "cal", NULL | |
17028 | }; | |
17029 | ||
994141e6 | 17030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17031 | arg1 = (int) SWIG_AsInt(obj0); |
17032 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17033 | if (obj1) { |
15afbcd0 RD |
17034 | arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); |
17035 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17036 | } |
d14a1e28 RD |
17037 | { |
17038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 17039 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); |
d14a1e28 RD |
17040 | |
17041 | wxPyEndAllowThreads(__tstate); | |
17042 | if (PyErr_Occurred()) SWIG_fail; | |
17043 | } | |
15afbcd0 | 17044 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17045 | return resultobj; |
17046 | fail: | |
17047 | return NULL; | |
17048 | } | |
17049 | ||
17050 | ||
17051 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17052 | PyObject *resultobj; | |
17053 | int arg1 ; | |
17054 | int arg2 = (int) wxDateTime::Inv_Year ; | |
17055 | int arg3 = (int) wxDateTime::Gregorian ; | |
322913ce | 17056 | int result; |
994141e6 RD |
17057 | PyObject * obj0 = 0 ; |
17058 | PyObject * obj1 = 0 ; | |
17059 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17060 | char *kwnames[] = { |
17061 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
17062 | }; | |
17063 | ||
994141e6 | 17064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17065 | arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); |
17066 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17067 | if (obj1) { |
15afbcd0 RD |
17068 | arg2 = (int) SWIG_AsInt(obj1); |
17069 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17070 | } |
17071 | if (obj2) { | |
15afbcd0 RD |
17072 | arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2); |
17073 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17074 | } |
d14a1e28 RD |
17075 | { |
17076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 17077 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); |
d14a1e28 RD |
17078 | |
17079 | wxPyEndAllowThreads(__tstate); | |
17080 | if (PyErr_Occurred()) SWIG_fail; | |
17081 | } | |
15afbcd0 | 17082 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17083 | return resultobj; |
17084 | fail: | |
17085 | return NULL; | |
17086 | } | |
17087 | ||
17088 | ||
17089 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17090 | PyObject *resultobj; | |
17091 | int arg1 ; | |
17092 | int arg2 = (int) wxDateTime::Name_Full ; | |
17093 | wxString result; | |
994141e6 RD |
17094 | PyObject * obj0 = 0 ; |
17095 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17096 | char *kwnames[] = { |
17097 | (char *) "month",(char *) "flags", NULL | |
17098 | }; | |
17099 | ||
994141e6 | 17100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17101 | arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); |
17102 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17103 | if (obj1) { |
15afbcd0 RD |
17104 | arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); |
17105 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17106 | } |
d14a1e28 RD |
17107 | { |
17108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17109 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
17110 | ||
17111 | wxPyEndAllowThreads(__tstate); | |
17112 | if (PyErr_Occurred()) SWIG_fail; | |
17113 | } | |
17114 | { | |
17115 | #if wxUSE_UNICODE | |
17116 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17117 | #else | |
17118 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17119 | #endif | |
17120 | } | |
17121 | return resultobj; | |
17122 | fail: | |
17123 | return NULL; | |
17124 | } | |
17125 | ||
17126 | ||
17127 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17128 | PyObject *resultobj; | |
17129 | int arg1 ; | |
17130 | int arg2 = (int) wxDateTime::Name_Full ; | |
17131 | wxString result; | |
994141e6 RD |
17132 | PyObject * obj0 = 0 ; |
17133 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17134 | char *kwnames[] = { |
17135 | (char *) "weekday",(char *) "flags", NULL | |
17136 | }; | |
17137 | ||
994141e6 | 17138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17139 | arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0); |
17140 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17141 | if (obj1) { |
15afbcd0 RD |
17142 | arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); |
17143 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17144 | } |
d14a1e28 RD |
17145 | { |
17146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17147 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
17148 | ||
17149 | wxPyEndAllowThreads(__tstate); | |
17150 | if (PyErr_Occurred()) SWIG_fail; | |
17151 | } | |
17152 | { | |
17153 | #if wxUSE_UNICODE | |
17154 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17155 | #else | |
17156 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17157 | #endif | |
17158 | } | |
17159 | return resultobj; | |
17160 | fail: | |
17161 | return NULL; | |
17162 | } | |
17163 | ||
17164 | ||
17165 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17166 | PyObject *resultobj; | |
17167 | wxString *arg1 = (wxString *) 0 ; | |
17168 | wxString *arg2 = (wxString *) 0 ; | |
7eae615b RD |
17169 | bool temp1 = False ; |
17170 | bool temp2 = False ; | |
d14a1e28 RD |
17171 | PyObject * obj0 = 0 ; |
17172 | PyObject * obj1 = 0 ; | |
17173 | char *kwnames[] = { | |
17174 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
17175 | }; | |
17176 | ||
17177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
7eae615b RD |
17178 | { |
17179 | arg1 = wxString_in_helper(obj0); | |
17180 | if (arg1 == NULL) SWIG_fail; | |
17181 | temp1 = True; | |
17182 | } | |
17183 | { | |
17184 | arg2 = wxString_in_helper(obj1); | |
17185 | if (arg2 == NULL) SWIG_fail; | |
17186 | temp2 = True; | |
17187 | } | |
d14a1e28 RD |
17188 | { |
17189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17190 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
17191 | ||
17192 | wxPyEndAllowThreads(__tstate); | |
17193 | if (PyErr_Occurred()) SWIG_fail; | |
17194 | } | |
17195 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
17196 | { |
17197 | if (temp1) | |
17198 | delete arg1; | |
17199 | } | |
17200 | { | |
17201 | if (temp2) | |
17202 | delete arg2; | |
17203 | } | |
d14a1e28 RD |
17204 | return resultobj; |
17205 | fail: | |
7eae615b RD |
17206 | { |
17207 | if (temp1) | |
17208 | delete arg1; | |
17209 | } | |
17210 | { | |
17211 | if (temp2) | |
17212 | delete arg2; | |
17213 | } | |
d14a1e28 RD |
17214 | return NULL; |
17215 | } | |
17216 | ||
17217 | ||
17218 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17219 | PyObject *resultobj; | |
17220 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17221 | int arg2 = (int) wxDateTime::Country_Default ; | |
17222 | bool result; | |
994141e6 RD |
17223 | PyObject * obj0 = 0 ; |
17224 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17225 | char *kwnames[] = { |
17226 | (char *) "year",(char *) "country", NULL | |
17227 | }; | |
17228 | ||
994141e6 RD |
17229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; |
17230 | if (obj0) { | |
15afbcd0 RD |
17231 | arg1 = (int) SWIG_AsInt(obj0); |
17232 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17233 | } |
17234 | if (obj1) { | |
15afbcd0 RD |
17235 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
17236 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17237 | } |
d14a1e28 RD |
17238 | { |
17239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17240 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
17241 | ||
17242 | wxPyEndAllowThreads(__tstate); | |
17243 | if (PyErr_Occurred()) SWIG_fail; | |
17244 | } | |
4f89f6a3 RD |
17245 | { |
17246 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17247 | } | |
d14a1e28 RD |
17248 | return resultobj; |
17249 | fail: | |
17250 | return NULL; | |
17251 | } | |
17252 | ||
17253 | ||
17254 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17255 | PyObject *resultobj; | |
17256 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17257 | int arg2 = (int) wxDateTime::Country_Default ; | |
17258 | wxDateTime result; | |
994141e6 RD |
17259 | PyObject * obj0 = 0 ; |
17260 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17261 | char *kwnames[] = { |
17262 | (char *) "year",(char *) "country", NULL | |
17263 | }; | |
17264 | ||
994141e6 RD |
17265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; |
17266 | if (obj0) { | |
15afbcd0 RD |
17267 | arg1 = (int) SWIG_AsInt(obj0); |
17268 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17269 | } |
17270 | if (obj1) { | |
15afbcd0 RD |
17271 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
17272 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17273 | } |
d14a1e28 RD |
17274 | { |
17275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17276 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
17277 | ||
17278 | wxPyEndAllowThreads(__tstate); | |
17279 | if (PyErr_Occurred()) SWIG_fail; | |
17280 | } | |
17281 | { | |
17282 | wxDateTime * resultptr; | |
17283 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17284 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17285 | } |
17286 | return resultobj; | |
17287 | fail: | |
17288 | return NULL; | |
17289 | } | |
17290 | ||
17291 | ||
17292 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17293 | PyObject *resultobj; | |
17294 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17295 | int arg2 = (int) wxDateTime::Country_Default ; | |
17296 | wxDateTime result; | |
994141e6 RD |
17297 | PyObject * obj0 = 0 ; |
17298 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17299 | char *kwnames[] = { |
17300 | (char *) "year",(char *) "country", NULL | |
17301 | }; | |
17302 | ||
994141e6 RD |
17303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; |
17304 | if (obj0) { | |
15afbcd0 RD |
17305 | arg1 = (int) SWIG_AsInt(obj0); |
17306 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17307 | } |
17308 | if (obj1) { | |
15afbcd0 RD |
17309 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
17310 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17311 | } |
d14a1e28 RD |
17312 | { |
17313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17314 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
17315 | ||
17316 | wxPyEndAllowThreads(__tstate); | |
17317 | if (PyErr_Occurred()) SWIG_fail; | |
17318 | } | |
17319 | { | |
17320 | wxDateTime * resultptr; | |
17321 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17322 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17323 | } |
17324 | return resultobj; | |
17325 | fail: | |
17326 | return NULL; | |
17327 | } | |
17328 | ||
17329 | ||
17330 | static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17331 | PyObject *resultobj; | |
17332 | wxDateTime result; | |
17333 | char *kwnames[] = { | |
17334 | NULL | |
17335 | }; | |
17336 | ||
17337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
17338 | { | |
17339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17340 | result = wxDateTime::Now(); | |
17341 | ||
17342 | wxPyEndAllowThreads(__tstate); | |
17343 | if (PyErr_Occurred()) SWIG_fail; | |
17344 | } | |
17345 | { | |
17346 | wxDateTime * resultptr; | |
17347 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17348 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17349 | } |
17350 | return resultobj; | |
17351 | fail: | |
17352 | return NULL; | |
17353 | } | |
17354 | ||
17355 | ||
17356 | static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17357 | PyObject *resultobj; | |
17358 | wxDateTime result; | |
17359 | char *kwnames[] = { | |
17360 | NULL | |
17361 | }; | |
17362 | ||
17363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
17364 | { | |
17365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17366 | result = wxDateTime::UNow(); | |
17367 | ||
17368 | wxPyEndAllowThreads(__tstate); | |
17369 | if (PyErr_Occurred()) SWIG_fail; | |
17370 | } | |
17371 | { | |
17372 | wxDateTime * resultptr; | |
17373 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17374 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17375 | } |
17376 | return resultobj; | |
17377 | fail: | |
17378 | return NULL; | |
17379 | } | |
17380 | ||
17381 | ||
17382 | static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17383 | PyObject *resultobj; | |
17384 | wxDateTime result; | |
17385 | char *kwnames[] = { | |
17386 | NULL | |
17387 | }; | |
17388 | ||
17389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
17390 | { | |
17391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17392 | result = wxDateTime::Today(); | |
17393 | ||
17394 | wxPyEndAllowThreads(__tstate); | |
17395 | if (PyErr_Occurred()) SWIG_fail; | |
17396 | } | |
17397 | { | |
17398 | wxDateTime * resultptr; | |
17399 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 17400 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17401 | } |
17402 | return resultobj; | |
17403 | fail: | |
17404 | return NULL; | |
17405 | } | |
17406 | ||
17407 | ||
17408 | static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17409 | PyObject *resultobj; | |
17410 | wxDateTime *result; | |
17411 | char *kwnames[] = { | |
17412 | NULL | |
17413 | }; | |
17414 | ||
17415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
17416 | { | |
17417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17418 | result = (wxDateTime *)new wxDateTime(); | |
17419 | ||
17420 | wxPyEndAllowThreads(__tstate); | |
17421 | if (PyErr_Occurred()) SWIG_fail; | |
17422 | } | |
15afbcd0 | 17423 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17424 | return resultobj; |
17425 | fail: | |
17426 | return NULL; | |
17427 | } | |
17428 | ||
17429 | ||
17430 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17431 | PyObject *resultobj; | |
17432 | time_t arg1 ; | |
17433 | wxDateTime *result; | |
17434 | PyObject * obj0 = 0 ; | |
17435 | char *kwnames[] = { | |
17436 | (char *) "timet", NULL | |
17437 | }; | |
17438 | ||
17439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17440 | arg1 = (time_t) SWIG_AsUnsignedInt(obj0); |
17441 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17442 | { |
17443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17444 | result = (wxDateTime *)new wxDateTime(arg1); | |
17445 | ||
17446 | wxPyEndAllowThreads(__tstate); | |
17447 | if (PyErr_Occurred()) SWIG_fail; | |
17448 | } | |
15afbcd0 | 17449 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17450 | return resultobj; |
17451 | fail: | |
17452 | return NULL; | |
17453 | } | |
17454 | ||
17455 | ||
17456 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17457 | PyObject *resultobj; | |
17458 | double arg1 ; | |
17459 | wxDateTime *result; | |
994141e6 | 17460 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17461 | char *kwnames[] = { |
17462 | (char *) "jdn", NULL | |
17463 | }; | |
17464 | ||
994141e6 | 17465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17466 | arg1 = (double) SWIG_AsDouble(obj0); |
17467 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17468 | { |
17469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17470 | result = (wxDateTime *)new wxDateTime(arg1); | |
17471 | ||
17472 | wxPyEndAllowThreads(__tstate); | |
17473 | if (PyErr_Occurred()) SWIG_fail; | |
17474 | } | |
15afbcd0 | 17475 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17476 | return resultobj; |
17477 | fail: | |
17478 | return NULL; | |
17479 | } | |
17480 | ||
17481 | ||
17482 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17483 | PyObject *resultobj; | |
322913ce RD |
17484 | int arg1 ; |
17485 | int arg2 = (int) 0 ; | |
17486 | int arg3 = (int) 0 ; | |
17487 | int arg4 = (int) 0 ; | |
d14a1e28 | 17488 | wxDateTime *result; |
994141e6 RD |
17489 | PyObject * obj0 = 0 ; |
17490 | PyObject * obj1 = 0 ; | |
17491 | PyObject * obj2 = 0 ; | |
17492 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
17493 | char *kwnames[] = { |
17494 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17495 | }; | |
17496 | ||
994141e6 | 17497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
17498 | arg1 = (int) SWIG_AsInt(obj0); |
17499 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17500 | if (obj1) { |
15afbcd0 RD |
17501 | arg2 = (int) SWIG_AsInt(obj1); |
17502 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17503 | } |
17504 | if (obj2) { | |
15afbcd0 RD |
17505 | arg3 = (int) SWIG_AsInt(obj2); |
17506 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17507 | } |
17508 | if (obj3) { | |
15afbcd0 RD |
17509 | arg4 = (int) SWIG_AsInt(obj3); |
17510 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17511 | } |
d14a1e28 RD |
17512 | { |
17513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17514 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
17515 | ||
17516 | wxPyEndAllowThreads(__tstate); | |
17517 | if (PyErr_Occurred()) SWIG_fail; | |
17518 | } | |
15afbcd0 | 17519 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17520 | return resultobj; |
17521 | fail: | |
17522 | return NULL; | |
17523 | } | |
17524 | ||
17525 | ||
17526 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17527 | PyObject *resultobj; | |
322913ce | 17528 | int arg1 ; |
d14a1e28 RD |
17529 | int arg2 = (int) wxDateTime::Inv_Month ; |
17530 | int arg3 = (int) wxDateTime::Inv_Year ; | |
322913ce RD |
17531 | int arg4 = (int) 0 ; |
17532 | int arg5 = (int) 0 ; | |
17533 | int arg6 = (int) 0 ; | |
17534 | int arg7 = (int) 0 ; | |
d14a1e28 | 17535 | wxDateTime *result; |
994141e6 RD |
17536 | PyObject * obj0 = 0 ; |
17537 | PyObject * obj1 = 0 ; | |
17538 | PyObject * obj2 = 0 ; | |
17539 | PyObject * obj3 = 0 ; | |
17540 | PyObject * obj4 = 0 ; | |
17541 | PyObject * obj5 = 0 ; | |
17542 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
17543 | char *kwnames[] = { |
17544 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17545 | }; | |
17546 | ||
994141e6 | 17547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
17548 | arg1 = (int) SWIG_AsInt(obj0); |
17549 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17550 | if (obj1) { |
15afbcd0 RD |
17551 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); |
17552 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17553 | } |
17554 | if (obj2) { | |
15afbcd0 RD |
17555 | arg3 = (int) SWIG_AsInt(obj2); |
17556 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17557 | } |
17558 | if (obj3) { | |
15afbcd0 RD |
17559 | arg4 = (int) SWIG_AsInt(obj3); |
17560 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17561 | } |
17562 | if (obj4) { | |
15afbcd0 RD |
17563 | arg5 = (int) SWIG_AsInt(obj4); |
17564 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17565 | } |
17566 | if (obj5) { | |
15afbcd0 RD |
17567 | arg6 = (int) SWIG_AsInt(obj5); |
17568 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17569 | } |
17570 | if (obj6) { | |
15afbcd0 RD |
17571 | arg7 = (int) SWIG_AsInt(obj6); |
17572 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17573 | } |
d14a1e28 RD |
17574 | { |
17575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17576 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
17577 | ||
17578 | wxPyEndAllowThreads(__tstate); | |
17579 | if (PyErr_Occurred()) SWIG_fail; | |
17580 | } | |
15afbcd0 | 17581 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
17582 | return resultobj; |
17583 | fail: | |
17584 | return NULL; | |
17585 | } | |
17586 | ||
17587 | ||
17588 | static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17589 | PyObject *resultobj; | |
17590 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17591 | PyObject * obj0 = 0 ; | |
17592 | char *kwnames[] = { | |
17593 | (char *) "self", NULL | |
17594 | }; | |
17595 | ||
17596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17599 | { |
17600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17601 | delete arg1; | |
17602 | ||
17603 | wxPyEndAllowThreads(__tstate); | |
17604 | if (PyErr_Occurred()) SWIG_fail; | |
17605 | } | |
17606 | Py_INCREF(Py_None); resultobj = Py_None; | |
17607 | return resultobj; | |
17608 | fail: | |
17609 | return NULL; | |
17610 | } | |
17611 | ||
17612 | ||
17613 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17614 | PyObject *resultobj; | |
17615 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17616 | wxDateTime *result; | |
17617 | PyObject * obj0 = 0 ; | |
17618 | char *kwnames[] = { | |
17619 | (char *) "self", NULL | |
17620 | }; | |
17621 | ||
17622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17625 | { |
17626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17627 | { | |
17628 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
17629 | result = (wxDateTime *) &_result_ref; | |
17630 | } | |
17631 | ||
17632 | wxPyEndAllowThreads(__tstate); | |
17633 | if (PyErr_Occurred()) SWIG_fail; | |
17634 | } | |
15afbcd0 | 17635 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17636 | return resultobj; |
17637 | fail: | |
17638 | return NULL; | |
17639 | } | |
17640 | ||
17641 | ||
17642 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17643 | PyObject *resultobj; | |
17644 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17645 | time_t arg2 ; | |
17646 | wxDateTime *result; | |
17647 | PyObject * obj0 = 0 ; | |
17648 | PyObject * obj1 = 0 ; | |
17649 | char *kwnames[] = { | |
17650 | (char *) "self",(char *) "timet", NULL | |
17651 | }; | |
17652 | ||
17653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17656 | arg2 = (time_t) SWIG_AsUnsignedInt(obj1); | |
17657 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17658 | { |
17659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17660 | { | |
17661 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17662 | result = (wxDateTime *) &_result_ref; | |
17663 | } | |
17664 | ||
17665 | wxPyEndAllowThreads(__tstate); | |
17666 | if (PyErr_Occurred()) SWIG_fail; | |
17667 | } | |
15afbcd0 | 17668 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17669 | return resultobj; |
17670 | fail: | |
17671 | return NULL; | |
17672 | } | |
17673 | ||
17674 | ||
17675 | static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17676 | PyObject *resultobj; | |
17677 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17678 | double arg2 ; | |
17679 | wxDateTime *result; | |
17680 | PyObject * obj0 = 0 ; | |
994141e6 | 17681 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17682 | char *kwnames[] = { |
17683 | (char *) "self",(char *) "jdn", NULL | |
17684 | }; | |
17685 | ||
994141e6 | 17686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17689 | arg2 = (double) SWIG_AsDouble(obj1); | |
17690 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17691 | { |
17692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17693 | { | |
17694 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17695 | result = (wxDateTime *) &_result_ref; | |
17696 | } | |
17697 | ||
17698 | wxPyEndAllowThreads(__tstate); | |
17699 | if (PyErr_Occurred()) SWIG_fail; | |
17700 | } | |
15afbcd0 | 17701 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17702 | return resultobj; |
17703 | fail: | |
17704 | return NULL; | |
17705 | } | |
17706 | ||
17707 | ||
17708 | static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17709 | PyObject *resultobj; | |
17710 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce RD |
17711 | int arg2 ; |
17712 | int arg3 = (int) 0 ; | |
17713 | int arg4 = (int) 0 ; | |
17714 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
17715 | wxDateTime *result; |
17716 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17717 | PyObject * obj1 = 0 ; |
17718 | PyObject * obj2 = 0 ; | |
17719 | PyObject * obj3 = 0 ; | |
17720 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
17721 | char *kwnames[] = { |
17722 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17723 | }; | |
17724 | ||
994141e6 | 17725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
17726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17728 | arg2 = (int) SWIG_AsInt(obj1); | |
17729 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17730 | if (obj2) { |
15afbcd0 RD |
17731 | arg3 = (int) SWIG_AsInt(obj2); |
17732 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17733 | } |
17734 | if (obj3) { | |
15afbcd0 RD |
17735 | arg4 = (int) SWIG_AsInt(obj3); |
17736 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17737 | } |
17738 | if (obj4) { | |
15afbcd0 RD |
17739 | arg5 = (int) SWIG_AsInt(obj4); |
17740 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17741 | } |
d14a1e28 RD |
17742 | { |
17743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17744 | { | |
17745 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
17746 | result = (wxDateTime *) &_result_ref; | |
17747 | } | |
17748 | ||
17749 | wxPyEndAllowThreads(__tstate); | |
17750 | if (PyErr_Occurred()) SWIG_fail; | |
17751 | } | |
15afbcd0 | 17752 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17753 | return resultobj; |
17754 | fail: | |
17755 | return NULL; | |
17756 | } | |
17757 | ||
17758 | ||
17759 | static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17760 | PyObject *resultobj; | |
17761 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17762 | int arg2 ; |
d14a1e28 RD |
17763 | int arg3 = (int) wxDateTime::Inv_Month ; |
17764 | int arg4 = (int) wxDateTime::Inv_Year ; | |
322913ce RD |
17765 | int arg5 = (int) 0 ; |
17766 | int arg6 = (int) 0 ; | |
17767 | int arg7 = (int) 0 ; | |
17768 | int arg8 = (int) 0 ; | |
d14a1e28 RD |
17769 | wxDateTime *result; |
17770 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17771 | PyObject * obj1 = 0 ; |
17772 | PyObject * obj2 = 0 ; | |
17773 | PyObject * obj3 = 0 ; | |
17774 | PyObject * obj4 = 0 ; | |
17775 | PyObject * obj5 = 0 ; | |
17776 | PyObject * obj6 = 0 ; | |
17777 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
17778 | char *kwnames[] = { |
17779 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17780 | }; | |
17781 | ||
994141e6 | 17782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
17783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17785 | arg2 = (int) SWIG_AsInt(obj1); | |
17786 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17787 | if (obj2) { |
15afbcd0 RD |
17788 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); |
17789 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17790 | } |
17791 | if (obj3) { | |
15afbcd0 RD |
17792 | arg4 = (int) SWIG_AsInt(obj3); |
17793 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17794 | } |
17795 | if (obj4) { | |
15afbcd0 RD |
17796 | arg5 = (int) SWIG_AsInt(obj4); |
17797 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17798 | } |
17799 | if (obj5) { | |
15afbcd0 RD |
17800 | arg6 = (int) SWIG_AsInt(obj5); |
17801 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17802 | } |
17803 | if (obj6) { | |
15afbcd0 RD |
17804 | arg7 = (int) SWIG_AsInt(obj6); |
17805 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17806 | } |
17807 | if (obj7) { | |
15afbcd0 RD |
17808 | arg8 = (int) SWIG_AsInt(obj7); |
17809 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17810 | } |
d14a1e28 RD |
17811 | { |
17812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17813 | { | |
17814 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
17815 | result = (wxDateTime *) &_result_ref; | |
17816 | } | |
17817 | ||
17818 | wxPyEndAllowThreads(__tstate); | |
17819 | if (PyErr_Occurred()) SWIG_fail; | |
17820 | } | |
15afbcd0 | 17821 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17822 | return resultobj; |
17823 | fail: | |
17824 | return NULL; | |
17825 | } | |
17826 | ||
17827 | ||
17828 | static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17829 | PyObject *resultobj; | |
17830 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17831 | wxDateTime *result; | |
17832 | PyObject * obj0 = 0 ; | |
17833 | char *kwnames[] = { | |
17834 | (char *) "self", NULL | |
17835 | }; | |
17836 | ||
17837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17840 | { |
17841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17842 | { | |
17843 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
17844 | result = (wxDateTime *) &_result_ref; | |
17845 | } | |
17846 | ||
17847 | wxPyEndAllowThreads(__tstate); | |
17848 | if (PyErr_Occurred()) SWIG_fail; | |
17849 | } | |
15afbcd0 | 17850 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17851 | return resultobj; |
17852 | fail: | |
17853 | return NULL; | |
17854 | } | |
17855 | ||
17856 | ||
17857 | static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17858 | PyObject *resultobj; | |
17859 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17860 | int arg2 ; | |
17861 | wxDateTime *result; | |
17862 | PyObject * obj0 = 0 ; | |
994141e6 | 17863 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17864 | char *kwnames[] = { |
17865 | (char *) "self",(char *) "year", NULL | |
17866 | }; | |
17867 | ||
994141e6 | 17868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17871 | arg2 = (int) SWIG_AsInt(obj1); | |
17872 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17873 | { |
17874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17875 | { | |
17876 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
17877 | result = (wxDateTime *) &_result_ref; | |
17878 | } | |
17879 | ||
17880 | wxPyEndAllowThreads(__tstate); | |
17881 | if (PyErr_Occurred()) SWIG_fail; | |
17882 | } | |
15afbcd0 | 17883 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17884 | return resultobj; |
17885 | fail: | |
17886 | return NULL; | |
17887 | } | |
17888 | ||
17889 | ||
17890 | static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17891 | PyObject *resultobj; | |
17892 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17893 | int arg2 ; | |
17894 | wxDateTime *result; | |
17895 | PyObject * obj0 = 0 ; | |
994141e6 | 17896 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17897 | char *kwnames[] = { |
17898 | (char *) "self",(char *) "month", NULL | |
17899 | }; | |
17900 | ||
994141e6 | 17901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17904 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
17905 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17906 | { |
17907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17908 | { | |
17909 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
17910 | result = (wxDateTime *) &_result_ref; | |
17911 | } | |
17912 | ||
17913 | wxPyEndAllowThreads(__tstate); | |
17914 | if (PyErr_Occurred()) SWIG_fail; | |
17915 | } | |
15afbcd0 | 17916 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17917 | return resultobj; |
17918 | fail: | |
17919 | return NULL; | |
17920 | } | |
17921 | ||
17922 | ||
17923 | static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17924 | PyObject *resultobj; | |
17925 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17926 | int arg2 ; |
d14a1e28 RD |
17927 | wxDateTime *result; |
17928 | PyObject * obj0 = 0 ; | |
994141e6 | 17929 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17930 | char *kwnames[] = { |
17931 | (char *) "self",(char *) "day", NULL | |
17932 | }; | |
17933 | ||
994141e6 | 17934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17937 | arg2 = (int) SWIG_AsInt(obj1); | |
17938 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17939 | { |
17940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17941 | { | |
17942 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
17943 | result = (wxDateTime *) &_result_ref; | |
17944 | } | |
17945 | ||
17946 | wxPyEndAllowThreads(__tstate); | |
17947 | if (PyErr_Occurred()) SWIG_fail; | |
17948 | } | |
15afbcd0 | 17949 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17950 | return resultobj; |
17951 | fail: | |
17952 | return NULL; | |
17953 | } | |
17954 | ||
17955 | ||
17956 | static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17957 | PyObject *resultobj; | |
17958 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17959 | int arg2 ; |
d14a1e28 RD |
17960 | wxDateTime *result; |
17961 | PyObject * obj0 = 0 ; | |
994141e6 | 17962 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17963 | char *kwnames[] = { |
17964 | (char *) "self",(char *) "hour", NULL | |
17965 | }; | |
17966 | ||
994141e6 | 17967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
17969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17970 | arg2 = (int) SWIG_AsInt(obj1); | |
17971 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17972 | { |
17973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17974 | { | |
17975 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
17976 | result = (wxDateTime *) &_result_ref; | |
17977 | } | |
17978 | ||
17979 | wxPyEndAllowThreads(__tstate); | |
17980 | if (PyErr_Occurred()) SWIG_fail; | |
17981 | } | |
15afbcd0 | 17982 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
17983 | return resultobj; |
17984 | fail: | |
17985 | return NULL; | |
17986 | } | |
17987 | ||
17988 | ||
17989 | static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17990 | PyObject *resultobj; | |
17991 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 17992 | int arg2 ; |
d14a1e28 RD |
17993 | wxDateTime *result; |
17994 | PyObject * obj0 = 0 ; | |
994141e6 | 17995 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17996 | char *kwnames[] = { |
17997 | (char *) "self",(char *) "minute", NULL | |
17998 | }; | |
17999 | ||
994141e6 | 18000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18003 | arg2 = (int) SWIG_AsInt(obj1); | |
18004 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18005 | { |
18006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18007 | { | |
18008 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
18009 | result = (wxDateTime *) &_result_ref; | |
18010 | } | |
18011 | ||
18012 | wxPyEndAllowThreads(__tstate); | |
18013 | if (PyErr_Occurred()) SWIG_fail; | |
18014 | } | |
15afbcd0 | 18015 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18016 | return resultobj; |
18017 | fail: | |
18018 | return NULL; | |
18019 | } | |
18020 | ||
18021 | ||
18022 | static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18023 | PyObject *resultobj; | |
18024 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18025 | int arg2 ; |
d14a1e28 RD |
18026 | wxDateTime *result; |
18027 | PyObject * obj0 = 0 ; | |
994141e6 | 18028 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18029 | char *kwnames[] = { |
18030 | (char *) "self",(char *) "second", NULL | |
18031 | }; | |
18032 | ||
994141e6 | 18033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18036 | arg2 = (int) SWIG_AsInt(obj1); | |
18037 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18038 | { |
18039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18040 | { | |
18041 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
18042 | result = (wxDateTime *) &_result_ref; | |
18043 | } | |
18044 | ||
18045 | wxPyEndAllowThreads(__tstate); | |
18046 | if (PyErr_Occurred()) SWIG_fail; | |
18047 | } | |
15afbcd0 | 18048 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18049 | return resultobj; |
18050 | fail: | |
18051 | return NULL; | |
18052 | } | |
18053 | ||
18054 | ||
18055 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18056 | PyObject *resultobj; | |
18057 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18058 | int arg2 ; |
d14a1e28 RD |
18059 | wxDateTime *result; |
18060 | PyObject * obj0 = 0 ; | |
994141e6 | 18061 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18062 | char *kwnames[] = { |
18063 | (char *) "self",(char *) "millisecond", NULL | |
18064 | }; | |
18065 | ||
994141e6 | 18066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18069 | arg2 = (int) SWIG_AsInt(obj1); | |
18070 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18071 | { |
18072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18073 | { | |
18074 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
18075 | result = (wxDateTime *) &_result_ref; | |
18076 | } | |
18077 | ||
18078 | wxPyEndAllowThreads(__tstate); | |
18079 | if (PyErr_Occurred()) SWIG_fail; | |
18080 | } | |
15afbcd0 | 18081 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18082 | return resultobj; |
18083 | fail: | |
18084 | return NULL; | |
18085 | } | |
18086 | ||
18087 | ||
18088 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18089 | PyObject *resultobj; | |
18090 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18091 | int arg2 ; | |
18092 | int arg3 = (int) wxDateTime::Monday_First ; | |
18093 | wxDateTime *result; | |
18094 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18095 | PyObject * obj1 = 0 ; |
18096 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18097 | char *kwnames[] = { |
18098 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
18099 | }; | |
18100 | ||
994141e6 | 18101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18104 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18105 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18106 | if (obj2) { |
15afbcd0 RD |
18107 | arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); |
18108 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18109 | } |
d14a1e28 RD |
18110 | { |
18111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18112 | { | |
18113 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18114 | result = (wxDateTime *) &_result_ref; | |
18115 | } | |
18116 | ||
18117 | wxPyEndAllowThreads(__tstate); | |
18118 | if (PyErr_Occurred()) SWIG_fail; | |
18119 | } | |
15afbcd0 | 18120 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18121 | return resultobj; |
18122 | fail: | |
18123 | return NULL; | |
18124 | } | |
18125 | ||
18126 | ||
18127 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18128 | PyObject *resultobj; | |
18129 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18130 | int arg2 ; | |
18131 | int arg3 = (int) wxDateTime::Monday_First ; | |
18132 | wxDateTime result; | |
18133 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18134 | PyObject * obj1 = 0 ; |
18135 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18136 | char *kwnames[] = { |
18137 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
18138 | }; | |
18139 | ||
994141e6 | 18140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18143 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18144 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18145 | if (obj2) { |
15afbcd0 RD |
18146 | arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); |
18147 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18148 | } |
d14a1e28 RD |
18149 | { |
18150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18151 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18152 | ||
18153 | wxPyEndAllowThreads(__tstate); | |
18154 | if (PyErr_Occurred()) SWIG_fail; | |
18155 | } | |
18156 | { | |
18157 | wxDateTime * resultptr; | |
18158 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18159 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18160 | } |
18161 | return resultobj; | |
18162 | fail: | |
18163 | return NULL; | |
18164 | } | |
18165 | ||
18166 | ||
18167 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18168 | PyObject *resultobj; | |
18169 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18170 | int arg2 ; | |
18171 | wxDateTime *result; | |
18172 | PyObject * obj0 = 0 ; | |
994141e6 | 18173 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18174 | char *kwnames[] = { |
18175 | (char *) "self",(char *) "weekday", NULL | |
18176 | }; | |
18177 | ||
994141e6 | 18178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18181 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18182 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18183 | { |
18184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18185 | { | |
18186 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
18187 | result = (wxDateTime *) &_result_ref; | |
18188 | } | |
18189 | ||
18190 | wxPyEndAllowThreads(__tstate); | |
18191 | if (PyErr_Occurred()) SWIG_fail; | |
18192 | } | |
15afbcd0 | 18193 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18194 | return resultobj; |
18195 | fail: | |
18196 | return NULL; | |
18197 | } | |
18198 | ||
18199 | ||
18200 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18201 | PyObject *resultobj; | |
18202 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18203 | int arg2 ; | |
18204 | wxDateTime result; | |
18205 | PyObject * obj0 = 0 ; | |
994141e6 | 18206 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18207 | char *kwnames[] = { |
18208 | (char *) "self",(char *) "weekday", NULL | |
18209 | }; | |
18210 | ||
994141e6 | 18211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18214 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18215 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18216 | { |
18217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18218 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
18219 | ||
18220 | wxPyEndAllowThreads(__tstate); | |
18221 | if (PyErr_Occurred()) SWIG_fail; | |
18222 | } | |
18223 | { | |
18224 | wxDateTime * resultptr; | |
18225 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18226 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18227 | } |
18228 | return resultobj; | |
18229 | fail: | |
18230 | return NULL; | |
18231 | } | |
18232 | ||
18233 | ||
18234 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18235 | PyObject *resultobj; | |
18236 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18237 | int arg2 ; | |
18238 | wxDateTime *result; | |
18239 | PyObject * obj0 = 0 ; | |
994141e6 | 18240 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18241 | char *kwnames[] = { |
18242 | (char *) "self",(char *) "weekday", NULL | |
18243 | }; | |
18244 | ||
994141e6 | 18245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18248 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18249 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18250 | { |
18251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18252 | { | |
18253 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18254 | result = (wxDateTime *) &_result_ref; | |
18255 | } | |
18256 | ||
18257 | wxPyEndAllowThreads(__tstate); | |
18258 | if (PyErr_Occurred()) SWIG_fail; | |
18259 | } | |
15afbcd0 | 18260 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18261 | return resultobj; |
18262 | fail: | |
18263 | return NULL; | |
18264 | } | |
18265 | ||
18266 | ||
18267 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18268 | PyObject *resultobj; | |
18269 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18270 | int arg2 ; | |
18271 | wxDateTime result; | |
18272 | PyObject * obj0 = 0 ; | |
994141e6 | 18273 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18274 | char *kwnames[] = { |
18275 | (char *) "self",(char *) "weekday", NULL | |
18276 | }; | |
18277 | ||
994141e6 | 18278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18281 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18282 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18283 | { |
18284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18285 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18286 | ||
18287 | wxPyEndAllowThreads(__tstate); | |
18288 | if (PyErr_Occurred()) SWIG_fail; | |
18289 | } | |
18290 | { | |
18291 | wxDateTime * resultptr; | |
18292 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18293 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18294 | } |
18295 | return resultobj; | |
18296 | fail: | |
18297 | return NULL; | |
18298 | } | |
18299 | ||
18300 | ||
18301 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18302 | PyObject *resultobj; | |
18303 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18304 | int arg2 ; | |
18305 | int arg3 = (int) 1 ; | |
18306 | int arg4 = (int) wxDateTime::Inv_Month ; | |
18307 | int arg5 = (int) wxDateTime::Inv_Year ; | |
18308 | bool result; | |
18309 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18310 | PyObject * obj1 = 0 ; |
18311 | PyObject * obj2 = 0 ; | |
18312 | PyObject * obj3 = 0 ; | |
18313 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
18314 | char *kwnames[] = { |
18315 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
18316 | }; | |
18317 | ||
994141e6 | 18318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
18319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18321 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18322 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18323 | if (obj2) { |
15afbcd0 RD |
18324 | arg3 = (int) SWIG_AsInt(obj2); |
18325 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18326 | } |
18327 | if (obj3) { | |
15afbcd0 RD |
18328 | arg4 = (wxDateTime::Month) SWIG_AsInt(obj3); |
18329 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18330 | } |
18331 | if (obj4) { | |
15afbcd0 RD |
18332 | arg5 = (int) SWIG_AsInt(obj4); |
18333 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18334 | } |
d14a1e28 RD |
18335 | { |
18336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18337 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
18338 | ||
18339 | wxPyEndAllowThreads(__tstate); | |
18340 | if (PyErr_Occurred()) SWIG_fail; | |
18341 | } | |
4f89f6a3 RD |
18342 | { |
18343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18344 | } | |
d14a1e28 RD |
18345 | return resultobj; |
18346 | fail: | |
18347 | return NULL; | |
18348 | } | |
18349 | ||
18350 | ||
18351 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18352 | PyObject *resultobj; | |
18353 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18354 | int arg2 ; | |
18355 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18356 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18357 | bool result; | |
18358 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18359 | PyObject * obj1 = 0 ; |
18360 | PyObject * obj2 = 0 ; | |
18361 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18362 | char *kwnames[] = { |
18363 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18364 | }; | |
18365 | ||
994141e6 | 18366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18369 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18370 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18371 | if (obj2) { |
15afbcd0 RD |
18372 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); |
18373 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18374 | } |
18375 | if (obj3) { | |
15afbcd0 RD |
18376 | arg4 = (int) SWIG_AsInt(obj3); |
18377 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18378 | } |
d14a1e28 RD |
18379 | { |
18380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18381 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18382 | ||
18383 | wxPyEndAllowThreads(__tstate); | |
18384 | if (PyErr_Occurred()) SWIG_fail; | |
18385 | } | |
4f89f6a3 RD |
18386 | { |
18387 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18388 | } | |
d14a1e28 RD |
18389 | return resultobj; |
18390 | fail: | |
18391 | return NULL; | |
18392 | } | |
18393 | ||
18394 | ||
18395 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18396 | PyObject *resultobj; | |
18397 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18398 | int arg2 ; | |
18399 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18400 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18401 | wxDateTime result; | |
18402 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18403 | PyObject * obj1 = 0 ; |
18404 | PyObject * obj2 = 0 ; | |
18405 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18406 | char *kwnames[] = { |
18407 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18408 | }; | |
18409 | ||
994141e6 | 18410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18413 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18414 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18415 | if (obj2) { |
15afbcd0 RD |
18416 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); |
18417 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18418 | } |
18419 | if (obj3) { | |
15afbcd0 RD |
18420 | arg4 = (int) SWIG_AsInt(obj3); |
18421 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18422 | } |
d14a1e28 RD |
18423 | { |
18424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18425 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18426 | ||
18427 | wxPyEndAllowThreads(__tstate); | |
18428 | if (PyErr_Occurred()) SWIG_fail; | |
18429 | } | |
18430 | { | |
18431 | wxDateTime * resultptr; | |
18432 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18433 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18434 | } |
18435 | return resultobj; | |
18436 | fail: | |
18437 | return NULL; | |
18438 | } | |
18439 | ||
18440 | ||
18441 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18442 | PyObject *resultobj; | |
18443 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18444 | int arg2 ; |
d14a1e28 RD |
18445 | int arg3 = (int) wxDateTime::Mon ; |
18446 | int arg4 = (int) wxDateTime::Monday_First ; | |
18447 | bool result; | |
18448 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18449 | PyObject * obj1 = 0 ; |
18450 | PyObject * obj2 = 0 ; | |
18451 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18452 | char *kwnames[] = { |
18453 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18454 | }; | |
18455 | ||
994141e6 | 18456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18459 | arg2 = (int) SWIG_AsInt(obj1); | |
18460 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18461 | if (obj2) { |
15afbcd0 RD |
18462 | arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); |
18463 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18464 | } |
18465 | if (obj3) { | |
15afbcd0 RD |
18466 | arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); |
18467 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18468 | } |
d14a1e28 RD |
18469 | { |
18470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18471 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18472 | ||
18473 | wxPyEndAllowThreads(__tstate); | |
18474 | if (PyErr_Occurred()) SWIG_fail; | |
18475 | } | |
4f89f6a3 RD |
18476 | { |
18477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18478 | } | |
d14a1e28 RD |
18479 | return resultobj; |
18480 | fail: | |
18481 | return NULL; | |
18482 | } | |
18483 | ||
18484 | ||
18485 | static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18486 | PyObject *resultobj; | |
18487 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18488 | int arg2 ; |
d14a1e28 RD |
18489 | int arg3 = (int) wxDateTime::Mon ; |
18490 | int arg4 = (int) wxDateTime::Monday_First ; | |
18491 | wxDateTime result; | |
18492 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18493 | PyObject * obj1 = 0 ; |
18494 | PyObject * obj2 = 0 ; | |
18495 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
18496 | char *kwnames[] = { |
18497 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18498 | }; | |
18499 | ||
994141e6 | 18500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18503 | arg2 = (int) SWIG_AsInt(obj1); | |
18504 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18505 | if (obj2) { |
15afbcd0 RD |
18506 | arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); |
18507 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18508 | } |
18509 | if (obj3) { | |
15afbcd0 RD |
18510 | arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); |
18511 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18512 | } |
d14a1e28 RD |
18513 | { |
18514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18515 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18516 | ||
18517 | wxPyEndAllowThreads(__tstate); | |
18518 | if (PyErr_Occurred()) SWIG_fail; | |
18519 | } | |
18520 | { | |
18521 | wxDateTime * resultptr; | |
18522 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18523 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18524 | } |
18525 | return resultobj; | |
18526 | fail: | |
18527 | return NULL; | |
18528 | } | |
18529 | ||
18530 | ||
18531 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18532 | PyObject *resultobj; | |
18533 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18534 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18535 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18536 | wxDateTime *result; | |
18537 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18538 | PyObject * obj1 = 0 ; |
18539 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18540 | char *kwnames[] = { |
18541 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18542 | }; | |
18543 | ||
994141e6 | 18544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 18547 | if (obj1) { |
15afbcd0 RD |
18548 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); |
18549 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18550 | } |
18551 | if (obj2) { | |
15afbcd0 RD |
18552 | arg3 = (int) SWIG_AsInt(obj2); |
18553 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18554 | } |
d14a1e28 RD |
18555 | { |
18556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18557 | { | |
18558 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18559 | result = (wxDateTime *) &_result_ref; | |
18560 | } | |
18561 | ||
18562 | wxPyEndAllowThreads(__tstate); | |
18563 | if (PyErr_Occurred()) SWIG_fail; | |
18564 | } | |
15afbcd0 | 18565 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18566 | return resultobj; |
18567 | fail: | |
18568 | return NULL; | |
18569 | } | |
18570 | ||
18571 | ||
18572 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18573 | PyObject *resultobj; | |
18574 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18575 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18576 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18577 | wxDateTime result; | |
18578 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18579 | PyObject * obj1 = 0 ; |
18580 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18581 | char *kwnames[] = { |
18582 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18583 | }; | |
18584 | ||
994141e6 | 18585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 18588 | if (obj1) { |
15afbcd0 RD |
18589 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); |
18590 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18591 | } |
18592 | if (obj2) { | |
15afbcd0 RD |
18593 | arg3 = (int) SWIG_AsInt(obj2); |
18594 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18595 | } |
d14a1e28 RD |
18596 | { |
18597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18598 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18599 | ||
18600 | wxPyEndAllowThreads(__tstate); | |
18601 | if (PyErr_Occurred()) SWIG_fail; | |
18602 | } | |
18603 | { | |
18604 | wxDateTime * resultptr; | |
18605 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18606 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18607 | } |
18608 | return resultobj; | |
18609 | fail: | |
18610 | return NULL; | |
18611 | } | |
18612 | ||
18613 | ||
18614 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18615 | PyObject *resultobj; | |
18616 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18617 | int arg2 ; |
d14a1e28 RD |
18618 | wxDateTime *result; |
18619 | PyObject * obj0 = 0 ; | |
994141e6 | 18620 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18621 | char *kwnames[] = { |
18622 | (char *) "self",(char *) "yday", NULL | |
18623 | }; | |
18624 | ||
994141e6 | 18625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18628 | arg2 = (int) SWIG_AsInt(obj1); | |
18629 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18630 | { |
18631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18632 | { | |
18633 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
18634 | result = (wxDateTime *) &_result_ref; | |
18635 | } | |
18636 | ||
18637 | wxPyEndAllowThreads(__tstate); | |
18638 | if (PyErr_Occurred()) SWIG_fail; | |
18639 | } | |
15afbcd0 | 18640 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18641 | return resultobj; |
18642 | fail: | |
18643 | return NULL; | |
18644 | } | |
18645 | ||
18646 | ||
18647 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18648 | PyObject *resultobj; | |
18649 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
322913ce | 18650 | int arg2 ; |
d14a1e28 RD |
18651 | wxDateTime result; |
18652 | PyObject * obj0 = 0 ; | |
994141e6 | 18653 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18654 | char *kwnames[] = { |
18655 | (char *) "self",(char *) "yday", NULL | |
18656 | }; | |
18657 | ||
994141e6 | 18658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18661 | arg2 = (int) SWIG_AsInt(obj1); | |
18662 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18663 | { |
18664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18665 | result = (arg1)->GetYearDay(arg2); | |
18666 | ||
18667 | wxPyEndAllowThreads(__tstate); | |
18668 | if (PyErr_Occurred()) SWIG_fail; | |
18669 | } | |
18670 | { | |
18671 | wxDateTime * resultptr; | |
18672 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18673 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18674 | } |
18675 | return resultobj; | |
18676 | fail: | |
18677 | return NULL; | |
18678 | } | |
18679 | ||
18680 | ||
18681 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18682 | PyObject *resultobj; | |
18683 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18684 | double result; | |
18685 | PyObject * obj0 = 0 ; | |
18686 | char *kwnames[] = { | |
18687 | (char *) "self", NULL | |
18688 | }; | |
18689 | ||
18690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18693 | { |
18694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18695 | result = (double)(arg1)->GetJulianDayNumber(); | |
18696 | ||
18697 | wxPyEndAllowThreads(__tstate); | |
18698 | if (PyErr_Occurred()) SWIG_fail; | |
18699 | } | |
15afbcd0 | 18700 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18701 | return resultobj; |
18702 | fail: | |
18703 | return NULL; | |
18704 | } | |
18705 | ||
18706 | ||
18707 | static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18708 | PyObject *resultobj; | |
18709 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18710 | double result; | |
18711 | PyObject * obj0 = 0 ; | |
18712 | char *kwnames[] = { | |
18713 | (char *) "self", NULL | |
18714 | }; | |
18715 | ||
18716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18719 | { |
18720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18721 | result = (double)(arg1)->GetJDN(); | |
18722 | ||
18723 | wxPyEndAllowThreads(__tstate); | |
18724 | if (PyErr_Occurred()) SWIG_fail; | |
18725 | } | |
15afbcd0 | 18726 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18727 | return resultobj; |
18728 | fail: | |
18729 | return NULL; | |
18730 | } | |
18731 | ||
18732 | ||
18733 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18734 | PyObject *resultobj; | |
18735 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18736 | double result; | |
18737 | PyObject * obj0 = 0 ; | |
18738 | char *kwnames[] = { | |
18739 | (char *) "self", NULL | |
18740 | }; | |
18741 | ||
18742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18745 | { |
18746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18747 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
18748 | ||
18749 | wxPyEndAllowThreads(__tstate); | |
18750 | if (PyErr_Occurred()) SWIG_fail; | |
18751 | } | |
15afbcd0 | 18752 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18753 | return resultobj; |
18754 | fail: | |
18755 | return NULL; | |
18756 | } | |
18757 | ||
18758 | ||
18759 | static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18760 | PyObject *resultobj; | |
18761 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18762 | double result; | |
18763 | PyObject * obj0 = 0 ; | |
18764 | char *kwnames[] = { | |
18765 | (char *) "self", NULL | |
18766 | }; | |
18767 | ||
18768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18771 | { |
18772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18773 | result = (double)(arg1)->GetMJD(); | |
18774 | ||
18775 | wxPyEndAllowThreads(__tstate); | |
18776 | if (PyErr_Occurred()) SWIG_fail; | |
18777 | } | |
15afbcd0 | 18778 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18779 | return resultobj; |
18780 | fail: | |
18781 | return NULL; | |
18782 | } | |
18783 | ||
18784 | ||
18785 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18786 | PyObject *resultobj; | |
18787 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18788 | double result; | |
18789 | PyObject * obj0 = 0 ; | |
18790 | char *kwnames[] = { | |
18791 | (char *) "self", NULL | |
18792 | }; | |
18793 | ||
18794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18797 | { |
18798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18799 | result = (double)(arg1)->GetRataDie(); | |
18800 | ||
18801 | wxPyEndAllowThreads(__tstate); | |
18802 | if (PyErr_Occurred()) SWIG_fail; | |
18803 | } | |
15afbcd0 | 18804 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
18805 | return resultobj; |
18806 | fail: | |
18807 | return NULL; | |
18808 | } | |
18809 | ||
18810 | ||
18811 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18812 | PyObject *resultobj; | |
18813 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18814 | wxDateTime::TimeZone *arg2 = 0 ; | |
e811c8ce | 18815 | bool arg3 = (bool) False ; |
d14a1e28 | 18816 | wxDateTime result; |
7722248d | 18817 | bool temp2 = False ; |
d14a1e28 RD |
18818 | PyObject * obj0 = 0 ; |
18819 | PyObject * obj1 = 0 ; | |
18820 | PyObject * obj2 = 0 ; | |
18821 | char *kwnames[] = { | |
18822 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18823 | }; | |
18824 | ||
18825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
18826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18828 | { |
18829 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18830 | temp2 = True; |
d14a1e28 RD |
18831 | } |
18832 | if (obj2) { | |
15afbcd0 RD |
18833 | arg3 = (bool) SWIG_AsBool(obj2); |
18834 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18835 | } |
18836 | { | |
18837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18838 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18839 | ||
18840 | wxPyEndAllowThreads(__tstate); | |
18841 | if (PyErr_Occurred()) SWIG_fail; | |
18842 | } | |
18843 | { | |
18844 | wxDateTime * resultptr; | |
18845 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18846 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18847 | } |
18848 | { | |
7722248d | 18849 | if (temp2) delete arg2; |
d14a1e28 RD |
18850 | } |
18851 | return resultobj; | |
18852 | fail: | |
18853 | { | |
7722248d | 18854 | if (temp2) delete arg2; |
d14a1e28 RD |
18855 | } |
18856 | return NULL; | |
18857 | } | |
18858 | ||
18859 | ||
18860 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18861 | PyObject *resultobj; | |
18862 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18863 | wxDateTime::TimeZone *arg2 = 0 ; | |
e811c8ce | 18864 | bool arg3 = (bool) False ; |
d14a1e28 | 18865 | wxDateTime *result; |
7722248d | 18866 | bool temp2 = False ; |
d14a1e28 RD |
18867 | PyObject * obj0 = 0 ; |
18868 | PyObject * obj1 = 0 ; | |
18869 | PyObject * obj2 = 0 ; | |
18870 | char *kwnames[] = { | |
18871 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18872 | }; | |
18873 | ||
18874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
18875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18877 | { |
18878 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 18879 | temp2 = True; |
d14a1e28 RD |
18880 | } |
18881 | if (obj2) { | |
15afbcd0 RD |
18882 | arg3 = (bool) SWIG_AsBool(obj2); |
18883 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18884 | } |
18885 | { | |
18886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18887 | { | |
18888 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18889 | result = (wxDateTime *) &_result_ref; | |
18890 | } | |
18891 | ||
18892 | wxPyEndAllowThreads(__tstate); | |
18893 | if (PyErr_Occurred()) SWIG_fail; | |
18894 | } | |
15afbcd0 | 18895 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 | 18896 | { |
7722248d | 18897 | if (temp2) delete arg2; |
d14a1e28 RD |
18898 | } |
18899 | return resultobj; | |
18900 | fail: | |
18901 | { | |
7722248d | 18902 | if (temp2) delete arg2; |
d14a1e28 RD |
18903 | } |
18904 | return NULL; | |
18905 | } | |
18906 | ||
18907 | ||
18908 | static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18909 | PyObject *resultobj; | |
18910 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
e811c8ce | 18911 | bool arg2 = (bool) False ; |
d14a1e28 RD |
18912 | wxDateTime result; |
18913 | PyObject * obj0 = 0 ; | |
18914 | PyObject * obj1 = 0 ; | |
18915 | char *kwnames[] = { | |
18916 | (char *) "self",(char *) "noDST", NULL | |
18917 | }; | |
18918 | ||
18919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 18922 | if (obj1) { |
15afbcd0 RD |
18923 | arg2 = (bool) SWIG_AsBool(obj1); |
18924 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18925 | } |
18926 | { | |
18927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18928 | result = (arg1)->ToGMT(arg2); | |
18929 | ||
18930 | wxPyEndAllowThreads(__tstate); | |
18931 | if (PyErr_Occurred()) SWIG_fail; | |
18932 | } | |
18933 | { | |
18934 | wxDateTime * resultptr; | |
18935 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 18936 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
18937 | } |
18938 | return resultobj; | |
18939 | fail: | |
18940 | return NULL; | |
18941 | } | |
18942 | ||
18943 | ||
18944 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18945 | PyObject *resultobj; | |
18946 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
e811c8ce | 18947 | bool arg2 = (bool) False ; |
d14a1e28 RD |
18948 | wxDateTime *result; |
18949 | PyObject * obj0 = 0 ; | |
18950 | PyObject * obj1 = 0 ; | |
18951 | char *kwnames[] = { | |
18952 | (char *) "self",(char *) "noDST", NULL | |
18953 | }; | |
18954 | ||
18955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 18958 | if (obj1) { |
15afbcd0 RD |
18959 | arg2 = (bool) SWIG_AsBool(obj1); |
18960 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18961 | } |
18962 | { | |
18963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18964 | { | |
18965 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
18966 | result = (wxDateTime *) &_result_ref; | |
18967 | } | |
18968 | ||
18969 | wxPyEndAllowThreads(__tstate); | |
18970 | if (PyErr_Occurred()) SWIG_fail; | |
18971 | } | |
15afbcd0 | 18972 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
18973 | return resultobj; |
18974 | fail: | |
18975 | return NULL; | |
18976 | } | |
18977 | ||
18978 | ||
18979 | static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18980 | PyObject *resultobj; | |
18981 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18982 | int arg2 = (int) wxDateTime::Country_Default ; | |
18983 | int result; | |
18984 | PyObject * obj0 = 0 ; | |
994141e6 | 18985 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18986 | char *kwnames[] = { |
18987 | (char *) "self",(char *) "country", NULL | |
18988 | }; | |
18989 | ||
994141e6 | 18990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
18992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 18993 | if (obj1) { |
15afbcd0 RD |
18994 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
18995 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18996 | } |
d14a1e28 RD |
18997 | { |
18998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18999 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
19000 | ||
19001 | wxPyEndAllowThreads(__tstate); | |
19002 | if (PyErr_Occurred()) SWIG_fail; | |
19003 | } | |
15afbcd0 | 19004 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19005 | return resultobj; |
19006 | fail: | |
19007 | return NULL; | |
19008 | } | |
19009 | ||
19010 | ||
19011 | static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19012 | PyObject *resultobj; | |
19013 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19014 | bool result; | |
19015 | PyObject * obj0 = 0 ; | |
19016 | char *kwnames[] = { | |
19017 | (char *) "self", NULL | |
19018 | }; | |
19019 | ||
19020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19023 | { |
19024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19025 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
19026 | ||
19027 | wxPyEndAllowThreads(__tstate); | |
19028 | if (PyErr_Occurred()) SWIG_fail; | |
19029 | } | |
4f89f6a3 RD |
19030 | { |
19031 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19032 | } | |
d14a1e28 RD |
19033 | return resultobj; |
19034 | fail: | |
19035 | return NULL; | |
19036 | } | |
19037 | ||
19038 | ||
19039 | static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19040 | PyObject *resultobj; | |
19041 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19042 | time_t result; | |
19043 | PyObject * obj0 = 0 ; | |
19044 | char *kwnames[] = { | |
19045 | (char *) "self", NULL | |
19046 | }; | |
19047 | ||
19048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19051 | { |
19052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19053 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
19054 | ||
19055 | wxPyEndAllowThreads(__tstate); | |
19056 | if (PyErr_Occurred()) SWIG_fail; | |
19057 | } | |
15afbcd0 | 19058 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
19059 | return resultobj; |
19060 | fail: | |
19061 | return NULL; | |
19062 | } | |
19063 | ||
19064 | ||
19065 | static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19066 | PyObject *resultobj; | |
19067 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19068 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19069 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19070 | int result; | |
7722248d | 19071 | bool temp2 = False ; |
d14a1e28 RD |
19072 | PyObject * obj0 = 0 ; |
19073 | PyObject * obj1 = 0 ; | |
19074 | char *kwnames[] = { | |
19075 | (char *) "self",(char *) "tz", NULL | |
19076 | }; | |
19077 | ||
19078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19081 | if (obj1) { |
19082 | { | |
19083 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19084 | temp2 = True; |
d14a1e28 RD |
19085 | } |
19086 | } | |
19087 | { | |
19088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19089 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
19090 | ||
19091 | wxPyEndAllowThreads(__tstate); | |
19092 | if (PyErr_Occurred()) SWIG_fail; | |
19093 | } | |
15afbcd0 | 19094 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19095 | { |
7722248d | 19096 | if (temp2) delete arg2; |
d14a1e28 RD |
19097 | } |
19098 | return resultobj; | |
19099 | fail: | |
19100 | { | |
7722248d | 19101 | if (temp2) delete arg2; |
d14a1e28 RD |
19102 | } |
19103 | return NULL; | |
19104 | } | |
19105 | ||
19106 | ||
19107 | static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19108 | PyObject *resultobj; | |
19109 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19110 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19111 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19112 | int result; | |
7722248d | 19113 | bool temp2 = False ; |
d14a1e28 RD |
19114 | PyObject * obj0 = 0 ; |
19115 | PyObject * obj1 = 0 ; | |
19116 | char *kwnames[] = { | |
19117 | (char *) "self",(char *) "tz", NULL | |
19118 | }; | |
19119 | ||
19120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19123 | if (obj1) { |
19124 | { | |
19125 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19126 | temp2 = True; |
d14a1e28 RD |
19127 | } |
19128 | } | |
19129 | { | |
19130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19131 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
19132 | ||
19133 | wxPyEndAllowThreads(__tstate); | |
19134 | if (PyErr_Occurred()) SWIG_fail; | |
19135 | } | |
15afbcd0 | 19136 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19137 | { |
7722248d | 19138 | if (temp2) delete arg2; |
d14a1e28 RD |
19139 | } |
19140 | return resultobj; | |
19141 | fail: | |
19142 | { | |
7722248d | 19143 | if (temp2) delete arg2; |
d14a1e28 RD |
19144 | } |
19145 | return NULL; | |
19146 | } | |
19147 | ||
19148 | ||
19149 | static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19150 | PyObject *resultobj; | |
19151 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19152 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19153 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19154 | int result; |
7722248d | 19155 | bool temp2 = False ; |
d14a1e28 RD |
19156 | PyObject * obj0 = 0 ; |
19157 | PyObject * obj1 = 0 ; | |
19158 | char *kwnames[] = { | |
19159 | (char *) "self",(char *) "tz", NULL | |
19160 | }; | |
19161 | ||
19162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19165 | if (obj1) { |
19166 | { | |
19167 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19168 | temp2 = True; |
d14a1e28 RD |
19169 | } |
19170 | } | |
19171 | { | |
19172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19173 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19174 | |
19175 | wxPyEndAllowThreads(__tstate); | |
19176 | if (PyErr_Occurred()) SWIG_fail; | |
19177 | } | |
15afbcd0 | 19178 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19179 | { |
7722248d | 19180 | if (temp2) delete arg2; |
d14a1e28 RD |
19181 | } |
19182 | return resultobj; | |
19183 | fail: | |
19184 | { | |
7722248d | 19185 | if (temp2) delete arg2; |
d14a1e28 RD |
19186 | } |
19187 | return NULL; | |
19188 | } | |
19189 | ||
19190 | ||
19191 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19192 | PyObject *resultobj; | |
19193 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19194 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19195 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19196 | int result; | |
7722248d | 19197 | bool temp2 = False ; |
d14a1e28 RD |
19198 | PyObject * obj0 = 0 ; |
19199 | PyObject * obj1 = 0 ; | |
19200 | char *kwnames[] = { | |
19201 | (char *) "self",(char *) "tz", NULL | |
19202 | }; | |
19203 | ||
19204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19207 | if (obj1) { |
19208 | { | |
19209 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19210 | temp2 = True; |
d14a1e28 RD |
19211 | } |
19212 | } | |
19213 | { | |
19214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19215 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
19216 | ||
19217 | wxPyEndAllowThreads(__tstate); | |
19218 | if (PyErr_Occurred()) SWIG_fail; | |
19219 | } | |
15afbcd0 | 19220 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19221 | { |
7722248d | 19222 | if (temp2) delete arg2; |
d14a1e28 RD |
19223 | } |
19224 | return resultobj; | |
19225 | fail: | |
19226 | { | |
7722248d | 19227 | if (temp2) delete arg2; |
d14a1e28 RD |
19228 | } |
19229 | return NULL; | |
19230 | } | |
19231 | ||
19232 | ||
19233 | static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19234 | PyObject *resultobj; | |
19235 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19236 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19237 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19238 | int result; |
7722248d | 19239 | bool temp2 = False ; |
d14a1e28 RD |
19240 | PyObject * obj0 = 0 ; |
19241 | PyObject * obj1 = 0 ; | |
19242 | char *kwnames[] = { | |
19243 | (char *) "self",(char *) "tz", NULL | |
19244 | }; | |
19245 | ||
19246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19249 | if (obj1) { |
19250 | { | |
19251 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19252 | temp2 = True; |
d14a1e28 RD |
19253 | } |
19254 | } | |
19255 | { | |
19256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19257 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19258 | |
19259 | wxPyEndAllowThreads(__tstate); | |
19260 | if (PyErr_Occurred()) SWIG_fail; | |
19261 | } | |
15afbcd0 | 19262 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19263 | { |
7722248d | 19264 | if (temp2) delete arg2; |
d14a1e28 RD |
19265 | } |
19266 | return resultobj; | |
19267 | fail: | |
19268 | { | |
7722248d | 19269 | if (temp2) delete arg2; |
d14a1e28 RD |
19270 | } |
19271 | return NULL; | |
19272 | } | |
19273 | ||
19274 | ||
19275 | static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19276 | PyObject *resultobj; | |
19277 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19278 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19279 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19280 | int result; |
7722248d | 19281 | bool temp2 = False ; |
d14a1e28 RD |
19282 | PyObject * obj0 = 0 ; |
19283 | PyObject * obj1 = 0 ; | |
19284 | char *kwnames[] = { | |
19285 | (char *) "self",(char *) "tz", NULL | |
19286 | }; | |
19287 | ||
19288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19291 | if (obj1) { |
19292 | { | |
19293 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19294 | temp2 = True; |
d14a1e28 RD |
19295 | } |
19296 | } | |
19297 | { | |
19298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19299 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19300 | |
19301 | wxPyEndAllowThreads(__tstate); | |
19302 | if (PyErr_Occurred()) SWIG_fail; | |
19303 | } | |
15afbcd0 | 19304 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19305 | { |
7722248d | 19306 | if (temp2) delete arg2; |
d14a1e28 RD |
19307 | } |
19308 | return resultobj; | |
19309 | fail: | |
19310 | { | |
7722248d | 19311 | if (temp2) delete arg2; |
d14a1e28 RD |
19312 | } |
19313 | return NULL; | |
19314 | } | |
19315 | ||
19316 | ||
19317 | static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19318 | PyObject *resultobj; | |
19319 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19320 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19321 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19322 | int result; |
7722248d | 19323 | bool temp2 = False ; |
d14a1e28 RD |
19324 | PyObject * obj0 = 0 ; |
19325 | PyObject * obj1 = 0 ; | |
19326 | char *kwnames[] = { | |
19327 | (char *) "self",(char *) "tz", NULL | |
19328 | }; | |
19329 | ||
19330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19333 | if (obj1) { |
19334 | { | |
19335 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19336 | temp2 = True; |
d14a1e28 RD |
19337 | } |
19338 | } | |
19339 | { | |
19340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19341 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19342 | |
19343 | wxPyEndAllowThreads(__tstate); | |
19344 | if (PyErr_Occurred()) SWIG_fail; | |
19345 | } | |
15afbcd0 | 19346 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19347 | { |
7722248d | 19348 | if (temp2) delete arg2; |
d14a1e28 RD |
19349 | } |
19350 | return resultobj; | |
19351 | fail: | |
19352 | { | |
7722248d | 19353 | if (temp2) delete arg2; |
d14a1e28 RD |
19354 | } |
19355 | return NULL; | |
19356 | } | |
19357 | ||
19358 | ||
19359 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19360 | PyObject *resultobj; | |
19361 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19362 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19363 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19364 | int result; |
7722248d | 19365 | bool temp2 = False ; |
d14a1e28 RD |
19366 | PyObject * obj0 = 0 ; |
19367 | PyObject * obj1 = 0 ; | |
19368 | char *kwnames[] = { | |
19369 | (char *) "self",(char *) "tz", NULL | |
19370 | }; | |
19371 | ||
19372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19375 | if (obj1) { |
19376 | { | |
19377 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19378 | temp2 = True; |
d14a1e28 RD |
19379 | } |
19380 | } | |
19381 | { | |
19382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19383 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19384 | |
19385 | wxPyEndAllowThreads(__tstate); | |
19386 | if (PyErr_Occurred()) SWIG_fail; | |
19387 | } | |
15afbcd0 | 19388 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19389 | { |
7722248d | 19390 | if (temp2) delete arg2; |
d14a1e28 RD |
19391 | } |
19392 | return resultobj; | |
19393 | fail: | |
19394 | { | |
7722248d | 19395 | if (temp2) delete arg2; |
d14a1e28 RD |
19396 | } |
19397 | return NULL; | |
19398 | } | |
19399 | ||
19400 | ||
19401 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19402 | PyObject *resultobj; | |
19403 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19404 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19405 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
322913ce | 19406 | int result; |
7722248d | 19407 | bool temp2 = False ; |
d14a1e28 RD |
19408 | PyObject * obj0 = 0 ; |
19409 | PyObject * obj1 = 0 ; | |
19410 | char *kwnames[] = { | |
19411 | (char *) "self",(char *) "tz", NULL | |
19412 | }; | |
19413 | ||
19414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19417 | if (obj1) { |
19418 | { | |
19419 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
7722248d | 19420 | temp2 = True; |
d14a1e28 RD |
19421 | } |
19422 | } | |
19423 | { | |
19424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19425 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
19426 | |
19427 | wxPyEndAllowThreads(__tstate); | |
19428 | if (PyErr_Occurred()) SWIG_fail; | |
19429 | } | |
15afbcd0 | 19430 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19431 | { |
7722248d | 19432 | if (temp2) delete arg2; |
d14a1e28 RD |
19433 | } |
19434 | return resultobj; | |
19435 | fail: | |
19436 | { | |
7722248d | 19437 | if (temp2) delete arg2; |
d14a1e28 RD |
19438 | } |
19439 | return NULL; | |
19440 | } | |
19441 | ||
19442 | ||
19443 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19444 | PyObject *resultobj; | |
19445 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19446 | int arg2 = (int) wxDateTime::Monday_First ; | |
19447 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19448 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
322913ce | 19449 | int result; |
7722248d | 19450 | bool temp3 = False ; |
d14a1e28 | 19451 | PyObject * obj0 = 0 ; |
994141e6 | 19452 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19453 | PyObject * obj2 = 0 ; |
19454 | char *kwnames[] = { | |
19455 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19456 | }; | |
19457 | ||
994141e6 | 19458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
19459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 19461 | if (obj1) { |
15afbcd0 RD |
19462 | arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); |
19463 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19464 | } |
d14a1e28 RD |
19465 | if (obj2) { |
19466 | { | |
19467 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 19468 | temp3 = True; |
d14a1e28 RD |
19469 | } |
19470 | } | |
19471 | { | |
19472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19473 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
19474 | |
19475 | wxPyEndAllowThreads(__tstate); | |
19476 | if (PyErr_Occurred()) SWIG_fail; | |
19477 | } | |
15afbcd0 | 19478 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19479 | { |
7722248d | 19480 | if (temp3) delete arg3; |
d14a1e28 RD |
19481 | } |
19482 | return resultobj; | |
19483 | fail: | |
19484 | { | |
7722248d | 19485 | if (temp3) delete arg3; |
d14a1e28 RD |
19486 | } |
19487 | return NULL; | |
19488 | } | |
19489 | ||
19490 | ||
19491 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19492 | PyObject *resultobj; | |
19493 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19494 | int arg2 = (int) wxDateTime::Monday_First ; | |
19495 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19496 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
322913ce | 19497 | int result; |
7722248d | 19498 | bool temp3 = False ; |
d14a1e28 | 19499 | PyObject * obj0 = 0 ; |
994141e6 | 19500 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19501 | PyObject * obj2 = 0 ; |
19502 | char *kwnames[] = { | |
19503 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19504 | }; | |
19505 | ||
994141e6 | 19506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
19507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 19509 | if (obj1) { |
15afbcd0 RD |
19510 | arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); |
19511 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19512 | } |
d14a1e28 RD |
19513 | if (obj2) { |
19514 | { | |
19515 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 19516 | temp3 = True; |
d14a1e28 RD |
19517 | } |
19518 | } | |
19519 | { | |
19520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 19521 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
19522 | |
19523 | wxPyEndAllowThreads(__tstate); | |
19524 | if (PyErr_Occurred()) SWIG_fail; | |
19525 | } | |
15afbcd0 | 19526 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 | 19527 | { |
7722248d | 19528 | if (temp3) delete arg3; |
d14a1e28 RD |
19529 | } |
19530 | return resultobj; | |
19531 | fail: | |
19532 | { | |
7722248d | 19533 | if (temp3) delete arg3; |
d14a1e28 RD |
19534 | } |
19535 | return NULL; | |
19536 | } | |
19537 | ||
19538 | ||
19539 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19540 | PyObject *resultobj; | |
19541 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19542 | int arg2 = (int) wxDateTime::Country_Default ; | |
19543 | bool result; | |
19544 | PyObject * obj0 = 0 ; | |
994141e6 | 19545 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19546 | char *kwnames[] = { |
19547 | (char *) "self",(char *) "country", NULL | |
19548 | }; | |
19549 | ||
994141e6 | 19550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 19553 | if (obj1) { |
15afbcd0 RD |
19554 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); |
19555 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19556 | } |
d14a1e28 RD |
19557 | { |
19558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19559 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
19560 | ||
19561 | wxPyEndAllowThreads(__tstate); | |
19562 | if (PyErr_Occurred()) SWIG_fail; | |
19563 | } | |
4f89f6a3 RD |
19564 | { |
19565 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19566 | } | |
d14a1e28 RD |
19567 | return resultobj; |
19568 | fail: | |
19569 | return NULL; | |
19570 | } | |
19571 | ||
19572 | ||
19573 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19574 | PyObject *resultobj; | |
19575 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19576 | wxDateTime *arg2 = 0 ; | |
19577 | bool result; | |
19578 | PyObject * obj0 = 0 ; | |
19579 | PyObject * obj1 = 0 ; | |
19580 | char *kwnames[] = { | |
19581 | (char *) "self",(char *) "datetime", NULL | |
19582 | }; | |
19583 | ||
19584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19587 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19588 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19589 | SWIG_fail; | |
d14a1e28 | 19590 | if (arg2 == NULL) { |
15afbcd0 RD |
19591 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19592 | SWIG_fail; | |
d14a1e28 RD |
19593 | } |
19594 | { | |
19595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19596 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
19597 | ||
19598 | wxPyEndAllowThreads(__tstate); | |
19599 | if (PyErr_Occurred()) SWIG_fail; | |
19600 | } | |
4f89f6a3 RD |
19601 | { |
19602 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19603 | } | |
d14a1e28 RD |
19604 | return resultobj; |
19605 | fail: | |
19606 | return NULL; | |
19607 | } | |
19608 | ||
19609 | ||
19610 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19611 | PyObject *resultobj; | |
19612 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19613 | wxDateTime *arg2 = 0 ; | |
19614 | bool result; | |
19615 | PyObject * obj0 = 0 ; | |
19616 | PyObject * obj1 = 0 ; | |
19617 | char *kwnames[] = { | |
19618 | (char *) "self",(char *) "datetime", NULL | |
19619 | }; | |
19620 | ||
19621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19624 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19625 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19626 | SWIG_fail; | |
d14a1e28 | 19627 | if (arg2 == NULL) { |
15afbcd0 RD |
19628 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19629 | SWIG_fail; | |
d14a1e28 RD |
19630 | } |
19631 | { | |
19632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19633 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
19634 | ||
19635 | wxPyEndAllowThreads(__tstate); | |
19636 | if (PyErr_Occurred()) SWIG_fail; | |
19637 | } | |
4f89f6a3 RD |
19638 | { |
19639 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19640 | } | |
d14a1e28 RD |
19641 | return resultobj; |
19642 | fail: | |
19643 | return NULL; | |
19644 | } | |
19645 | ||
19646 | ||
19647 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19648 | PyObject *resultobj; | |
19649 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19650 | wxDateTime *arg2 = 0 ; | |
19651 | bool result; | |
19652 | PyObject * obj0 = 0 ; | |
19653 | PyObject * obj1 = 0 ; | |
19654 | char *kwnames[] = { | |
19655 | (char *) "self",(char *) "datetime", NULL | |
19656 | }; | |
19657 | ||
19658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19661 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19662 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19663 | SWIG_fail; | |
d14a1e28 | 19664 | if (arg2 == NULL) { |
15afbcd0 RD |
19665 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19666 | SWIG_fail; | |
d14a1e28 RD |
19667 | } |
19668 | { | |
19669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19670 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
19671 | ||
19672 | wxPyEndAllowThreads(__tstate); | |
19673 | if (PyErr_Occurred()) SWIG_fail; | |
19674 | } | |
4f89f6a3 RD |
19675 | { |
19676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19677 | } | |
d14a1e28 RD |
19678 | return resultobj; |
19679 | fail: | |
19680 | return NULL; | |
19681 | } | |
19682 | ||
19683 | ||
19684 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19685 | PyObject *resultobj; | |
19686 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19687 | wxDateTime *arg2 = 0 ; | |
19688 | wxDateTime *arg3 = 0 ; | |
19689 | bool result; | |
19690 | PyObject * obj0 = 0 ; | |
19691 | PyObject * obj1 = 0 ; | |
19692 | PyObject * obj2 = 0 ; | |
19693 | char *kwnames[] = { | |
19694 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19695 | }; | |
19696 | ||
19697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
19698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19700 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19701 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19702 | SWIG_fail; | |
d14a1e28 | 19703 | if (arg2 == NULL) { |
15afbcd0 RD |
19704 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19705 | SWIG_fail; | |
d14a1e28 | 19706 | } |
15afbcd0 RD |
19707 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, |
19708 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19709 | SWIG_fail; | |
d14a1e28 | 19710 | if (arg3 == NULL) { |
15afbcd0 RD |
19711 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19712 | SWIG_fail; | |
d14a1e28 RD |
19713 | } |
19714 | { | |
19715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19716 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19717 | ||
19718 | wxPyEndAllowThreads(__tstate); | |
19719 | if (PyErr_Occurred()) SWIG_fail; | |
19720 | } | |
4f89f6a3 RD |
19721 | { |
19722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19723 | } | |
d14a1e28 RD |
19724 | return resultobj; |
19725 | fail: | |
19726 | return NULL; | |
19727 | } | |
19728 | ||
19729 | ||
19730 | static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19731 | PyObject *resultobj; | |
19732 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19733 | wxDateTime *arg2 = 0 ; | |
19734 | wxDateTime *arg3 = 0 ; | |
19735 | bool result; | |
19736 | PyObject * obj0 = 0 ; | |
19737 | PyObject * obj1 = 0 ; | |
19738 | PyObject * obj2 = 0 ; | |
19739 | char *kwnames[] = { | |
19740 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19741 | }; | |
19742 | ||
19743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
19744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19746 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19747 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19748 | SWIG_fail; | |
d14a1e28 | 19749 | if (arg2 == NULL) { |
15afbcd0 RD |
19750 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19751 | SWIG_fail; | |
d14a1e28 | 19752 | } |
15afbcd0 RD |
19753 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, |
19754 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19755 | SWIG_fail; | |
d14a1e28 | 19756 | if (arg3 == NULL) { |
15afbcd0 RD |
19757 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19758 | SWIG_fail; | |
d14a1e28 RD |
19759 | } |
19760 | { | |
19761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19762 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19763 | ||
19764 | wxPyEndAllowThreads(__tstate); | |
19765 | if (PyErr_Occurred()) SWIG_fail; | |
19766 | } | |
4f89f6a3 RD |
19767 | { |
19768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19769 | } | |
d14a1e28 RD |
19770 | return resultobj; |
19771 | fail: | |
19772 | return NULL; | |
19773 | } | |
19774 | ||
19775 | ||
19776 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19777 | PyObject *resultobj; | |
19778 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19779 | wxDateTime *arg2 = 0 ; | |
19780 | bool result; | |
19781 | PyObject * obj0 = 0 ; | |
19782 | PyObject * obj1 = 0 ; | |
19783 | char *kwnames[] = { | |
19784 | (char *) "self",(char *) "dt", NULL | |
19785 | }; | |
19786 | ||
19787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19790 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19791 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19792 | SWIG_fail; | |
d14a1e28 | 19793 | if (arg2 == NULL) { |
15afbcd0 RD |
19794 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19795 | SWIG_fail; | |
d14a1e28 RD |
19796 | } |
19797 | { | |
19798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19799 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
19800 | ||
19801 | wxPyEndAllowThreads(__tstate); | |
19802 | if (PyErr_Occurred()) SWIG_fail; | |
19803 | } | |
4f89f6a3 RD |
19804 | { |
19805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19806 | } | |
d14a1e28 RD |
19807 | return resultobj; |
19808 | fail: | |
19809 | return NULL; | |
19810 | } | |
19811 | ||
19812 | ||
19813 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19814 | PyObject *resultobj; | |
19815 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19816 | wxDateTime *arg2 = 0 ; | |
19817 | bool result; | |
19818 | PyObject * obj0 = 0 ; | |
19819 | PyObject * obj1 = 0 ; | |
19820 | char *kwnames[] = { | |
19821 | (char *) "self",(char *) "dt", NULL | |
19822 | }; | |
19823 | ||
19824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19827 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19828 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19829 | SWIG_fail; | |
d14a1e28 | 19830 | if (arg2 == NULL) { |
15afbcd0 RD |
19831 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19832 | SWIG_fail; | |
d14a1e28 RD |
19833 | } |
19834 | { | |
19835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19836 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
19837 | ||
19838 | wxPyEndAllowThreads(__tstate); | |
19839 | if (PyErr_Occurred()) SWIG_fail; | |
19840 | } | |
4f89f6a3 RD |
19841 | { |
19842 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19843 | } | |
d14a1e28 RD |
19844 | return resultobj; |
19845 | fail: | |
19846 | return NULL; | |
19847 | } | |
19848 | ||
19849 | ||
19850 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19851 | PyObject *resultobj; | |
19852 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19853 | wxDateTime *arg2 = 0 ; | |
19854 | wxTimeSpan *arg3 = 0 ; | |
19855 | bool result; | |
19856 | PyObject * obj0 = 0 ; | |
19857 | PyObject * obj1 = 0 ; | |
19858 | PyObject * obj2 = 0 ; | |
19859 | char *kwnames[] = { | |
19860 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
19861 | }; | |
19862 | ||
19863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
19864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19866 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19867 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19868 | SWIG_fail; | |
d14a1e28 | 19869 | if (arg2 == NULL) { |
15afbcd0 RD |
19870 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19871 | SWIG_fail; | |
d14a1e28 | 19872 | } |
15afbcd0 RD |
19873 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan, |
19874 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19875 | SWIG_fail; | |
d14a1e28 | 19876 | if (arg3 == NULL) { |
15afbcd0 RD |
19877 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19878 | SWIG_fail; | |
d14a1e28 RD |
19879 | } |
19880 | { | |
19881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19882 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
19883 | ||
19884 | wxPyEndAllowThreads(__tstate); | |
19885 | if (PyErr_Occurred()) SWIG_fail; | |
19886 | } | |
4f89f6a3 RD |
19887 | { |
19888 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19889 | } | |
d14a1e28 RD |
19890 | return resultobj; |
19891 | fail: | |
19892 | return NULL; | |
19893 | } | |
19894 | ||
19895 | ||
19896 | static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19897 | PyObject *resultobj; | |
19898 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19899 | wxTimeSpan *arg2 = 0 ; | |
19900 | wxDateTime *result; | |
19901 | PyObject * obj0 = 0 ; | |
19902 | PyObject * obj1 = 0 ; | |
19903 | char *kwnames[] = { | |
19904 | (char *) "self",(char *) "diff", NULL | |
19905 | }; | |
19906 | ||
19907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19910 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19911 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19912 | SWIG_fail; | |
d14a1e28 | 19913 | if (arg2 == NULL) { |
15afbcd0 RD |
19914 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19915 | SWIG_fail; | |
d14a1e28 RD |
19916 | } |
19917 | { | |
19918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19919 | { | |
19920 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
19921 | result = (wxDateTime *) &_result_ref; | |
19922 | } | |
19923 | ||
19924 | wxPyEndAllowThreads(__tstate); | |
19925 | if (PyErr_Occurred()) SWIG_fail; | |
19926 | } | |
15afbcd0 | 19927 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19928 | return resultobj; |
19929 | fail: | |
19930 | return NULL; | |
19931 | } | |
19932 | ||
19933 | ||
19934 | static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19935 | PyObject *resultobj; | |
19936 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19937 | wxDateSpan *arg2 = 0 ; | |
19938 | wxDateTime *result; | |
19939 | PyObject * obj0 = 0 ; | |
19940 | PyObject * obj1 = 0 ; | |
19941 | char *kwnames[] = { | |
19942 | (char *) "self",(char *) "diff", NULL | |
19943 | }; | |
19944 | ||
19945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19948 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19949 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19950 | SWIG_fail; | |
d14a1e28 | 19951 | if (arg2 == NULL) { |
15afbcd0 RD |
19952 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19953 | SWIG_fail; | |
d14a1e28 RD |
19954 | } |
19955 | { | |
19956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19957 | { | |
19958 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
19959 | result = (wxDateTime *) &_result_ref; | |
19960 | } | |
19961 | ||
19962 | wxPyEndAllowThreads(__tstate); | |
19963 | if (PyErr_Occurred()) SWIG_fail; | |
19964 | } | |
15afbcd0 | 19965 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
19966 | return resultobj; |
19967 | fail: | |
19968 | return NULL; | |
19969 | } | |
19970 | ||
19971 | ||
19972 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19973 | PyObject *resultobj; | |
19974 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19975 | wxTimeSpan *arg2 = 0 ; | |
19976 | wxDateTime *result; | |
19977 | PyObject * obj0 = 0 ; | |
19978 | PyObject * obj1 = 0 ; | |
19979 | char *kwnames[] = { | |
19980 | (char *) "self",(char *) "diff", NULL | |
19981 | }; | |
19982 | ||
19983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
19985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19986 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19987 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19988 | SWIG_fail; | |
d14a1e28 | 19989 | if (arg2 == NULL) { |
15afbcd0 RD |
19990 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19991 | SWIG_fail; | |
d14a1e28 RD |
19992 | } |
19993 | { | |
19994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19995 | { | |
19996 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
19997 | result = (wxDateTime *) &_result_ref; | |
19998 | } | |
19999 | ||
20000 | wxPyEndAllowThreads(__tstate); | |
20001 | if (PyErr_Occurred()) SWIG_fail; | |
20002 | } | |
15afbcd0 | 20003 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20004 | return resultobj; |
20005 | fail: | |
20006 | return NULL; | |
20007 | } | |
20008 | ||
20009 | ||
20010 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20011 | PyObject *resultobj; | |
20012 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20013 | wxDateSpan *arg2 = 0 ; | |
20014 | wxDateTime *result; | |
20015 | PyObject * obj0 = 0 ; | |
20016 | PyObject * obj1 = 0 ; | |
20017 | char *kwnames[] = { | |
20018 | (char *) "self",(char *) "diff", NULL | |
20019 | }; | |
20020 | ||
20021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20024 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20025 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20026 | SWIG_fail; | |
d14a1e28 | 20027 | if (arg2 == NULL) { |
15afbcd0 RD |
20028 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20029 | SWIG_fail; | |
d14a1e28 RD |
20030 | } |
20031 | { | |
20032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20033 | { | |
20034 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
20035 | result = (wxDateTime *) &_result_ref; | |
20036 | } | |
20037 | ||
20038 | wxPyEndAllowThreads(__tstate); | |
20039 | if (PyErr_Occurred()) SWIG_fail; | |
20040 | } | |
15afbcd0 | 20041 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20042 | return resultobj; |
20043 | fail: | |
20044 | return NULL; | |
20045 | } | |
20046 | ||
20047 | ||
20048 | static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20049 | PyObject *resultobj; | |
20050 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20051 | wxDateTime *arg2 = 0 ; | |
20052 | wxTimeSpan result; | |
20053 | PyObject * obj0 = 0 ; | |
20054 | PyObject * obj1 = 0 ; | |
20055 | char *kwnames[] = { | |
20056 | (char *) "self",(char *) "dt", NULL | |
20057 | }; | |
20058 | ||
20059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20062 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20063 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20064 | SWIG_fail; | |
d14a1e28 | 20065 | if (arg2 == NULL) { |
15afbcd0 RD |
20066 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20067 | SWIG_fail; | |
d14a1e28 RD |
20068 | } |
20069 | { | |
20070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20071 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
20072 | ||
20073 | wxPyEndAllowThreads(__tstate); | |
20074 | if (PyErr_Occurred()) SWIG_fail; | |
20075 | } | |
20076 | { | |
20077 | wxTimeSpan * resultptr; | |
20078 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 20079 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
20080 | } |
20081 | return resultobj; | |
20082 | fail: | |
20083 | return NULL; | |
20084 | } | |
20085 | ||
20086 | ||
20087 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) { | |
20088 | PyObject *resultobj; | |
20089 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20090 | wxTimeSpan *arg2 = 0 ; | |
20091 | wxDateTime *result; | |
20092 | PyObject * obj0 = 0 ; | |
20093 | PyObject * obj1 = 0 ; | |
20094 | ||
20095 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20098 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20099 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20100 | SWIG_fail; | |
d14a1e28 | 20101 | if (arg2 == NULL) { |
15afbcd0 RD |
20102 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20103 | SWIG_fail; | |
d14a1e28 RD |
20104 | } |
20105 | { | |
20106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20107 | { | |
20108 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
20109 | result = (wxDateTime *) &_result_ref; | |
20110 | } | |
20111 | ||
20112 | wxPyEndAllowThreads(__tstate); | |
20113 | if (PyErr_Occurred()) SWIG_fail; | |
20114 | } | |
15afbcd0 | 20115 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20116 | return resultobj; |
20117 | fail: | |
20118 | return NULL; | |
20119 | } | |
20120 | ||
20121 | ||
20122 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) { | |
20123 | PyObject *resultobj; | |
20124 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20125 | wxDateSpan *arg2 = 0 ; | |
20126 | wxDateTime *result; | |
20127 | PyObject * obj0 = 0 ; | |
20128 | PyObject * obj1 = 0 ; | |
20129 | ||
20130 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20133 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20134 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20135 | SWIG_fail; | |
d14a1e28 | 20136 | if (arg2 == NULL) { |
15afbcd0 RD |
20137 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20138 | SWIG_fail; | |
d14a1e28 RD |
20139 | } |
20140 | { | |
20141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20142 | { | |
20143 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
20144 | result = (wxDateTime *) &_result_ref; | |
20145 | } | |
20146 | ||
20147 | wxPyEndAllowThreads(__tstate); | |
20148 | if (PyErr_Occurred()) SWIG_fail; | |
20149 | } | |
15afbcd0 | 20150 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20151 | return resultobj; |
20152 | fail: | |
20153 | return NULL; | |
20154 | } | |
20155 | ||
20156 | ||
20157 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
20158 | int argc; | |
20159 | PyObject *argv[3]; | |
20160 | int ii; | |
20161 | ||
20162 | argc = PyObject_Length(args); | |
20163 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20164 | argv[ii] = PyTuple_GetItem(args,ii); | |
20165 | } | |
20166 | if (argc == 2) { | |
20167 | int _v; | |
20168 | { | |
20169 | void *ptr; | |
15afbcd0 | 20170 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20171 | _v = 0; |
20172 | PyErr_Clear(); | |
20173 | } else { | |
20174 | _v = 1; | |
20175 | } | |
20176 | } | |
20177 | if (_v) { | |
20178 | { | |
20179 | void *ptr; | |
15afbcd0 | 20180 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20181 | _v = 0; |
20182 | PyErr_Clear(); | |
20183 | } else { | |
20184 | _v = 1; | |
20185 | } | |
20186 | } | |
20187 | if (_v) { | |
20188 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
20189 | } | |
20190 | } | |
20191 | } | |
20192 | if (argc == 2) { | |
20193 | int _v; | |
20194 | { | |
20195 | void *ptr; | |
15afbcd0 | 20196 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20197 | _v = 0; |
20198 | PyErr_Clear(); | |
20199 | } else { | |
20200 | _v = 1; | |
20201 | } | |
20202 | } | |
20203 | if (_v) { | |
20204 | { | |
20205 | void *ptr; | |
15afbcd0 | 20206 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20207 | _v = 0; |
20208 | PyErr_Clear(); | |
20209 | } else { | |
20210 | _v = 1; | |
20211 | } | |
20212 | } | |
20213 | if (_v) { | |
20214 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
20215 | } | |
20216 | } | |
20217 | } | |
20218 | ||
20219 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
20220 | return NULL; | |
20221 | } | |
20222 | ||
20223 | ||
20224 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) { | |
20225 | PyObject *resultobj; | |
20226 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20227 | wxTimeSpan *arg2 = 0 ; | |
20228 | wxDateTime *result; | |
20229 | PyObject * obj0 = 0 ; | |
20230 | PyObject * obj1 = 0 ; | |
20231 | ||
20232 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20235 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20236 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20237 | SWIG_fail; | |
d14a1e28 | 20238 | if (arg2 == NULL) { |
15afbcd0 RD |
20239 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20240 | SWIG_fail; | |
d14a1e28 RD |
20241 | } |
20242 | { | |
20243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20244 | { | |
20245 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
20246 | result = (wxDateTime *) &_result_ref; | |
20247 | } | |
20248 | ||
20249 | wxPyEndAllowThreads(__tstate); | |
20250 | if (PyErr_Occurred()) SWIG_fail; | |
20251 | } | |
15afbcd0 | 20252 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20253 | return resultobj; |
20254 | fail: | |
20255 | return NULL; | |
20256 | } | |
20257 | ||
20258 | ||
20259 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) { | |
20260 | PyObject *resultobj; | |
20261 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20262 | wxDateSpan *arg2 = 0 ; | |
20263 | wxDateTime *result; | |
20264 | PyObject * obj0 = 0 ; | |
20265 | PyObject * obj1 = 0 ; | |
20266 | ||
20267 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20270 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20271 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20272 | SWIG_fail; | |
d14a1e28 | 20273 | if (arg2 == NULL) { |
15afbcd0 RD |
20274 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20275 | SWIG_fail; | |
d14a1e28 RD |
20276 | } |
20277 | { | |
20278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20279 | { | |
20280 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
20281 | result = (wxDateTime *) &_result_ref; | |
20282 | } | |
20283 | ||
20284 | wxPyEndAllowThreads(__tstate); | |
20285 | if (PyErr_Occurred()) SWIG_fail; | |
20286 | } | |
15afbcd0 | 20287 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); |
d14a1e28 RD |
20288 | return resultobj; |
20289 | fail: | |
20290 | return NULL; | |
20291 | } | |
20292 | ||
20293 | ||
20294 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
20295 | int argc; | |
20296 | PyObject *argv[3]; | |
20297 | int ii; | |
20298 | ||
20299 | argc = PyObject_Length(args); | |
20300 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20301 | argv[ii] = PyTuple_GetItem(args,ii); | |
20302 | } | |
20303 | if (argc == 2) { | |
20304 | int _v; | |
20305 | { | |
20306 | void *ptr; | |
15afbcd0 | 20307 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20308 | _v = 0; |
20309 | PyErr_Clear(); | |
20310 | } else { | |
20311 | _v = 1; | |
20312 | } | |
20313 | } | |
20314 | if (_v) { | |
20315 | { | |
20316 | void *ptr; | |
15afbcd0 | 20317 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20318 | _v = 0; |
20319 | PyErr_Clear(); | |
20320 | } else { | |
20321 | _v = 1; | |
20322 | } | |
20323 | } | |
20324 | if (_v) { | |
20325 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
20326 | } | |
20327 | } | |
20328 | } | |
20329 | if (argc == 2) { | |
20330 | int _v; | |
20331 | { | |
20332 | void *ptr; | |
15afbcd0 | 20333 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20334 | _v = 0; |
20335 | PyErr_Clear(); | |
20336 | } else { | |
20337 | _v = 1; | |
20338 | } | |
20339 | } | |
20340 | if (_v) { | |
20341 | { | |
20342 | void *ptr; | |
15afbcd0 | 20343 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20344 | _v = 0; |
20345 | PyErr_Clear(); | |
20346 | } else { | |
20347 | _v = 1; | |
20348 | } | |
20349 | } | |
20350 | if (_v) { | |
20351 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
20352 | } | |
20353 | } | |
20354 | } | |
20355 | ||
20356 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
20357 | return NULL; | |
20358 | } | |
20359 | ||
20360 | ||
20361 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) { | |
20362 | PyObject *resultobj; | |
20363 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20364 | wxTimeSpan *arg2 = 0 ; | |
20365 | wxDateTime result; | |
20366 | PyObject * obj0 = 0 ; | |
20367 | PyObject * obj1 = 0 ; | |
20368 | ||
20369 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20372 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20373 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20374 | SWIG_fail; | |
d14a1e28 | 20375 | if (arg2 == NULL) { |
15afbcd0 RD |
20376 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20377 | SWIG_fail; | |
d14a1e28 RD |
20378 | } |
20379 | { | |
20380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20381 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
20382 | ||
20383 | wxPyEndAllowThreads(__tstate); | |
20384 | if (PyErr_Occurred()) SWIG_fail; | |
20385 | } | |
20386 | { | |
20387 | wxDateTime * resultptr; | |
20388 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 20389 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20390 | } |
20391 | return resultobj; | |
20392 | fail: | |
20393 | return NULL; | |
20394 | } | |
20395 | ||
20396 | ||
20397 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) { | |
20398 | PyObject *resultobj; | |
20399 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20400 | wxDateSpan *arg2 = 0 ; | |
20401 | wxDateTime result; | |
20402 | PyObject * obj0 = 0 ; | |
20403 | PyObject * obj1 = 0 ; | |
20404 | ||
20405 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20408 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20409 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20410 | SWIG_fail; | |
d14a1e28 | 20411 | if (arg2 == NULL) { |
15afbcd0 RD |
20412 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20413 | SWIG_fail; | |
d14a1e28 RD |
20414 | } |
20415 | { | |
20416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20417 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
20418 | ||
20419 | wxPyEndAllowThreads(__tstate); | |
20420 | if (PyErr_Occurred()) SWIG_fail; | |
20421 | } | |
20422 | { | |
20423 | wxDateTime * resultptr; | |
20424 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 20425 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20426 | } |
20427 | return resultobj; | |
20428 | fail: | |
20429 | return NULL; | |
20430 | } | |
20431 | ||
20432 | ||
20433 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
20434 | int argc; | |
20435 | PyObject *argv[3]; | |
20436 | int ii; | |
20437 | ||
20438 | argc = PyObject_Length(args); | |
20439 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20440 | argv[ii] = PyTuple_GetItem(args,ii); | |
20441 | } | |
20442 | if (argc == 2) { | |
20443 | int _v; | |
20444 | { | |
20445 | void *ptr; | |
15afbcd0 | 20446 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20447 | _v = 0; |
20448 | PyErr_Clear(); | |
20449 | } else { | |
20450 | _v = 1; | |
20451 | } | |
20452 | } | |
20453 | if (_v) { | |
20454 | { | |
20455 | void *ptr; | |
15afbcd0 | 20456 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20457 | _v = 0; |
20458 | PyErr_Clear(); | |
20459 | } else { | |
20460 | _v = 1; | |
20461 | } | |
20462 | } | |
20463 | if (_v) { | |
20464 | return _wrap_DateTime___add____SWIG_0(self,args); | |
20465 | } | |
20466 | } | |
20467 | } | |
20468 | if (argc == 2) { | |
20469 | int _v; | |
20470 | { | |
20471 | void *ptr; | |
15afbcd0 | 20472 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20473 | _v = 0; |
20474 | PyErr_Clear(); | |
20475 | } else { | |
20476 | _v = 1; | |
20477 | } | |
20478 | } | |
20479 | if (_v) { | |
20480 | { | |
20481 | void *ptr; | |
15afbcd0 | 20482 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20483 | _v = 0; |
20484 | PyErr_Clear(); | |
20485 | } else { | |
20486 | _v = 1; | |
20487 | } | |
20488 | } | |
20489 | if (_v) { | |
20490 | return _wrap_DateTime___add____SWIG_1(self,args); | |
20491 | } | |
20492 | } | |
20493 | } | |
20494 | ||
20495 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
20496 | return NULL; | |
20497 | } | |
20498 | ||
20499 | ||
20500 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) { | |
20501 | PyObject *resultobj; | |
20502 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20503 | wxDateTime *arg2 = 0 ; | |
20504 | wxTimeSpan result; | |
20505 | PyObject * obj0 = 0 ; | |
20506 | PyObject * obj1 = 0 ; | |
20507 | ||
20508 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20511 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20512 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20513 | SWIG_fail; | |
d14a1e28 | 20514 | if (arg2 == NULL) { |
15afbcd0 RD |
20515 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20516 | SWIG_fail; | |
d14a1e28 RD |
20517 | } |
20518 | { | |
20519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20520 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
20521 | ||
20522 | wxPyEndAllowThreads(__tstate); | |
20523 | if (PyErr_Occurred()) SWIG_fail; | |
20524 | } | |
20525 | { | |
20526 | wxTimeSpan * resultptr; | |
20527 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 20528 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
20529 | } |
20530 | return resultobj; | |
20531 | fail: | |
20532 | return NULL; | |
20533 | } | |
20534 | ||
20535 | ||
20536 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) { | |
20537 | PyObject *resultobj; | |
20538 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20539 | wxTimeSpan *arg2 = 0 ; | |
20540 | wxDateTime result; | |
20541 | PyObject * obj0 = 0 ; | |
20542 | PyObject * obj1 = 0 ; | |
20543 | ||
20544 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20547 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20548 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20549 | SWIG_fail; | |
d14a1e28 | 20550 | if (arg2 == NULL) { |
15afbcd0 RD |
20551 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20552 | SWIG_fail; | |
d14a1e28 RD |
20553 | } |
20554 | { | |
20555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20556 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
20557 | ||
20558 | wxPyEndAllowThreads(__tstate); | |
20559 | if (PyErr_Occurred()) SWIG_fail; | |
20560 | } | |
20561 | { | |
20562 | wxDateTime * resultptr; | |
20563 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 20564 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20565 | } |
20566 | return resultobj; | |
20567 | fail: | |
20568 | return NULL; | |
20569 | } | |
20570 | ||
20571 | ||
20572 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) { | |
20573 | PyObject *resultobj; | |
20574 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20575 | wxDateSpan *arg2 = 0 ; | |
20576 | wxDateTime result; | |
20577 | PyObject * obj0 = 0 ; | |
20578 | PyObject * obj1 = 0 ; | |
20579 | ||
20580 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20583 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20584 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20585 | SWIG_fail; | |
d14a1e28 | 20586 | if (arg2 == NULL) { |
15afbcd0 RD |
20587 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20588 | SWIG_fail; | |
d14a1e28 RD |
20589 | } |
20590 | { | |
20591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20592 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
20593 | ||
20594 | wxPyEndAllowThreads(__tstate); | |
20595 | if (PyErr_Occurred()) SWIG_fail; | |
20596 | } | |
20597 | { | |
20598 | wxDateTime * resultptr; | |
20599 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 20600 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
20601 | } |
20602 | return resultobj; | |
20603 | fail: | |
20604 | return NULL; | |
20605 | } | |
20606 | ||
20607 | ||
20608 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
20609 | int argc; | |
20610 | PyObject *argv[3]; | |
20611 | int ii; | |
20612 | ||
20613 | argc = PyObject_Length(args); | |
20614 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20615 | argv[ii] = PyTuple_GetItem(args,ii); | |
20616 | } | |
20617 | if (argc == 2) { | |
20618 | int _v; | |
20619 | { | |
20620 | void *ptr; | |
15afbcd0 | 20621 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20622 | _v = 0; |
20623 | PyErr_Clear(); | |
20624 | } else { | |
20625 | _v = 1; | |
20626 | } | |
20627 | } | |
20628 | if (_v) { | |
20629 | { | |
20630 | void *ptr; | |
15afbcd0 | 20631 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20632 | _v = 0; |
20633 | PyErr_Clear(); | |
20634 | } else { | |
20635 | _v = 1; | |
20636 | } | |
20637 | } | |
20638 | if (_v) { | |
20639 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
20640 | } | |
20641 | } | |
20642 | } | |
20643 | if (argc == 2) { | |
20644 | int _v; | |
20645 | { | |
20646 | void *ptr; | |
15afbcd0 | 20647 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20648 | _v = 0; |
20649 | PyErr_Clear(); | |
20650 | } else { | |
20651 | _v = 1; | |
20652 | } | |
20653 | } | |
20654 | if (_v) { | |
20655 | { | |
20656 | void *ptr; | |
15afbcd0 | 20657 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { |
d14a1e28 RD |
20658 | _v = 0; |
20659 | PyErr_Clear(); | |
20660 | } else { | |
20661 | _v = 1; | |
20662 | } | |
20663 | } | |
20664 | if (_v) { | |
20665 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
20666 | } | |
20667 | } | |
20668 | } | |
20669 | if (argc == 2) { | |
20670 | int _v; | |
20671 | { | |
20672 | void *ptr; | |
15afbcd0 | 20673 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { |
d14a1e28 RD |
20674 | _v = 0; |
20675 | PyErr_Clear(); | |
20676 | } else { | |
20677 | _v = 1; | |
20678 | } | |
20679 | } | |
20680 | if (_v) { | |
20681 | { | |
20682 | void *ptr; | |
15afbcd0 | 20683 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { |
d14a1e28 RD |
20684 | _v = 0; |
20685 | PyErr_Clear(); | |
20686 | } else { | |
20687 | _v = 1; | |
20688 | } | |
20689 | } | |
20690 | if (_v) { | |
20691 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
20692 | } | |
20693 | } | |
20694 | } | |
20695 | ||
20696 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
20697 | return NULL; | |
20698 | } | |
20699 | ||
20700 | ||
20701 | static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) { | |
20702 | PyObject *resultobj; | |
20703 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20704 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20705 | bool result; |
20706 | PyObject * obj0 = 0 ; | |
20707 | PyObject * obj1 = 0 ; | |
20708 | ||
20709 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20712 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20714 | { |
20715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20716 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20717 | |
20718 | wxPyEndAllowThreads(__tstate); | |
20719 | if (PyErr_Occurred()) SWIG_fail; | |
20720 | } | |
4f89f6a3 RD |
20721 | { |
20722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20723 | } | |
d14a1e28 RD |
20724 | return resultobj; |
20725 | fail: | |
20726 | return NULL; | |
20727 | } | |
20728 | ||
20729 | ||
20730 | static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) { | |
20731 | PyObject *resultobj; | |
20732 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20733 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20734 | bool result; |
20735 | PyObject * obj0 = 0 ; | |
20736 | PyObject * obj1 = 0 ; | |
20737 | ||
20738 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20741 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20743 | { |
20744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20745 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20746 | |
20747 | wxPyEndAllowThreads(__tstate); | |
20748 | if (PyErr_Occurred()) SWIG_fail; | |
20749 | } | |
4f89f6a3 RD |
20750 | { |
20751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20752 | } | |
d14a1e28 RD |
20753 | return resultobj; |
20754 | fail: | |
20755 | return NULL; | |
20756 | } | |
20757 | ||
20758 | ||
20759 | static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) { | |
20760 | PyObject *resultobj; | |
20761 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20762 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20763 | bool result; |
20764 | PyObject * obj0 = 0 ; | |
20765 | PyObject * obj1 = 0 ; | |
20766 | ||
20767 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20770 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20772 | { |
20773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20774 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20775 | |
20776 | wxPyEndAllowThreads(__tstate); | |
20777 | if (PyErr_Occurred()) SWIG_fail; | |
20778 | } | |
4f89f6a3 RD |
20779 | { |
20780 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20781 | } | |
d14a1e28 RD |
20782 | return resultobj; |
20783 | fail: | |
20784 | return NULL; | |
20785 | } | |
20786 | ||
20787 | ||
20788 | static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) { | |
20789 | PyObject *resultobj; | |
20790 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20791 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20792 | bool result; |
20793 | PyObject * obj0 = 0 ; | |
20794 | PyObject * obj1 = 0 ; | |
20795 | ||
20796 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20799 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20801 | { |
20802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20803 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20804 | |
20805 | wxPyEndAllowThreads(__tstate); | |
20806 | if (PyErr_Occurred()) SWIG_fail; | |
20807 | } | |
4f89f6a3 RD |
20808 | { |
20809 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20810 | } | |
d14a1e28 RD |
20811 | return resultobj; |
20812 | fail: | |
20813 | return NULL; | |
20814 | } | |
20815 | ||
20816 | ||
20817 | static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) { | |
20818 | PyObject *resultobj; | |
20819 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20820 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20821 | bool result; |
20822 | PyObject * obj0 = 0 ; | |
20823 | PyObject * obj1 = 0 ; | |
20824 | ||
20825 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20828 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20830 | { |
20831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20832 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20833 | |
20834 | wxPyEndAllowThreads(__tstate); | |
20835 | if (PyErr_Occurred()) SWIG_fail; | |
20836 | } | |
4f89f6a3 RD |
20837 | { |
20838 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20839 | } | |
d14a1e28 RD |
20840 | return resultobj; |
20841 | fail: | |
20842 | return NULL; | |
20843 | } | |
20844 | ||
20845 | ||
20846 | static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) { | |
20847 | PyObject *resultobj; | |
20848 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
22faec7d | 20849 | wxDateTime *arg2 = (wxDateTime *) 0 ; |
d14a1e28 RD |
20850 | bool result; |
20851 | PyObject * obj0 = 0 ; | |
20852 | PyObject * obj1 = 0 ; | |
20853 | ||
20854 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20857 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20859 | { |
20860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 20861 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2); |
d14a1e28 RD |
20862 | |
20863 | wxPyEndAllowThreads(__tstate); | |
20864 | if (PyErr_Occurred()) SWIG_fail; | |
20865 | } | |
4f89f6a3 RD |
20866 | { |
20867 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20868 | } | |
d14a1e28 RD |
20869 | return resultobj; |
20870 | fail: | |
20871 | return NULL; | |
20872 | } | |
20873 | ||
20874 | ||
20875 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20876 | PyObject *resultobj; | |
20877 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20878 | wxString *arg2 = 0 ; | |
20879 | int result; | |
e811c8ce | 20880 | bool temp2 = False ; |
d14a1e28 RD |
20881 | PyObject * obj0 = 0 ; |
20882 | PyObject * obj1 = 0 ; | |
20883 | char *kwnames[] = { | |
20884 | (char *) "self",(char *) "date", NULL | |
20885 | }; | |
20886 | ||
20887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20890 | { |
20891 | arg2 = wxString_in_helper(obj1); | |
20892 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20893 | temp2 = True; |
d14a1e28 RD |
20894 | } |
20895 | { | |
20896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20897 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
20898 | ||
20899 | wxPyEndAllowThreads(__tstate); | |
20900 | if (PyErr_Occurred()) SWIG_fail; | |
20901 | } | |
15afbcd0 | 20902 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20903 | { |
20904 | if (temp2) | |
20905 | delete arg2; | |
20906 | } | |
20907 | return resultobj; | |
20908 | fail: | |
20909 | { | |
20910 | if (temp2) | |
20911 | delete arg2; | |
20912 | } | |
20913 | return NULL; | |
20914 | } | |
20915 | ||
20916 | ||
20917 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20918 | PyObject *resultobj; | |
20919 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20920 | wxString *arg2 = 0 ; | |
20921 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
20922 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
20923 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
20924 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
20925 | int result; | |
e811c8ce RD |
20926 | bool temp2 = False ; |
20927 | bool temp3 = False ; | |
d14a1e28 RD |
20928 | PyObject * obj0 = 0 ; |
20929 | PyObject * obj1 = 0 ; | |
20930 | PyObject * obj2 = 0 ; | |
20931 | PyObject * obj3 = 0 ; | |
20932 | char *kwnames[] = { | |
20933 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
20934 | }; | |
20935 | ||
20936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
20937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
20938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20939 | { |
20940 | arg2 = wxString_in_helper(obj1); | |
20941 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20942 | temp2 = True; |
d14a1e28 RD |
20943 | } |
20944 | if (obj2) { | |
20945 | { | |
20946 | arg3 = wxString_in_helper(obj2); | |
20947 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 20948 | temp3 = True; |
d14a1e28 RD |
20949 | } |
20950 | } | |
20951 | if (obj3) { | |
15afbcd0 RD |
20952 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime, |
20953 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20954 | SWIG_fail; | |
d14a1e28 | 20955 | if (arg4 == NULL) { |
15afbcd0 RD |
20956 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20957 | SWIG_fail; | |
d14a1e28 RD |
20958 | } |
20959 | } | |
20960 | { | |
20961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20962 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
20963 | ||
20964 | wxPyEndAllowThreads(__tstate); | |
20965 | if (PyErr_Occurred()) SWIG_fail; | |
20966 | } | |
15afbcd0 | 20967 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20968 | { |
20969 | if (temp2) | |
20970 | delete arg2; | |
20971 | } | |
20972 | { | |
20973 | if (temp3) | |
20974 | delete arg3; | |
20975 | } | |
20976 | return resultobj; | |
20977 | fail: | |
20978 | { | |
20979 | if (temp2) | |
20980 | delete arg2; | |
20981 | } | |
20982 | { | |
20983 | if (temp3) | |
20984 | delete arg3; | |
20985 | } | |
20986 | return NULL; | |
20987 | } | |
20988 | ||
20989 | ||
20990 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20991 | PyObject *resultobj; | |
20992 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20993 | wxString *arg2 = 0 ; | |
20994 | int result; | |
e811c8ce | 20995 | bool temp2 = False ; |
d14a1e28 RD |
20996 | PyObject * obj0 = 0 ; |
20997 | PyObject * obj1 = 0 ; | |
20998 | char *kwnames[] = { | |
20999 | (char *) "self",(char *) "datetime", NULL | |
21000 | }; | |
21001 | ||
21002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21005 | { |
21006 | arg2 = wxString_in_helper(obj1); | |
21007 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21008 | temp2 = True; |
d14a1e28 RD |
21009 | } |
21010 | { | |
21011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21012 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
21013 | ||
21014 | wxPyEndAllowThreads(__tstate); | |
21015 | if (PyErr_Occurred()) SWIG_fail; | |
21016 | } | |
15afbcd0 | 21017 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21018 | { |
21019 | if (temp2) | |
21020 | delete arg2; | |
21021 | } | |
21022 | return resultobj; | |
21023 | fail: | |
21024 | { | |
21025 | if (temp2) | |
21026 | delete arg2; | |
21027 | } | |
21028 | return NULL; | |
21029 | } | |
21030 | ||
21031 | ||
21032 | static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21033 | PyObject *resultobj; | |
21034 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21035 | wxString *arg2 = 0 ; | |
21036 | int result; | |
e811c8ce | 21037 | bool temp2 = False ; |
d14a1e28 RD |
21038 | PyObject * obj0 = 0 ; |
21039 | PyObject * obj1 = 0 ; | |
21040 | char *kwnames[] = { | |
21041 | (char *) "self",(char *) "date", NULL | |
21042 | }; | |
21043 | ||
21044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21047 | { |
21048 | arg2 = wxString_in_helper(obj1); | |
21049 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21050 | temp2 = True; |
d14a1e28 RD |
21051 | } |
21052 | { | |
21053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21054 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
21055 | ||
21056 | wxPyEndAllowThreads(__tstate); | |
21057 | if (PyErr_Occurred()) SWIG_fail; | |
21058 | } | |
15afbcd0 | 21059 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21060 | { |
21061 | if (temp2) | |
21062 | delete arg2; | |
21063 | } | |
21064 | return resultobj; | |
21065 | fail: | |
21066 | { | |
21067 | if (temp2) | |
21068 | delete arg2; | |
21069 | } | |
21070 | return NULL; | |
21071 | } | |
21072 | ||
21073 | ||
21074 | static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21075 | PyObject *resultobj; | |
21076 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21077 | wxString *arg2 = 0 ; | |
21078 | int result; | |
e811c8ce | 21079 | bool temp2 = False ; |
d14a1e28 RD |
21080 | PyObject * obj0 = 0 ; |
21081 | PyObject * obj1 = 0 ; | |
21082 | char *kwnames[] = { | |
21083 | (char *) "self",(char *) "time", NULL | |
21084 | }; | |
21085 | ||
21086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21089 | { |
21090 | arg2 = wxString_in_helper(obj1); | |
21091 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21092 | temp2 = True; |
d14a1e28 RD |
21093 | } |
21094 | { | |
21095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21096 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
21097 | ||
21098 | wxPyEndAllowThreads(__tstate); | |
21099 | if (PyErr_Occurred()) SWIG_fail; | |
21100 | } | |
15afbcd0 | 21101 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21102 | { |
21103 | if (temp2) | |
21104 | delete arg2; | |
21105 | } | |
21106 | return resultobj; | |
21107 | fail: | |
21108 | { | |
21109 | if (temp2) | |
21110 | delete arg2; | |
21111 | } | |
21112 | return NULL; | |
21113 | } | |
21114 | ||
21115 | ||
21116 | static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21117 | PyObject *resultobj; | |
21118 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21119 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
21120 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
21121 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
21122 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
21123 | wxString result; | |
e811c8ce | 21124 | bool temp2 = False ; |
7722248d | 21125 | bool temp3 = False ; |
d14a1e28 RD |
21126 | PyObject * obj0 = 0 ; |
21127 | PyObject * obj1 = 0 ; | |
21128 | PyObject * obj2 = 0 ; | |
21129 | char *kwnames[] = { | |
21130 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
21131 | }; | |
21132 | ||
21133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
21134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21136 | if (obj1) { |
21137 | { | |
21138 | arg2 = wxString_in_helper(obj1); | |
21139 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21140 | temp2 = True; |
d14a1e28 RD |
21141 | } |
21142 | } | |
21143 | if (obj2) { | |
21144 | { | |
21145 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
7722248d | 21146 | temp3 = True; |
d14a1e28 RD |
21147 | } |
21148 | } | |
21149 | { | |
21150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21151 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
21152 | ||
21153 | wxPyEndAllowThreads(__tstate); | |
21154 | if (PyErr_Occurred()) SWIG_fail; | |
21155 | } | |
21156 | { | |
21157 | #if wxUSE_UNICODE | |
21158 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21159 | #else | |
21160 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21161 | #endif | |
21162 | } | |
21163 | { | |
21164 | if (temp2) | |
21165 | delete arg2; | |
21166 | } | |
21167 | { | |
7722248d | 21168 | if (temp3) delete arg3; |
d14a1e28 RD |
21169 | } |
21170 | return resultobj; | |
21171 | fail: | |
21172 | { | |
21173 | if (temp2) | |
21174 | delete arg2; | |
21175 | } | |
21176 | { | |
7722248d | 21177 | if (temp3) delete arg3; |
d14a1e28 RD |
21178 | } |
21179 | return NULL; | |
21180 | } | |
21181 | ||
21182 | ||
21183 | static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21184 | PyObject *resultobj; | |
21185 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21186 | wxString result; | |
21187 | PyObject * obj0 = 0 ; | |
21188 | char *kwnames[] = { | |
21189 | (char *) "self", NULL | |
21190 | }; | |
21191 | ||
21192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21195 | { |
21196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21197 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
21198 | ||
21199 | wxPyEndAllowThreads(__tstate); | |
21200 | if (PyErr_Occurred()) SWIG_fail; | |
21201 | } | |
21202 | { | |
21203 | #if wxUSE_UNICODE | |
21204 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21205 | #else | |
21206 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21207 | #endif | |
21208 | } | |
21209 | return resultobj; | |
21210 | fail: | |
21211 | return NULL; | |
21212 | } | |
21213 | ||
21214 | ||
21215 | static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21216 | PyObject *resultobj; | |
21217 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21218 | wxString result; | |
21219 | PyObject * obj0 = 0 ; | |
21220 | char *kwnames[] = { | |
21221 | (char *) "self", NULL | |
21222 | }; | |
21223 | ||
21224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21227 | { |
21228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21229 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
21230 | ||
21231 | wxPyEndAllowThreads(__tstate); | |
21232 | if (PyErr_Occurred()) SWIG_fail; | |
21233 | } | |
21234 | { | |
21235 | #if wxUSE_UNICODE | |
21236 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21237 | #else | |
21238 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21239 | #endif | |
21240 | } | |
21241 | return resultobj; | |
21242 | fail: | |
21243 | return NULL; | |
21244 | } | |
21245 | ||
21246 | ||
21247 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21248 | PyObject *resultobj; | |
21249 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21250 | wxString result; | |
21251 | PyObject * obj0 = 0 ; | |
21252 | char *kwnames[] = { | |
21253 | (char *) "self", NULL | |
21254 | }; | |
21255 | ||
21256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21259 | { |
21260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21261 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
21262 | ||
21263 | wxPyEndAllowThreads(__tstate); | |
21264 | if (PyErr_Occurred()) SWIG_fail; | |
21265 | } | |
21266 | { | |
21267 | #if wxUSE_UNICODE | |
21268 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21269 | #else | |
21270 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21271 | #endif | |
21272 | } | |
21273 | return resultobj; | |
21274 | fail: | |
21275 | return NULL; | |
21276 | } | |
21277 | ||
21278 | ||
21279 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21280 | PyObject *resultobj; | |
21281 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21282 | wxString result; | |
21283 | PyObject * obj0 = 0 ; | |
21284 | char *kwnames[] = { | |
21285 | (char *) "self", NULL | |
21286 | }; | |
21287 | ||
21288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, |
21290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21291 | { |
21292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21293 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
21294 | ||
21295 | wxPyEndAllowThreads(__tstate); | |
21296 | if (PyErr_Occurred()) SWIG_fail; | |
21297 | } | |
21298 | { | |
21299 | #if wxUSE_UNICODE | |
21300 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21301 | #else | |
21302 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21303 | #endif | |
21304 | } | |
21305 | return resultobj; | |
21306 | fail: | |
21307 | return NULL; | |
21308 | } | |
21309 | ||
21310 | ||
21311 | static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) { | |
21312 | PyObject *obj; | |
21313 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21314 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
21315 | Py_INCREF(obj); | |
21316 | return Py_BuildValue((char *)""); | |
21317 | } | |
21318 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21319 | PyObject *resultobj; | |
21320 | long arg1 ; | |
21321 | wxTimeSpan result; | |
994141e6 | 21322 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21323 | char *kwnames[] = { |
21324 | (char *) "sec", NULL | |
21325 | }; | |
21326 | ||
994141e6 | 21327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21328 | arg1 = (long) SWIG_AsLong(obj0); |
21329 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21330 | { |
21331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21332 | result = wxTimeSpan::Seconds(arg1); | |
21333 | ||
21334 | wxPyEndAllowThreads(__tstate); | |
21335 | if (PyErr_Occurred()) SWIG_fail; | |
21336 | } | |
21337 | { | |
21338 | wxTimeSpan * resultptr; | |
21339 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21340 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21341 | } |
21342 | return resultobj; | |
21343 | fail: | |
21344 | return NULL; | |
21345 | } | |
21346 | ||
21347 | ||
21348 | static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21349 | PyObject *resultobj; | |
21350 | wxTimeSpan result; | |
21351 | char *kwnames[] = { | |
21352 | NULL | |
21353 | }; | |
21354 | ||
21355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
21356 | { | |
21357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21358 | result = wxTimeSpan::Second(); | |
21359 | ||
21360 | wxPyEndAllowThreads(__tstate); | |
21361 | if (PyErr_Occurred()) SWIG_fail; | |
21362 | } | |
21363 | { | |
21364 | wxTimeSpan * resultptr; | |
21365 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21366 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21367 | } |
21368 | return resultobj; | |
21369 | fail: | |
21370 | return NULL; | |
21371 | } | |
21372 | ||
21373 | ||
21374 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21375 | PyObject *resultobj; | |
21376 | long arg1 ; | |
21377 | wxTimeSpan result; | |
994141e6 | 21378 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21379 | char *kwnames[] = { |
21380 | (char *) "min", NULL | |
21381 | }; | |
21382 | ||
994141e6 | 21383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21384 | arg1 = (long) SWIG_AsLong(obj0); |
21385 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21386 | { |
21387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21388 | result = wxTimeSpan::Minutes(arg1); | |
21389 | ||
21390 | wxPyEndAllowThreads(__tstate); | |
21391 | if (PyErr_Occurred()) SWIG_fail; | |
21392 | } | |
21393 | { | |
21394 | wxTimeSpan * resultptr; | |
21395 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21396 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21397 | } |
21398 | return resultobj; | |
21399 | fail: | |
21400 | return NULL; | |
21401 | } | |
21402 | ||
21403 | ||
21404 | static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21405 | PyObject *resultobj; | |
21406 | wxTimeSpan result; | |
21407 | char *kwnames[] = { | |
21408 | NULL | |
21409 | }; | |
21410 | ||
21411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
21412 | { | |
21413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21414 | result = wxTimeSpan::Minute(); | |
21415 | ||
21416 | wxPyEndAllowThreads(__tstate); | |
21417 | if (PyErr_Occurred()) SWIG_fail; | |
21418 | } | |
21419 | { | |
21420 | wxTimeSpan * resultptr; | |
21421 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21422 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21423 | } |
21424 | return resultobj; | |
21425 | fail: | |
21426 | return NULL; | |
21427 | } | |
21428 | ||
21429 | ||
21430 | static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21431 | PyObject *resultobj; | |
21432 | long arg1 ; | |
21433 | wxTimeSpan result; | |
994141e6 | 21434 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21435 | char *kwnames[] = { |
21436 | (char *) "hours", NULL | |
21437 | }; | |
21438 | ||
994141e6 | 21439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21440 | arg1 = (long) SWIG_AsLong(obj0); |
21441 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21442 | { |
21443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21444 | result = wxTimeSpan::Hours(arg1); | |
21445 | ||
21446 | wxPyEndAllowThreads(__tstate); | |
21447 | if (PyErr_Occurred()) SWIG_fail; | |
21448 | } | |
21449 | { | |
21450 | wxTimeSpan * resultptr; | |
21451 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21452 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21453 | } |
21454 | return resultobj; | |
21455 | fail: | |
21456 | return NULL; | |
21457 | } | |
21458 | ||
21459 | ||
21460 | static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21461 | PyObject *resultobj; | |
21462 | wxTimeSpan result; | |
21463 | char *kwnames[] = { | |
21464 | NULL | |
21465 | }; | |
21466 | ||
21467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
21468 | { | |
21469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21470 | result = wxTimeSpan::Hour(); | |
21471 | ||
21472 | wxPyEndAllowThreads(__tstate); | |
21473 | if (PyErr_Occurred()) SWIG_fail; | |
21474 | } | |
21475 | { | |
21476 | wxTimeSpan * resultptr; | |
21477 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21478 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21479 | } |
21480 | return resultobj; | |
21481 | fail: | |
21482 | return NULL; | |
21483 | } | |
21484 | ||
21485 | ||
21486 | static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21487 | PyObject *resultobj; | |
21488 | long arg1 ; | |
21489 | wxTimeSpan result; | |
994141e6 | 21490 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21491 | char *kwnames[] = { |
21492 | (char *) "days", NULL | |
21493 | }; | |
21494 | ||
994141e6 | 21495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21496 | arg1 = (long) SWIG_AsLong(obj0); |
21497 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21498 | { |
21499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21500 | result = wxTimeSpan::Days(arg1); | |
21501 | ||
21502 | wxPyEndAllowThreads(__tstate); | |
21503 | if (PyErr_Occurred()) SWIG_fail; | |
21504 | } | |
21505 | { | |
21506 | wxTimeSpan * resultptr; | |
21507 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21508 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21509 | } |
21510 | return resultobj; | |
21511 | fail: | |
21512 | return NULL; | |
21513 | } | |
21514 | ||
21515 | ||
21516 | static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21517 | PyObject *resultobj; | |
21518 | wxTimeSpan result; | |
21519 | char *kwnames[] = { | |
21520 | NULL | |
21521 | }; | |
21522 | ||
21523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
21524 | { | |
21525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21526 | result = wxTimeSpan::Day(); | |
21527 | ||
21528 | wxPyEndAllowThreads(__tstate); | |
21529 | if (PyErr_Occurred()) SWIG_fail; | |
21530 | } | |
21531 | { | |
21532 | wxTimeSpan * resultptr; | |
21533 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21534 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21535 | } |
21536 | return resultobj; | |
21537 | fail: | |
21538 | return NULL; | |
21539 | } | |
21540 | ||
21541 | ||
21542 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21543 | PyObject *resultobj; | |
21544 | long arg1 ; | |
21545 | wxTimeSpan result; | |
994141e6 | 21546 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21547 | char *kwnames[] = { |
21548 | (char *) "days", NULL | |
21549 | }; | |
21550 | ||
994141e6 | 21551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
21552 | arg1 = (long) SWIG_AsLong(obj0); |
21553 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21554 | { |
21555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21556 | result = wxTimeSpan::Weeks(arg1); | |
21557 | ||
21558 | wxPyEndAllowThreads(__tstate); | |
21559 | if (PyErr_Occurred()) SWIG_fail; | |
21560 | } | |
21561 | { | |
21562 | wxTimeSpan * resultptr; | |
21563 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21564 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21565 | } |
21566 | return resultobj; | |
21567 | fail: | |
21568 | return NULL; | |
21569 | } | |
21570 | ||
21571 | ||
21572 | static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21573 | PyObject *resultobj; | |
21574 | wxTimeSpan result; | |
21575 | char *kwnames[] = { | |
21576 | NULL | |
21577 | }; | |
21578 | ||
21579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
21580 | { | |
21581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21582 | result = wxTimeSpan::Week(); | |
21583 | ||
21584 | wxPyEndAllowThreads(__tstate); | |
21585 | if (PyErr_Occurred()) SWIG_fail; | |
21586 | } | |
21587 | { | |
21588 | wxTimeSpan * resultptr; | |
21589 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21590 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21591 | } |
21592 | return resultobj; | |
21593 | fail: | |
21594 | return NULL; | |
21595 | } | |
21596 | ||
21597 | ||
21598 | static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21599 | PyObject *resultobj; | |
21600 | long arg1 = (long) 0 ; | |
21601 | long arg2 = (long) 0 ; | |
21602 | long arg3 = (long) 0 ; | |
21603 | long arg4 = (long) 0 ; | |
21604 | wxTimeSpan *result; | |
994141e6 RD |
21605 | PyObject * obj0 = 0 ; |
21606 | PyObject * obj1 = 0 ; | |
21607 | PyObject * obj2 = 0 ; | |
21608 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21609 | char *kwnames[] = { |
21610 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
21611 | }; | |
21612 | ||
994141e6 RD |
21613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
21614 | if (obj0) { | |
15afbcd0 RD |
21615 | arg1 = (long) SWIG_AsLong(obj0); |
21616 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
21617 | } |
21618 | if (obj1) { | |
15afbcd0 RD |
21619 | arg2 = (long) SWIG_AsLong(obj1); |
21620 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
21621 | } |
21622 | if (obj2) { | |
15afbcd0 RD |
21623 | arg3 = (long) SWIG_AsLong(obj2); |
21624 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
21625 | } |
21626 | if (obj3) { | |
15afbcd0 RD |
21627 | arg4 = (long) SWIG_AsLong(obj3); |
21628 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21629 | } |
d14a1e28 RD |
21630 | { |
21631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21632 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
21633 | ||
21634 | wxPyEndAllowThreads(__tstate); | |
21635 | if (PyErr_Occurred()) SWIG_fail; | |
21636 | } | |
15afbcd0 | 21637 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21638 | return resultobj; |
21639 | fail: | |
21640 | return NULL; | |
21641 | } | |
21642 | ||
21643 | ||
21644 | static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21645 | PyObject *resultobj; | |
21646 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21647 | PyObject * obj0 = 0 ; | |
21648 | char *kwnames[] = { | |
21649 | (char *) "self", NULL | |
21650 | }; | |
21651 | ||
21652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21655 | { |
21656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21657 | delete arg1; | |
21658 | ||
21659 | wxPyEndAllowThreads(__tstate); | |
21660 | if (PyErr_Occurred()) SWIG_fail; | |
21661 | } | |
21662 | Py_INCREF(Py_None); resultobj = Py_None; | |
21663 | return resultobj; | |
21664 | fail: | |
21665 | return NULL; | |
21666 | } | |
21667 | ||
21668 | ||
21669 | static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21670 | PyObject *resultobj; | |
21671 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21672 | wxTimeSpan *arg2 = 0 ; | |
21673 | wxTimeSpan *result; | |
21674 | PyObject * obj0 = 0 ; | |
21675 | PyObject * obj1 = 0 ; | |
21676 | char *kwnames[] = { | |
21677 | (char *) "self",(char *) "diff", NULL | |
21678 | }; | |
21679 | ||
21680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21683 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21684 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21685 | SWIG_fail; | |
d14a1e28 | 21686 | if (arg2 == NULL) { |
15afbcd0 RD |
21687 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21688 | SWIG_fail; | |
d14a1e28 RD |
21689 | } |
21690 | { | |
21691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21692 | { | |
21693 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
21694 | result = (wxTimeSpan *) &_result_ref; | |
21695 | } | |
21696 | ||
21697 | wxPyEndAllowThreads(__tstate); | |
21698 | if (PyErr_Occurred()) SWIG_fail; | |
21699 | } | |
15afbcd0 | 21700 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21701 | return resultobj; |
21702 | fail: | |
21703 | return NULL; | |
21704 | } | |
21705 | ||
21706 | ||
21707 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21708 | PyObject *resultobj; | |
21709 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21710 | wxTimeSpan *arg2 = 0 ; | |
21711 | wxTimeSpan *result; | |
21712 | PyObject * obj0 = 0 ; | |
21713 | PyObject * obj1 = 0 ; | |
21714 | char *kwnames[] = { | |
21715 | (char *) "self",(char *) "diff", NULL | |
21716 | }; | |
21717 | ||
21718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21721 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21722 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21723 | SWIG_fail; | |
d14a1e28 | 21724 | if (arg2 == NULL) { |
15afbcd0 RD |
21725 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21726 | SWIG_fail; | |
d14a1e28 RD |
21727 | } |
21728 | { | |
21729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21730 | { | |
21731 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
21732 | result = (wxTimeSpan *) &_result_ref; | |
21733 | } | |
21734 | ||
21735 | wxPyEndAllowThreads(__tstate); | |
21736 | if (PyErr_Occurred()) SWIG_fail; | |
21737 | } | |
15afbcd0 | 21738 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21739 | return resultobj; |
21740 | fail: | |
21741 | return NULL; | |
21742 | } | |
21743 | ||
21744 | ||
21745 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21746 | PyObject *resultobj; | |
21747 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21748 | int arg2 ; | |
21749 | wxTimeSpan *result; | |
21750 | PyObject * obj0 = 0 ; | |
994141e6 | 21751 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21752 | char *kwnames[] = { |
21753 | (char *) "self",(char *) "n", NULL | |
21754 | }; | |
21755 | ||
994141e6 | 21756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21759 | arg2 = (int) SWIG_AsInt(obj1); | |
21760 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21761 | { |
21762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21763 | { | |
21764 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
21765 | result = (wxTimeSpan *) &_result_ref; | |
21766 | } | |
21767 | ||
21768 | wxPyEndAllowThreads(__tstate); | |
21769 | if (PyErr_Occurred()) SWIG_fail; | |
21770 | } | |
15afbcd0 | 21771 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21772 | return resultobj; |
21773 | fail: | |
21774 | return NULL; | |
21775 | } | |
21776 | ||
21777 | ||
21778 | static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21779 | PyObject *resultobj; | |
21780 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21781 | wxTimeSpan *result; | |
21782 | PyObject * obj0 = 0 ; | |
21783 | char *kwnames[] = { | |
21784 | (char *) "self", NULL | |
21785 | }; | |
21786 | ||
21787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21790 | { |
21791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21792 | { | |
21793 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
21794 | result = (wxTimeSpan *) &_result_ref; | |
21795 | } | |
21796 | ||
21797 | wxPyEndAllowThreads(__tstate); | |
21798 | if (PyErr_Occurred()) SWIG_fail; | |
21799 | } | |
15afbcd0 | 21800 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21801 | return resultobj; |
21802 | fail: | |
21803 | return NULL; | |
21804 | } | |
21805 | ||
21806 | ||
21807 | static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21808 | PyObject *resultobj; | |
21809 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21810 | wxTimeSpan result; | |
21811 | PyObject * obj0 = 0 ; | |
21812 | char *kwnames[] = { | |
21813 | (char *) "self", NULL | |
21814 | }; | |
21815 | ||
21816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21819 | { |
21820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21821 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
21822 | ||
21823 | wxPyEndAllowThreads(__tstate); | |
21824 | if (PyErr_Occurred()) SWIG_fail; | |
21825 | } | |
21826 | { | |
21827 | wxTimeSpan * resultptr; | |
21828 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 21829 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
21830 | } |
21831 | return resultobj; | |
21832 | fail: | |
21833 | return NULL; | |
21834 | } | |
21835 | ||
21836 | ||
21837 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21838 | PyObject *resultobj; | |
21839 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21840 | wxTimeSpan *arg2 = 0 ; | |
21841 | wxTimeSpan *result; | |
21842 | PyObject * obj0 = 0 ; | |
21843 | PyObject * obj1 = 0 ; | |
21844 | char *kwnames[] = { | |
21845 | (char *) "self",(char *) "diff", NULL | |
21846 | }; | |
21847 | ||
21848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21851 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21852 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21853 | SWIG_fail; | |
d14a1e28 | 21854 | if (arg2 == NULL) { |
15afbcd0 RD |
21855 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21856 | SWIG_fail; | |
d14a1e28 RD |
21857 | } |
21858 | { | |
21859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21860 | { | |
21861 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
21862 | result = (wxTimeSpan *) &_result_ref; | |
21863 | } | |
21864 | ||
21865 | wxPyEndAllowThreads(__tstate); | |
21866 | if (PyErr_Occurred()) SWIG_fail; | |
21867 | } | |
15afbcd0 | 21868 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21869 | return resultobj; |
21870 | fail: | |
21871 | return NULL; | |
21872 | } | |
21873 | ||
21874 | ||
21875 | static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21876 | PyObject *resultobj; | |
21877 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21878 | wxTimeSpan *arg2 = 0 ; | |
21879 | wxTimeSpan *result; | |
21880 | PyObject * obj0 = 0 ; | |
21881 | PyObject * obj1 = 0 ; | |
21882 | char *kwnames[] = { | |
21883 | (char *) "self",(char *) "diff", NULL | |
21884 | }; | |
21885 | ||
21886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21889 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21890 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21891 | SWIG_fail; | |
d14a1e28 | 21892 | if (arg2 == NULL) { |
15afbcd0 RD |
21893 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21894 | SWIG_fail; | |
d14a1e28 RD |
21895 | } |
21896 | { | |
21897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21898 | { | |
21899 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
21900 | result = (wxTimeSpan *) &_result_ref; | |
21901 | } | |
21902 | ||
21903 | wxPyEndAllowThreads(__tstate); | |
21904 | if (PyErr_Occurred()) SWIG_fail; | |
21905 | } | |
15afbcd0 | 21906 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21907 | return resultobj; |
21908 | fail: | |
21909 | return NULL; | |
21910 | } | |
21911 | ||
21912 | ||
21913 | static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21914 | PyObject *resultobj; | |
21915 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21916 | int arg2 ; | |
21917 | wxTimeSpan *result; | |
21918 | PyObject * obj0 = 0 ; | |
994141e6 | 21919 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21920 | char *kwnames[] = { |
21921 | (char *) "self",(char *) "n", NULL | |
21922 | }; | |
21923 | ||
994141e6 | 21924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21927 | arg2 = (int) SWIG_AsInt(obj1); | |
21928 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21929 | { |
21930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21931 | { | |
21932 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
21933 | result = (wxTimeSpan *) &_result_ref; | |
21934 | } | |
21935 | ||
21936 | wxPyEndAllowThreads(__tstate); | |
21937 | if (PyErr_Occurred()) SWIG_fail; | |
21938 | } | |
15afbcd0 | 21939 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21940 | return resultobj; |
21941 | fail: | |
21942 | return NULL; | |
21943 | } | |
21944 | ||
21945 | ||
21946 | static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21947 | PyObject *resultobj; | |
21948 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21949 | wxTimeSpan *result; | |
21950 | PyObject * obj0 = 0 ; | |
21951 | char *kwnames[] = { | |
21952 | (char *) "self", NULL | |
21953 | }; | |
21954 | ||
21955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21958 | { |
21959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21960 | { | |
21961 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
21962 | result = (wxTimeSpan *) &_result_ref; | |
21963 | } | |
21964 | ||
21965 | wxPyEndAllowThreads(__tstate); | |
21966 | if (PyErr_Occurred()) SWIG_fail; | |
21967 | } | |
15afbcd0 | 21968 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); |
d14a1e28 RD |
21969 | return resultobj; |
21970 | fail: | |
21971 | return NULL; | |
21972 | } | |
21973 | ||
21974 | ||
21975 | static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21976 | PyObject *resultobj; | |
21977 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21978 | wxTimeSpan *arg2 = 0 ; | |
21979 | wxTimeSpan result; | |
21980 | PyObject * obj0 = 0 ; | |
21981 | PyObject * obj1 = 0 ; | |
21982 | char *kwnames[] = { | |
21983 | (char *) "self",(char *) "other", NULL | |
21984 | }; | |
21985 | ||
21986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
21988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21989 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21990 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21991 | SWIG_fail; | |
d14a1e28 | 21992 | if (arg2 == NULL) { |
15afbcd0 RD |
21993 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21994 | SWIG_fail; | |
d14a1e28 RD |
21995 | } |
21996 | { | |
21997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21998 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
21999 | ||
22000 | wxPyEndAllowThreads(__tstate); | |
22001 | if (PyErr_Occurred()) SWIG_fail; | |
22002 | } | |
22003 | { | |
22004 | wxTimeSpan * resultptr; | |
22005 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 22006 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
22007 | } |
22008 | return resultobj; | |
22009 | fail: | |
22010 | return NULL; | |
22011 | } | |
22012 | ||
22013 | ||
22014 | static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22015 | PyObject *resultobj; | |
22016 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22017 | wxTimeSpan *arg2 = 0 ; | |
22018 | wxTimeSpan result; | |
22019 | PyObject * obj0 = 0 ; | |
22020 | PyObject * obj1 = 0 ; | |
22021 | char *kwnames[] = { | |
22022 | (char *) "self",(char *) "other", NULL | |
22023 | }; | |
22024 | ||
22025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22028 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22029 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22030 | SWIG_fail; | |
d14a1e28 | 22031 | if (arg2 == NULL) { |
15afbcd0 RD |
22032 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22033 | SWIG_fail; | |
d14a1e28 RD |
22034 | } |
22035 | { | |
22036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22037 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
22038 | ||
22039 | wxPyEndAllowThreads(__tstate); | |
22040 | if (PyErr_Occurred()) SWIG_fail; | |
22041 | } | |
22042 | { | |
22043 | wxTimeSpan * resultptr; | |
22044 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 22045 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
22046 | } |
22047 | return resultobj; | |
22048 | fail: | |
22049 | return NULL; | |
22050 | } | |
22051 | ||
22052 | ||
22053 | static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22054 | PyObject *resultobj; | |
22055 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22056 | int arg2 ; | |
22057 | wxTimeSpan result; | |
22058 | PyObject * obj0 = 0 ; | |
994141e6 | 22059 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22060 | char *kwnames[] = { |
22061 | (char *) "self",(char *) "n", NULL | |
22062 | }; | |
22063 | ||
994141e6 | 22064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22067 | arg2 = (int) SWIG_AsInt(obj1); | |
22068 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22069 | { |
22070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22071 | result = wxTimeSpan___mul__(arg1,arg2); | |
22072 | ||
22073 | wxPyEndAllowThreads(__tstate); | |
22074 | if (PyErr_Occurred()) SWIG_fail; | |
22075 | } | |
22076 | { | |
22077 | wxTimeSpan * resultptr; | |
22078 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 22079 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
22080 | } |
22081 | return resultobj; | |
22082 | fail: | |
22083 | return NULL; | |
22084 | } | |
22085 | ||
22086 | ||
22087 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22088 | PyObject *resultobj; | |
22089 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22090 | int arg2 ; | |
22091 | wxTimeSpan result; | |
22092 | PyObject * obj0 = 0 ; | |
994141e6 | 22093 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22094 | char *kwnames[] = { |
22095 | (char *) "self",(char *) "n", NULL | |
22096 | }; | |
22097 | ||
994141e6 | 22098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22101 | arg2 = (int) SWIG_AsInt(obj1); | |
22102 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22103 | { |
22104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22105 | result = wxTimeSpan___rmul__(arg1,arg2); | |
22106 | ||
22107 | wxPyEndAllowThreads(__tstate); | |
22108 | if (PyErr_Occurred()) SWIG_fail; | |
22109 | } | |
22110 | { | |
22111 | wxTimeSpan * resultptr; | |
22112 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
15afbcd0 | 22113 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); |
d14a1e28 RD |
22114 | } |
22115 | return resultobj; | |
22116 | fail: | |
22117 | return NULL; | |
22118 | } | |
22119 | ||
22120 | ||
22121 | static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22122 | PyObject *resultobj; | |
22123 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22124 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22125 | bool result; |
22126 | PyObject * obj0 = 0 ; | |
22127 | PyObject * obj1 = 0 ; | |
22128 | char *kwnames[] = { | |
22129 | (char *) "self",(char *) "other", NULL | |
22130 | }; | |
22131 | ||
22132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22135 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22137 | { |
22138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22139 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22140 | |
22141 | wxPyEndAllowThreads(__tstate); | |
22142 | if (PyErr_Occurred()) SWIG_fail; | |
22143 | } | |
4f89f6a3 RD |
22144 | { |
22145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22146 | } | |
d14a1e28 RD |
22147 | return resultobj; |
22148 | fail: | |
22149 | return NULL; | |
22150 | } | |
22151 | ||
22152 | ||
22153 | static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22154 | PyObject *resultobj; | |
22155 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22156 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22157 | bool result; |
22158 | PyObject * obj0 = 0 ; | |
22159 | PyObject * obj1 = 0 ; | |
22160 | char *kwnames[] = { | |
22161 | (char *) "self",(char *) "other", NULL | |
22162 | }; | |
22163 | ||
22164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22167 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22169 | { |
22170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22171 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22172 | |
22173 | wxPyEndAllowThreads(__tstate); | |
22174 | if (PyErr_Occurred()) SWIG_fail; | |
22175 | } | |
4f89f6a3 RD |
22176 | { |
22177 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22178 | } | |
d14a1e28 RD |
22179 | return resultobj; |
22180 | fail: | |
22181 | return NULL; | |
22182 | } | |
22183 | ||
22184 | ||
22185 | static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22186 | PyObject *resultobj; | |
22187 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22188 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22189 | bool result; |
22190 | PyObject * obj0 = 0 ; | |
22191 | PyObject * obj1 = 0 ; | |
22192 | char *kwnames[] = { | |
22193 | (char *) "self",(char *) "other", NULL | |
22194 | }; | |
22195 | ||
22196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22199 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22201 | { |
22202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22203 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22204 | |
22205 | wxPyEndAllowThreads(__tstate); | |
22206 | if (PyErr_Occurred()) SWIG_fail; | |
22207 | } | |
4f89f6a3 RD |
22208 | { |
22209 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22210 | } | |
d14a1e28 RD |
22211 | return resultobj; |
22212 | fail: | |
22213 | return NULL; | |
22214 | } | |
22215 | ||
22216 | ||
22217 | static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22218 | PyObject *resultobj; | |
22219 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22220 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22221 | bool result; |
22222 | PyObject * obj0 = 0 ; | |
22223 | PyObject * obj1 = 0 ; | |
22224 | char *kwnames[] = { | |
22225 | (char *) "self",(char *) "other", NULL | |
22226 | }; | |
22227 | ||
22228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22231 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22233 | { |
22234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22235 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22236 | |
22237 | wxPyEndAllowThreads(__tstate); | |
22238 | if (PyErr_Occurred()) SWIG_fail; | |
22239 | } | |
4f89f6a3 RD |
22240 | { |
22241 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22242 | } | |
d14a1e28 RD |
22243 | return resultobj; |
22244 | fail: | |
22245 | return NULL; | |
22246 | } | |
22247 | ||
22248 | ||
22249 | static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22250 | PyObject *resultobj; | |
22251 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22252 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22253 | bool result; |
22254 | PyObject * obj0 = 0 ; | |
22255 | PyObject * obj1 = 0 ; | |
22256 | char *kwnames[] = { | |
22257 | (char *) "self",(char *) "other", NULL | |
22258 | }; | |
22259 | ||
22260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22263 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22265 | { |
22266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22267 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22268 | |
22269 | wxPyEndAllowThreads(__tstate); | |
22270 | if (PyErr_Occurred()) SWIG_fail; | |
22271 | } | |
4f89f6a3 RD |
22272 | { |
22273 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22274 | } | |
d14a1e28 RD |
22275 | return resultobj; |
22276 | fail: | |
22277 | return NULL; | |
22278 | } | |
22279 | ||
22280 | ||
22281 | static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22282 | PyObject *resultobj; | |
22283 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22faec7d | 22284 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; |
d14a1e28 RD |
22285 | bool result; |
22286 | PyObject * obj0 = 0 ; | |
22287 | PyObject * obj1 = 0 ; | |
22288 | char *kwnames[] = { | |
22289 | (char *) "self",(char *) "other", NULL | |
22290 | }; | |
22291 | ||
22292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22295 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22297 | { |
22298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 22299 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2); |
d14a1e28 RD |
22300 | |
22301 | wxPyEndAllowThreads(__tstate); | |
22302 | if (PyErr_Occurred()) SWIG_fail; | |
22303 | } | |
4f89f6a3 RD |
22304 | { |
22305 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22306 | } | |
d14a1e28 RD |
22307 | return resultobj; |
22308 | fail: | |
22309 | return NULL; | |
22310 | } | |
22311 | ||
22312 | ||
22313 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22314 | PyObject *resultobj; | |
22315 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22316 | bool result; | |
22317 | PyObject * obj0 = 0 ; | |
22318 | char *kwnames[] = { | |
22319 | (char *) "self", NULL | |
22320 | }; | |
22321 | ||
22322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22325 | { |
22326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22327 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
22328 | ||
22329 | wxPyEndAllowThreads(__tstate); | |
22330 | if (PyErr_Occurred()) SWIG_fail; | |
22331 | } | |
4f89f6a3 RD |
22332 | { |
22333 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22334 | } | |
d14a1e28 RD |
22335 | return resultobj; |
22336 | fail: | |
22337 | return NULL; | |
22338 | } | |
22339 | ||
22340 | ||
22341 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22342 | PyObject *resultobj; | |
22343 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22344 | bool result; | |
22345 | PyObject * obj0 = 0 ; | |
22346 | char *kwnames[] = { | |
22347 | (char *) "self", NULL | |
22348 | }; | |
22349 | ||
22350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22353 | { |
22354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22355 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
22356 | ||
22357 | wxPyEndAllowThreads(__tstate); | |
22358 | if (PyErr_Occurred()) SWIG_fail; | |
22359 | } | |
4f89f6a3 RD |
22360 | { |
22361 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22362 | } | |
d14a1e28 RD |
22363 | return resultobj; |
22364 | fail: | |
22365 | return NULL; | |
22366 | } | |
22367 | ||
22368 | ||
22369 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22370 | PyObject *resultobj; | |
22371 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22372 | bool result; | |
22373 | PyObject * obj0 = 0 ; | |
22374 | char *kwnames[] = { | |
22375 | (char *) "self", NULL | |
22376 | }; | |
22377 | ||
22378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22381 | { |
22382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22383 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
22384 | ||
22385 | wxPyEndAllowThreads(__tstate); | |
22386 | if (PyErr_Occurred()) SWIG_fail; | |
22387 | } | |
4f89f6a3 RD |
22388 | { |
22389 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22390 | } | |
d14a1e28 RD |
22391 | return resultobj; |
22392 | fail: | |
22393 | return NULL; | |
22394 | } | |
22395 | ||
22396 | ||
22397 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22398 | PyObject *resultobj; | |
22399 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22400 | wxTimeSpan *arg2 = 0 ; | |
22401 | bool result; | |
22402 | PyObject * obj0 = 0 ; | |
22403 | PyObject * obj1 = 0 ; | |
22404 | char *kwnames[] = { | |
22405 | (char *) "self",(char *) "ts", NULL | |
22406 | }; | |
22407 | ||
22408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22411 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22412 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22413 | SWIG_fail; | |
d14a1e28 | 22414 | if (arg2 == NULL) { |
15afbcd0 RD |
22415 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22416 | SWIG_fail; | |
d14a1e28 RD |
22417 | } |
22418 | { | |
22419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22420 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
22421 | ||
22422 | wxPyEndAllowThreads(__tstate); | |
22423 | if (PyErr_Occurred()) SWIG_fail; | |
22424 | } | |
4f89f6a3 RD |
22425 | { |
22426 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22427 | } | |
d14a1e28 RD |
22428 | return resultobj; |
22429 | fail: | |
22430 | return NULL; | |
22431 | } | |
22432 | ||
22433 | ||
22434 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22435 | PyObject *resultobj; | |
22436 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22437 | wxTimeSpan *arg2 = 0 ; | |
22438 | bool result; | |
22439 | PyObject * obj0 = 0 ; | |
22440 | PyObject * obj1 = 0 ; | |
22441 | char *kwnames[] = { | |
22442 | (char *) "self",(char *) "ts", NULL | |
22443 | }; | |
22444 | ||
22445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22448 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22449 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22450 | SWIG_fail; | |
d14a1e28 | 22451 | if (arg2 == NULL) { |
15afbcd0 RD |
22452 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22453 | SWIG_fail; | |
d14a1e28 RD |
22454 | } |
22455 | { | |
22456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22457 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
22458 | ||
22459 | wxPyEndAllowThreads(__tstate); | |
22460 | if (PyErr_Occurred()) SWIG_fail; | |
22461 | } | |
4f89f6a3 RD |
22462 | { |
22463 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22464 | } | |
d14a1e28 RD |
22465 | return resultobj; |
22466 | fail: | |
22467 | return NULL; | |
22468 | } | |
22469 | ||
22470 | ||
22471 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22472 | PyObject *resultobj; | |
22473 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22474 | wxTimeSpan *arg2 = 0 ; | |
22475 | bool result; | |
22476 | PyObject * obj0 = 0 ; | |
22477 | PyObject * obj1 = 0 ; | |
22478 | char *kwnames[] = { | |
22479 | (char *) "self",(char *) "t", NULL | |
22480 | }; | |
22481 | ||
22482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22485 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22486 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22487 | SWIG_fail; | |
d14a1e28 | 22488 | if (arg2 == NULL) { |
15afbcd0 RD |
22489 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22490 | SWIG_fail; | |
d14a1e28 RD |
22491 | } |
22492 | { | |
22493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22494 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
22495 | ||
22496 | wxPyEndAllowThreads(__tstate); | |
22497 | if (PyErr_Occurred()) SWIG_fail; | |
22498 | } | |
4f89f6a3 RD |
22499 | { |
22500 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22501 | } | |
d14a1e28 RD |
22502 | return resultobj; |
22503 | fail: | |
22504 | return NULL; | |
22505 | } | |
22506 | ||
22507 | ||
22508 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22509 | PyObject *resultobj; | |
22510 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22511 | int result; | |
22512 | PyObject * obj0 = 0 ; | |
22513 | char *kwnames[] = { | |
22514 | (char *) "self", NULL | |
22515 | }; | |
22516 | ||
22517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22520 | { |
22521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22522 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
22523 | ||
22524 | wxPyEndAllowThreads(__tstate); | |
22525 | if (PyErr_Occurred()) SWIG_fail; | |
22526 | } | |
15afbcd0 | 22527 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22528 | return resultobj; |
22529 | fail: | |
22530 | return NULL; | |
22531 | } | |
22532 | ||
22533 | ||
22534 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22535 | PyObject *resultobj; | |
22536 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22537 | int result; | |
22538 | PyObject * obj0 = 0 ; | |
22539 | char *kwnames[] = { | |
22540 | (char *) "self", NULL | |
22541 | }; | |
22542 | ||
22543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22546 | { |
22547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22548 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
22549 | ||
22550 | wxPyEndAllowThreads(__tstate); | |
22551 | if (PyErr_Occurred()) SWIG_fail; | |
22552 | } | |
15afbcd0 | 22553 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22554 | return resultobj; |
22555 | fail: | |
22556 | return NULL; | |
22557 | } | |
22558 | ||
22559 | ||
22560 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22561 | PyObject *resultobj; | |
22562 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22563 | int result; | |
22564 | PyObject * obj0 = 0 ; | |
22565 | char *kwnames[] = { | |
22566 | (char *) "self", NULL | |
22567 | }; | |
22568 | ||
22569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22572 | { |
22573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22574 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
22575 | ||
22576 | wxPyEndAllowThreads(__tstate); | |
22577 | if (PyErr_Occurred()) SWIG_fail; | |
22578 | } | |
15afbcd0 | 22579 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22580 | return resultobj; |
22581 | fail: | |
22582 | return NULL; | |
22583 | } | |
22584 | ||
22585 | ||
22586 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22587 | PyObject *resultobj; | |
22588 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22589 | int result; | |
22590 | PyObject * obj0 = 0 ; | |
22591 | char *kwnames[] = { | |
22592 | (char *) "self", NULL | |
22593 | }; | |
22594 | ||
22595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22598 | { |
22599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22600 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
22601 | ||
22602 | wxPyEndAllowThreads(__tstate); | |
22603 | if (PyErr_Occurred()) SWIG_fail; | |
22604 | } | |
15afbcd0 | 22605 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22606 | return resultobj; |
22607 | fail: | |
22608 | return NULL; | |
22609 | } | |
22610 | ||
22611 | ||
22612 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22613 | PyObject *resultobj; | |
22614 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22615 | wxLongLong result; | |
22616 | PyObject * obj0 = 0 ; | |
22617 | char *kwnames[] = { | |
22618 | (char *) "self", NULL | |
22619 | }; | |
22620 | ||
22621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22624 | { |
22625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22626 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
22627 | ||
22628 | wxPyEndAllowThreads(__tstate); | |
22629 | if (PyErr_Occurred()) SWIG_fail; | |
22630 | } | |
22631 | { | |
22632 | PyObject *hi, *lo, *shifter, *shifted; | |
22633 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22634 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22635 | shifter = PyLong_FromLong(32); | |
22636 | shifted = PyNumber_Lshift(hi, shifter); | |
22637 | resultobj = PyNumber_Or(shifted, lo); | |
22638 | Py_DECREF(hi); | |
22639 | Py_DECREF(lo); | |
22640 | Py_DECREF(shifter); | |
22641 | Py_DECREF(shifted); | |
22642 | } | |
22643 | return resultobj; | |
22644 | fail: | |
22645 | return NULL; | |
22646 | } | |
22647 | ||
22648 | ||
22649 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22650 | PyObject *resultobj; | |
22651 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22652 | wxLongLong result; | |
22653 | PyObject * obj0 = 0 ; | |
22654 | char *kwnames[] = { | |
22655 | (char *) "self", NULL | |
22656 | }; | |
22657 | ||
22658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22661 | { |
22662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22663 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
22664 | ||
22665 | wxPyEndAllowThreads(__tstate); | |
22666 | if (PyErr_Occurred()) SWIG_fail; | |
22667 | } | |
22668 | { | |
22669 | PyObject *hi, *lo, *shifter, *shifted; | |
22670 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22671 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22672 | shifter = PyLong_FromLong(32); | |
22673 | shifted = PyNumber_Lshift(hi, shifter); | |
22674 | resultobj = PyNumber_Or(shifted, lo); | |
22675 | Py_DECREF(hi); | |
22676 | Py_DECREF(lo); | |
22677 | Py_DECREF(shifter); | |
22678 | Py_DECREF(shifted); | |
22679 | } | |
22680 | return resultobj; | |
22681 | fail: | |
22682 | return NULL; | |
22683 | } | |
22684 | ||
22685 | ||
22686 | static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22687 | PyObject *resultobj; | |
22688 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22689 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
22690 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
22691 | wxString result; | |
e811c8ce | 22692 | bool temp2 = False ; |
d14a1e28 RD |
22693 | PyObject * obj0 = 0 ; |
22694 | PyObject * obj1 = 0 ; | |
22695 | char *kwnames[] = { | |
22696 | (char *) "self",(char *) "format", NULL | |
22697 | }; | |
22698 | ||
22699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, |
22701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22702 | if (obj1) { |
22703 | { | |
22704 | arg2 = wxString_in_helper(obj1); | |
22705 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 22706 | temp2 = True; |
d14a1e28 RD |
22707 | } |
22708 | } | |
22709 | { | |
22710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22711 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
22712 | ||
22713 | wxPyEndAllowThreads(__tstate); | |
22714 | if (PyErr_Occurred()) SWIG_fail; | |
22715 | } | |
22716 | { | |
22717 | #if wxUSE_UNICODE | |
22718 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22719 | #else | |
22720 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22721 | #endif | |
22722 | } | |
22723 | { | |
22724 | if (temp2) | |
22725 | delete arg2; | |
22726 | } | |
22727 | return resultobj; | |
22728 | fail: | |
22729 | { | |
22730 | if (temp2) | |
22731 | delete arg2; | |
22732 | } | |
22733 | return NULL; | |
22734 | } | |
22735 | ||
22736 | ||
22737 | static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) { | |
22738 | PyObject *obj; | |
22739 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22740 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
22741 | Py_INCREF(obj); | |
22742 | return Py_BuildValue((char *)""); | |
22743 | } | |
22744 | static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22745 | PyObject *resultobj; | |
22746 | int arg1 = (int) 0 ; | |
22747 | int arg2 = (int) 0 ; | |
22748 | int arg3 = (int) 0 ; | |
22749 | int arg4 = (int) 0 ; | |
22750 | wxDateSpan *result; | |
994141e6 RD |
22751 | PyObject * obj0 = 0 ; |
22752 | PyObject * obj1 = 0 ; | |
22753 | PyObject * obj2 = 0 ; | |
22754 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
22755 | char *kwnames[] = { |
22756 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
22757 | }; | |
22758 | ||
994141e6 RD |
22759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
22760 | if (obj0) { | |
15afbcd0 RD |
22761 | arg1 = (int) SWIG_AsInt(obj0); |
22762 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
22763 | } |
22764 | if (obj1) { | |
15afbcd0 RD |
22765 | arg2 = (int) SWIG_AsInt(obj1); |
22766 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
22767 | } |
22768 | if (obj2) { | |
15afbcd0 RD |
22769 | arg3 = (int) SWIG_AsInt(obj2); |
22770 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
22771 | } |
22772 | if (obj3) { | |
15afbcd0 RD |
22773 | arg4 = (int) SWIG_AsInt(obj3); |
22774 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22775 | } |
d14a1e28 RD |
22776 | { |
22777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22778 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
22779 | ||
22780 | wxPyEndAllowThreads(__tstate); | |
22781 | if (PyErr_Occurred()) SWIG_fail; | |
22782 | } | |
15afbcd0 | 22783 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22784 | return resultobj; |
22785 | fail: | |
22786 | return NULL; | |
22787 | } | |
22788 | ||
22789 | ||
22790 | static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22791 | PyObject *resultobj; | |
22792 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22793 | PyObject * obj0 = 0 ; | |
22794 | char *kwnames[] = { | |
22795 | (char *) "self", NULL | |
22796 | }; | |
22797 | ||
22798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
22800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22801 | { |
22802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22803 | delete arg1; | |
22804 | ||
22805 | wxPyEndAllowThreads(__tstate); | |
22806 | if (PyErr_Occurred()) SWIG_fail; | |
22807 | } | |
22808 | Py_INCREF(Py_None); resultobj = Py_None; | |
22809 | return resultobj; | |
22810 | fail: | |
22811 | return NULL; | |
22812 | } | |
22813 | ||
22814 | ||
22815 | static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22816 | PyObject *resultobj; | |
22817 | int arg1 ; | |
22818 | wxDateSpan result; | |
994141e6 | 22819 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22820 | char *kwnames[] = { |
22821 | (char *) "days", NULL | |
22822 | }; | |
22823 | ||
994141e6 | 22824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22825 | arg1 = (int) SWIG_AsInt(obj0); |
22826 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22827 | { |
22828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22829 | result = wxDateSpan::Days(arg1); | |
22830 | ||
22831 | wxPyEndAllowThreads(__tstate); | |
22832 | if (PyErr_Occurred()) SWIG_fail; | |
22833 | } | |
22834 | { | |
22835 | wxDateSpan * resultptr; | |
22836 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22837 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22838 | } |
22839 | return resultobj; | |
22840 | fail: | |
22841 | return NULL; | |
22842 | } | |
22843 | ||
22844 | ||
22845 | static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22846 | PyObject *resultobj; | |
22847 | wxDateSpan result; | |
22848 | char *kwnames[] = { | |
22849 | NULL | |
22850 | }; | |
22851 | ||
22852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
22853 | { | |
22854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22855 | result = wxDateSpan::Day(); | |
22856 | ||
22857 | wxPyEndAllowThreads(__tstate); | |
22858 | if (PyErr_Occurred()) SWIG_fail; | |
22859 | } | |
22860 | { | |
22861 | wxDateSpan * resultptr; | |
22862 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22863 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22864 | } |
22865 | return resultobj; | |
22866 | fail: | |
22867 | return NULL; | |
22868 | } | |
22869 | ||
22870 | ||
22871 | static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22872 | PyObject *resultobj; | |
22873 | int arg1 ; | |
22874 | wxDateSpan result; | |
994141e6 | 22875 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22876 | char *kwnames[] = { |
22877 | (char *) "weeks", NULL | |
22878 | }; | |
22879 | ||
994141e6 | 22880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22881 | arg1 = (int) SWIG_AsInt(obj0); |
22882 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22883 | { |
22884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22885 | result = wxDateSpan::Weeks(arg1); | |
22886 | ||
22887 | wxPyEndAllowThreads(__tstate); | |
22888 | if (PyErr_Occurred()) SWIG_fail; | |
22889 | } | |
22890 | { | |
22891 | wxDateSpan * resultptr; | |
22892 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22893 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22894 | } |
22895 | return resultobj; | |
22896 | fail: | |
22897 | return NULL; | |
22898 | } | |
22899 | ||
22900 | ||
22901 | static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22902 | PyObject *resultobj; | |
22903 | wxDateSpan result; | |
22904 | char *kwnames[] = { | |
22905 | NULL | |
22906 | }; | |
22907 | ||
22908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
22909 | { | |
22910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22911 | result = wxDateSpan::Week(); | |
22912 | ||
22913 | wxPyEndAllowThreads(__tstate); | |
22914 | if (PyErr_Occurred()) SWIG_fail; | |
22915 | } | |
22916 | { | |
22917 | wxDateSpan * resultptr; | |
22918 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22919 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22920 | } |
22921 | return resultobj; | |
22922 | fail: | |
22923 | return NULL; | |
22924 | } | |
22925 | ||
22926 | ||
22927 | static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22928 | PyObject *resultobj; | |
22929 | int arg1 ; | |
22930 | wxDateSpan result; | |
994141e6 | 22931 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22932 | char *kwnames[] = { |
22933 | (char *) "mon", NULL | |
22934 | }; | |
22935 | ||
994141e6 | 22936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22937 | arg1 = (int) SWIG_AsInt(obj0); |
22938 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22939 | { |
22940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22941 | result = wxDateSpan::Months(arg1); | |
22942 | ||
22943 | wxPyEndAllowThreads(__tstate); | |
22944 | if (PyErr_Occurred()) SWIG_fail; | |
22945 | } | |
22946 | { | |
22947 | wxDateSpan * resultptr; | |
22948 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22949 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22950 | } |
22951 | return resultobj; | |
22952 | fail: | |
22953 | return NULL; | |
22954 | } | |
22955 | ||
22956 | ||
22957 | static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22958 | PyObject *resultobj; | |
22959 | wxDateSpan result; | |
22960 | char *kwnames[] = { | |
22961 | NULL | |
22962 | }; | |
22963 | ||
22964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
22965 | { | |
22966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22967 | result = wxDateSpan::Month(); | |
22968 | ||
22969 | wxPyEndAllowThreads(__tstate); | |
22970 | if (PyErr_Occurred()) SWIG_fail; | |
22971 | } | |
22972 | { | |
22973 | wxDateSpan * resultptr; | |
22974 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 22975 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
22976 | } |
22977 | return resultobj; | |
22978 | fail: | |
22979 | return NULL; | |
22980 | } | |
22981 | ||
22982 | ||
22983 | static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22984 | PyObject *resultobj; | |
22985 | int arg1 ; | |
22986 | wxDateSpan result; | |
994141e6 | 22987 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22988 | char *kwnames[] = { |
22989 | (char *) "years", NULL | |
22990 | }; | |
22991 | ||
994141e6 | 22992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22993 | arg1 = (int) SWIG_AsInt(obj0); |
22994 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22995 | { |
22996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22997 | result = wxDateSpan::Years(arg1); | |
22998 | ||
22999 | wxPyEndAllowThreads(__tstate); | |
23000 | if (PyErr_Occurred()) SWIG_fail; | |
23001 | } | |
23002 | { | |
23003 | wxDateSpan * resultptr; | |
23004 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23005 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23006 | } |
23007 | return resultobj; | |
23008 | fail: | |
23009 | return NULL; | |
23010 | } | |
23011 | ||
23012 | ||
23013 | static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23014 | PyObject *resultobj; | |
23015 | wxDateSpan result; | |
23016 | char *kwnames[] = { | |
23017 | NULL | |
23018 | }; | |
23019 | ||
23020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
23021 | { | |
23022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23023 | result = wxDateSpan::Year(); | |
23024 | ||
23025 | wxPyEndAllowThreads(__tstate); | |
23026 | if (PyErr_Occurred()) SWIG_fail; | |
23027 | } | |
23028 | { | |
23029 | wxDateSpan * resultptr; | |
23030 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23031 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23032 | } |
23033 | return resultobj; | |
23034 | fail: | |
23035 | return NULL; | |
23036 | } | |
23037 | ||
23038 | ||
23039 | static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23040 | PyObject *resultobj; | |
23041 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23042 | int arg2 ; | |
23043 | wxDateSpan *result; | |
23044 | PyObject * obj0 = 0 ; | |
994141e6 | 23045 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23046 | char *kwnames[] = { |
23047 | (char *) "self",(char *) "n", NULL | |
23048 | }; | |
23049 | ||
994141e6 | 23050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23053 | arg2 = (int) SWIG_AsInt(obj1); | |
23054 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23055 | { |
23056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23057 | { | |
23058 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
23059 | result = (wxDateSpan *) &_result_ref; | |
23060 | } | |
23061 | ||
23062 | wxPyEndAllowThreads(__tstate); | |
23063 | if (PyErr_Occurred()) SWIG_fail; | |
23064 | } | |
15afbcd0 | 23065 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23066 | return resultobj; |
23067 | fail: | |
23068 | return NULL; | |
23069 | } | |
23070 | ||
23071 | ||
23072 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23073 | PyObject *resultobj; | |
23074 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23075 | int arg2 ; | |
23076 | wxDateSpan *result; | |
23077 | PyObject * obj0 = 0 ; | |
994141e6 | 23078 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23079 | char *kwnames[] = { |
23080 | (char *) "self",(char *) "n", NULL | |
23081 | }; | |
23082 | ||
994141e6 | 23083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23086 | arg2 = (int) SWIG_AsInt(obj1); | |
23087 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23088 | { |
23089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23090 | { | |
23091 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
23092 | result = (wxDateSpan *) &_result_ref; | |
23093 | } | |
23094 | ||
23095 | wxPyEndAllowThreads(__tstate); | |
23096 | if (PyErr_Occurred()) SWIG_fail; | |
23097 | } | |
15afbcd0 | 23098 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23099 | return resultobj; |
23100 | fail: | |
23101 | return NULL; | |
23102 | } | |
23103 | ||
23104 | ||
23105 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23106 | PyObject *resultobj; | |
23107 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23108 | int arg2 ; | |
23109 | wxDateSpan *result; | |
23110 | PyObject * obj0 = 0 ; | |
994141e6 | 23111 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23112 | char *kwnames[] = { |
23113 | (char *) "self",(char *) "n", NULL | |
23114 | }; | |
23115 | ||
994141e6 | 23116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23119 | arg2 = (int) SWIG_AsInt(obj1); | |
23120 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23121 | { |
23122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23123 | { | |
23124 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
23125 | result = (wxDateSpan *) &_result_ref; | |
23126 | } | |
23127 | ||
23128 | wxPyEndAllowThreads(__tstate); | |
23129 | if (PyErr_Occurred()) SWIG_fail; | |
23130 | } | |
15afbcd0 | 23131 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23132 | return resultobj; |
23133 | fail: | |
23134 | return NULL; | |
23135 | } | |
23136 | ||
23137 | ||
23138 | static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23139 | PyObject *resultobj; | |
23140 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23141 | int arg2 ; | |
23142 | wxDateSpan *result; | |
23143 | PyObject * obj0 = 0 ; | |
994141e6 | 23144 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23145 | char *kwnames[] = { |
23146 | (char *) "self",(char *) "n", NULL | |
23147 | }; | |
23148 | ||
994141e6 | 23149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23152 | arg2 = (int) SWIG_AsInt(obj1); | |
23153 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23154 | { |
23155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23156 | { | |
23157 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
23158 | result = (wxDateSpan *) &_result_ref; | |
23159 | } | |
23160 | ||
23161 | wxPyEndAllowThreads(__tstate); | |
23162 | if (PyErr_Occurred()) SWIG_fail; | |
23163 | } | |
15afbcd0 | 23164 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23165 | return resultobj; |
23166 | fail: | |
23167 | return NULL; | |
23168 | } | |
23169 | ||
23170 | ||
23171 | static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23172 | PyObject *resultobj; | |
23173 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23174 | int result; | |
23175 | PyObject * obj0 = 0 ; | |
23176 | char *kwnames[] = { | |
23177 | (char *) "self", NULL | |
23178 | }; | |
23179 | ||
23180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23183 | { |
23184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23185 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
23186 | ||
23187 | wxPyEndAllowThreads(__tstate); | |
23188 | if (PyErr_Occurred()) SWIG_fail; | |
23189 | } | |
15afbcd0 | 23190 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23191 | return resultobj; |
23192 | fail: | |
23193 | return NULL; | |
23194 | } | |
23195 | ||
23196 | ||
23197 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23198 | PyObject *resultobj; | |
23199 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23200 | int result; | |
23201 | PyObject * obj0 = 0 ; | |
23202 | char *kwnames[] = { | |
23203 | (char *) "self", NULL | |
23204 | }; | |
23205 | ||
23206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23209 | { |
23210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23211 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
23212 | ||
23213 | wxPyEndAllowThreads(__tstate); | |
23214 | if (PyErr_Occurred()) SWIG_fail; | |
23215 | } | |
15afbcd0 | 23216 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23217 | return resultobj; |
23218 | fail: | |
23219 | return NULL; | |
23220 | } | |
23221 | ||
23222 | ||
23223 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23224 | PyObject *resultobj; | |
23225 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23226 | int result; | |
23227 | PyObject * obj0 = 0 ; | |
23228 | char *kwnames[] = { | |
23229 | (char *) "self", NULL | |
23230 | }; | |
23231 | ||
23232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23235 | { |
23236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23237 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
23238 | ||
23239 | wxPyEndAllowThreads(__tstate); | |
23240 | if (PyErr_Occurred()) SWIG_fail; | |
23241 | } | |
15afbcd0 | 23242 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23243 | return resultobj; |
23244 | fail: | |
23245 | return NULL; | |
23246 | } | |
23247 | ||
23248 | ||
23249 | static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23250 | PyObject *resultobj; | |
23251 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23252 | int result; | |
23253 | PyObject * obj0 = 0 ; | |
23254 | char *kwnames[] = { | |
23255 | (char *) "self", NULL | |
23256 | }; | |
23257 | ||
23258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23261 | { |
23262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23263 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
23264 | ||
23265 | wxPyEndAllowThreads(__tstate); | |
23266 | if (PyErr_Occurred()) SWIG_fail; | |
23267 | } | |
15afbcd0 | 23268 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23269 | return resultobj; |
23270 | fail: | |
23271 | return NULL; | |
23272 | } | |
23273 | ||
23274 | ||
23275 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23276 | PyObject *resultobj; | |
23277 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23278 | int result; | |
23279 | PyObject * obj0 = 0 ; | |
23280 | char *kwnames[] = { | |
23281 | (char *) "self", NULL | |
23282 | }; | |
23283 | ||
23284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23287 | { |
23288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23289 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
23290 | ||
23291 | wxPyEndAllowThreads(__tstate); | |
23292 | if (PyErr_Occurred()) SWIG_fail; | |
23293 | } | |
15afbcd0 | 23294 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23295 | return resultobj; |
23296 | fail: | |
23297 | return NULL; | |
23298 | } | |
23299 | ||
23300 | ||
23301 | static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23302 | PyObject *resultobj; | |
23303 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23304 | wxDateSpan *arg2 = 0 ; | |
23305 | wxDateSpan *result; | |
23306 | PyObject * obj0 = 0 ; | |
23307 | PyObject * obj1 = 0 ; | |
23308 | char *kwnames[] = { | |
23309 | (char *) "self",(char *) "other", NULL | |
23310 | }; | |
23311 | ||
23312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23315 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23316 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23317 | SWIG_fail; | |
d14a1e28 | 23318 | if (arg2 == NULL) { |
15afbcd0 RD |
23319 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23320 | SWIG_fail; | |
d14a1e28 RD |
23321 | } |
23322 | { | |
23323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23324 | { | |
23325 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
23326 | result = (wxDateSpan *) &_result_ref; | |
23327 | } | |
23328 | ||
23329 | wxPyEndAllowThreads(__tstate); | |
23330 | if (PyErr_Occurred()) SWIG_fail; | |
23331 | } | |
15afbcd0 | 23332 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23333 | return resultobj; |
23334 | fail: | |
23335 | return NULL; | |
23336 | } | |
23337 | ||
23338 | ||
23339 | static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23340 | PyObject *resultobj; | |
23341 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23342 | wxDateSpan *arg2 = 0 ; | |
23343 | wxDateSpan *result; | |
23344 | PyObject * obj0 = 0 ; | |
23345 | PyObject * obj1 = 0 ; | |
23346 | char *kwnames[] = { | |
23347 | (char *) "self",(char *) "other", NULL | |
23348 | }; | |
23349 | ||
23350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23353 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23354 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23355 | SWIG_fail; | |
d14a1e28 | 23356 | if (arg2 == NULL) { |
15afbcd0 RD |
23357 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23358 | SWIG_fail; | |
d14a1e28 RD |
23359 | } |
23360 | { | |
23361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23362 | { | |
23363 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
23364 | result = (wxDateSpan *) &_result_ref; | |
23365 | } | |
23366 | ||
23367 | wxPyEndAllowThreads(__tstate); | |
23368 | if (PyErr_Occurred()) SWIG_fail; | |
23369 | } | |
15afbcd0 | 23370 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23371 | return resultobj; |
23372 | fail: | |
23373 | return NULL; | |
23374 | } | |
23375 | ||
23376 | ||
23377 | static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23378 | PyObject *resultobj; | |
23379 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23380 | wxDateSpan *result; | |
23381 | PyObject * obj0 = 0 ; | |
23382 | char *kwnames[] = { | |
23383 | (char *) "self", NULL | |
23384 | }; | |
23385 | ||
23386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23389 | { |
23390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23391 | { | |
23392 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
23393 | result = (wxDateSpan *) &_result_ref; | |
23394 | } | |
23395 | ||
23396 | wxPyEndAllowThreads(__tstate); | |
23397 | if (PyErr_Occurred()) SWIG_fail; | |
23398 | } | |
15afbcd0 | 23399 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23400 | return resultobj; |
23401 | fail: | |
23402 | return NULL; | |
23403 | } | |
23404 | ||
23405 | ||
23406 | static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23407 | PyObject *resultobj; | |
23408 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23409 | int arg2 ; | |
23410 | wxDateSpan *result; | |
23411 | PyObject * obj0 = 0 ; | |
994141e6 | 23412 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23413 | char *kwnames[] = { |
23414 | (char *) "self",(char *) "factor", NULL | |
23415 | }; | |
23416 | ||
994141e6 | 23417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23420 | arg2 = (int) SWIG_AsInt(obj1); | |
23421 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23422 | { |
23423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23424 | { | |
23425 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
23426 | result = (wxDateSpan *) &_result_ref; | |
23427 | } | |
23428 | ||
23429 | wxPyEndAllowThreads(__tstate); | |
23430 | if (PyErr_Occurred()) SWIG_fail; | |
23431 | } | |
15afbcd0 | 23432 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23433 | return resultobj; |
23434 | fail: | |
23435 | return NULL; | |
23436 | } | |
23437 | ||
23438 | ||
23439 | static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23440 | PyObject *resultobj; | |
23441 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23442 | wxDateSpan *arg2 = 0 ; | |
23443 | wxDateSpan *result; | |
23444 | PyObject * obj0 = 0 ; | |
23445 | PyObject * obj1 = 0 ; | |
23446 | char *kwnames[] = { | |
23447 | (char *) "self",(char *) "other", NULL | |
23448 | }; | |
23449 | ||
23450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23453 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23454 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23455 | SWIG_fail; | |
d14a1e28 | 23456 | if (arg2 == NULL) { |
15afbcd0 RD |
23457 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23458 | SWIG_fail; | |
d14a1e28 RD |
23459 | } |
23460 | { | |
23461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23462 | { | |
23463 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
23464 | result = (wxDateSpan *) &_result_ref; | |
23465 | } | |
23466 | ||
23467 | wxPyEndAllowThreads(__tstate); | |
23468 | if (PyErr_Occurred()) SWIG_fail; | |
23469 | } | |
15afbcd0 | 23470 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23471 | return resultobj; |
23472 | fail: | |
23473 | return NULL; | |
23474 | } | |
23475 | ||
23476 | ||
23477 | static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23478 | PyObject *resultobj; | |
23479 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23480 | wxDateSpan *arg2 = 0 ; | |
23481 | wxDateSpan *result; | |
23482 | PyObject * obj0 = 0 ; | |
23483 | PyObject * obj1 = 0 ; | |
23484 | char *kwnames[] = { | |
23485 | (char *) "self",(char *) "other", NULL | |
23486 | }; | |
23487 | ||
23488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23491 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23492 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23493 | SWIG_fail; | |
d14a1e28 | 23494 | if (arg2 == NULL) { |
15afbcd0 RD |
23495 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23496 | SWIG_fail; | |
d14a1e28 RD |
23497 | } |
23498 | { | |
23499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23500 | { | |
23501 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
23502 | result = (wxDateSpan *) &_result_ref; | |
23503 | } | |
23504 | ||
23505 | wxPyEndAllowThreads(__tstate); | |
23506 | if (PyErr_Occurred()) SWIG_fail; | |
23507 | } | |
15afbcd0 | 23508 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23509 | return resultobj; |
23510 | fail: | |
23511 | return NULL; | |
23512 | } | |
23513 | ||
23514 | ||
23515 | static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23516 | PyObject *resultobj; | |
23517 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23518 | wxDateSpan *result; | |
23519 | PyObject * obj0 = 0 ; | |
23520 | char *kwnames[] = { | |
23521 | (char *) "self", NULL | |
23522 | }; | |
23523 | ||
23524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23527 | { |
23528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23529 | { | |
23530 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
23531 | result = (wxDateSpan *) &_result_ref; | |
23532 | } | |
23533 | ||
23534 | wxPyEndAllowThreads(__tstate); | |
23535 | if (PyErr_Occurred()) SWIG_fail; | |
23536 | } | |
15afbcd0 | 23537 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23538 | return resultobj; |
23539 | fail: | |
23540 | return NULL; | |
23541 | } | |
23542 | ||
23543 | ||
23544 | static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23545 | PyObject *resultobj; | |
23546 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23547 | int arg2 ; | |
23548 | wxDateSpan *result; | |
23549 | PyObject * obj0 = 0 ; | |
994141e6 | 23550 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23551 | char *kwnames[] = { |
23552 | (char *) "self",(char *) "factor", NULL | |
23553 | }; | |
23554 | ||
994141e6 | 23555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23558 | arg2 = (int) SWIG_AsInt(obj1); | |
23559 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23560 | { |
23561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23562 | { | |
23563 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
23564 | result = (wxDateSpan *) &_result_ref; | |
23565 | } | |
23566 | ||
23567 | wxPyEndAllowThreads(__tstate); | |
23568 | if (PyErr_Occurred()) SWIG_fail; | |
23569 | } | |
15afbcd0 | 23570 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); |
d14a1e28 RD |
23571 | return resultobj; |
23572 | fail: | |
23573 | return NULL; | |
23574 | } | |
23575 | ||
23576 | ||
23577 | static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23578 | PyObject *resultobj; | |
23579 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23580 | wxDateSpan *arg2 = 0 ; | |
23581 | wxDateSpan result; | |
23582 | PyObject * obj0 = 0 ; | |
23583 | PyObject * obj1 = 0 ; | |
23584 | char *kwnames[] = { | |
23585 | (char *) "self",(char *) "other", NULL | |
23586 | }; | |
23587 | ||
23588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23591 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23592 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23593 | SWIG_fail; | |
d14a1e28 | 23594 | if (arg2 == NULL) { |
15afbcd0 RD |
23595 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23596 | SWIG_fail; | |
d14a1e28 RD |
23597 | } |
23598 | { | |
23599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23600 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
23601 | ||
23602 | wxPyEndAllowThreads(__tstate); | |
23603 | if (PyErr_Occurred()) SWIG_fail; | |
23604 | } | |
23605 | { | |
23606 | wxDateSpan * resultptr; | |
23607 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23608 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23609 | } |
23610 | return resultobj; | |
23611 | fail: | |
23612 | return NULL; | |
23613 | } | |
23614 | ||
23615 | ||
23616 | static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23617 | PyObject *resultobj; | |
23618 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23619 | wxDateSpan *arg2 = 0 ; | |
23620 | wxDateSpan result; | |
23621 | PyObject * obj0 = 0 ; | |
23622 | PyObject * obj1 = 0 ; | |
23623 | char *kwnames[] = { | |
23624 | (char *) "self",(char *) "other", NULL | |
23625 | }; | |
23626 | ||
23627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23630 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23631 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23632 | SWIG_fail; | |
d14a1e28 | 23633 | if (arg2 == NULL) { |
15afbcd0 RD |
23634 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23635 | SWIG_fail; | |
d14a1e28 RD |
23636 | } |
23637 | { | |
23638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23639 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
23640 | ||
23641 | wxPyEndAllowThreads(__tstate); | |
23642 | if (PyErr_Occurred()) SWIG_fail; | |
23643 | } | |
23644 | { | |
23645 | wxDateSpan * resultptr; | |
23646 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23647 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23648 | } |
23649 | return resultobj; | |
23650 | fail: | |
23651 | return NULL; | |
23652 | } | |
23653 | ||
23654 | ||
23655 | static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23656 | PyObject *resultobj; | |
23657 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23658 | int arg2 ; | |
23659 | wxDateSpan result; | |
23660 | PyObject * obj0 = 0 ; | |
994141e6 | 23661 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23662 | char *kwnames[] = { |
23663 | (char *) "self",(char *) "n", NULL | |
23664 | }; | |
23665 | ||
994141e6 | 23666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23669 | arg2 = (int) SWIG_AsInt(obj1); | |
23670 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23671 | { |
23672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23673 | result = wxDateSpan___mul__(arg1,arg2); | |
23674 | ||
23675 | wxPyEndAllowThreads(__tstate); | |
23676 | if (PyErr_Occurred()) SWIG_fail; | |
23677 | } | |
23678 | { | |
23679 | wxDateSpan * resultptr; | |
23680 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23681 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23682 | } |
23683 | return resultobj; | |
23684 | fail: | |
23685 | return NULL; | |
23686 | } | |
23687 | ||
23688 | ||
23689 | static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23690 | PyObject *resultobj; | |
23691 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23692 | int arg2 ; | |
23693 | wxDateSpan result; | |
23694 | PyObject * obj0 = 0 ; | |
994141e6 | 23695 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23696 | char *kwnames[] = { |
23697 | (char *) "self",(char *) "n", NULL | |
23698 | }; | |
23699 | ||
994141e6 | 23700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23703 | arg2 = (int) SWIG_AsInt(obj1); | |
23704 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23705 | { |
23706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23707 | result = wxDateSpan___rmul__(arg1,arg2); | |
23708 | ||
23709 | wxPyEndAllowThreads(__tstate); | |
23710 | if (PyErr_Occurred()) SWIG_fail; | |
23711 | } | |
23712 | { | |
23713 | wxDateSpan * resultptr; | |
23714 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
15afbcd0 | 23715 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); |
d14a1e28 RD |
23716 | } |
23717 | return resultobj; | |
23718 | fail: | |
23719 | return NULL; | |
23720 | } | |
23721 | ||
23722 | ||
23723 | static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23724 | PyObject *resultobj; | |
23725 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22faec7d | 23726 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; |
d14a1e28 RD |
23727 | bool result; |
23728 | PyObject * obj0 = 0 ; | |
23729 | PyObject * obj1 = 0 ; | |
23730 | char *kwnames[] = { | |
23731 | (char *) "self",(char *) "other", NULL | |
23732 | }; | |
23733 | ||
23734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23737 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23739 | { |
23740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 23741 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2); |
d14a1e28 RD |
23742 | |
23743 | wxPyEndAllowThreads(__tstate); | |
23744 | if (PyErr_Occurred()) SWIG_fail; | |
23745 | } | |
4f89f6a3 RD |
23746 | { |
23747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23748 | } | |
d14a1e28 RD |
23749 | return resultobj; |
23750 | fail: | |
23751 | return NULL; | |
23752 | } | |
23753 | ||
23754 | ||
23755 | static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23756 | PyObject *resultobj; | |
23757 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22faec7d | 23758 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; |
d14a1e28 RD |
23759 | bool result; |
23760 | PyObject * obj0 = 0 ; | |
23761 | PyObject * obj1 = 0 ; | |
23762 | char *kwnames[] = { | |
23763 | (char *) "self",(char *) "other", NULL | |
23764 | }; | |
23765 | ||
23766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, |
23768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23769 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23771 | { |
23772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 23773 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2); |
d14a1e28 RD |
23774 | |
23775 | wxPyEndAllowThreads(__tstate); | |
23776 | if (PyErr_Occurred()) SWIG_fail; | |
23777 | } | |
4f89f6a3 RD |
23778 | { |
23779 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23780 | } | |
d14a1e28 RD |
23781 | return resultobj; |
23782 | fail: | |
23783 | return NULL; | |
23784 | } | |
23785 | ||
23786 | ||
23787 | static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) { | |
23788 | PyObject *obj; | |
23789 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23790 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
23791 | Py_INCREF(obj); | |
23792 | return Py_BuildValue((char *)""); | |
23793 | } | |
23794 | static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23795 | PyObject *resultobj; | |
23796 | long result; | |
23797 | char *kwnames[] = { | |
23798 | NULL | |
23799 | }; | |
23800 | ||
23801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
23802 | { | |
23803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23804 | result = (long)wxGetLocalTime(); | |
23805 | ||
23806 | wxPyEndAllowThreads(__tstate); | |
23807 | if (PyErr_Occurred()) SWIG_fail; | |
23808 | } | |
15afbcd0 | 23809 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23810 | return resultobj; |
23811 | fail: | |
23812 | return NULL; | |
23813 | } | |
23814 | ||
23815 | ||
23816 | static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23817 | PyObject *resultobj; | |
23818 | long result; | |
23819 | char *kwnames[] = { | |
23820 | NULL | |
23821 | }; | |
23822 | ||
23823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
23824 | { | |
23825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23826 | result = (long)wxGetUTCTime(); | |
23827 | ||
23828 | wxPyEndAllowThreads(__tstate); | |
23829 | if (PyErr_Occurred()) SWIG_fail; | |
23830 | } | |
15afbcd0 | 23831 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23832 | return resultobj; |
23833 | fail: | |
23834 | return NULL; | |
23835 | } | |
23836 | ||
23837 | ||
23838 | static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23839 | PyObject *resultobj; | |
23840 | long result; | |
23841 | char *kwnames[] = { | |
23842 | NULL | |
23843 | }; | |
23844 | ||
23845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
23846 | { | |
23847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23848 | result = (long)wxGetCurrentTime(); | |
23849 | ||
23850 | wxPyEndAllowThreads(__tstate); | |
23851 | if (PyErr_Occurred()) SWIG_fail; | |
23852 | } | |
15afbcd0 | 23853 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23854 | return resultobj; |
23855 | fail: | |
23856 | return NULL; | |
23857 | } | |
23858 | ||
23859 | ||
23860 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23861 | PyObject *resultobj; | |
23862 | wxLongLong result; | |
23863 | char *kwnames[] = { | |
23864 | NULL | |
23865 | }; | |
23866 | ||
23867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
23868 | { | |
23869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23870 | result = wxGetLocalTimeMillis(); | |
23871 | ||
23872 | wxPyEndAllowThreads(__tstate); | |
23873 | if (PyErr_Occurred()) SWIG_fail; | |
23874 | } | |
23875 | { | |
23876 | PyObject *hi, *lo, *shifter, *shifted; | |
23877 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
23878 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
23879 | shifter = PyLong_FromLong(32); | |
23880 | shifted = PyNumber_Lshift(hi, shifter); | |
23881 | resultobj = PyNumber_Or(shifted, lo); | |
23882 | Py_DECREF(hi); | |
23883 | Py_DECREF(lo); | |
23884 | Py_DECREF(shifter); | |
23885 | Py_DECREF(shifted); | |
23886 | } | |
23887 | return resultobj; | |
23888 | fail: | |
23889 | return NULL; | |
23890 | } | |
23891 | ||
23892 | ||
98e665d3 RD |
23893 | static int _wrap_DefaultDateTime_set(PyObject *_val) { |
23894 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); | |
23895 | return 1; | |
23896 | } | |
23897 | ||
23898 | ||
23899 | static PyObject *_wrap_DefaultDateTime_get() { | |
23900 | PyObject *pyobj; | |
23901 | ||
15afbcd0 | 23902 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0); |
98e665d3 RD |
23903 | return pyobj; |
23904 | } | |
23905 | ||
23906 | ||
d14a1e28 RD |
23907 | static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { |
23908 | PyObject *resultobj; | |
23909 | int arg1 ; | |
23910 | wxDataFormat *result; | |
994141e6 | 23911 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
23912 | char *kwnames[] = { |
23913 | (char *) "type", NULL | |
23914 | }; | |
23915 | ||
994141e6 | 23916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
23917 | arg1 = (wxDataFormatId) SWIG_AsInt(obj0); |
23918 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23919 | { |
23920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23921 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
23922 | ||
23923 | wxPyEndAllowThreads(__tstate); | |
23924 | if (PyErr_Occurred()) SWIG_fail; | |
23925 | } | |
15afbcd0 | 23926 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
23927 | return resultobj; |
23928 | fail: | |
23929 | return NULL; | |
23930 | } | |
23931 | ||
23932 | ||
23933 | static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23934 | PyObject *resultobj; | |
23935 | wxString *arg1 = 0 ; | |
23936 | wxDataFormat *result; | |
e811c8ce | 23937 | bool temp1 = False ; |
d14a1e28 RD |
23938 | PyObject * obj0 = 0 ; |
23939 | char *kwnames[] = { | |
23940 | (char *) "format", NULL | |
23941 | }; | |
23942 | ||
23943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
23944 | { | |
23945 | arg1 = wxString_in_helper(obj0); | |
23946 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 23947 | temp1 = True; |
d14a1e28 RD |
23948 | } |
23949 | { | |
23950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23951 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
23952 | ||
23953 | wxPyEndAllowThreads(__tstate); | |
23954 | if (PyErr_Occurred()) SWIG_fail; | |
23955 | } | |
15afbcd0 | 23956 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
23957 | { |
23958 | if (temp1) | |
23959 | delete arg1; | |
23960 | } | |
23961 | return resultobj; | |
23962 | fail: | |
23963 | { | |
23964 | if (temp1) | |
23965 | delete arg1; | |
23966 | } | |
23967 | return NULL; | |
23968 | } | |
23969 | ||
23970 | ||
23971 | static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23972 | PyObject *resultobj; | |
23973 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23974 | PyObject * obj0 = 0 ; | |
23975 | char *kwnames[] = { | |
23976 | (char *) "self", NULL | |
23977 | }; | |
23978 | ||
23979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
23981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23982 | { |
23983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23984 | delete arg1; | |
23985 | ||
23986 | wxPyEndAllowThreads(__tstate); | |
23987 | if (PyErr_Occurred()) SWIG_fail; | |
23988 | } | |
23989 | Py_INCREF(Py_None); resultobj = Py_None; | |
23990 | return resultobj; | |
23991 | fail: | |
23992 | return NULL; | |
23993 | } | |
23994 | ||
23995 | ||
23996 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) { | |
23997 | PyObject *resultobj; | |
23998 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23999 | int arg2 ; | |
24000 | bool result; | |
24001 | PyObject * obj0 = 0 ; | |
994141e6 | 24002 | PyObject * obj1 = 0 ; |
d14a1e28 | 24003 | |
994141e6 | 24004 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24007 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
24008 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24009 | { |
24010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db914595 | 24011 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); |
d14a1e28 RD |
24012 | |
24013 | wxPyEndAllowThreads(__tstate); | |
24014 | if (PyErr_Occurred()) SWIG_fail; | |
24015 | } | |
4f89f6a3 RD |
24016 | { |
24017 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24018 | } | |
d14a1e28 RD |
24019 | return resultobj; |
24020 | fail: | |
24021 | return NULL; | |
24022 | } | |
24023 | ||
24024 | ||
24025 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) { | |
24026 | PyObject *resultobj; | |
24027 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24028 | int arg2 ; | |
24029 | bool result; | |
24030 | PyObject * obj0 = 0 ; | |
994141e6 | 24031 | PyObject * obj1 = 0 ; |
d14a1e28 | 24032 | |
994141e6 | 24033 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24036 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
24037 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24038 | { |
24039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db914595 | 24040 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); |
d14a1e28 RD |
24041 | |
24042 | wxPyEndAllowThreads(__tstate); | |
24043 | if (PyErr_Occurred()) SWIG_fail; | |
24044 | } | |
4f89f6a3 RD |
24045 | { |
24046 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24047 | } | |
d14a1e28 RD |
24048 | return resultobj; |
24049 | fail: | |
24050 | return NULL; | |
24051 | } | |
24052 | ||
24053 | ||
24054 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) { | |
24055 | PyObject *resultobj; | |
24056 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24057 | wxDataFormat *arg2 = 0 ; | |
24058 | bool result; | |
24059 | PyObject * obj0 = 0 ; | |
24060 | PyObject * obj1 = 0 ; | |
24061 | ||
24062 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24065 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24066 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24067 | SWIG_fail; | |
d14a1e28 | 24068 | if (arg2 == NULL) { |
15afbcd0 RD |
24069 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24070 | SWIG_fail; | |
d14a1e28 RD |
24071 | } |
24072 | { | |
24073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24074 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
24075 | ||
24076 | wxPyEndAllowThreads(__tstate); | |
24077 | if (PyErr_Occurred()) SWIG_fail; | |
24078 | } | |
4f89f6a3 RD |
24079 | { |
24080 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24081 | } | |
d14a1e28 RD |
24082 | return resultobj; |
24083 | fail: | |
24084 | return NULL; | |
24085 | } | |
24086 | ||
24087 | ||
24088 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
24089 | int argc; | |
24090 | PyObject *argv[3]; | |
24091 | int ii; | |
24092 | ||
24093 | argc = PyObject_Length(args); | |
24094 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24095 | argv[ii] = PyTuple_GetItem(args,ii); | |
24096 | } | |
24097 | if (argc == 2) { | |
24098 | int _v; | |
24099 | { | |
24100 | void *ptr; | |
15afbcd0 | 24101 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24102 | _v = 0; |
24103 | PyErr_Clear(); | |
24104 | } else { | |
24105 | _v = 1; | |
24106 | } | |
24107 | } | |
24108 | if (_v) { | |
24109 | { | |
24110 | void *ptr; | |
15afbcd0 | 24111 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24112 | _v = 0; |
24113 | PyErr_Clear(); | |
24114 | } else { | |
24115 | _v = 1; | |
24116 | } | |
24117 | } | |
24118 | if (_v) { | |
24119 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
24120 | } | |
24121 | } | |
24122 | } | |
24123 | if (argc == 2) { | |
24124 | int _v; | |
24125 | { | |
24126 | void *ptr; | |
15afbcd0 | 24127 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24128 | _v = 0; |
24129 | PyErr_Clear(); | |
24130 | } else { | |
24131 | _v = 1; | |
24132 | } | |
24133 | } | |
24134 | if (_v) { | |
15afbcd0 | 24135 | _v = SWIG_CheckInt(argv[1]); |
d14a1e28 RD |
24136 | if (_v) { |
24137 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
24138 | } | |
24139 | } | |
24140 | } | |
24141 | ||
24142 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
24143 | return NULL; | |
24144 | } | |
24145 | ||
24146 | ||
24147 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) { | |
24148 | PyObject *resultobj; | |
24149 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24150 | wxDataFormat *arg2 = 0 ; | |
24151 | bool result; | |
24152 | PyObject * obj0 = 0 ; | |
24153 | PyObject * obj1 = 0 ; | |
24154 | ||
24155 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24158 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24159 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24160 | SWIG_fail; | |
d14a1e28 | 24161 | if (arg2 == NULL) { |
15afbcd0 RD |
24162 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24163 | SWIG_fail; | |
d14a1e28 RD |
24164 | } |
24165 | { | |
24166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24167 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
24168 | ||
24169 | wxPyEndAllowThreads(__tstate); | |
24170 | if (PyErr_Occurred()) SWIG_fail; | |
24171 | } | |
4f89f6a3 RD |
24172 | { |
24173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24174 | } | |
d14a1e28 RD |
24175 | return resultobj; |
24176 | fail: | |
24177 | return NULL; | |
24178 | } | |
24179 | ||
24180 | ||
24181 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
24182 | int argc; | |
24183 | PyObject *argv[3]; | |
24184 | int ii; | |
24185 | ||
24186 | argc = PyObject_Length(args); | |
24187 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24188 | argv[ii] = PyTuple_GetItem(args,ii); | |
24189 | } | |
24190 | if (argc == 2) { | |
24191 | int _v; | |
24192 | { | |
24193 | void *ptr; | |
15afbcd0 | 24194 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24195 | _v = 0; |
24196 | PyErr_Clear(); | |
24197 | } else { | |
24198 | _v = 1; | |
24199 | } | |
24200 | } | |
24201 | if (_v) { | |
24202 | { | |
24203 | void *ptr; | |
15afbcd0 | 24204 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24205 | _v = 0; |
24206 | PyErr_Clear(); | |
24207 | } else { | |
24208 | _v = 1; | |
24209 | } | |
24210 | } | |
24211 | if (_v) { | |
24212 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
24213 | } | |
24214 | } | |
24215 | } | |
24216 | if (argc == 2) { | |
24217 | int _v; | |
24218 | { | |
24219 | void *ptr; | |
15afbcd0 | 24220 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { |
d14a1e28 RD |
24221 | _v = 0; |
24222 | PyErr_Clear(); | |
24223 | } else { | |
24224 | _v = 1; | |
24225 | } | |
24226 | } | |
24227 | if (_v) { | |
15afbcd0 | 24228 | _v = SWIG_CheckInt(argv[1]); |
d14a1e28 RD |
24229 | if (_v) { |
24230 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
24231 | } | |
24232 | } | |
24233 | } | |
24234 | ||
24235 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
24236 | return NULL; | |
24237 | } | |
24238 | ||
24239 | ||
24240 | static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24241 | PyObject *resultobj; | |
24242 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24243 | int arg2 ; | |
24244 | PyObject * obj0 = 0 ; | |
994141e6 | 24245 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24246 | char *kwnames[] = { |
24247 | (char *) "self",(char *) "format", NULL | |
24248 | }; | |
24249 | ||
994141e6 | 24250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24253 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
24254 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24255 | { |
24256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24257 | (arg1)->SetType((wxDataFormatId )arg2); | |
24258 | ||
24259 | wxPyEndAllowThreads(__tstate); | |
24260 | if (PyErr_Occurred()) SWIG_fail; | |
24261 | } | |
24262 | Py_INCREF(Py_None); resultobj = Py_None; | |
24263 | return resultobj; | |
24264 | fail: | |
24265 | return NULL; | |
24266 | } | |
24267 | ||
24268 | ||
24269 | static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24270 | PyObject *resultobj; | |
24271 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24272 | int result; | |
24273 | PyObject * obj0 = 0 ; | |
24274 | char *kwnames[] = { | |
24275 | (char *) "self", NULL | |
24276 | }; | |
24277 | ||
24278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24281 | { |
24282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24283 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
24284 | ||
24285 | wxPyEndAllowThreads(__tstate); | |
24286 | if (PyErr_Occurred()) SWIG_fail; | |
24287 | } | |
15afbcd0 | 24288 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
24289 | return resultobj; |
24290 | fail: | |
24291 | return NULL; | |
24292 | } | |
24293 | ||
24294 | ||
24295 | static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24296 | PyObject *resultobj; | |
24297 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24298 | wxString result; | |
24299 | PyObject * obj0 = 0 ; | |
24300 | char *kwnames[] = { | |
24301 | (char *) "self", NULL | |
24302 | }; | |
24303 | ||
24304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24307 | { |
24308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24309 | result = ((wxDataFormat const *)arg1)->GetId(); | |
24310 | ||
24311 | wxPyEndAllowThreads(__tstate); | |
24312 | if (PyErr_Occurred()) SWIG_fail; | |
24313 | } | |
24314 | { | |
24315 | #if wxUSE_UNICODE | |
24316 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24317 | #else | |
24318 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24319 | #endif | |
24320 | } | |
24321 | return resultobj; | |
24322 | fail: | |
24323 | return NULL; | |
24324 | } | |
24325 | ||
24326 | ||
24327 | static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24328 | PyObject *resultobj; | |
24329 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24330 | wxString *arg2 = 0 ; | |
e811c8ce | 24331 | bool temp2 = False ; |
d14a1e28 RD |
24332 | PyObject * obj0 = 0 ; |
24333 | PyObject * obj1 = 0 ; | |
24334 | char *kwnames[] = { | |
24335 | (char *) "self",(char *) "format", NULL | |
24336 | }; | |
24337 | ||
24338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24341 | { |
24342 | arg2 = wxString_in_helper(obj1); | |
24343 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24344 | temp2 = True; |
d14a1e28 RD |
24345 | } |
24346 | { | |
24347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24348 | (arg1)->SetId((wxString const &)*arg2); | |
24349 | ||
24350 | wxPyEndAllowThreads(__tstate); | |
24351 | if (PyErr_Occurred()) SWIG_fail; | |
24352 | } | |
24353 | Py_INCREF(Py_None); resultobj = Py_None; | |
24354 | { | |
24355 | if (temp2) | |
24356 | delete arg2; | |
24357 | } | |
24358 | return resultobj; | |
24359 | fail: | |
24360 | { | |
24361 | if (temp2) | |
24362 | delete arg2; | |
24363 | } | |
24364 | return NULL; | |
24365 | } | |
24366 | ||
24367 | ||
24368 | static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) { | |
24369 | PyObject *obj; | |
24370 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24371 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
24372 | Py_INCREF(obj); | |
24373 | return Py_BuildValue((char *)""); | |
24374 | } | |
24375 | static int _wrap_FormatInvalid_set(PyObject *_val) { | |
24376 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); | |
24377 | return 1; | |
24378 | } | |
24379 | ||
24380 | ||
24381 | static PyObject *_wrap_FormatInvalid_get() { | |
24382 | PyObject *pyobj; | |
24383 | ||
15afbcd0 | 24384 | pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0); |
d14a1e28 RD |
24385 | return pyobj; |
24386 | } | |
24387 | ||
24388 | ||
24389 | static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24390 | PyObject *resultobj; | |
24391 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24392 | PyObject * obj0 = 0 ; | |
24393 | char *kwnames[] = { | |
24394 | (char *) "self", NULL | |
24395 | }; | |
24396 | ||
24397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24400 | { |
24401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24402 | delete arg1; | |
24403 | ||
24404 | wxPyEndAllowThreads(__tstate); | |
24405 | if (PyErr_Occurred()) SWIG_fail; | |
24406 | } | |
24407 | Py_INCREF(Py_None); resultobj = Py_None; | |
24408 | return resultobj; | |
24409 | fail: | |
24410 | return NULL; | |
24411 | } | |
24412 | ||
24413 | ||
24414 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24415 | PyObject *resultobj; | |
24416 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24417 | int arg2 = (int) wxDataObject::Get ; | |
24418 | SwigValueWrapper< wxDataFormat > result; | |
24419 | PyObject * obj0 = 0 ; | |
994141e6 | 24420 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24421 | char *kwnames[] = { |
24422 | (char *) "self",(char *) "dir", NULL | |
24423 | }; | |
24424 | ||
994141e6 | 24425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 24428 | if (obj1) { |
15afbcd0 RD |
24429 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); |
24430 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24431 | } |
d14a1e28 RD |
24432 | { |
24433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24434 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
24435 | ||
24436 | wxPyEndAllowThreads(__tstate); | |
24437 | if (PyErr_Occurred()) SWIG_fail; | |
24438 | } | |
24439 | { | |
24440 | wxDataFormat * resultptr; | |
24441 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
15afbcd0 | 24442 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1); |
d14a1e28 RD |
24443 | } |
24444 | return resultobj; | |
24445 | fail: | |
24446 | return NULL; | |
24447 | } | |
24448 | ||
24449 | ||
24450 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24451 | PyObject *resultobj; | |
24452 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24453 | int arg2 = (int) wxDataObject::Get ; | |
24454 | size_t result; | |
24455 | PyObject * obj0 = 0 ; | |
994141e6 | 24456 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24457 | char *kwnames[] = { |
24458 | (char *) "self",(char *) "dir", NULL | |
24459 | }; | |
24460 | ||
994141e6 | 24461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 24464 | if (obj1) { |
15afbcd0 RD |
24465 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); |
24466 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24467 | } |
d14a1e28 RD |
24468 | { |
24469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24470 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
24471 | ||
24472 | wxPyEndAllowThreads(__tstate); | |
24473 | if (PyErr_Occurred()) SWIG_fail; | |
24474 | } | |
15afbcd0 | 24475 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24476 | return resultobj; |
24477 | fail: | |
24478 | return NULL; | |
24479 | } | |
24480 | ||
24481 | ||
24482 | static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24483 | PyObject *resultobj; | |
24484 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24485 | wxDataFormat *arg2 = 0 ; | |
24486 | int arg3 = (int) wxDataObject::Get ; | |
24487 | bool result; | |
24488 | PyObject * obj0 = 0 ; | |
24489 | PyObject * obj1 = 0 ; | |
994141e6 | 24490 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24491 | char *kwnames[] = { |
24492 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
24493 | }; | |
24494 | ||
994141e6 | 24495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
24496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24498 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24499 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24500 | SWIG_fail; | |
d14a1e28 | 24501 | if (arg2 == NULL) { |
15afbcd0 RD |
24502 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24503 | SWIG_fail; | |
d14a1e28 | 24504 | } |
994141e6 | 24505 | if (obj2) { |
15afbcd0 RD |
24506 | arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2); |
24507 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24508 | } |
d14a1e28 RD |
24509 | { |
24510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24511 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
24512 | ||
24513 | wxPyEndAllowThreads(__tstate); | |
24514 | if (PyErr_Occurred()) SWIG_fail; | |
24515 | } | |
4f89f6a3 RD |
24516 | { |
24517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24518 | } | |
d14a1e28 RD |
24519 | return resultobj; |
24520 | fail: | |
24521 | return NULL; | |
24522 | } | |
24523 | ||
24524 | ||
24525 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24526 | PyObject *resultobj; | |
24527 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24528 | wxDataFormat *arg2 = 0 ; | |
24529 | size_t result; | |
24530 | PyObject * obj0 = 0 ; | |
24531 | PyObject * obj1 = 0 ; | |
24532 | char *kwnames[] = { | |
24533 | (char *) "self",(char *) "format", NULL | |
24534 | }; | |
24535 | ||
24536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24539 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24540 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24541 | SWIG_fail; | |
d14a1e28 | 24542 | if (arg2 == NULL) { |
15afbcd0 RD |
24543 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24544 | SWIG_fail; | |
d14a1e28 RD |
24545 | } |
24546 | { | |
24547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24548 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
24549 | ||
24550 | wxPyEndAllowThreads(__tstate); | |
24551 | if (PyErr_Occurred()) SWIG_fail; | |
24552 | } | |
15afbcd0 | 24553 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24554 | return resultobj; |
24555 | fail: | |
24556 | return NULL; | |
24557 | } | |
24558 | ||
24559 | ||
24560 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24561 | PyObject *resultobj; | |
24562 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
1a10c483 RD |
24563 | int arg2 = (int) wxDataObject::Get ; |
24564 | PyObject *result; | |
d14a1e28 RD |
24565 | PyObject * obj0 = 0 ; |
24566 | PyObject * obj1 = 0 ; | |
24567 | char *kwnames[] = { | |
1a10c483 | 24568 | (char *) "self",(char *) "dir", NULL |
d14a1e28 RD |
24569 | }; |
24570 | ||
1a10c483 | 24571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1a10c483 RD |
24574 | if (obj1) { |
24575 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); | |
15afbcd0 | 24576 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 24577 | } |
d14a1e28 RD |
24578 | { |
24579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1a10c483 | 24580 | result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2); |
d14a1e28 RD |
24581 | |
24582 | wxPyEndAllowThreads(__tstate); | |
24583 | if (PyErr_Occurred()) SWIG_fail; | |
24584 | } | |
1a10c483 | 24585 | resultobj = result; |
d14a1e28 RD |
24586 | return resultobj; |
24587 | fail: | |
24588 | return NULL; | |
24589 | } | |
24590 | ||
24591 | ||
24592 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24593 | PyObject *resultobj; | |
24594 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24595 | wxDataFormat *arg2 = 0 ; | |
1a10c483 | 24596 | PyObject *result; |
d14a1e28 RD |
24597 | PyObject * obj0 = 0 ; |
24598 | PyObject * obj1 = 0 ; | |
d14a1e28 | 24599 | char *kwnames[] = { |
1a10c483 | 24600 | (char *) "self",(char *) "format", NULL |
d14a1e28 RD |
24601 | }; |
24602 | ||
1a10c483 | 24603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24606 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24607 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24608 | SWIG_fail; | |
d14a1e28 | 24609 | if (arg2 == NULL) { |
15afbcd0 RD |
24610 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24611 | SWIG_fail; | |
d14a1e28 | 24612 | } |
d14a1e28 RD |
24613 | { |
24614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1a10c483 | 24615 | result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2); |
d14a1e28 RD |
24616 | |
24617 | wxPyEndAllowThreads(__tstate); | |
24618 | if (PyErr_Occurred()) SWIG_fail; | |
24619 | } | |
1a10c483 | 24620 | resultobj = result; |
d14a1e28 RD |
24621 | return resultobj; |
24622 | fail: | |
24623 | return NULL; | |
24624 | } | |
24625 | ||
24626 | ||
24627 | static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24628 | PyObject *resultobj; | |
24629 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24630 | wxDataFormat *arg2 = 0 ; | |
1a10c483 | 24631 | PyObject *arg3 = (PyObject *) 0 ; |
d14a1e28 RD |
24632 | bool result; |
24633 | PyObject * obj0 = 0 ; | |
24634 | PyObject * obj1 = 0 ; | |
24635 | PyObject * obj2 = 0 ; | |
d14a1e28 | 24636 | char *kwnames[] = { |
1a10c483 | 24637 | (char *) "self",(char *) "format",(char *) "data", NULL |
d14a1e28 RD |
24638 | }; |
24639 | ||
1a10c483 | 24640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
24641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24643 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24644 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24645 | SWIG_fail; | |
d14a1e28 | 24646 | if (arg2 == NULL) { |
15afbcd0 RD |
24647 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24648 | SWIG_fail; | |
a41e16b6 | 24649 | } |
1a10c483 | 24650 | arg3 = obj2; |
d14a1e28 RD |
24651 | { |
24652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1a10c483 | 24653 | result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3); |
d14a1e28 RD |
24654 | |
24655 | wxPyEndAllowThreads(__tstate); | |
24656 | if (PyErr_Occurred()) SWIG_fail; | |
24657 | } | |
4f89f6a3 RD |
24658 | { |
24659 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24660 | } | |
d14a1e28 RD |
24661 | return resultobj; |
24662 | fail: | |
24663 | return NULL; | |
24664 | } | |
24665 | ||
24666 | ||
24667 | static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) { | |
24668 | PyObject *obj; | |
24669 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24670 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
24671 | Py_INCREF(obj); | |
24672 | return Py_BuildValue((char *)""); | |
24673 | } | |
24674 | static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24675 | PyObject *resultobj; | |
24676 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24677 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24678 | wxDataObjectSimple *result; | |
24679 | PyObject * obj0 = 0 ; | |
24680 | char *kwnames[] = { | |
24681 | (char *) "format", NULL | |
24682 | }; | |
24683 | ||
24684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
24685 | if (obj0) { | |
15afbcd0 RD |
24686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24687 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24688 | SWIG_fail; | |
d14a1e28 | 24689 | if (arg1 == NULL) { |
15afbcd0 RD |
24690 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24691 | SWIG_fail; | |
d14a1e28 RD |
24692 | } |
24693 | } | |
24694 | { | |
24695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24696 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
24697 | ||
24698 | wxPyEndAllowThreads(__tstate); | |
24699 | if (PyErr_Occurred()) SWIG_fail; | |
24700 | } | |
15afbcd0 | 24701 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1); |
d14a1e28 RD |
24702 | return resultobj; |
24703 | fail: | |
24704 | return NULL; | |
24705 | } | |
24706 | ||
24707 | ||
24708 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24709 | PyObject *resultobj; | |
24710 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24711 | wxDataFormat *result; | |
24712 | PyObject * obj0 = 0 ; | |
24713 | char *kwnames[] = { | |
24714 | (char *) "self", NULL | |
24715 | }; | |
24716 | ||
24717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, |
24719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24720 | { |
24721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24722 | { | |
24723 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
24724 | result = (wxDataFormat *) &_result_ref; | |
24725 | } | |
24726 | ||
24727 | wxPyEndAllowThreads(__tstate); | |
24728 | if (PyErr_Occurred()) SWIG_fail; | |
24729 | } | |
15afbcd0 | 24730 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0); |
d14a1e28 RD |
24731 | return resultobj; |
24732 | fail: | |
24733 | return NULL; | |
24734 | } | |
24735 | ||
24736 | ||
24737 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24738 | PyObject *resultobj; | |
24739 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24740 | wxDataFormat *arg2 = 0 ; | |
24741 | PyObject * obj0 = 0 ; | |
24742 | PyObject * obj1 = 0 ; | |
24743 | char *kwnames[] = { | |
24744 | (char *) "self",(char *) "format", NULL | |
24745 | }; | |
24746 | ||
24747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, |
24749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24750 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24751 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24752 | SWIG_fail; | |
d14a1e28 | 24753 | if (arg2 == NULL) { |
15afbcd0 RD |
24754 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24755 | SWIG_fail; | |
d14a1e28 RD |
24756 | } |
24757 | { | |
24758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24759 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
24760 | ||
24761 | wxPyEndAllowThreads(__tstate); | |
24762 | if (PyErr_Occurred()) SWIG_fail; | |
24763 | } | |
24764 | Py_INCREF(Py_None); resultobj = Py_None; | |
24765 | return resultobj; | |
24766 | fail: | |
24767 | return NULL; | |
24768 | } | |
24769 | ||
24770 | ||
1a10c483 RD |
24771 | static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
24772 | PyObject *resultobj; | |
24773 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24774 | size_t result; | |
24775 | PyObject * obj0 = 0 ; | |
24776 | char *kwnames[] = { | |
24777 | (char *) "self", NULL | |
24778 | }; | |
24779 | ||
24780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail; | |
24781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24783 | { | |
24784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24785 | result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize(); | |
24786 | ||
24787 | wxPyEndAllowThreads(__tstate); | |
24788 | if (PyErr_Occurred()) SWIG_fail; | |
24789 | } | |
24790 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
24791 | return resultobj; | |
24792 | fail: | |
24793 | return NULL; | |
24794 | } | |
24795 | ||
24796 | ||
24797 | static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24798 | PyObject *resultobj; | |
24799 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24800 | PyObject *result; | |
24801 | PyObject * obj0 = 0 ; | |
24802 | char *kwnames[] = { | |
24803 | (char *) "self", NULL | |
24804 | }; | |
24805 | ||
24806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail; | |
24807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24809 | { | |
24810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24811 | result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1); | |
24812 | ||
24813 | wxPyEndAllowThreads(__tstate); | |
24814 | if (PyErr_Occurred()) SWIG_fail; | |
24815 | } | |
24816 | resultobj = result; | |
24817 | return resultobj; | |
24818 | fail: | |
24819 | return NULL; | |
24820 | } | |
24821 | ||
24822 | ||
24823 | static PyObject *_wrap_DataObjectSimple_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24824 | PyObject *resultobj; | |
24825 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24826 | PyObject *arg2 = (PyObject *) 0 ; | |
24827 | bool result; | |
24828 | PyObject * obj0 = 0 ; | |
24829 | PyObject * obj1 = 0 ; | |
24830 | char *kwnames[] = { | |
24831 | (char *) "self",(char *) "data", NULL | |
24832 | }; | |
24833 | ||
24834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail; | |
24835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24837 | arg2 = obj1; | |
24838 | { | |
24839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24840 | result = (bool)wxDataObjectSimple_SetData(arg1,arg2); | |
24841 | ||
24842 | wxPyEndAllowThreads(__tstate); | |
24843 | if (PyErr_Occurred()) SWIG_fail; | |
24844 | } | |
24845 | { | |
24846 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24847 | } | |
24848 | return resultobj; | |
24849 | fail: | |
24850 | return NULL; | |
24851 | } | |
24852 | ||
24853 | ||
d14a1e28 RD |
24854 | static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) { |
24855 | PyObject *obj; | |
24856 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24857 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
24858 | Py_INCREF(obj); | |
24859 | return Py_BuildValue((char *)""); | |
24860 | } | |
24861 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24862 | PyObject *resultobj; | |
24863 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24864 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24865 | wxPyDataObjectSimple *result; | |
24866 | PyObject * obj0 = 0 ; | |
24867 | char *kwnames[] = { | |
24868 | (char *) "format", NULL | |
24869 | }; | |
24870 | ||
24871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
24872 | if (obj0) { | |
15afbcd0 RD |
24873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
24874 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24875 | SWIG_fail; | |
d14a1e28 | 24876 | if (arg1 == NULL) { |
15afbcd0 RD |
24877 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24878 | SWIG_fail; | |
d14a1e28 RD |
24879 | } |
24880 | } | |
24881 | { | |
24882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24883 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
24884 | ||
24885 | wxPyEndAllowThreads(__tstate); | |
24886 | if (PyErr_Occurred()) SWIG_fail; | |
24887 | } | |
15afbcd0 | 24888 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1); |
d14a1e28 RD |
24889 | return resultobj; |
24890 | fail: | |
24891 | return NULL; | |
24892 | } | |
24893 | ||
24894 | ||
24895 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24896 | PyObject *resultobj; | |
24897 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
24898 | PyObject *arg2 = (PyObject *) 0 ; | |
24899 | PyObject *arg3 = (PyObject *) 0 ; | |
24900 | PyObject * obj0 = 0 ; | |
24901 | PyObject * obj1 = 0 ; | |
24902 | PyObject * obj2 = 0 ; | |
24903 | char *kwnames[] = { | |
24904 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24905 | }; | |
24906 | ||
24907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
24908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple, |
24909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24910 | arg2 = obj1; |
24911 | arg3 = obj2; | |
24912 | { | |
24913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24914 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24915 | ||
24916 | wxPyEndAllowThreads(__tstate); | |
24917 | if (PyErr_Occurred()) SWIG_fail; | |
24918 | } | |
24919 | Py_INCREF(Py_None); resultobj = Py_None; | |
24920 | return resultobj; | |
24921 | fail: | |
24922 | return NULL; | |
24923 | } | |
24924 | ||
24925 | ||
24926 | static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
24927 | PyObject *obj; | |
24928 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24929 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
24930 | Py_INCREF(obj); | |
24931 | return Py_BuildValue((char *)""); | |
24932 | } | |
24933 | static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24934 | PyObject *resultobj; | |
24935 | wxDataObjectComposite *result; | |
24936 | char *kwnames[] = { | |
24937 | NULL | |
24938 | }; | |
24939 | ||
24940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
24941 | { | |
24942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24943 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
24944 | ||
24945 | wxPyEndAllowThreads(__tstate); | |
24946 | if (PyErr_Occurred()) SWIG_fail; | |
24947 | } | |
15afbcd0 | 24948 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1); |
d14a1e28 RD |
24949 | return resultobj; |
24950 | fail: | |
24951 | return NULL; | |
24952 | } | |
24953 | ||
24954 | ||
24955 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24956 | PyObject *resultobj; | |
24957 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
24958 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
1a10c483 | 24959 | bool arg3 = (bool) False ; |
d14a1e28 RD |
24960 | PyObject * obj0 = 0 ; |
24961 | PyObject * obj1 = 0 ; | |
994141e6 | 24962 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24963 | char *kwnames[] = { |
24964 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
24965 | }; | |
24966 | ||
994141e6 | 24967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
24968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite, |
24969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24970 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple, | |
24971 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
994141e6 | 24972 | if (obj2) { |
1a10c483 | 24973 | arg3 = (bool) SWIG_AsBool(obj2); |
15afbcd0 | 24974 | if (PyErr_Occurred()) SWIG_fail; |
994141e6 | 24975 | } |
d14a1e28 RD |
24976 | { |
24977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24978 | (arg1)->Add(arg2,arg3); | |
24979 | ||
24980 | wxPyEndAllowThreads(__tstate); | |
24981 | if (PyErr_Occurred()) SWIG_fail; | |
24982 | } | |
24983 | Py_INCREF(Py_None); resultobj = Py_None; | |
24984 | return resultobj; | |
24985 | fail: | |
24986 | return NULL; | |
24987 | } | |
24988 | ||
24989 | ||
24990 | static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) { | |
24991 | PyObject *obj; | |
24992 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24993 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
24994 | Py_INCREF(obj); | |
24995 | return Py_BuildValue((char *)""); | |
24996 | } | |
24997 | static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24998 | PyObject *resultobj; | |
24999 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25000 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25001 | wxTextDataObject *result; | |
e811c8ce | 25002 | bool temp1 = False ; |
d14a1e28 RD |
25003 | PyObject * obj0 = 0 ; |
25004 | char *kwnames[] = { | |
25005 | (char *) "text", NULL | |
25006 | }; | |
25007 | ||
25008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
25009 | if (obj0) { | |
25010 | { | |
25011 | arg1 = wxString_in_helper(obj0); | |
25012 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 25013 | temp1 = True; |
d14a1e28 RD |
25014 | } |
25015 | } | |
25016 | { | |
25017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25018 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
25019 | ||
25020 | wxPyEndAllowThreads(__tstate); | |
25021 | if (PyErr_Occurred()) SWIG_fail; | |
25022 | } | |
15afbcd0 | 25023 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1); |
d14a1e28 RD |
25024 | { |
25025 | if (temp1) | |
25026 | delete arg1; | |
25027 | } | |
25028 | return resultobj; | |
25029 | fail: | |
25030 | { | |
25031 | if (temp1) | |
25032 | delete arg1; | |
25033 | } | |
25034 | return NULL; | |
25035 | } | |
25036 | ||
25037 | ||
25038 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25039 | PyObject *resultobj; | |
25040 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25041 | size_t result; | |
25042 | PyObject * obj0 = 0 ; | |
25043 | char *kwnames[] = { | |
25044 | (char *) "self", NULL | |
25045 | }; | |
25046 | ||
25047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, |
25049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25050 | { |
25051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25052 | result = (size_t)(arg1)->GetTextLength(); | |
25053 | ||
25054 | wxPyEndAllowThreads(__tstate); | |
25055 | if (PyErr_Occurred()) SWIG_fail; | |
25056 | } | |
15afbcd0 | 25057 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
25058 | return resultobj; |
25059 | fail: | |
25060 | return NULL; | |
25061 | } | |
25062 | ||
25063 | ||
25064 | static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25065 | PyObject *resultobj; | |
25066 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25067 | wxString result; | |
25068 | PyObject * obj0 = 0 ; | |
25069 | char *kwnames[] = { | |
25070 | (char *) "self", NULL | |
25071 | }; | |
25072 | ||
25073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, |
25075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25076 | { |
25077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25078 | result = (arg1)->GetText(); | |
25079 | ||
25080 | wxPyEndAllowThreads(__tstate); | |
25081 | if (PyErr_Occurred()) SWIG_fail; | |
25082 | } | |
25083 | { | |
25084 | #if wxUSE_UNICODE | |
25085 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25086 | #else | |
25087 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25088 | #endif | |
25089 | } | |
25090 | return resultobj; | |
25091 | fail: | |
25092 | return NULL; | |
25093 | } | |
25094 | ||
25095 | ||
25096 | static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25097 | PyObject *resultobj; | |
25098 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25099 | wxString *arg2 = 0 ; | |
e811c8ce | 25100 | bool temp2 = False ; |
d14a1e28 RD |
25101 | PyObject * obj0 = 0 ; |
25102 | PyObject * obj1 = 0 ; | |
25103 | char *kwnames[] = { | |
25104 | (char *) "self",(char *) "text", NULL | |
25105 | }; | |
25106 | ||
25107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, |
25109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25110 | { |
25111 | arg2 = wxString_in_helper(obj1); | |
25112 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 25113 | temp2 = True; |
d14a1e28 RD |
25114 | } |
25115 | { | |
25116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25117 | (arg1)->SetText((wxString const &)*arg2); | |
25118 | ||
25119 | wxPyEndAllowThreads(__tstate); | |
25120 | if (PyErr_Occurred()) SWIG_fail; | |
25121 | } | |
25122 | Py_INCREF(Py_None); resultobj = Py_None; | |
25123 | { | |
25124 | if (temp2) | |
25125 | delete arg2; | |
25126 | } | |
25127 | return resultobj; | |
25128 | fail: | |
25129 | { | |
25130 | if (temp2) | |
25131 | delete arg2; | |
25132 | } | |
25133 | return NULL; | |
25134 | } | |
25135 | ||
25136 | ||
25137 | static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) { | |
25138 | PyObject *obj; | |
25139 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25140 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
25141 | Py_INCREF(obj); | |
25142 | return Py_BuildValue((char *)""); | |
25143 | } | |
25144 | static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25145 | PyObject *resultobj; | |
25146 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25147 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25148 | wxPyTextDataObject *result; | |
e811c8ce | 25149 | bool temp1 = False ; |
d14a1e28 RD |
25150 | PyObject * obj0 = 0 ; |
25151 | char *kwnames[] = { | |
25152 | (char *) "text", NULL | |
25153 | }; | |
25154 | ||
25155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
25156 | if (obj0) { | |
25157 | { | |
25158 | arg1 = wxString_in_helper(obj0); | |
25159 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 25160 | temp1 = True; |
d14a1e28 RD |
25161 | } |
25162 | } | |
25163 | { | |
25164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25165 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
25166 | ||
25167 | wxPyEndAllowThreads(__tstate); | |
25168 | if (PyErr_Occurred()) SWIG_fail; | |
25169 | } | |
15afbcd0 | 25170 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1); |
d14a1e28 RD |
25171 | { |
25172 | if (temp1) | |
25173 | delete arg1; | |
25174 | } | |
25175 | return resultobj; | |
25176 | fail: | |
25177 | { | |
25178 | if (temp1) | |
25179 | delete arg1; | |
25180 | } | |
25181 | return NULL; | |
25182 | } | |
25183 | ||
25184 | ||
25185 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25186 | PyObject *resultobj; | |
25187 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
25188 | PyObject *arg2 = (PyObject *) 0 ; | |
25189 | PyObject *arg3 = (PyObject *) 0 ; | |
25190 | PyObject * obj0 = 0 ; | |
25191 | PyObject * obj1 = 0 ; | |
25192 | PyObject * obj2 = 0 ; | |
25193 | char *kwnames[] = { | |
25194 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25195 | }; | |
25196 | ||
25197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject, |
25199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25200 | arg2 = obj1; |
25201 | arg3 = obj2; | |
25202 | { | |
25203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25204 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25205 | ||
25206 | wxPyEndAllowThreads(__tstate); | |
25207 | if (PyErr_Occurred()) SWIG_fail; | |
25208 | } | |
25209 | Py_INCREF(Py_None); resultobj = Py_None; | |
25210 | return resultobj; | |
25211 | fail: | |
25212 | return NULL; | |
25213 | } | |
25214 | ||
25215 | ||
25216 | static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) { | |
25217 | PyObject *obj; | |
25218 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25219 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
25220 | Py_INCREF(obj); | |
25221 | return Py_BuildValue((char *)""); | |
25222 | } | |
25223 | static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25224 | PyObject *resultobj; | |
25225 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25226 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25227 | wxBitmapDataObject *result; | |
25228 | PyObject * obj0 = 0 ; | |
25229 | char *kwnames[] = { | |
25230 | (char *) "bitmap", NULL | |
25231 | }; | |
25232 | ||
25233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
25234 | if (obj0) { | |
15afbcd0 RD |
25235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
25236 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25237 | SWIG_fail; | |
d14a1e28 | 25238 | if (arg1 == NULL) { |
15afbcd0 RD |
25239 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25240 | SWIG_fail; | |
d14a1e28 RD |
25241 | } |
25242 | } | |
25243 | { | |
25244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25245 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
25246 | ||
25247 | wxPyEndAllowThreads(__tstate); | |
25248 | if (PyErr_Occurred()) SWIG_fail; | |
25249 | } | |
15afbcd0 | 25250 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1); |
d14a1e28 RD |
25251 | return resultobj; |
25252 | fail: | |
25253 | return NULL; | |
25254 | } | |
25255 | ||
25256 | ||
25257 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25258 | PyObject *resultobj; | |
25259 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25260 | wxBitmap result; | |
25261 | PyObject * obj0 = 0 ; | |
25262 | char *kwnames[] = { | |
25263 | (char *) "self", NULL | |
25264 | }; | |
25265 | ||
25266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, |
25268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25269 | { |
25270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25271 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
25272 | ||
25273 | wxPyEndAllowThreads(__tstate); | |
25274 | if (PyErr_Occurred()) SWIG_fail; | |
25275 | } | |
25276 | { | |
25277 | wxBitmap * resultptr; | |
25278 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 25279 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
25280 | } |
25281 | return resultobj; | |
25282 | fail: | |
25283 | return NULL; | |
25284 | } | |
25285 | ||
25286 | ||
25287 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25288 | PyObject *resultobj; | |
25289 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25290 | wxBitmap *arg2 = 0 ; | |
25291 | PyObject * obj0 = 0 ; | |
25292 | PyObject * obj1 = 0 ; | |
25293 | char *kwnames[] = { | |
25294 | (char *) "self",(char *) "bitmap", NULL | |
25295 | }; | |
25296 | ||
25297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, |
25299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25300 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
25301 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25302 | SWIG_fail; | |
d14a1e28 | 25303 | if (arg2 == NULL) { |
15afbcd0 RD |
25304 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25305 | SWIG_fail; | |
d14a1e28 RD |
25306 | } |
25307 | { | |
25308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25309 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
25310 | ||
25311 | wxPyEndAllowThreads(__tstate); | |
25312 | if (PyErr_Occurred()) SWIG_fail; | |
25313 | } | |
25314 | Py_INCREF(Py_None); resultobj = Py_None; | |
25315 | return resultobj; | |
25316 | fail: | |
25317 | return NULL; | |
25318 | } | |
25319 | ||
25320 | ||
25321 | static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
25322 | PyObject *obj; | |
25323 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25324 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
25325 | Py_INCREF(obj); | |
25326 | return Py_BuildValue((char *)""); | |
25327 | } | |
25328 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25329 | PyObject *resultobj; | |
25330 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25331 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25332 | wxPyBitmapDataObject *result; | |
25333 | PyObject * obj0 = 0 ; | |
25334 | char *kwnames[] = { | |
25335 | (char *) "bitmap", NULL | |
25336 | }; | |
25337 | ||
25338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
25339 | if (obj0) { | |
15afbcd0 RD |
25340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
25341 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25342 | SWIG_fail; | |
d14a1e28 | 25343 | if (arg1 == NULL) { |
15afbcd0 RD |
25344 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25345 | SWIG_fail; | |
d14a1e28 RD |
25346 | } |
25347 | } | |
25348 | { | |
25349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25350 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
25351 | ||
25352 | wxPyEndAllowThreads(__tstate); | |
25353 | if (PyErr_Occurred()) SWIG_fail; | |
25354 | } | |
15afbcd0 | 25355 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1); |
d14a1e28 RD |
25356 | return resultobj; |
25357 | fail: | |
25358 | return NULL; | |
25359 | } | |
25360 | ||
25361 | ||
25362 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25363 | PyObject *resultobj; | |
25364 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
25365 | PyObject *arg2 = (PyObject *) 0 ; | |
25366 | PyObject *arg3 = (PyObject *) 0 ; | |
25367 | PyObject * obj0 = 0 ; | |
25368 | PyObject * obj1 = 0 ; | |
25369 | PyObject * obj2 = 0 ; | |
25370 | char *kwnames[] = { | |
25371 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25372 | }; | |
25373 | ||
25374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject, |
25376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25377 | arg2 = obj1; |
25378 | arg3 = obj2; | |
25379 | { | |
25380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25381 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25382 | ||
25383 | wxPyEndAllowThreads(__tstate); | |
25384 | if (PyErr_Occurred()) SWIG_fail; | |
25385 | } | |
25386 | Py_INCREF(Py_None); resultobj = Py_None; | |
25387 | return resultobj; | |
25388 | fail: | |
25389 | return NULL; | |
25390 | } | |
25391 | ||
25392 | ||
25393 | static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
25394 | PyObject *obj; | |
25395 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25396 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
25397 | Py_INCREF(obj); | |
25398 | return Py_BuildValue((char *)""); | |
25399 | } | |
25400 | static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25401 | PyObject *resultobj; | |
25402 | wxFileDataObject *result; | |
25403 | char *kwnames[] = { | |
25404 | NULL | |
25405 | }; | |
25406 | ||
25407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
25408 | { | |
25409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25410 | result = (wxFileDataObject *)new wxFileDataObject(); | |
25411 | ||
25412 | wxPyEndAllowThreads(__tstate); | |
25413 | if (PyErr_Occurred()) SWIG_fail; | |
25414 | } | |
15afbcd0 | 25415 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1); |
d14a1e28 RD |
25416 | return resultobj; |
25417 | fail: | |
25418 | return NULL; | |
25419 | } | |
25420 | ||
25421 | ||
25422 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25423 | PyObject *resultobj; | |
25424 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25425 | wxArrayString *result; | |
25426 | PyObject * obj0 = 0 ; | |
25427 | char *kwnames[] = { | |
25428 | (char *) "self", NULL | |
25429 | }; | |
25430 | ||
25431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, |
25433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25434 | { |
25435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25436 | { | |
25437 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
25438 | result = (wxArrayString *) &_result_ref; | |
25439 | } | |
25440 | ||
25441 | wxPyEndAllowThreads(__tstate); | |
25442 | if (PyErr_Occurred()) SWIG_fail; | |
25443 | } | |
25444 | { | |
25445 | resultobj = wxArrayString2PyList_helper(*result); | |
25446 | } | |
25447 | return resultobj; | |
25448 | fail: | |
25449 | return NULL; | |
25450 | } | |
25451 | ||
25452 | ||
15afbcd0 RD |
25453 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
25454 | PyObject *resultobj; | |
25455 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25456 | wxString *arg2 = 0 ; | |
25457 | bool temp2 = False ; | |
25458 | PyObject * obj0 = 0 ; | |
25459 | PyObject * obj1 = 0 ; | |
25460 | char *kwnames[] = { | |
25461 | (char *) "self",(char *) "filename", NULL | |
25462 | }; | |
25463 | ||
25464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
25465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
25466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25467 | { | |
25468 | arg2 = wxString_in_helper(obj1); | |
25469 | if (arg2 == NULL) SWIG_fail; | |
25470 | temp2 = True; | |
25471 | } | |
25472 | { | |
25473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25474 | (arg1)->AddFile((wxString const &)*arg2); | |
25475 | ||
25476 | wxPyEndAllowThreads(__tstate); | |
25477 | if (PyErr_Occurred()) SWIG_fail; | |
25478 | } | |
25479 | Py_INCREF(Py_None); resultobj = Py_None; | |
25480 | { | |
25481 | if (temp2) | |
25482 | delete arg2; | |
25483 | } | |
25484 | return resultobj; | |
25485 | fail: | |
25486 | { | |
25487 | if (temp2) | |
25488 | delete arg2; | |
25489 | } | |
25490 | return NULL; | |
25491 | } | |
25492 | ||
25493 | ||
d14a1e28 RD |
25494 | static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) { |
25495 | PyObject *obj; | |
25496 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25497 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
25498 | Py_INCREF(obj); | |
25499 | return Py_BuildValue((char *)""); | |
25500 | } | |
25501 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25502 | PyObject *resultobj; | |
25503 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25504 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25505 | wxCustomDataObject *result; | |
25506 | PyObject * obj0 = 0 ; | |
25507 | char *kwnames[] = { | |
25508 | (char *) "format", NULL | |
25509 | }; | |
25510 | ||
25511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
25512 | if (obj0) { | |
15afbcd0 RD |
25513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, |
25514 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25515 | SWIG_fail; | |
d14a1e28 | 25516 | if (arg1 == NULL) { |
15afbcd0 RD |
25517 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25518 | SWIG_fail; | |
d14a1e28 RD |
25519 | } |
25520 | } | |
25521 | { | |
25522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25523 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
25524 | ||
25525 | wxPyEndAllowThreads(__tstate); | |
25526 | if (PyErr_Occurred()) SWIG_fail; | |
25527 | } | |
15afbcd0 | 25528 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); |
d14a1e28 RD |
25529 | return resultobj; |
25530 | fail: | |
25531 | return NULL; | |
25532 | } | |
25533 | ||
25534 | ||
d14a1e28 RD |
25535 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
25536 | PyObject *resultobj; | |
25537 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25538 | PyObject *arg2 = (PyObject *) 0 ; | |
25539 | bool result; | |
25540 | PyObject * obj0 = 0 ; | |
25541 | PyObject * obj1 = 0 ; | |
25542 | char *kwnames[] = { | |
25543 | (char *) "self",(char *) "data", NULL | |
25544 | }; | |
25545 | ||
25546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, |
25548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25549 | arg2 = obj1; |
25550 | { | |
25551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25552 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
25553 | ||
25554 | wxPyEndAllowThreads(__tstate); | |
25555 | if (PyErr_Occurred()) SWIG_fail; | |
25556 | } | |
4f89f6a3 RD |
25557 | { |
25558 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25559 | } | |
d14a1e28 RD |
25560 | return resultobj; |
25561 | fail: | |
25562 | return NULL; | |
25563 | } | |
25564 | ||
25565 | ||
25566 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25567 | PyObject *resultobj; | |
25568 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25569 | size_t result; | |
25570 | PyObject * obj0 = 0 ; | |
25571 | char *kwnames[] = { | |
25572 | (char *) "self", NULL | |
25573 | }; | |
25574 | ||
25575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, |
25577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25578 | { |
25579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25580 | result = (size_t)(arg1)->GetSize(); | |
25581 | ||
25582 | wxPyEndAllowThreads(__tstate); | |
25583 | if (PyErr_Occurred()) SWIG_fail; | |
25584 | } | |
15afbcd0 | 25585 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
25586 | return resultobj; |
25587 | fail: | |
25588 | return NULL; | |
25589 | } | |
25590 | ||
25591 | ||
25592 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25593 | PyObject *resultobj; | |
25594 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25595 | PyObject *result; | |
25596 | PyObject * obj0 = 0 ; | |
25597 | char *kwnames[] = { | |
25598 | (char *) "self", NULL | |
25599 | }; | |
25600 | ||
25601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, |
25603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25604 | { |
25605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25606 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
25607 | ||
25608 | wxPyEndAllowThreads(__tstate); | |
25609 | if (PyErr_Occurred()) SWIG_fail; | |
25610 | } | |
25611 | resultobj = result; | |
25612 | return resultobj; | |
25613 | fail: | |
25614 | return NULL; | |
25615 | } | |
25616 | ||
25617 | ||
25618 | static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) { | |
25619 | PyObject *obj; | |
25620 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25621 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
25622 | Py_INCREF(obj); | |
25623 | return Py_BuildValue((char *)""); | |
25624 | } | |
25625 | static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25626 | PyObject *resultobj; | |
25627 | wxURLDataObject *result; | |
25628 | char *kwnames[] = { | |
25629 | NULL | |
25630 | }; | |
25631 | ||
25632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
25633 | { | |
25634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25635 | result = (wxURLDataObject *)new wxURLDataObject(); | |
25636 | ||
25637 | wxPyEndAllowThreads(__tstate); | |
25638 | if (PyErr_Occurred()) SWIG_fail; | |
25639 | } | |
15afbcd0 | 25640 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1); |
d14a1e28 RD |
25641 | return resultobj; |
25642 | fail: | |
25643 | return NULL; | |
25644 | } | |
25645 | ||
25646 | ||
25647 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25648 | PyObject *resultobj; | |
25649 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25650 | wxString result; | |
25651 | PyObject * obj0 = 0 ; | |
25652 | char *kwnames[] = { | |
25653 | (char *) "self", NULL | |
25654 | }; | |
25655 | ||
25656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, |
25658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25659 | { |
25660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25661 | result = (arg1)->GetURL(); | |
25662 | ||
25663 | wxPyEndAllowThreads(__tstate); | |
25664 | if (PyErr_Occurred()) SWIG_fail; | |
25665 | } | |
25666 | { | |
25667 | #if wxUSE_UNICODE | |
25668 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25669 | #else | |
25670 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25671 | #endif | |
25672 | } | |
25673 | return resultobj; | |
25674 | fail: | |
25675 | return NULL; | |
25676 | } | |
25677 | ||
25678 | ||
25679 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25680 | PyObject *resultobj; | |
25681 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25682 | wxString *arg2 = 0 ; | |
e811c8ce | 25683 | bool temp2 = False ; |
d14a1e28 RD |
25684 | PyObject * obj0 = 0 ; |
25685 | PyObject * obj1 = 0 ; | |
25686 | char *kwnames[] = { | |
25687 | (char *) "self",(char *) "url", NULL | |
25688 | }; | |
25689 | ||
25690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, |
25692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25693 | { |
25694 | arg2 = wxString_in_helper(obj1); | |
25695 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 25696 | temp2 = True; |
d14a1e28 RD |
25697 | } |
25698 | { | |
25699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25700 | (arg1)->SetURL((wxString const &)*arg2); | |
25701 | ||
25702 | wxPyEndAllowThreads(__tstate); | |
25703 | if (PyErr_Occurred()) SWIG_fail; | |
25704 | } | |
25705 | Py_INCREF(Py_None); resultobj = Py_None; | |
25706 | { | |
25707 | if (temp2) | |
25708 | delete arg2; | |
25709 | } | |
25710 | return resultobj; | |
25711 | fail: | |
25712 | { | |
25713 | if (temp2) | |
25714 | delete arg2; | |
25715 | } | |
25716 | return NULL; | |
25717 | } | |
25718 | ||
25719 | ||
25720 | static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) { | |
25721 | PyObject *obj; | |
25722 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25723 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
25724 | Py_INCREF(obj); | |
25725 | return Py_BuildValue((char *)""); | |
25726 | } | |
25727 | static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25728 | PyObject *resultobj; | |
25729 | wxMetafileDataObject *result; | |
25730 | char *kwnames[] = { | |
25731 | NULL | |
25732 | }; | |
25733 | ||
25734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
25735 | { | |
25736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25737 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
25738 | ||
25739 | wxPyEndAllowThreads(__tstate); | |
25740 | if (PyErr_Occurred()) SWIG_fail; | |
25741 | } | |
15afbcd0 | 25742 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1); |
d14a1e28 RD |
25743 | return resultobj; |
25744 | fail: | |
25745 | return NULL; | |
25746 | } | |
25747 | ||
25748 | ||
25749 | static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) { | |
25750 | PyObject *obj; | |
25751 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25752 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
25753 | Py_INCREF(obj); | |
25754 | return Py_BuildValue((char *)""); | |
25755 | } | |
25756 | static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25757 | PyObject *resultobj; | |
25758 | int arg1 ; | |
25759 | bool result; | |
994141e6 | 25760 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
25761 | char *kwnames[] = { |
25762 | (char *) "res", NULL | |
25763 | }; | |
25764 | ||
994141e6 | 25765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
25766 | arg1 = (wxDragResult) SWIG_AsInt(obj0); |
25767 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25768 | { |
25769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25770 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
25771 | ||
25772 | wxPyEndAllowThreads(__tstate); | |
25773 | if (PyErr_Occurred()) SWIG_fail; | |
25774 | } | |
4f89f6a3 RD |
25775 | { |
25776 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25777 | } | |
d14a1e28 RD |
25778 | return resultobj; |
25779 | fail: | |
25780 | return NULL; | |
25781 | } | |
25782 | ||
25783 | ||
25784 | static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25785 | PyObject *resultobj; | |
d1e20054 | 25786 | wxWindow *arg1 = (wxWindow *) 0 ; |
d14a1e28 RD |
25787 | wxIcon const &arg2_defvalue = wxNullIcon ; |
25788 | wxIcon *arg2 = (wxIcon *) &arg2_defvalue ; | |
25789 | wxIcon const &arg3_defvalue = wxNullIcon ; | |
25790 | wxIcon *arg3 = (wxIcon *) &arg3_defvalue ; | |
25791 | wxIcon const &arg4_defvalue = wxNullIcon ; | |
25792 | wxIcon *arg4 = (wxIcon *) &arg4_defvalue ; | |
25793 | wxPyDropSource *result; | |
25794 | PyObject * obj0 = 0 ; | |
25795 | PyObject * obj1 = 0 ; | |
25796 | PyObject * obj2 = 0 ; | |
25797 | PyObject * obj3 = 0 ; | |
25798 | char *kwnames[] = { | |
25799 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
25800 | }; | |
25801 | ||
d1e20054 | 25802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
25803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 25805 | if (obj1) { |
15afbcd0 RD |
25806 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, |
25807 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25808 | SWIG_fail; | |
d14a1e28 | 25809 | if (arg2 == NULL) { |
15afbcd0 RD |
25810 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25811 | SWIG_fail; | |
d14a1e28 RD |
25812 | } |
25813 | } | |
25814 | if (obj2) { | |
15afbcd0 RD |
25815 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIcon, |
25816 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25817 | SWIG_fail; | |
d14a1e28 | 25818 | if (arg3 == NULL) { |
15afbcd0 RD |
25819 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25820 | SWIG_fail; | |
d14a1e28 RD |
25821 | } |
25822 | } | |
25823 | if (obj3) { | |
15afbcd0 RD |
25824 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxIcon, |
25825 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25826 | SWIG_fail; | |
d14a1e28 | 25827 | if (arg4 == NULL) { |
15afbcd0 RD |
25828 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25829 | SWIG_fail; | |
d14a1e28 RD |
25830 | } |
25831 | } | |
25832 | { | |
25833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25834 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxIcon const &)*arg2,(wxIcon const &)*arg3,(wxIcon const &)*arg4); | |
25835 | ||
25836 | wxPyEndAllowThreads(__tstate); | |
25837 | if (PyErr_Occurred()) SWIG_fail; | |
25838 | } | |
15afbcd0 | 25839 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1); |
d14a1e28 RD |
25840 | return resultobj; |
25841 | fail: | |
25842 | return NULL; | |
25843 | } | |
25844 | ||
25845 | ||
25846 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25847 | PyObject *resultobj; | |
25848 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25849 | PyObject *arg2 = (PyObject *) 0 ; | |
25850 | PyObject *arg3 = (PyObject *) 0 ; | |
25851 | int arg4 ; | |
25852 | PyObject * obj0 = 0 ; | |
25853 | PyObject * obj1 = 0 ; | |
25854 | PyObject * obj2 = 0 ; | |
994141e6 | 25855 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
25856 | char *kwnames[] = { |
25857 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
25858 | }; | |
25859 | ||
994141e6 | 25860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
25861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25863 | arg2 = obj1; |
25864 | arg3 = obj2; | |
15afbcd0 RD |
25865 | arg4 = (int) SWIG_AsInt(obj3); |
25866 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25867 | { |
25868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25869 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
25870 | ||
25871 | wxPyEndAllowThreads(__tstate); | |
25872 | if (PyErr_Occurred()) SWIG_fail; | |
25873 | } | |
25874 | Py_INCREF(Py_None); resultobj = Py_None; | |
25875 | return resultobj; | |
25876 | fail: | |
25877 | return NULL; | |
25878 | } | |
25879 | ||
25880 | ||
25881 | static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25882 | PyObject *resultobj; | |
25883 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25884 | PyObject * obj0 = 0 ; | |
25885 | char *kwnames[] = { | |
25886 | (char *) "self", NULL | |
25887 | }; | |
25888 | ||
25889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25892 | { |
25893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25894 | delete arg1; | |
25895 | ||
25896 | wxPyEndAllowThreads(__tstate); | |
25897 | if (PyErr_Occurred()) SWIG_fail; | |
25898 | } | |
25899 | Py_INCREF(Py_None); resultobj = Py_None; | |
25900 | return resultobj; | |
25901 | fail: | |
25902 | return NULL; | |
25903 | } | |
25904 | ||
25905 | ||
25906 | static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25907 | PyObject *resultobj; | |
25908 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25909 | wxDataObject *arg2 = 0 ; | |
25910 | PyObject * obj0 = 0 ; | |
25911 | PyObject * obj1 = 0 ; | |
25912 | char *kwnames[] = { | |
25913 | (char *) "self",(char *) "data", NULL | |
25914 | }; | |
25915 | ||
25916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25919 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
25920 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25921 | SWIG_fail; | |
d14a1e28 | 25922 | if (arg2 == NULL) { |
15afbcd0 RD |
25923 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25924 | SWIG_fail; | |
d14a1e28 RD |
25925 | } |
25926 | { | |
25927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25928 | (arg1)->SetData(*arg2); | |
25929 | ||
25930 | wxPyEndAllowThreads(__tstate); | |
25931 | if (PyErr_Occurred()) SWIG_fail; | |
25932 | } | |
25933 | Py_INCREF(Py_None); resultobj = Py_None; | |
25934 | return resultobj; | |
25935 | fail: | |
25936 | return NULL; | |
25937 | } | |
25938 | ||
25939 | ||
25940 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25941 | PyObject *resultobj; | |
25942 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25943 | wxDataObject *result; | |
25944 | PyObject * obj0 = 0 ; | |
25945 | char *kwnames[] = { | |
25946 | (char *) "self", NULL | |
25947 | }; | |
25948 | ||
25949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25952 | { |
25953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25954 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
25955 | ||
25956 | wxPyEndAllowThreads(__tstate); | |
25957 | if (PyErr_Occurred()) SWIG_fail; | |
25958 | } | |
15afbcd0 | 25959 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); |
d14a1e28 RD |
25960 | return resultobj; |
25961 | fail: | |
25962 | return NULL; | |
25963 | } | |
25964 | ||
25965 | ||
25966 | static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25967 | PyObject *resultobj; | |
25968 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25969 | int arg2 ; | |
25970 | wxCursor *arg3 = 0 ; | |
25971 | PyObject * obj0 = 0 ; | |
994141e6 | 25972 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25973 | PyObject * obj2 = 0 ; |
25974 | char *kwnames[] = { | |
25975 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
25976 | }; | |
25977 | ||
994141e6 | 25978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
25979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
25980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25981 | arg2 = (wxDragResult) SWIG_AsInt(obj1); | |
25982 | if (PyErr_Occurred()) SWIG_fail; | |
25983 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
25984 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25985 | SWIG_fail; | |
d14a1e28 | 25986 | if (arg3 == NULL) { |
15afbcd0 RD |
25987 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25988 | SWIG_fail; | |
d14a1e28 RD |
25989 | } |
25990 | { | |
25991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25992 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
25993 | ||
25994 | wxPyEndAllowThreads(__tstate); | |
25995 | if (PyErr_Occurred()) SWIG_fail; | |
25996 | } | |
25997 | Py_INCREF(Py_None); resultobj = Py_None; | |
25998 | return resultobj; | |
25999 | fail: | |
26000 | return NULL; | |
26001 | } | |
26002 | ||
26003 | ||
26004 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26005 | PyObject *resultobj; | |
26006 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26007 | int arg2 = (int) wxDrag_CopyOnly ; | |
26008 | int result; | |
26009 | PyObject * obj0 = 0 ; | |
994141e6 | 26010 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26011 | char *kwnames[] = { |
26012 | (char *) "self",(char *) "flags", NULL | |
26013 | }; | |
26014 | ||
994141e6 | 26015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
26016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
26017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 26018 | if (obj1) { |
15afbcd0 RD |
26019 | arg2 = (int) SWIG_AsInt(obj1); |
26020 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 26021 | } |
d14a1e28 RD |
26022 | { |
26023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26024 | result = (int)(arg1)->DoDragDrop(arg2); | |
26025 | ||
26026 | wxPyEndAllowThreads(__tstate); | |
26027 | if (PyErr_Occurred()) SWIG_fail; | |
26028 | } | |
15afbcd0 | 26029 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26030 | return resultobj; |
26031 | fail: | |
26032 | return NULL; | |
26033 | } | |
26034 | ||
26035 | ||
26036 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26037 | PyObject *resultobj; | |
26038 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26039 | int arg2 ; | |
26040 | bool result; | |
26041 | PyObject * obj0 = 0 ; | |
994141e6 | 26042 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26043 | char *kwnames[] = { |
26044 | (char *) "self",(char *) "effect", NULL | |
26045 | }; | |
26046 | ||
994141e6 | 26047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
26048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, |
26049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26050 | arg2 = (wxDragResult) SWIG_AsInt(obj1); | |
26051 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26052 | { |
26053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26054 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
26055 | ||
26056 | wxPyEndAllowThreads(__tstate); | |
26057 | if (PyErr_Occurred()) SWIG_fail; | |
26058 | } | |
4f89f6a3 RD |
26059 | { |
26060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26061 | } | |
d14a1e28 RD |
26062 | return resultobj; |
26063 | fail: | |
26064 | return NULL; | |
26065 | } | |
26066 | ||
26067 | ||
26068 | static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) { | |
26069 | PyObject *obj; | |
26070 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26071 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
26072 | Py_INCREF(obj); | |
26073 | return Py_BuildValue((char *)""); | |
26074 | } | |
15afbcd0 | 26075 | static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26076 | PyObject *resultobj; |
26077 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
26078 | wxPyDropTarget *result; | |
26079 | PyObject * obj0 = 0 ; | |
26080 | char *kwnames[] = { | |
26081 | (char *) "dataObject", NULL | |
26082 | }; | |
26083 | ||
15afbcd0 | 26084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; |
d14a1e28 | 26085 | if (obj0) { |
15afbcd0 RD |
26086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
26087 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
26088 | } |
26089 | { | |
26090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26091 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
26092 | ||
26093 | wxPyEndAllowThreads(__tstate); | |
26094 | if (PyErr_Occurred()) SWIG_fail; | |
26095 | } | |
15afbcd0 | 26096 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1); |
d14a1e28 RD |
26097 | return resultobj; |
26098 | fail: | |
26099 | return NULL; | |
26100 | } | |
26101 | ||
26102 | ||
26103 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26104 | PyObject *resultobj; | |
26105 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26106 | PyObject *arg2 = (PyObject *) 0 ; | |
26107 | PyObject *arg3 = (PyObject *) 0 ; | |
26108 | PyObject * obj0 = 0 ; | |
26109 | PyObject * obj1 = 0 ; | |
26110 | PyObject * obj2 = 0 ; | |
26111 | char *kwnames[] = { | |
26112 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26113 | }; | |
26114 | ||
26115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26118 | arg2 = obj1; |
26119 | arg3 = obj2; | |
26120 | { | |
26121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26122 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26123 | ||
26124 | wxPyEndAllowThreads(__tstate); | |
26125 | if (PyErr_Occurred()) SWIG_fail; | |
26126 | } | |
26127 | Py_INCREF(Py_None); resultobj = Py_None; | |
26128 | return resultobj; | |
26129 | fail: | |
26130 | return NULL; | |
26131 | } | |
26132 | ||
26133 | ||
26134 | static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26135 | PyObject *resultobj; | |
26136 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26137 | PyObject * obj0 = 0 ; | |
26138 | char *kwnames[] = { | |
26139 | (char *) "self", NULL | |
26140 | }; | |
26141 | ||
26142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26145 | { |
26146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26147 | delete arg1; | |
26148 | ||
26149 | wxPyEndAllowThreads(__tstate); | |
26150 | if (PyErr_Occurred()) SWIG_fail; | |
26151 | } | |
26152 | Py_INCREF(Py_None); resultobj = Py_None; | |
26153 | return resultobj; | |
26154 | fail: | |
26155 | return NULL; | |
26156 | } | |
26157 | ||
26158 | ||
26159 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26160 | PyObject *resultobj; | |
26161 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26162 | wxDataObject *result; | |
26163 | PyObject * obj0 = 0 ; | |
26164 | char *kwnames[] = { | |
26165 | (char *) "self", NULL | |
26166 | }; | |
26167 | ||
26168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26171 | { |
26172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26173 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
26174 | ||
26175 | wxPyEndAllowThreads(__tstate); | |
26176 | if (PyErr_Occurred()) SWIG_fail; | |
26177 | } | |
15afbcd0 | 26178 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); |
d14a1e28 RD |
26179 | return resultobj; |
26180 | fail: | |
26181 | return NULL; | |
26182 | } | |
26183 | ||
26184 | ||
26185 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26186 | PyObject *resultobj; | |
26187 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26188 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26189 | PyObject * obj0 = 0 ; | |
26190 | PyObject * obj1 = 0 ; | |
26191 | char *kwnames[] = { | |
26192 | (char *) "self",(char *) "dataObject", NULL | |
26193 | }; | |
26194 | ||
26195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26198 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26199 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
26200 | { |
26201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26202 | (arg1)->SetDataObject(arg2); | |
26203 | ||
26204 | wxPyEndAllowThreads(__tstate); | |
26205 | if (PyErr_Occurred()) SWIG_fail; | |
26206 | } | |
26207 | Py_INCREF(Py_None); resultobj = Py_None; | |
26208 | return resultobj; | |
26209 | fail: | |
26210 | return NULL; | |
26211 | } | |
26212 | ||
26213 | ||
26214 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26215 | PyObject *resultobj; | |
26216 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
26217 | int arg2 ; |
26218 | int arg3 ; | |
d14a1e28 RD |
26219 | int arg4 ; |
26220 | int result; | |
26221 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26222 | PyObject * obj1 = 0 ; |
26223 | PyObject * obj2 = 0 ; | |
26224 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26225 | char *kwnames[] = { |
26226 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26227 | }; | |
26228 | ||
994141e6 | 26229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26232 | arg2 = (int) SWIG_AsInt(obj1); | |
26233 | if (PyErr_Occurred()) SWIG_fail; | |
26234 | arg3 = (int) SWIG_AsInt(obj2); | |
26235 | if (PyErr_Occurred()) SWIG_fail; | |
26236 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26237 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26238 | { |
26239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26240 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26241 | ||
26242 | wxPyEndAllowThreads(__tstate); | |
26243 | if (PyErr_Occurred()) SWIG_fail; | |
26244 | } | |
15afbcd0 | 26245 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26246 | return resultobj; |
26247 | fail: | |
26248 | return NULL; | |
26249 | } | |
26250 | ||
26251 | ||
26252 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26253 | PyObject *resultobj; | |
26254 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
26255 | int arg2 ; |
26256 | int arg3 ; | |
d14a1e28 RD |
26257 | int arg4 ; |
26258 | int result; | |
26259 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26260 | PyObject * obj1 = 0 ; |
26261 | PyObject * obj2 = 0 ; | |
26262 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26263 | char *kwnames[] = { |
26264 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26265 | }; | |
26266 | ||
994141e6 | 26267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26270 | arg2 = (int) SWIG_AsInt(obj1); | |
26271 | if (PyErr_Occurred()) SWIG_fail; | |
26272 | arg3 = (int) SWIG_AsInt(obj2); | |
26273 | if (PyErr_Occurred()) SWIG_fail; | |
26274 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26275 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26276 | { |
26277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26278 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26279 | ||
26280 | wxPyEndAllowThreads(__tstate); | |
26281 | if (PyErr_Occurred()) SWIG_fail; | |
26282 | } | |
15afbcd0 | 26283 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26284 | return resultobj; |
26285 | fail: | |
26286 | return NULL; | |
26287 | } | |
26288 | ||
26289 | ||
26290 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26291 | PyObject *resultobj; | |
26292 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26293 | PyObject * obj0 = 0 ; | |
26294 | char *kwnames[] = { | |
26295 | (char *) "self", NULL | |
26296 | }; | |
26297 | ||
26298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26301 | { |
26302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26303 | (arg1)->base_OnLeave(); | |
26304 | ||
26305 | wxPyEndAllowThreads(__tstate); | |
26306 | if (PyErr_Occurred()) SWIG_fail; | |
26307 | } | |
26308 | Py_INCREF(Py_None); resultobj = Py_None; | |
26309 | return resultobj; | |
26310 | fail: | |
26311 | return NULL; | |
26312 | } | |
26313 | ||
26314 | ||
26315 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26316 | PyObject *resultobj; | |
26317 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
e811c8ce RD |
26318 | int arg2 ; |
26319 | int arg3 ; | |
d14a1e28 RD |
26320 | bool result; |
26321 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26322 | PyObject * obj1 = 0 ; |
26323 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26324 | char *kwnames[] = { |
26325 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26326 | }; | |
26327 | ||
994141e6 | 26328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26331 | arg2 = (int) SWIG_AsInt(obj1); | |
26332 | if (PyErr_Occurred()) SWIG_fail; | |
26333 | arg3 = (int) SWIG_AsInt(obj2); | |
26334 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26335 | { |
26336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26337 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26338 | ||
26339 | wxPyEndAllowThreads(__tstate); | |
26340 | if (PyErr_Occurred()) SWIG_fail; | |
26341 | } | |
4f89f6a3 RD |
26342 | { |
26343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26344 | } | |
d14a1e28 RD |
26345 | return resultobj; |
26346 | fail: | |
26347 | return NULL; | |
26348 | } | |
26349 | ||
26350 | ||
26351 | static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26352 | PyObject *resultobj; | |
26353 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26354 | bool result; | |
26355 | PyObject * obj0 = 0 ; | |
26356 | char *kwnames[] = { | |
26357 | (char *) "self", NULL | |
26358 | }; | |
26359 | ||
26360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, |
26362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26363 | { |
26364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26365 | result = (bool)(arg1)->GetData(); | |
26366 | ||
26367 | wxPyEndAllowThreads(__tstate); | |
26368 | if (PyErr_Occurred()) SWIG_fail; | |
26369 | } | |
4f89f6a3 RD |
26370 | { |
26371 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26372 | } | |
d14a1e28 RD |
26373 | return resultobj; |
26374 | fail: | |
26375 | return NULL; | |
26376 | } | |
26377 | ||
26378 | ||
26379 | static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) { | |
26380 | PyObject *obj; | |
26381 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26382 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
26383 | Py_INCREF(obj); | |
26384 | return Py_BuildValue((char *)""); | |
26385 | } | |
26386 | static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26387 | PyObject *resultobj; | |
26388 | wxPyTextDropTarget *result; | |
26389 | char *kwnames[] = { | |
26390 | NULL | |
26391 | }; | |
26392 | ||
26393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
26394 | { | |
26395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26396 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
26397 | ||
26398 | wxPyEndAllowThreads(__tstate); | |
26399 | if (PyErr_Occurred()) SWIG_fail; | |
26400 | } | |
15afbcd0 | 26401 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1); |
d14a1e28 RD |
26402 | return resultobj; |
26403 | fail: | |
26404 | return NULL; | |
26405 | } | |
26406 | ||
26407 | ||
26408 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26409 | PyObject *resultobj; | |
26410 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26411 | PyObject *arg2 = (PyObject *) 0 ; | |
26412 | PyObject *arg3 = (PyObject *) 0 ; | |
26413 | PyObject * obj0 = 0 ; | |
26414 | PyObject * obj1 = 0 ; | |
26415 | PyObject * obj2 = 0 ; | |
26416 | char *kwnames[] = { | |
26417 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26418 | }; | |
26419 | ||
26420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26423 | arg2 = obj1; |
26424 | arg3 = obj2; | |
26425 | { | |
26426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26427 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26428 | ||
26429 | wxPyEndAllowThreads(__tstate); | |
26430 | if (PyErr_Occurred()) SWIG_fail; | |
26431 | } | |
26432 | Py_INCREF(Py_None); resultobj = Py_None; | |
26433 | return resultobj; | |
26434 | fail: | |
26435 | return NULL; | |
26436 | } | |
26437 | ||
26438 | ||
26439 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26440 | PyObject *resultobj; | |
26441 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
26442 | int arg2 ; |
26443 | int arg3 ; | |
d14a1e28 RD |
26444 | int arg4 ; |
26445 | int result; | |
26446 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26447 | PyObject * obj1 = 0 ; |
26448 | PyObject * obj2 = 0 ; | |
26449 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26450 | char *kwnames[] = { |
26451 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26452 | }; | |
26453 | ||
994141e6 | 26454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26457 | arg2 = (int) SWIG_AsInt(obj1); | |
26458 | if (PyErr_Occurred()) SWIG_fail; | |
26459 | arg3 = (int) SWIG_AsInt(obj2); | |
26460 | if (PyErr_Occurred()) SWIG_fail; | |
26461 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26462 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26463 | { |
26464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26465 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26466 | ||
26467 | wxPyEndAllowThreads(__tstate); | |
26468 | if (PyErr_Occurred()) SWIG_fail; | |
26469 | } | |
15afbcd0 | 26470 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26471 | return resultobj; |
26472 | fail: | |
26473 | return NULL; | |
26474 | } | |
26475 | ||
26476 | ||
26477 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26478 | PyObject *resultobj; | |
26479 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
26480 | int arg2 ; |
26481 | int arg3 ; | |
d14a1e28 RD |
26482 | int arg4 ; |
26483 | int result; | |
26484 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26485 | PyObject * obj1 = 0 ; |
26486 | PyObject * obj2 = 0 ; | |
26487 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26488 | char *kwnames[] = { |
26489 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26490 | }; | |
26491 | ||
994141e6 | 26492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26495 | arg2 = (int) SWIG_AsInt(obj1); | |
26496 | if (PyErr_Occurred()) SWIG_fail; | |
26497 | arg3 = (int) SWIG_AsInt(obj2); | |
26498 | if (PyErr_Occurred()) SWIG_fail; | |
26499 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26500 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26501 | { |
26502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26503 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26504 | ||
26505 | wxPyEndAllowThreads(__tstate); | |
26506 | if (PyErr_Occurred()) SWIG_fail; | |
26507 | } | |
15afbcd0 | 26508 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26509 | return resultobj; |
26510 | fail: | |
26511 | return NULL; | |
26512 | } | |
26513 | ||
26514 | ||
26515 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26516 | PyObject *resultobj; | |
26517 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26518 | PyObject * obj0 = 0 ; | |
26519 | char *kwnames[] = { | |
26520 | (char *) "self", NULL | |
26521 | }; | |
26522 | ||
26523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26526 | { |
26527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26528 | (arg1)->base_OnLeave(); | |
26529 | ||
26530 | wxPyEndAllowThreads(__tstate); | |
26531 | if (PyErr_Occurred()) SWIG_fail; | |
26532 | } | |
26533 | Py_INCREF(Py_None); resultobj = Py_None; | |
26534 | return resultobj; | |
26535 | fail: | |
26536 | return NULL; | |
26537 | } | |
26538 | ||
26539 | ||
26540 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26541 | PyObject *resultobj; | |
26542 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
26543 | int arg2 ; |
26544 | int arg3 ; | |
d14a1e28 RD |
26545 | bool result; |
26546 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26547 | PyObject * obj1 = 0 ; |
26548 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26549 | char *kwnames[] = { |
26550 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26551 | }; | |
26552 | ||
994141e6 | 26553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26556 | arg2 = (int) SWIG_AsInt(obj1); | |
26557 | if (PyErr_Occurred()) SWIG_fail; | |
26558 | arg3 = (int) SWIG_AsInt(obj2); | |
26559 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26560 | { |
26561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26562 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26563 | ||
26564 | wxPyEndAllowThreads(__tstate); | |
26565 | if (PyErr_Occurred()) SWIG_fail; | |
26566 | } | |
4f89f6a3 RD |
26567 | { |
26568 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26569 | } | |
d14a1e28 RD |
26570 | return resultobj; |
26571 | fail: | |
26572 | return NULL; | |
26573 | } | |
26574 | ||
26575 | ||
26576 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26577 | PyObject *resultobj; | |
26578 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
e811c8ce RD |
26579 | int arg2 ; |
26580 | int arg3 ; | |
d14a1e28 RD |
26581 | int arg4 ; |
26582 | int result; | |
26583 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26584 | PyObject * obj1 = 0 ; |
26585 | PyObject * obj2 = 0 ; | |
26586 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26587 | char *kwnames[] = { |
26588 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26589 | }; | |
26590 | ||
994141e6 | 26591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, |
26593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26594 | arg2 = (int) SWIG_AsInt(obj1); | |
26595 | if (PyErr_Occurred()) SWIG_fail; | |
26596 | arg3 = (int) SWIG_AsInt(obj2); | |
26597 | if (PyErr_Occurred()) SWIG_fail; | |
26598 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26599 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26600 | { |
26601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26602 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26603 | ||
26604 | wxPyEndAllowThreads(__tstate); | |
26605 | if (PyErr_Occurred()) SWIG_fail; | |
26606 | } | |
15afbcd0 | 26607 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26608 | return resultobj; |
26609 | fail: | |
26610 | return NULL; | |
26611 | } | |
26612 | ||
26613 | ||
26614 | static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26615 | PyObject *obj; | |
26616 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26617 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
26618 | Py_INCREF(obj); | |
26619 | return Py_BuildValue((char *)""); | |
26620 | } | |
26621 | static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26622 | PyObject *resultobj; | |
26623 | wxPyFileDropTarget *result; | |
26624 | char *kwnames[] = { | |
26625 | NULL | |
26626 | }; | |
26627 | ||
26628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
26629 | { | |
26630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26631 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
26632 | ||
26633 | wxPyEndAllowThreads(__tstate); | |
26634 | if (PyErr_Occurred()) SWIG_fail; | |
26635 | } | |
15afbcd0 | 26636 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1); |
d14a1e28 RD |
26637 | return resultobj; |
26638 | fail: | |
26639 | return NULL; | |
26640 | } | |
26641 | ||
26642 | ||
26643 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26644 | PyObject *resultobj; | |
26645 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26646 | PyObject *arg2 = (PyObject *) 0 ; | |
26647 | PyObject *arg3 = (PyObject *) 0 ; | |
26648 | PyObject * obj0 = 0 ; | |
26649 | PyObject * obj1 = 0 ; | |
26650 | PyObject * obj2 = 0 ; | |
26651 | char *kwnames[] = { | |
26652 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26653 | }; | |
26654 | ||
26655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26658 | arg2 = obj1; |
26659 | arg3 = obj2; | |
26660 | { | |
26661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26662 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26663 | ||
26664 | wxPyEndAllowThreads(__tstate); | |
26665 | if (PyErr_Occurred()) SWIG_fail; | |
26666 | } | |
26667 | Py_INCREF(Py_None); resultobj = Py_None; | |
26668 | return resultobj; | |
26669 | fail: | |
26670 | return NULL; | |
26671 | } | |
26672 | ||
26673 | ||
26674 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26675 | PyObject *resultobj; | |
26676 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26677 | int arg2 ; |
26678 | int arg3 ; | |
d14a1e28 RD |
26679 | int arg4 ; |
26680 | int result; | |
26681 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26682 | PyObject * obj1 = 0 ; |
26683 | PyObject * obj2 = 0 ; | |
26684 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26685 | char *kwnames[] = { |
26686 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26687 | }; | |
26688 | ||
994141e6 | 26689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26692 | arg2 = (int) SWIG_AsInt(obj1); | |
26693 | if (PyErr_Occurred()) SWIG_fail; | |
26694 | arg3 = (int) SWIG_AsInt(obj2); | |
26695 | if (PyErr_Occurred()) SWIG_fail; | |
26696 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26697 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26698 | { |
26699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26700 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26701 | ||
26702 | wxPyEndAllowThreads(__tstate); | |
26703 | if (PyErr_Occurred()) SWIG_fail; | |
26704 | } | |
15afbcd0 | 26705 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26706 | return resultobj; |
26707 | fail: | |
26708 | return NULL; | |
26709 | } | |
26710 | ||
26711 | ||
26712 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26713 | PyObject *resultobj; | |
26714 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26715 | int arg2 ; |
26716 | int arg3 ; | |
d14a1e28 RD |
26717 | int arg4 ; |
26718 | int result; | |
26719 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26720 | PyObject * obj1 = 0 ; |
26721 | PyObject * obj2 = 0 ; | |
26722 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26723 | char *kwnames[] = { |
26724 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26725 | }; | |
26726 | ||
994141e6 | 26727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26730 | arg2 = (int) SWIG_AsInt(obj1); | |
26731 | if (PyErr_Occurred()) SWIG_fail; | |
26732 | arg3 = (int) SWIG_AsInt(obj2); | |
26733 | if (PyErr_Occurred()) SWIG_fail; | |
26734 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26735 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26736 | { |
26737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26738 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26739 | ||
26740 | wxPyEndAllowThreads(__tstate); | |
26741 | if (PyErr_Occurred()) SWIG_fail; | |
26742 | } | |
15afbcd0 | 26743 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26744 | return resultobj; |
26745 | fail: | |
26746 | return NULL; | |
26747 | } | |
26748 | ||
26749 | ||
26750 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26751 | PyObject *resultobj; | |
26752 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26753 | PyObject * obj0 = 0 ; | |
26754 | char *kwnames[] = { | |
26755 | (char *) "self", NULL | |
26756 | }; | |
26757 | ||
26758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26761 | { |
26762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26763 | (arg1)->base_OnLeave(); | |
26764 | ||
26765 | wxPyEndAllowThreads(__tstate); | |
26766 | if (PyErr_Occurred()) SWIG_fail; | |
26767 | } | |
26768 | Py_INCREF(Py_None); resultobj = Py_None; | |
26769 | return resultobj; | |
26770 | fail: | |
26771 | return NULL; | |
26772 | } | |
26773 | ||
26774 | ||
26775 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26776 | PyObject *resultobj; | |
26777 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26778 | int arg2 ; |
26779 | int arg3 ; | |
d14a1e28 RD |
26780 | bool result; |
26781 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26782 | PyObject * obj1 = 0 ; |
26783 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26784 | char *kwnames[] = { |
26785 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26786 | }; | |
26787 | ||
994141e6 | 26788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26791 | arg2 = (int) SWIG_AsInt(obj1); | |
26792 | if (PyErr_Occurred()) SWIG_fail; | |
26793 | arg3 = (int) SWIG_AsInt(obj2); | |
26794 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26795 | { |
26796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26797 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26798 | ||
26799 | wxPyEndAllowThreads(__tstate); | |
26800 | if (PyErr_Occurred()) SWIG_fail; | |
26801 | } | |
4f89f6a3 RD |
26802 | { |
26803 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26804 | } | |
d14a1e28 RD |
26805 | return resultobj; |
26806 | fail: | |
26807 | return NULL; | |
26808 | } | |
26809 | ||
26810 | ||
26811 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26812 | PyObject *resultobj; | |
26813 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
e811c8ce RD |
26814 | int arg2 ; |
26815 | int arg3 ; | |
d14a1e28 RD |
26816 | int arg4 ; |
26817 | int result; | |
26818 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26819 | PyObject * obj1 = 0 ; |
26820 | PyObject * obj2 = 0 ; | |
26821 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26822 | char *kwnames[] = { |
26823 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26824 | }; | |
26825 | ||
994141e6 | 26826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, |
26828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26829 | arg2 = (int) SWIG_AsInt(obj1); | |
26830 | if (PyErr_Occurred()) SWIG_fail; | |
26831 | arg3 = (int) SWIG_AsInt(obj2); | |
26832 | if (PyErr_Occurred()) SWIG_fail; | |
26833 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26834 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26835 | { |
26836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26837 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26838 | ||
26839 | wxPyEndAllowThreads(__tstate); | |
26840 | if (PyErr_Occurred()) SWIG_fail; | |
26841 | } | |
15afbcd0 | 26842 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26843 | return resultobj; |
26844 | fail: | |
26845 | return NULL; | |
26846 | } | |
26847 | ||
26848 | ||
26849 | static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26850 | PyObject *obj; | |
26851 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26852 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
26853 | Py_INCREF(obj); | |
26854 | return Py_BuildValue((char *)""); | |
26855 | } | |
26856 | static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26857 | PyObject *resultobj; | |
26858 | wxClipboard *result; | |
26859 | char *kwnames[] = { | |
26860 | NULL | |
26861 | }; | |
26862 | ||
26863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
26864 | { | |
26865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26866 | result = (wxClipboard *)new wxClipboard(); | |
26867 | ||
26868 | wxPyEndAllowThreads(__tstate); | |
26869 | if (PyErr_Occurred()) SWIG_fail; | |
26870 | } | |
15afbcd0 | 26871 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1); |
d14a1e28 RD |
26872 | return resultobj; |
26873 | fail: | |
26874 | return NULL; | |
26875 | } | |
26876 | ||
26877 | ||
26878 | static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26879 | PyObject *resultobj; | |
26880 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26881 | PyObject * obj0 = 0 ; | |
26882 | char *kwnames[] = { | |
26883 | (char *) "self", NULL | |
26884 | }; | |
26885 | ||
26886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26889 | { |
26890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26891 | delete arg1; | |
26892 | ||
26893 | wxPyEndAllowThreads(__tstate); | |
26894 | if (PyErr_Occurred()) SWIG_fail; | |
26895 | } | |
26896 | Py_INCREF(Py_None); resultobj = Py_None; | |
26897 | return resultobj; | |
26898 | fail: | |
26899 | return NULL; | |
26900 | } | |
26901 | ||
26902 | ||
26903 | static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26904 | PyObject *resultobj; | |
26905 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26906 | bool result; | |
26907 | PyObject * obj0 = 0 ; | |
26908 | char *kwnames[] = { | |
26909 | (char *) "self", NULL | |
26910 | }; | |
26911 | ||
26912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26915 | { |
26916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26917 | result = (bool)(arg1)->Open(); | |
26918 | ||
26919 | wxPyEndAllowThreads(__tstate); | |
26920 | if (PyErr_Occurred()) SWIG_fail; | |
26921 | } | |
4f89f6a3 RD |
26922 | { |
26923 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26924 | } | |
d14a1e28 RD |
26925 | return resultobj; |
26926 | fail: | |
26927 | return NULL; | |
26928 | } | |
26929 | ||
26930 | ||
26931 | static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26932 | PyObject *resultobj; | |
26933 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26934 | PyObject * obj0 = 0 ; | |
26935 | char *kwnames[] = { | |
26936 | (char *) "self", NULL | |
26937 | }; | |
26938 | ||
26939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26942 | { |
26943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26944 | (arg1)->Close(); | |
26945 | ||
26946 | wxPyEndAllowThreads(__tstate); | |
26947 | if (PyErr_Occurred()) SWIG_fail; | |
26948 | } | |
26949 | Py_INCREF(Py_None); resultobj = Py_None; | |
26950 | return resultobj; | |
26951 | fail: | |
26952 | return NULL; | |
26953 | } | |
26954 | ||
26955 | ||
26956 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26957 | PyObject *resultobj; | |
26958 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26959 | bool result; | |
26960 | PyObject * obj0 = 0 ; | |
26961 | char *kwnames[] = { | |
26962 | (char *) "self", NULL | |
26963 | }; | |
26964 | ||
26965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26968 | { |
26969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26970 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
26971 | ||
26972 | wxPyEndAllowThreads(__tstate); | |
26973 | if (PyErr_Occurred()) SWIG_fail; | |
26974 | } | |
4f89f6a3 RD |
26975 | { |
26976 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26977 | } | |
d14a1e28 RD |
26978 | return resultobj; |
26979 | fail: | |
26980 | return NULL; | |
26981 | } | |
26982 | ||
26983 | ||
26984 | static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26985 | PyObject *resultobj; | |
26986 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26987 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26988 | bool result; | |
26989 | PyObject * obj0 = 0 ; | |
26990 | PyObject * obj1 = 0 ; | |
26991 | char *kwnames[] = { | |
26992 | (char *) "self",(char *) "data", NULL | |
26993 | }; | |
26994 | ||
26995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
26997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26998 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26999 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
27000 | { |
27001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27002 | result = (bool)(arg1)->AddData(arg2); | |
27003 | ||
27004 | wxPyEndAllowThreads(__tstate); | |
27005 | if (PyErr_Occurred()) SWIG_fail; | |
27006 | } | |
4f89f6a3 RD |
27007 | { |
27008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27009 | } | |
d14a1e28 RD |
27010 | return resultobj; |
27011 | fail: | |
27012 | return NULL; | |
27013 | } | |
27014 | ||
27015 | ||
27016 | static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27017 | PyObject *resultobj; | |
27018 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27019 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
27020 | bool result; | |
27021 | PyObject * obj0 = 0 ; | |
27022 | PyObject * obj1 = 0 ; | |
27023 | char *kwnames[] = { | |
27024 | (char *) "self",(char *) "data", NULL | |
27025 | }; | |
27026 | ||
27027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27030 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27031 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
27032 | { |
27033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27034 | result = (bool)(arg1)->SetData(arg2); | |
27035 | ||
27036 | wxPyEndAllowThreads(__tstate); | |
27037 | if (PyErr_Occurred()) SWIG_fail; | |
27038 | } | |
4f89f6a3 RD |
27039 | { |
27040 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27041 | } | |
d14a1e28 RD |
27042 | return resultobj; |
27043 | fail: | |
27044 | return NULL; | |
27045 | } | |
27046 | ||
27047 | ||
27048 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27049 | PyObject *resultobj; | |
27050 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27051 | wxDataFormat *arg2 = 0 ; | |
27052 | bool result; | |
27053 | PyObject * obj0 = 0 ; | |
27054 | PyObject * obj1 = 0 ; | |
27055 | char *kwnames[] = { | |
27056 | (char *) "self",(char *) "format", NULL | |
27057 | }; | |
27058 | ||
27059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27062 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
27063 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27064 | SWIG_fail; | |
d14a1e28 | 27065 | if (arg2 == NULL) { |
15afbcd0 RD |
27066 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27067 | SWIG_fail; | |
d14a1e28 RD |
27068 | } |
27069 | { | |
27070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27071 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
27072 | ||
27073 | wxPyEndAllowThreads(__tstate); | |
27074 | if (PyErr_Occurred()) SWIG_fail; | |
27075 | } | |
4f89f6a3 RD |
27076 | { |
27077 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27078 | } | |
d14a1e28 RD |
27079 | return resultobj; |
27080 | fail: | |
27081 | return NULL; | |
27082 | } | |
27083 | ||
27084 | ||
27085 | static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27086 | PyObject *resultobj; | |
27087 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27088 | wxDataObject *arg2 = 0 ; | |
27089 | bool result; | |
27090 | PyObject * obj0 = 0 ; | |
27091 | PyObject * obj1 = 0 ; | |
27092 | char *kwnames[] = { | |
27093 | (char *) "self",(char *) "data", NULL | |
27094 | }; | |
27095 | ||
27096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27099 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27100 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27101 | SWIG_fail; | |
d14a1e28 | 27102 | if (arg2 == NULL) { |
15afbcd0 RD |
27103 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27104 | SWIG_fail; | |
d14a1e28 RD |
27105 | } |
27106 | { | |
27107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27108 | result = (bool)(arg1)->GetData(*arg2); | |
27109 | ||
27110 | wxPyEndAllowThreads(__tstate); | |
27111 | if (PyErr_Occurred()) SWIG_fail; | |
27112 | } | |
4f89f6a3 RD |
27113 | { |
27114 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27115 | } | |
d14a1e28 RD |
27116 | return resultobj; |
27117 | fail: | |
27118 | return NULL; | |
27119 | } | |
27120 | ||
27121 | ||
27122 | static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27123 | PyObject *resultobj; | |
27124 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27125 | PyObject * obj0 = 0 ; | |
27126 | char *kwnames[] = { | |
27127 | (char *) "self", NULL | |
27128 | }; | |
27129 | ||
27130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27133 | { |
27134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27135 | (arg1)->Clear(); | |
27136 | ||
27137 | wxPyEndAllowThreads(__tstate); | |
27138 | if (PyErr_Occurred()) SWIG_fail; | |
27139 | } | |
27140 | Py_INCREF(Py_None); resultobj = Py_None; | |
27141 | return resultobj; | |
27142 | fail: | |
27143 | return NULL; | |
27144 | } | |
27145 | ||
27146 | ||
27147 | static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27148 | PyObject *resultobj; | |
27149 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27150 | bool result; | |
27151 | PyObject * obj0 = 0 ; | |
27152 | char *kwnames[] = { | |
27153 | (char *) "self", NULL | |
27154 | }; | |
27155 | ||
27156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27159 | { |
27160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27161 | result = (bool)(arg1)->Flush(); | |
27162 | ||
27163 | wxPyEndAllowThreads(__tstate); | |
27164 | if (PyErr_Occurred()) SWIG_fail; | |
27165 | } | |
4f89f6a3 RD |
27166 | { |
27167 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27168 | } | |
d14a1e28 RD |
27169 | return resultobj; |
27170 | fail: | |
27171 | return NULL; | |
27172 | } | |
27173 | ||
27174 | ||
27175 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27176 | PyObject *resultobj; | |
27177 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
fcafa8a9 | 27178 | bool arg2 = (bool) True ; |
d14a1e28 RD |
27179 | PyObject * obj0 = 0 ; |
27180 | PyObject * obj1 = 0 ; | |
27181 | char *kwnames[] = { | |
27182 | (char *) "self",(char *) "primary", NULL | |
27183 | }; | |
27184 | ||
27185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 27188 | if (obj1) { |
15afbcd0 RD |
27189 | arg2 = (bool) SWIG_AsBool(obj1); |
27190 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27191 | } |
27192 | { | |
27193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27194 | (arg1)->UsePrimarySelection(arg2); | |
27195 | ||
27196 | wxPyEndAllowThreads(__tstate); | |
27197 | if (PyErr_Occurred()) SWIG_fail; | |
27198 | } | |
27199 | Py_INCREF(Py_None); resultobj = Py_None; | |
27200 | return resultobj; | |
27201 | fail: | |
27202 | return NULL; | |
27203 | } | |
27204 | ||
27205 | ||
dfbb5885 RD |
27206 | static PyObject *_wrap_Clipboard_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
27207 | PyObject *resultobj; | |
27208 | wxClipboard *result; | |
27209 | char *kwnames[] = { | |
27210 | NULL | |
27211 | }; | |
27212 | ||
27213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail; | |
27214 | { | |
27215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27216 | result = (wxClipboard *)wxClipboard::Get(); | |
27217 | ||
27218 | wxPyEndAllowThreads(__tstate); | |
27219 | if (PyErr_Occurred()) SWIG_fail; | |
27220 | } | |
27221 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0); | |
27222 | return resultobj; | |
27223 | fail: | |
27224 | return NULL; | |
27225 | } | |
27226 | ||
27227 | ||
d14a1e28 RD |
27228 | static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) { |
27229 | PyObject *obj; | |
27230 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27231 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
27232 | Py_INCREF(obj); | |
27233 | return Py_BuildValue((char *)""); | |
27234 | } | |
d14a1e28 RD |
27235 | static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { |
27236 | PyObject *resultobj; | |
27237 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
27238 | wxClipboardLocker *result; | |
27239 | PyObject * obj0 = 0 ; | |
27240 | char *kwnames[] = { | |
27241 | (char *) "clipboard", NULL | |
27242 | }; | |
27243 | ||
27244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27245 | if (obj0) { | |
15afbcd0 RD |
27246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, |
27247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27248 | } |
27249 | { | |
27250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27251 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
27252 | ||
27253 | wxPyEndAllowThreads(__tstate); | |
27254 | if (PyErr_Occurred()) SWIG_fail; | |
27255 | } | |
15afbcd0 | 27256 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1); |
d14a1e28 RD |
27257 | return resultobj; |
27258 | fail: | |
27259 | return NULL; | |
27260 | } | |
27261 | ||
27262 | ||
27263 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27264 | PyObject *resultobj; | |
27265 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27266 | PyObject * obj0 = 0 ; | |
27267 | char *kwnames[] = { | |
27268 | (char *) "self", NULL | |
27269 | }; | |
27270 | ||
27271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, |
27273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27274 | { |
27275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27276 | delete arg1; | |
27277 | ||
27278 | wxPyEndAllowThreads(__tstate); | |
27279 | if (PyErr_Occurred()) SWIG_fail; | |
27280 | } | |
27281 | Py_INCREF(Py_None); resultobj = Py_None; | |
27282 | return resultobj; | |
27283 | fail: | |
27284 | return NULL; | |
27285 | } | |
27286 | ||
27287 | ||
27288 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27289 | PyObject *resultobj; | |
27290 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27291 | bool result; | |
27292 | PyObject * obj0 = 0 ; | |
27293 | char *kwnames[] = { | |
27294 | (char *) "self", NULL | |
27295 | }; | |
27296 | ||
27297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, |
27299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27300 | { |
27301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27302 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
27303 | ||
27304 | wxPyEndAllowThreads(__tstate); | |
27305 | if (PyErr_Occurred()) SWIG_fail; | |
27306 | } | |
4f89f6a3 RD |
27307 | { |
27308 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27309 | } | |
d14a1e28 RD |
27310 | return resultobj; |
27311 | fail: | |
27312 | return NULL; | |
27313 | } | |
27314 | ||
27315 | ||
27316 | static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) { | |
27317 | PyObject *obj; | |
27318 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27319 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
27320 | Py_INCREF(obj); | |
27321 | return Py_BuildValue((char *)""); | |
27322 | } | |
4276dc52 RD |
27323 | static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
27324 | PyObject *resultobj; | |
27325 | int arg1 = (int) 0 ; | |
27326 | int arg2 = (int) 0 ; | |
27327 | int arg3 = (int) 0 ; | |
27328 | int arg4 = (int) 0 ; | |
27329 | wxVideoMode *result; | |
27330 | PyObject * obj0 = 0 ; | |
27331 | PyObject * obj1 = 0 ; | |
27332 | PyObject * obj2 = 0 ; | |
27333 | PyObject * obj3 = 0 ; | |
27334 | char *kwnames[] = { | |
27335 | (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL | |
27336 | }; | |
27337 | ||
27338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27339 | if (obj0) { | |
27340 | arg1 = (int) SWIG_AsInt(obj0); | |
27341 | if (PyErr_Occurred()) SWIG_fail; | |
27342 | } | |
27343 | if (obj1) { | |
27344 | arg2 = (int) SWIG_AsInt(obj1); | |
27345 | if (PyErr_Occurred()) SWIG_fail; | |
27346 | } | |
27347 | if (obj2) { | |
27348 | arg3 = (int) SWIG_AsInt(obj2); | |
27349 | if (PyErr_Occurred()) SWIG_fail; | |
27350 | } | |
27351 | if (obj3) { | |
27352 | arg4 = (int) SWIG_AsInt(obj3); | |
27353 | if (PyErr_Occurred()) SWIG_fail; | |
27354 | } | |
27355 | { | |
27356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27357 | result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4); | |
27358 | ||
27359 | wxPyEndAllowThreads(__tstate); | |
27360 | if (PyErr_Occurred()) SWIG_fail; | |
27361 | } | |
27362 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1); | |
27363 | return resultobj; | |
27364 | fail: | |
27365 | return NULL; | |
27366 | } | |
27367 | ||
27368 | ||
27369 | static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27370 | PyObject *resultobj; | |
27371 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27372 | PyObject * obj0 = 0 ; | |
27373 | char *kwnames[] = { | |
27374 | (char *) "self", NULL | |
27375 | }; | |
27376 | ||
27377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail; | |
27378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27380 | { | |
27381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27382 | delete arg1; | |
27383 | ||
27384 | wxPyEndAllowThreads(__tstate); | |
27385 | if (PyErr_Occurred()) SWIG_fail; | |
27386 | } | |
27387 | Py_INCREF(Py_None); resultobj = Py_None; | |
27388 | return resultobj; | |
27389 | fail: | |
27390 | return NULL; | |
27391 | } | |
27392 | ||
27393 | ||
27394 | static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27395 | PyObject *resultobj; | |
27396 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27397 | wxVideoMode *arg2 = 0 ; | |
27398 | bool result; | |
27399 | PyObject * obj0 = 0 ; | |
27400 | PyObject * obj1 = 0 ; | |
27401 | char *kwnames[] = { | |
27402 | (char *) "self",(char *) "other", NULL | |
27403 | }; | |
27404 | ||
27405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail; | |
27406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27408 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27409 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27410 | SWIG_fail; | |
27411 | if (arg2 == NULL) { | |
27412 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27413 | SWIG_fail; | |
27414 | } | |
27415 | { | |
27416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27417 | result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2); | |
27418 | ||
27419 | wxPyEndAllowThreads(__tstate); | |
27420 | if (PyErr_Occurred()) SWIG_fail; | |
27421 | } | |
4f89f6a3 RD |
27422 | { |
27423 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27424 | } | |
4276dc52 RD |
27425 | return resultobj; |
27426 | fail: | |
27427 | return NULL; | |
27428 | } | |
27429 | ||
27430 | ||
27431 | static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27432 | PyObject *resultobj; | |
27433 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27434 | int result; | |
27435 | PyObject * obj0 = 0 ; | |
27436 | char *kwnames[] = { | |
27437 | (char *) "self", NULL | |
27438 | }; | |
27439 | ||
27440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail; | |
27441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27443 | { | |
27444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27445 | result = (int)((wxVideoMode const *)arg1)->GetWidth(); | |
27446 | ||
27447 | wxPyEndAllowThreads(__tstate); | |
27448 | if (PyErr_Occurred()) SWIG_fail; | |
27449 | } | |
27450 | resultobj = SWIG_FromInt((int)result); | |
27451 | return resultobj; | |
27452 | fail: | |
27453 | return NULL; | |
27454 | } | |
27455 | ||
27456 | ||
27457 | static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27458 | PyObject *resultobj; | |
27459 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27460 | int result; | |
27461 | PyObject * obj0 = 0 ; | |
27462 | char *kwnames[] = { | |
27463 | (char *) "self", NULL | |
27464 | }; | |
27465 | ||
27466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail; | |
27467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27469 | { | |
27470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27471 | result = (int)((wxVideoMode const *)arg1)->GetHeight(); | |
27472 | ||
27473 | wxPyEndAllowThreads(__tstate); | |
27474 | if (PyErr_Occurred()) SWIG_fail; | |
27475 | } | |
27476 | resultobj = SWIG_FromInt((int)result); | |
27477 | return resultobj; | |
27478 | fail: | |
27479 | return NULL; | |
27480 | } | |
27481 | ||
27482 | ||
27483 | static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27484 | PyObject *resultobj; | |
27485 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27486 | int result; | |
27487 | PyObject * obj0 = 0 ; | |
27488 | char *kwnames[] = { | |
27489 | (char *) "self", NULL | |
27490 | }; | |
27491 | ||
27492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail; | |
27493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27495 | { | |
27496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27497 | result = (int)((wxVideoMode const *)arg1)->GetDepth(); | |
27498 | ||
27499 | wxPyEndAllowThreads(__tstate); | |
27500 | if (PyErr_Occurred()) SWIG_fail; | |
27501 | } | |
27502 | resultobj = SWIG_FromInt((int)result); | |
27503 | return resultobj; | |
27504 | fail: | |
27505 | return NULL; | |
27506 | } | |
27507 | ||
27508 | ||
27509 | static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27510 | PyObject *resultobj; | |
27511 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27512 | bool result; | |
27513 | PyObject * obj0 = 0 ; | |
27514 | char *kwnames[] = { | |
27515 | (char *) "self", NULL | |
27516 | }; | |
27517 | ||
27518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail; | |
27519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27521 | { | |
27522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27523 | result = (bool)((wxVideoMode const *)arg1)->IsOk(); | |
27524 | ||
27525 | wxPyEndAllowThreads(__tstate); | |
27526 | if (PyErr_Occurred()) SWIG_fail; | |
27527 | } | |
4f89f6a3 RD |
27528 | { |
27529 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27530 | } | |
4276dc52 RD |
27531 | return resultobj; |
27532 | fail: | |
27533 | return NULL; | |
27534 | } | |
27535 | ||
27536 | ||
27537 | static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27538 | PyObject *resultobj; | |
27539 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27540 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27541 | bool result; | |
27542 | PyObject * obj0 = 0 ; | |
27543 | PyObject * obj1 = 0 ; | |
27544 | char *kwnames[] = { | |
27545 | (char *) "self",(char *) "other", NULL | |
27546 | }; | |
27547 | ||
27548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail; | |
27549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27551 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27553 | { | |
27554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27555 | result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2); | |
27556 | ||
27557 | wxPyEndAllowThreads(__tstate); | |
27558 | if (PyErr_Occurred()) SWIG_fail; | |
27559 | } | |
4f89f6a3 RD |
27560 | { |
27561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27562 | } | |
4276dc52 RD |
27563 | return resultobj; |
27564 | fail: | |
27565 | return NULL; | |
27566 | } | |
27567 | ||
27568 | ||
27569 | static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27570 | PyObject *resultobj; | |
27571 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27572 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27573 | bool result; | |
27574 | PyObject * obj0 = 0 ; | |
27575 | PyObject * obj1 = 0 ; | |
27576 | char *kwnames[] = { | |
27577 | (char *) "self",(char *) "other", NULL | |
27578 | }; | |
27579 | ||
27580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail; | |
27581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27583 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27585 | { | |
27586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27587 | result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2); | |
27588 | ||
27589 | wxPyEndAllowThreads(__tstate); | |
27590 | if (PyErr_Occurred()) SWIG_fail; | |
27591 | } | |
4f89f6a3 RD |
27592 | { |
27593 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27594 | } | |
4276dc52 RD |
27595 | return resultobj; |
27596 | fail: | |
27597 | return NULL; | |
27598 | } | |
27599 | ||
27600 | ||
27601 | static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27602 | PyObject *resultobj; | |
27603 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27604 | int arg2 ; | |
27605 | PyObject * obj0 = 0 ; | |
27606 | PyObject * obj1 = 0 ; | |
27607 | char *kwnames[] = { | |
27608 | (char *) "self",(char *) "w", NULL | |
27609 | }; | |
27610 | ||
27611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail; | |
27612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27614 | arg2 = (int) SWIG_AsInt(obj1); | |
27615 | if (PyErr_Occurred()) SWIG_fail; | |
27616 | if (arg1) (arg1)->w = arg2; | |
27617 | ||
27618 | Py_INCREF(Py_None); resultobj = Py_None; | |
27619 | return resultobj; | |
27620 | fail: | |
27621 | return NULL; | |
27622 | } | |
27623 | ||
27624 | ||
27625 | static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27626 | PyObject *resultobj; | |
27627 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27628 | int result; | |
27629 | PyObject * obj0 = 0 ; | |
27630 | char *kwnames[] = { | |
27631 | (char *) "self", NULL | |
27632 | }; | |
27633 | ||
27634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail; | |
27635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27637 | result = (int) ((arg1)->w); | |
27638 | ||
27639 | resultobj = SWIG_FromInt((int)result); | |
27640 | return resultobj; | |
27641 | fail: | |
27642 | return NULL; | |
27643 | } | |
27644 | ||
27645 | ||
27646 | static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27647 | PyObject *resultobj; | |
27648 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27649 | int arg2 ; | |
27650 | PyObject * obj0 = 0 ; | |
27651 | PyObject * obj1 = 0 ; | |
27652 | char *kwnames[] = { | |
27653 | (char *) "self",(char *) "h", NULL | |
27654 | }; | |
27655 | ||
27656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail; | |
27657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27659 | arg2 = (int) SWIG_AsInt(obj1); | |
27660 | if (PyErr_Occurred()) SWIG_fail; | |
27661 | if (arg1) (arg1)->h = arg2; | |
27662 | ||
27663 | Py_INCREF(Py_None); resultobj = Py_None; | |
27664 | return resultobj; | |
27665 | fail: | |
27666 | return NULL; | |
27667 | } | |
27668 | ||
27669 | ||
27670 | static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27671 | PyObject *resultobj; | |
27672 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27673 | int result; | |
27674 | PyObject * obj0 = 0 ; | |
27675 | char *kwnames[] = { | |
27676 | (char *) "self", NULL | |
27677 | }; | |
27678 | ||
27679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail; | |
27680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27682 | result = (int) ((arg1)->h); | |
27683 | ||
27684 | resultobj = SWIG_FromInt((int)result); | |
27685 | return resultobj; | |
27686 | fail: | |
27687 | return NULL; | |
27688 | } | |
27689 | ||
27690 | ||
27691 | static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27692 | PyObject *resultobj; | |
27693 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27694 | int arg2 ; | |
27695 | PyObject * obj0 = 0 ; | |
27696 | PyObject * obj1 = 0 ; | |
27697 | char *kwnames[] = { | |
27698 | (char *) "self",(char *) "bpp", NULL | |
27699 | }; | |
27700 | ||
27701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail; | |
27702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27704 | arg2 = (int) SWIG_AsInt(obj1); | |
27705 | if (PyErr_Occurred()) SWIG_fail; | |
27706 | if (arg1) (arg1)->bpp = arg2; | |
27707 | ||
27708 | Py_INCREF(Py_None); resultobj = Py_None; | |
27709 | return resultobj; | |
27710 | fail: | |
27711 | return NULL; | |
27712 | } | |
27713 | ||
27714 | ||
27715 | static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27716 | PyObject *resultobj; | |
27717 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27718 | int result; | |
27719 | PyObject * obj0 = 0 ; | |
27720 | char *kwnames[] = { | |
27721 | (char *) "self", NULL | |
27722 | }; | |
27723 | ||
27724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail; | |
27725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27727 | result = (int) ((arg1)->bpp); | |
27728 | ||
27729 | resultobj = SWIG_FromInt((int)result); | |
27730 | return resultobj; | |
27731 | fail: | |
27732 | return NULL; | |
27733 | } | |
27734 | ||
27735 | ||
27736 | static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27737 | PyObject *resultobj; | |
27738 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27739 | int arg2 ; | |
27740 | PyObject * obj0 = 0 ; | |
27741 | PyObject * obj1 = 0 ; | |
27742 | char *kwnames[] = { | |
27743 | (char *) "self",(char *) "refresh", NULL | |
27744 | }; | |
27745 | ||
27746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail; | |
27747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27749 | arg2 = (int) SWIG_AsInt(obj1); | |
27750 | if (PyErr_Occurred()) SWIG_fail; | |
27751 | if (arg1) (arg1)->refresh = arg2; | |
27752 | ||
27753 | Py_INCREF(Py_None); resultobj = Py_None; | |
27754 | return resultobj; | |
27755 | fail: | |
27756 | return NULL; | |
27757 | } | |
27758 | ||
27759 | ||
27760 | static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27761 | PyObject *resultobj; | |
27762 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27763 | int result; | |
27764 | PyObject * obj0 = 0 ; | |
27765 | char *kwnames[] = { | |
27766 | (char *) "self", NULL | |
27767 | }; | |
27768 | ||
27769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail; | |
27770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27772 | result = (int) ((arg1)->refresh); | |
27773 | ||
27774 | resultobj = SWIG_FromInt((int)result); | |
27775 | return resultobj; | |
27776 | fail: | |
27777 | return NULL; | |
27778 | } | |
27779 | ||
27780 | ||
27781 | static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) { | |
27782 | PyObject *obj; | |
27783 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27784 | SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj); | |
27785 | Py_INCREF(obj); | |
27786 | return Py_BuildValue((char *)""); | |
27787 | } | |
27788 | static int _wrap_DefaultVideoMode_set(PyObject *_val) { | |
27789 | PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only."); | |
27790 | return 1; | |
27791 | } | |
27792 | ||
27793 | ||
27794 | static PyObject *_wrap_DefaultVideoMode_get() { | |
27795 | PyObject *pyobj; | |
27796 | ||
27797 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0); | |
27798 | return pyobj; | |
27799 | } | |
27800 | ||
27801 | ||
27802 | static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27803 | PyObject *resultobj; | |
27804 | size_t arg1 = (size_t) 0 ; | |
27805 | wxDisplay *result; | |
27806 | PyObject * obj0 = 0 ; | |
27807 | char *kwnames[] = { | |
27808 | (char *) "index", NULL | |
27809 | }; | |
27810 | ||
27811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail; | |
27812 | if (obj0) { | |
27813 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); | |
27814 | if (PyErr_Occurred()) SWIG_fail; | |
27815 | } | |
27816 | { | |
27817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27818 | result = (wxDisplay *)new wxDisplay(arg1); | |
27819 | ||
27820 | wxPyEndAllowThreads(__tstate); | |
27821 | if (PyErr_Occurred()) SWIG_fail; | |
27822 | } | |
27823 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1); | |
27824 | return resultobj; | |
27825 | fail: | |
27826 | return NULL; | |
27827 | } | |
27828 | ||
27829 | ||
27830 | static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27831 | PyObject *resultobj; | |
27832 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27833 | PyObject * obj0 = 0 ; | |
27834 | char *kwnames[] = { | |
27835 | (char *) "self", NULL | |
27836 | }; | |
27837 | ||
27838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail; | |
27839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27841 | { | |
27842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27843 | delete arg1; | |
27844 | ||
27845 | wxPyEndAllowThreads(__tstate); | |
27846 | if (PyErr_Occurred()) SWIG_fail; | |
27847 | } | |
27848 | Py_INCREF(Py_None); resultobj = Py_None; | |
27849 | return resultobj; | |
27850 | fail: | |
27851 | return NULL; | |
27852 | } | |
27853 | ||
27854 | ||
27855 | static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27856 | PyObject *resultobj; | |
27857 | size_t result; | |
27858 | char *kwnames[] = { | |
27859 | NULL | |
27860 | }; | |
27861 | ||
27862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail; | |
27863 | { | |
27864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27865 | result = (size_t)wxDisplay::GetCount(); | |
27866 | ||
27867 | wxPyEndAllowThreads(__tstate); | |
27868 | if (PyErr_Occurred()) SWIG_fail; | |
27869 | } | |
27870 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
27871 | return resultobj; | |
27872 | fail: | |
27873 | return NULL; | |
27874 | } | |
27875 | ||
27876 | ||
27877 | static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27878 | PyObject *resultobj; | |
27879 | wxPoint *arg1 = 0 ; | |
27880 | int result; | |
27881 | wxPoint temp1 ; | |
27882 | PyObject * obj0 = 0 ; | |
27883 | char *kwnames[] = { | |
27884 | (char *) "pt", NULL | |
27885 | }; | |
27886 | ||
27887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail; | |
27888 | { | |
27889 | arg1 = &temp1; | |
27890 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
27891 | } | |
27892 | { | |
27893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27894 | result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1); | |
27895 | ||
27896 | wxPyEndAllowThreads(__tstate); | |
27897 | if (PyErr_Occurred()) SWIG_fail; | |
27898 | } | |
27899 | resultobj = SWIG_FromInt((int)result); | |
27900 | return resultobj; | |
27901 | fail: | |
27902 | return NULL; | |
27903 | } | |
27904 | ||
27905 | ||
27906 | static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27907 | PyObject *resultobj; | |
27908 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27909 | int result; | |
27910 | PyObject * obj0 = 0 ; | |
27911 | char *kwnames[] = { | |
27912 | (char *) "window", NULL | |
27913 | }; | |
27914 | ||
27915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail; | |
27916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27918 | { | |
27919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27920 | result = (int)Display_GetFromWindow(arg1); | |
27921 | ||
27922 | wxPyEndAllowThreads(__tstate); | |
27923 | if (PyErr_Occurred()) SWIG_fail; | |
27924 | } | |
27925 | resultobj = SWIG_FromInt((int)result); | |
27926 | return resultobj; | |
27927 | fail: | |
27928 | return NULL; | |
27929 | } | |
27930 | ||
27931 | ||
27932 | static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27933 | PyObject *resultobj; | |
27934 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27935 | bool result; | |
27936 | PyObject * obj0 = 0 ; | |
27937 | char *kwnames[] = { | |
27938 | (char *) "self", NULL | |
27939 | }; | |
27940 | ||
27941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail; | |
27942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27944 | { | |
27945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27946 | result = (bool)((wxDisplay const *)arg1)->IsOk(); | |
27947 | ||
27948 | wxPyEndAllowThreads(__tstate); | |
27949 | if (PyErr_Occurred()) SWIG_fail; | |
27950 | } | |
4f89f6a3 RD |
27951 | { |
27952 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27953 | } | |
4276dc52 RD |
27954 | return resultobj; |
27955 | fail: | |
27956 | return NULL; | |
27957 | } | |
27958 | ||
27959 | ||
27960 | static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27961 | PyObject *resultobj; | |
27962 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27963 | wxRect result; | |
27964 | PyObject * obj0 = 0 ; | |
27965 | char *kwnames[] = { | |
27966 | (char *) "self", NULL | |
27967 | }; | |
27968 | ||
27969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail; | |
27970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27972 | { | |
27973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27974 | result = ((wxDisplay const *)arg1)->GetGeometry(); | |
27975 | ||
27976 | wxPyEndAllowThreads(__tstate); | |
27977 | if (PyErr_Occurred()) SWIG_fail; | |
27978 | } | |
27979 | { | |
27980 | wxRect * resultptr; | |
27981 | resultptr = new wxRect((wxRect &) result); | |
27982 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
27983 | } | |
27984 | return resultobj; | |
27985 | fail: | |
27986 | return NULL; | |
27987 | } | |
27988 | ||
27989 | ||
27990 | static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27991 | PyObject *resultobj; | |
27992 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27993 | wxString result; | |
27994 | PyObject * obj0 = 0 ; | |
27995 | char *kwnames[] = { | |
27996 | (char *) "self", NULL | |
27997 | }; | |
27998 | ||
27999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail; | |
28000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28002 | { | |
28003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28004 | result = ((wxDisplay const *)arg1)->GetName(); | |
28005 | ||
28006 | wxPyEndAllowThreads(__tstate); | |
28007 | if (PyErr_Occurred()) SWIG_fail; | |
28008 | } | |
28009 | { | |
28010 | #if wxUSE_UNICODE | |
28011 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28012 | #else | |
28013 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28014 | #endif | |
28015 | } | |
28016 | return resultobj; | |
28017 | fail: | |
28018 | return NULL; | |
28019 | } | |
28020 | ||
28021 | ||
28022 | static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28023 | PyObject *resultobj; | |
28024 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28025 | bool result; | |
28026 | PyObject * obj0 = 0 ; | |
28027 | char *kwnames[] = { | |
28028 | (char *) "self", NULL | |
28029 | }; | |
28030 | ||
28031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail; | |
28032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28034 | { | |
28035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28036 | result = (bool)((wxDisplay const *)arg1)->IsPrimary(); | |
28037 | ||
28038 | wxPyEndAllowThreads(__tstate); | |
28039 | if (PyErr_Occurred()) SWIG_fail; | |
28040 | } | |
4f89f6a3 RD |
28041 | { |
28042 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28043 | } | |
4276dc52 RD |
28044 | return resultobj; |
28045 | fail: | |
28046 | return NULL; | |
28047 | } | |
28048 | ||
28049 | ||
28050 | static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28051 | PyObject *resultobj; | |
28052 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28053 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
28054 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
28055 | PyObject *result; | |
28056 | PyObject * obj0 = 0 ; | |
28057 | PyObject * obj1 = 0 ; | |
28058 | char *kwnames[] = { | |
28059 | (char *) "self",(char *) "mode", NULL | |
28060 | }; | |
28061 | ||
28062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail; | |
28063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28065 | if (obj1) { | |
28066 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28067 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28068 | SWIG_fail; | |
28069 | if (arg2 == NULL) { | |
28070 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28071 | SWIG_fail; | |
28072 | } | |
28073 | } | |
28074 | { | |
28075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28076 | result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2); | |
28077 | ||
28078 | wxPyEndAllowThreads(__tstate); | |
28079 | if (PyErr_Occurred()) SWIG_fail; | |
28080 | } | |
28081 | resultobj = result; | |
28082 | return resultobj; | |
28083 | fail: | |
28084 | return NULL; | |
28085 | } | |
28086 | ||
28087 | ||
28088 | static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28089 | PyObject *resultobj; | |
28090 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28091 | wxVideoMode result; | |
28092 | PyObject * obj0 = 0 ; | |
28093 | char *kwnames[] = { | |
28094 | (char *) "self", NULL | |
28095 | }; | |
28096 | ||
28097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail; | |
28098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28100 | { | |
28101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28102 | result = ((wxDisplay const *)arg1)->GetCurrentMode(); | |
28103 | ||
28104 | wxPyEndAllowThreads(__tstate); | |
28105 | if (PyErr_Occurred()) SWIG_fail; | |
28106 | } | |
28107 | { | |
28108 | wxVideoMode * resultptr; | |
28109 | resultptr = new wxVideoMode((wxVideoMode &) result); | |
28110 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1); | |
28111 | } | |
28112 | return resultobj; | |
28113 | fail: | |
28114 | return NULL; | |
28115 | } | |
28116 | ||
28117 | ||
28118 | static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28119 | PyObject *resultobj; | |
28120 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28121 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
28122 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
28123 | bool result; | |
28124 | PyObject * obj0 = 0 ; | |
28125 | PyObject * obj1 = 0 ; | |
28126 | char *kwnames[] = { | |
28127 | (char *) "self",(char *) "mode", NULL | |
28128 | }; | |
28129 | ||
28130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail; | |
28131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28133 | if (obj1) { | |
28134 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28135 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28136 | SWIG_fail; | |
28137 | if (arg2 == NULL) { | |
28138 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28139 | SWIG_fail; | |
28140 | } | |
28141 | } | |
28142 | { | |
28143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28144 | result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2); | |
28145 | ||
28146 | wxPyEndAllowThreads(__tstate); | |
28147 | if (PyErr_Occurred()) SWIG_fail; | |
28148 | } | |
4f89f6a3 RD |
28149 | { |
28150 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28151 | } | |
4276dc52 RD |
28152 | return resultobj; |
28153 | fail: | |
28154 | return NULL; | |
28155 | } | |
28156 | ||
28157 | ||
28158 | static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28159 | PyObject *resultobj; | |
28160 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28161 | PyObject * obj0 = 0 ; | |
28162 | char *kwnames[] = { | |
28163 | (char *) "self", NULL | |
28164 | }; | |
28165 | ||
28166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail; | |
28167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28169 | { | |
28170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28171 | (arg1)->ResetMode(); | |
28172 | ||
28173 | wxPyEndAllowThreads(__tstate); | |
28174 | if (PyErr_Occurred()) SWIG_fail; | |
28175 | } | |
28176 | Py_INCREF(Py_None); resultobj = Py_None; | |
28177 | return resultobj; | |
28178 | fail: | |
28179 | return NULL; | |
28180 | } | |
28181 | ||
28182 | ||
28183 | static PyObject * Display_swigregister(PyObject *self, PyObject *args) { | |
28184 | PyObject *obj; | |
28185 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28186 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj); | |
28187 | Py_INCREF(obj); | |
28188 | return Py_BuildValue((char *)""); | |
28189 | } | |
d14a1e28 RD |
28190 | static PyMethodDef SwigMethods[] = { |
28191 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
28192 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
28193 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
28194 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, | |
28195 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
28196 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
28197 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS }, | |
28198 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS }, | |
28199 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
28200 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
28201 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
28202 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
28203 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
28204 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS }, | |
28205 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS }, | |
28206 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS }, | |
28207 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS }, | |
28208 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS }, | |
28209 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28210 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS }, | |
28211 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS }, | |
28212 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS }, | |
28213 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS }, | |
28214 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS }, | |
28215 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS }, | |
28216 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS }, | |
28217 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS }, | |
28218 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS }, | |
28219 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS }, | |
28220 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS }, | |
28221 | { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS }, | |
28222 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS }, | |
28223 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS }, | |
28224 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS }, | |
28225 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS }, | |
28226 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS }, | |
28227 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS }, | |
28228 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS }, | |
28229 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS }, | |
28230 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS }, | |
28231 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS }, | |
28232 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS }, | |
28233 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28234 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28235 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28236 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS }, | |
28237 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28238 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28239 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
28240 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
28241 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS }, | |
28242 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28243 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
28244 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
28245 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
28246 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
28247 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
28248 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
28249 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
28250 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
28251 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
28252 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
28253 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28254 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
28255 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
28256 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
28257 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, | |
39f61e25 | 28258 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28259 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, |
28260 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
28261 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
28262 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
28263 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
28264 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS }, | |
28265 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS }, | |
28266 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS }, | |
28267 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
28268 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
28269 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
28270 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
28271 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
28272 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS }, | |
28273 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS }, | |
28274 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS }, | |
28275 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28276 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 28277 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 28278 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 28279 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 28280 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28281 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
28282 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
28283 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS }, | |
28284 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
28285 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
28286 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS }, | |
28287 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
28288 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS }, | |
28289 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
28290 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
28291 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28292 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28293 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS }, | |
28294 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
28295 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
28296 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS }, | |
28297 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
28298 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
28299 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS }, | |
28300 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS }, | |
28301 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
28302 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
28303 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
28304 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS }, | |
28305 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS }, | |
28306 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
28307 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
28308 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
28309 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
28310 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
28311 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
28312 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
28313 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
28314 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
28315 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
28316 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, | |
28317 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
28318 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
28319 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS }, | |
28320 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28321 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28322 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28323 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
28324 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, | |
28325 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS }, | |
28326 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS }, | |
28327 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28328 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
28329 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
28330 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, | |
28331 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS }, | |
28332 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28333 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28334 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS }, | |
28335 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS }, | |
28336 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28337 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS }, | |
28338 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS }, | |
7722248d | 28339 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 28340 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS }, |
1c0f361b | 28341 | { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28342 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS }, |
28343 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
28344 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS }, |
28345 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
28346 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
cc6dd355 | 28347 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28348 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS }, |
28349 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS }, | |
28350 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
28351 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS }, | |
28352 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS }, | |
28353 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS }, | |
28354 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS }, | |
28355 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS }, | |
28356 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS }, | |
28357 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
28358 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
28359 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
28360 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28361 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
28362 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
28363 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
28364 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
28365 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS }, | |
28366 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28367 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
28368 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
28369 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28370 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28371 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28372 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
28373 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
28374 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
28375 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28376 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28377 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28378 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
28379 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
28380 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS }, | |
28381 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
28382 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS }, | |
28383 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS }, | |
28384 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS }, | |
28385 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
28386 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS }, | |
28387 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS }, | |
28388 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS }, | |
28389 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS }, | |
28390 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
28391 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
28392 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
28393 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
28394 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
28395 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS }, | |
28396 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS }, | |
28397 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
28398 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
28399 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
28400 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
28401 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS }, | |
28402 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
28403 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
28404 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
28405 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS }, | |
28406 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS }, | |
28407 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS }, | |
28408 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS }, | |
28409 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS }, | |
28410 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28411 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS }, | |
28412 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
28413 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS }, | |
cc6dd355 | 28414 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS }, |
d14a1e28 RD |
28415 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS }, |
28416 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS }, | |
28417 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
28418 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
28419 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS }, | |
28420 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS }, | |
28421 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28422 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS }, | |
28423 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS }, | |
28424 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS }, | |
28425 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS }, | |
28426 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS }, | |
28427 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28428 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
28429 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
28430 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
28431 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS }, | |
28432 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
28433 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
28434 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
28435 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS }, | |
28436 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
28437 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
28438 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, | |
28439 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS }, | |
28440 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
28441 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
28442 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
28443 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
28444 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
28445 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
28446 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
28447 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS }, | |
28448 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS }, | |
28449 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
28450 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
28451 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28452 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28453 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28454 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
28455 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
28456 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
28457 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
28458 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
28459 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
28460 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
28461 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28462 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
28463 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
28464 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
28465 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
28466 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
28467 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
28468 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
28469 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
28470 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
28471 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
28472 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
28473 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
28474 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
28475 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
28476 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
28477 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
28478 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
28479 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
28480 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
28481 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
28482 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
28483 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
28484 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
28485 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
28486 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
28487 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
28488 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
28489 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
28490 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
28491 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
28492 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
28493 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS }, | |
28494 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
28495 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
28496 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS }, | |
28497 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS }, | |
28498 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS }, | |
28499 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS }, | |
28500 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS }, | |
28501 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS }, | |
28502 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS }, | |
28503 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS }, | |
28504 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS }, | |
28505 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28506 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28507 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28508 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
28509 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
28510 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
28511 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28512 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
28513 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28514 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28515 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
28516 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS }, | |
28517 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS }, | |
28518 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
28519 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
28520 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
28521 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS }, | |
36cadbf7 RD |
28522 | { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS }, |
28523 | { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS }, | |
4d5c3d91 | 28524 | { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS }, |
36cadbf7 RD |
28525 | { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS }, |
28526 | { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS }, | |
4d5c3d91 | 28527 | { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS }, |
36cadbf7 RD |
28528 | { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS }, |
28529 | { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS }, | |
4d5c3d91 RD |
28530 | { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS }, |
28531 | { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28532 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS }, |
28533 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
28534 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
28535 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
28536 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28537 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
28538 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28539 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
28540 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
28541 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
28542 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
28543 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
28544 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
28545 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
28546 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
28547 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS }, | |
28548 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS }, | |
28549 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS }, | |
28550 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28551 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
28552 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
28553 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28554 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
28555 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
28556 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
28557 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
28558 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
28559 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
28560 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
28561 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
28562 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
28563 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS }, | |
28564 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
28565 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
28566 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
28567 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
28568 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
28569 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28570 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
28571 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
28572 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
28573 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
28574 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
28575 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
28576 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
28577 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS }, | |
28578 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
28579 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
28580 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
28581 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
28582 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
28583 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28584 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
1e0c8722 | 28585 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28586 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS }, |
28587 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS }, | |
28588 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, | |
28589 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, | |
28590 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, | |
28591 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
28592 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
28593 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
28594 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, | |
28595 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, | |
28596 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, | |
28597 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, | |
28598 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, | |
28599 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, | |
28600 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, | |
28601 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, | |
28602 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, | |
28603 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, | |
28604 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, | |
28605 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, | |
28606 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, | |
28607 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS }, | |
28608 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, | |
28609 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, | |
28610 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, | |
28611 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS }, | |
28612 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28613 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, | |
28614 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, | |
28615 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, | |
28616 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, | |
28617 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 28618 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, |
b88bce5f | 28619 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28620 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, |
28621 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, | |
28622 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28623 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
28624 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
28625 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
28626 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
28627 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28628 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28629 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28630 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS }, |
28631 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS }, | |
28632 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS }, | |
28633 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
28634 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
28635 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS }, | |
b88bce5f RD |
28636 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, |
28637 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
28638 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS }, | |
28639 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28640 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, |
28641 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, | |
28642 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, | |
28643 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, | |
28644 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, | |
28645 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, | |
28646 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, | |
28647 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, | |
28648 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, | |
28649 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, | |
28650 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, | |
28651 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, | |
28652 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, | |
28653 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, | |
28654 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, | |
28655 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, | |
28656 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, | |
28657 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS }, | |
28658 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS }, | |
28659 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS }, | |
28660 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
28661 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, | |
28662 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, | |
28663 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, | |
28664 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, | |
28665 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
28666 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, | |
28667 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, | |
28668 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, | |
28669 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, | |
28670 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS }, | |
28671 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, | |
28672 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, | |
28673 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, | |
28674 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, | |
28675 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, | |
28676 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, | |
28677 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, | |
28678 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
28679 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
28680 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
28681 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28682 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28683 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28684 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28685 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28686 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28687 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28688 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, | |
28689 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, | |
28690 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
28691 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
28692 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, | |
28693 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, | |
28694 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
28695 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, | |
28696 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
28697 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, | |
28698 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, | |
28699 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, | |
28700 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, | |
28701 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, | |
28702 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, | |
28703 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, | |
28704 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
28705 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, | |
28706 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, | |
28707 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, | |
28708 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, | |
28709 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28710 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, | |
28711 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, | |
28712 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, | |
28713 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
28714 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, | |
28715 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, | |
28716 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, | |
28717 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, | |
28718 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
28719 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, | |
28720 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, | |
28721 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, | |
28722 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, | |
28723 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, | |
28724 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, | |
28725 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, | |
28726 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, | |
28727 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, | |
28728 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, | |
28729 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, | |
28730 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28731 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS }, | |
28732 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS }, | |
28733 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS }, | |
28734 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS }, | |
28735 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS }, | |
28736 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS }, | |
28737 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS }, | |
28738 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS }, | |
28739 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS }, | |
28740 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS }, | |
28741 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, | |
28742 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, | |
28743 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, | |
28744 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, | |
28745 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, | |
28746 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS }, | |
28747 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, | |
28748 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, | |
28749 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, | |
28750 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, | |
28751 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS }, | |
28752 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, | |
28753 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, | |
28754 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, | |
28755 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, | |
28756 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, | |
28757 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, | |
28758 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
28759 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
28760 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
28761 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
28762 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
28763 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
28764 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
28765 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28766 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
28767 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
28768 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, | |
28769 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
28770 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
28771 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
28772 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
28773 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
28774 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
28775 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
28776 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
28777 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS }, | |
28778 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS }, | |
28779 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS }, | |
28780 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS }, | |
28781 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28782 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28783 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
28784 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, | |
28785 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, | |
28786 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
28787 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, | |
28788 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, | |
28789 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28790 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
28791 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, | |
28792 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, | |
28793 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, | |
28794 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, | |
28795 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, | |
28796 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS }, | |
28797 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
28798 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
28799 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
28800 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
28801 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
28802 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
28803 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS }, | |
28804 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS }, | |
28805 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS }, | |
28806 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS }, | |
28807 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, | |
28808 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, | |
28809 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28810 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, | |
28811 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, | |
28812 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, | |
28813 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28814 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
28815 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, | |
28816 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
28817 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28818 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
28819 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
28820 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
28821 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
28822 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
28823 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
28824 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
28825 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
28826 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
28827 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
28828 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28829 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28830 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS }, | |
28831 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS }, | |
28832 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS }, | |
28833 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS }, | |
28834 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, | |
28835 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28836 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28837 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28838 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS }, | |
28839 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS }, | |
28840 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS }, | |
28841 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS }, | |
28842 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS }, | |
28843 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS }, | |
28844 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS }, | |
28845 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS }, | |
28846 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS }, | |
28847 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS }, | |
28848 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
28849 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS }, | |
28850 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS }, | |
28851 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
28852 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28853 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS }, | |
28854 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
28855 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS }, | |
28856 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS }, | |
1a10c483 RD |
28857 | { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS }, |
28858 | { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
28859 | { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
28860 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS }, |
28861 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
28862 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28863 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS }, | |
28864 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS }, | |
28865 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS }, | |
28866 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS }, | |
28867 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28868 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS }, | |
28869 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS }, | |
28870 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS }, | |
28871 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS }, | |
28872 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28873 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28874 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS }, | |
28875 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28876 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28877 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28878 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS }, | |
28879 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28880 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28881 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS }, | |
28882 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28883 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
15afbcd0 | 28884 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28885 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS }, |
28886 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
28887 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, |
28888 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
28889 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28890 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS }, | |
28891 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28892 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS }, | |
28893 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS }, | |
28894 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS }, | |
28895 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28896 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS }, | |
28897 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS }, | |
28898 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
28899 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28900 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
28901 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28902 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28903 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
28904 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS }, | |
28905 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS }, | |
28906 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS }, | |
15afbcd0 | 28907 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28908 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
28909 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28910 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28911 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28912 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28913 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28914 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28915 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28916 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28917 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS }, | |
28918 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28919 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28920 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28921 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28922 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28923 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28924 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
28925 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS }, | |
28926 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28927 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28928 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28929 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28930 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28931 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28932 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
28933 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS }, | |
28934 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
28935 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
28936 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS }, | |
28937 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS }, | |
28938 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS }, | |
28939 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS }, | |
28940 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28941 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
28942 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28943 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS }, | |
28944 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28945 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS }, | |
dfbb5885 | 28946 | { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
28947 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS }, |
28948 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
28949 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
28950 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
28951 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS }, | |
4276dc52 RD |
28952 | { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS }, |
28953 | { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS }, | |
28954 | { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS }, | |
28955 | { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
28956 | { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
28957 | { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
28958 | { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28959 | { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28960 | { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28961 | { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS }, | |
28962 | { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS }, | |
28963 | { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS }, | |
28964 | { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS }, | |
28965 | { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS }, | |
28966 | { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS }, | |
28967 | { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS }, | |
28968 | { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS }, | |
28969 | { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS }, | |
28970 | { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS }, | |
28971 | { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS }, | |
28972 | { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
28973 | { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
28974 | { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
28975 | { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28976 | { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS }, | |
28977 | { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS }, | |
28978 | { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS }, | |
28979 | { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS }, | |
28980 | { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS }, | |
28981 | { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS }, | |
28982 | { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS }, | |
28983 | { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
28984 | { NULL, NULL } |
28985 | }; | |
28986 | ||
28987 | ||
28988 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
28989 | ||
28990 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
28991 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
28992 | } | |
28993 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
28994 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
28995 | } | |
28996 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
28997 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
28998 | } | |
28999 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
29000 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
29001 | } | |
29002 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
29003 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
29004 | } | |
29005 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
29006 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
29007 | } | |
29008 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
29009 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
29010 | } | |
29011 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
29012 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
29013 | } | |
29014 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
29015 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
29016 | } | |
29017 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
29018 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
29019 | } | |
29020 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
29021 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
29022 | } | |
29023 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
29024 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
29025 | } | |
29026 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
29027 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
29028 | } | |
29029 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
29030 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
29031 | } | |
29032 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
29033 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
29034 | } | |
29035 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
29036 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
29037 | } | |
29038 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
29039 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
29040 | } | |
29041 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
29042 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
29043 | } | |
29044 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
29045 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
29046 | } | |
29047 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
29048 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
29049 | } | |
29050 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
29051 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
29052 | } | |
29053 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
29054 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
29055 | } | |
29056 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
29057 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
29058 | } | |
29059 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
29060 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
29061 | } | |
29062 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
29063 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
29064 | } | |
29065 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
29066 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
29067 | } | |
29068 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
29069 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
29070 | } | |
29071 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
29072 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
29073 | } | |
29074 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
29075 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
29076 | } | |
29077 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
29078 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
29079 | } | |
29080 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
29081 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
29082 | } | |
29083 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
29084 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
29085 | } | |
29086 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
29087 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
29088 | } | |
29089 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
29090 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
29091 | } | |
29092 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
29093 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
29094 | } | |
29095 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
29096 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
29097 | } | |
29098 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
29099 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
29100 | } | |
29101 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
29102 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
29103 | } | |
29104 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
29105 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
29106 | } | |
29107 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
29108 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
29109 | } | |
29110 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
29111 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29112 | } | |
29113 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
29114 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29115 | } | |
29116 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
29117 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
29118 | } | |
29119 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
29120 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
29121 | } | |
29122 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
29123 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
29124 | } | |
29125 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
29126 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
29127 | } | |
29128 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
29129 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29130 | } | |
29131 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
29132 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
29133 | } | |
29134 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
29135 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29136 | } | |
29137 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
29138 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
29139 | } | |
29140 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
29141 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
29142 | } | |
29143 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
29144 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
29145 | } | |
29146 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
29147 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
29148 | } | |
29149 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
29150 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
29151 | } | |
29152 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
29153 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
29154 | } | |
29155 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29156 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
29157 | } | |
29158 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29159 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29160 | } | |
29161 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29162 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
29163 | } | |
29164 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29165 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29166 | } | |
29167 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29168 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
29169 | } | |
29170 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29171 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
29172 | } | |
29173 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29174 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
29175 | } | |
29176 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
29177 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
29178 | } | |
29179 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
29180 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
29181 | } | |
29182 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
29183 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29184 | } | |
29185 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
29186 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
29187 | } | |
29188 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
29189 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
29190 | } | |
29191 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
29192 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
29193 | } | |
29194 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
29195 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
29196 | } | |
29197 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
29198 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
29199 | } | |
29200 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
29201 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
29202 | } | |
29203 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
29204 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
29205 | } | |
29206 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
29207 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
29208 | } | |
29209 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
29210 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
29211 | } | |
29212 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
29213 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
29214 | } | |
29215 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
29216 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
29217 | } | |
29218 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
29219 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
29220 | } | |
29221 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
29222 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
29223 | } | |
29224 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
29225 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
29226 | } | |
29227 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
29228 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
29229 | } | |
29230 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
29231 | return (void *)((wxObject *) ((wxSizer *) x)); | |
29232 | } | |
29233 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
29234 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
29235 | } | |
29236 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
29237 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
29238 | } | |
29239 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
29240 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
29241 | } | |
29242 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
29243 | return (void *)((wxObject *) ((wxEvent *) x)); | |
29244 | } | |
29245 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
29246 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
29247 | } | |
29248 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
29249 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
29250 | } | |
29251 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
29252 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
29253 | } | |
29254 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
29255 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
29256 | } | |
29257 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
29258 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
29259 | } | |
29260 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
29261 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
29262 | } | |
29263 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
29264 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
29265 | } | |
29266 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
29267 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
29268 | } | |
29269 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
29270 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
29271 | } | |
29272 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
29273 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
29274 | } | |
29275 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
29276 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
29277 | } | |
29278 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
29279 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
29280 | } | |
29281 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
29282 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
29283 | } | |
29284 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
29285 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
29286 | } | |
29287 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
29288 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
29289 | } | |
29290 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
29291 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
29292 | } | |
29293 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
29294 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
29295 | } | |
29296 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
29297 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
29298 | } | |
29299 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
29300 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
29301 | } | |
29302 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
29303 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
29304 | } | |
29305 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
29306 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
29307 | } | |
29308 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
29309 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
29310 | } | |
29311 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
29312 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
29313 | } | |
29314 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
29315 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
29316 | } | |
29317 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
29318 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
29319 | } | |
29320 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
29321 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
29322 | } | |
29323 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
29324 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
29325 | } | |
29326 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
29327 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
29328 | } | |
29329 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
29330 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
29331 | } | |
29332 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
29333 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
29334 | } | |
29335 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
29336 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
29337 | } | |
29338 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
29339 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
29340 | } | |
29341 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
29342 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
29343 | } | |
29344 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
29345 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
29346 | } | |
29347 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
29348 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
29349 | } | |
29350 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
29351 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
29352 | } | |
29353 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
29354 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
29355 | } | |
29356 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
29357 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
29358 | } | |
29359 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
29360 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
29361 | } | |
29362 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
29363 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
29364 | } | |
29365 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
29366 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
29367 | } | |
1e0c8722 RD |
29368 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
29369 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
29370 | } | |
d14a1e28 RD |
29371 | static void *_p_wxImageTo_p_wxObject(void *x) { |
29372 | return (void *)((wxObject *) ((wxImage *) x)); | |
29373 | } | |
29374 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
29375 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
29376 | } | |
29377 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
29378 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
29379 | } | |
29380 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
29381 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
29382 | } | |
29383 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
29384 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
29385 | } | |
29386 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
29387 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
29388 | } | |
29389 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
29390 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
29391 | } | |
29392 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
29393 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
29394 | } | |
29395 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
29396 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
29397 | } | |
29398 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
29399 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
29400 | } | |
29401 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
29402 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
29403 | } | |
29404 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
29405 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
29406 | } | |
29407 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
29408 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
29409 | } | |
29410 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
29411 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
29412 | } | |
29413 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
29414 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
29415 | } | |
29416 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
29417 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
29418 | } | |
29419 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
29420 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
29421 | } | |
29422 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
29423 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
29424 | } | |
29425 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
29426 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
29427 | } | |
29428 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
29429 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
29430 | } | |
29431 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
29432 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
29433 | } | |
29434 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
29435 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
29436 | } | |
29437 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
29438 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
29439 | } | |
29440 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
29441 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
29442 | } | |
29443 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
29444 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
29445 | } | |
29446 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
29447 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29448 | } | |
29449 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
29450 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
29451 | } | |
29452 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
29453 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
29454 | } | |
29455 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
29456 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
29457 | } | |
29458 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
29459 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
29460 | } | |
29461 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
29462 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
29463 | } | |
29464 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
29465 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
29466 | } | |
29467 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
29468 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
29469 | } | |
29470 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
29471 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
29472 | } | |
29473 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
29474 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
29475 | } | |
29476 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
29477 | return (void *)((wxWindow *) ((wxControl *) x)); | |
29478 | } | |
29479 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
29480 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
29481 | } | |
29482 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
29483 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
29484 | } | |
29485 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
29486 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
29487 | } | |
29488 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
29489 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
29490 | } | |
15afbcd0 RD |
29491 | static swig_type_info _swigt__p_wxLogChain[] = {{"_p_wxLogChain", 0, "wxLogChain *", 0, 0, 0, 0},{"_p_wxLogChain", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
29492 | static swig_type_info _swigt__p_wxMutexGuiLocker[] = {{"_p_wxMutexGuiLocker", 0, "wxMutexGuiLocker *", 0, 0, 0, 0},{"_p_wxMutexGuiLocker", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29493 | static swig_type_info _swigt__p_wxFileHistory[] = {{"_p_wxFileHistory", 0, "wxFileHistory *", 0, 0, 0, 0},{"_p_wxFileHistory", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29494 | static swig_type_info _swigt__p_wxLog[] = {{"_p_wxLog", 0, "wxLog *", 0, 0, 0, 0},{"_p_wxLogStderr", _p_wxLogStderrTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogTextCtrl", _p_wxLogTextCtrlTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogWindow", _p_wxLogWindowTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogChain", _p_wxLogChainTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogGui", _p_wxLogGuiTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxPyLog", _p_wxPyLogTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29495 | static swig_type_info _swigt__p_wxDateTime__TimeZone[] = {{"_p_wxDateTime__TimeZone", 0, "wxDateTime::TimeZone *", 0, 0, 0, 0},{"_p_wxDateTime__TimeZone", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29496 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0, 0, 0, 0},{"_p_wxMenu", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29497 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29498 | static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0, 0, 0, 0},{"_p_wxFileConfig", _p_wxFileConfigTo_p_wxConfigBase, 0, 0, 0, 0, 0},{"_p_wxConfigBase", 0, 0, 0, 0, 0, 0},{"_p_wxConfig", _p_wxConfigTo_p_wxConfigBase, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
4276dc52 | 29499 | static swig_type_info _swigt__p_wxDisplay[] = {{"_p_wxDisplay", 0, "wxDisplay *", 0, 0, 0, 0},{"_p_wxDisplay", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
29500 | static swig_type_info _swigt__p_wxFileType[] = {{"_p_wxFileType", 0, "wxFileType *", 0, 0, 0, 0},{"_p_wxFileType", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
29501 | static swig_type_info _swigt__p_wxLogGui[] = {{"_p_wxLogGui", 0, "wxLogGui *", 0, 0, 0, 0},{"_p_wxLogGui", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29502 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29503 | static swig_type_info _swigt__p_wxDataFormat[] = {{"_p_wxDataFormat", 0, "wxDataFormat *", 0, 0, 0, 0},{"_p_wxDataFormat", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29504 | static swig_type_info _swigt__p_wxTimerEvent[] = {{"_p_wxTimerEvent", 0, "wxTimerEvent *", 0, 0, 0, 0},{"_p_wxTimerEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29505 | static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0, 0, 0, 0},{"_p_wxCaret", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29506 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29507 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29508 | static swig_type_info _swigt__p_wxClipboard[] = {{"_p_wxClipboard", 0, "wxClipboard *", 0, 0, 0, 0},{"_p_wxClipboard", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29509 | static swig_type_info _swigt__p_wxStopWatch[] = {{"_p_wxStopWatch", 0, "wxStopWatch *", 0, 0, 0, 0},{"_p_wxStopWatch", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29510 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29511 | static swig_type_info _swigt__p_wxClipboardLocker[] = {{"_p_wxClipboardLocker", 0, "wxClipboardLocker *", 0, 0, 0, 0},{"_p_wxClipboardLocker", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29512 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29513 | static swig_type_info _swigt__p_wxLogStderr[] = {{"_p_wxLogStderr", 0, "wxLogStderr *", 0, 0, 0, 0},{"_p_wxLogStderr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29514 | static swig_type_info _swigt__p_wxLogTextCtrl[] = {{"_p_wxLogTextCtrl", 0, "wxLogTextCtrl *", 0, 0, 0, 0},{"_p_wxLogTextCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29515 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0, 0, 0, 0},{"_p_wxTextCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29516 | static swig_type_info _swigt__p_wxBusyCursor[] = {{"_p_wxBusyCursor", 0, "wxBusyCursor *", 0, 0, 0, 0},{"_p_wxBusyCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36cadbf7 | 29517 | static swig_type_info _swigt__p_wxPyBitmapDataObject[] = {{"_p_wxPyBitmapDataObject", 0, "wxPyBitmapDataObject *", 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
29518 | static swig_type_info _swigt__p_wxPyTextDataObject[] = {{"_p_wxPyTextDataObject", 0, "wxPyTextDataObject *", 0, 0, 0, 0},{"_p_wxPyTextDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
29519 | static swig_type_info _swigt__p_wxBitmapDataObject[] = {{"_p_wxBitmapDataObject", 0, "wxBitmapDataObject *", 0, 0, 0, 0},{"_p_wxBitmapDataObject", 0, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29520 | static swig_type_info _swigt__p_wxTextDataObject[] = {{"_p_wxTextDataObject", 0, "wxTextDataObject *", 0, 0, 0, 0},{"_p_wxTextDataObject", 0, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxTextDataObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29521 | static swig_type_info _swigt__p_wxDataObject[] = {{"_p_wxDataObject", 0, "wxDataObject *", 0, 0, 0, 0},{"_p_wxDataObjectSimple", _p_wxDataObjectSimpleTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", _p_wxPyDataObjectSimpleTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxDataObjectComposite", _p_wxDataObjectCompositeTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxDataObject", 0, 0, 0, 0, 0, 0},{"_p_wxTextDataObject", _p_wxTextDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxBitmapDataObject", _p_wxBitmapDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxFileDataObject", _p_wxFileDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxCustomDataObject", _p_wxCustomDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxMetafileDataObject", _p_wxMetafileDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
15afbcd0 RD |
29522 | static swig_type_info _swigt__p_wxFileDataObject[] = {{"_p_wxFileDataObject", 0, "wxFileDataObject *", 0, 0, 0, 0},{"_p_wxFileDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
29523 | static swig_type_info _swigt__p_wxCustomDataObject[] = {{"_p_wxCustomDataObject", 0, "wxCustomDataObject *", 0, 0, 0, 0},{"_p_wxCustomDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29524 | static swig_type_info _swigt__p_wxURLDataObject[] = {{"_p_wxURLDataObject", 0, "wxURLDataObject *", 0, 0, 0, 0},{"_p_wxURLDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29525 | static swig_type_info _swigt__p_wxMetafileDataObject[] = {{"_p_wxMetafileDataObject", 0, "wxMetafileDataObject *", 0, 0, 0, 0},{"_p_wxMetafileDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29526 | static swig_type_info _swigt__p_wxSound[] = {{"_p_wxSound", 0, "wxSound *", 0, 0, 0, 0},{"_p_wxSound", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29527 | static swig_type_info _swigt__p_wxTimerRunner[] = {{"_p_wxTimerRunner", 0, "wxTimerRunner *", 0, 0, 0, 0},{"_p_wxTimerRunner", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29528 | static swig_type_info _swigt__p_wxLogWindow[] = {{"_p_wxLogWindow", 0, "wxLogWindow *", 0, 0, 0, 0},{"_p_wxLogWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29529 | static swig_type_info _swigt__p_wxTimeSpan[] = {{"_p_wxTimeSpan", 0, "wxTimeSpan *", 0, 0, 0, 0},{"_p_wxTimeSpan", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29530 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29531 | static swig_type_info _swigt__p_wxWindowDisabler[] = {{"_p_wxWindowDisabler", 0, "wxWindowDisabler *", 0, 0, 0, 0},{"_p_wxWindowDisabler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29532 | static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0, 0, 0, 0},{"_p_wxToolTip", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29533 | static swig_type_info _swigt__p_wxDataObjectComposite[] = {{"_p_wxDataObjectComposite", 0, "wxDataObjectComposite *", 0, 0, 0, 0},{"_p_wxDataObjectComposite", 0, 0, 0, 0, 0, 0},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObjectComposite, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29534 | static swig_type_info _swigt__p_wxFileConfig[] = {{"_p_wxFileConfig", 0, "wxFileConfig *", 0, 0, 0, 0},{"_p_wxFileConfig", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29535 | static swig_type_info _swigt__p_wxSystemSettings[] = {{"_p_wxSystemSettings", 0, "wxSystemSettings *", 0, 0, 0, 0},{"_p_wxSystemSettings", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
4276dc52 | 29536 | static swig_type_info _swigt__p_wxVideoMode[] = {{"_p_wxVideoMode", 0, "wxVideoMode *", 0, 0, 0, 0},{"_p_wxVideoMode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
29537 | static swig_type_info _swigt__p_wxPyDataObjectSimple[] = {{"_p_wxPyDataObjectSimple", 0, "wxPyDataObjectSimple *", 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
29538 | static swig_type_info _swigt__p_wxDataObjectSimple[] = {{"_p_wxDataObjectSimple", 0, "wxDataObjectSimple *", 0, 0, 0, 0},{"_p_wxDataObjectSimple", 0, 0, 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", _p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxTextDataObject", _p_wxTextDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxBitmapDataObject", _p_wxBitmapDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxFileDataObject", _p_wxFileDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxCustomDataObject", _p_wxCustomDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxMetafileDataObject", _p_wxMetafileDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29539 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29540 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29541 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29542 | static swig_type_info _swigt__p_wxSingleInstanceChecker[] = {{"_p_wxSingleInstanceChecker", 0, "wxSingleInstanceChecker *", 0, 0, 0, 0},{"_p_wxSingleInstanceChecker", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29543 | static swig_type_info _swigt__p_wxFileTypeInfo[] = {{"_p_wxFileTypeInfo", 0, "wxFileTypeInfo *", 0, 0, 0, 0},{"_p_wxFileTypeInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29544 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0, 0, 0, 0},{"_p_wxFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29545 | static swig_type_info _swigt__p_wxTimer[] = {{"_p_wxTimer", 0, "wxTimer *", 0, 0, 0, 0},{"_p_wxTimer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29546 | static swig_type_info _swigt__p_wxMimeTypesManager[] = {{"_p_wxMimeTypesManager", 0, "wxMimeTypesManager *", 0, 0, 0, 0},{"_p_wxMimeTypesManager", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29547 | static swig_type_info _swigt__p_wxPyArtProvider[] = {{"_p_wxPyArtProvider", 0, "wxPyArtProvider *", 0, 0, 0, 0},{"_p_wxPyArtProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29548 | static swig_type_info _swigt__p_wxPyTipProvider[] = {{"_p_wxPyTipProvider", 0, "wxPyTipProvider *", 0, 0, 0, 0},{"_p_wxPyTipProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29549 | static swig_type_info _swigt__p_wxTipProvider[] = {{"_p_wxTipProvider", 0, "wxTipProvider *", 0, 0, 0, 0},{"_p_wxTipProvider", 0, 0, 0, 0, 0, 0},{"_p_wxPyTipProvider", _p_wxPyTipProviderTo_p_wxTipProvider, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29550 | static swig_type_info _swigt__p_wxJoystick[] = {{"_p_wxJoystick", 0, "wxJoystick *", 0, 0, 0, 0},{"_p_wxJoystick", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29551 | static swig_type_info _swigt__p_wxSystemOptions[] = {{"_p_wxSystemOptions", 0, "wxSystemOptions *", 0, 0, 0, 0},{"_p_wxSystemOptions", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29552 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29553 | static swig_type_info _swigt__p_wxJoystickEvent[] = {{"_p_wxJoystickEvent", 0, "wxJoystickEvent *", 0, 0, 0, 0},{"_p_wxJoystickEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29554 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29555 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileHistory", _p_wxFileHistoryTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxClipboard", _p_wxClipboardTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolTip", _p_wxToolTipTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSystemOptions", _p_wxSystemOptionsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBusyInfo", _p_wxBusyInfoTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29556 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0, 0, 0, 0},{"_p_wxOutputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29557 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0, 0, 0, 0},{"_p_wxDateTime", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29558 | static swig_type_info _swigt__p_wxPyDropSource[] = {{"_p_wxPyDropSource", 0, "wxPyDropSource *", 0, 0, 0, 0},{"_p_wxPyDropSource", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29559 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29560 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29561 | static swig_type_info _swigt__p_wxPyProcess[] = {{"_p_wxPyProcess", 0, "wxPyProcess *", 0, 0, 0, 0},{"_p_wxPyProcess", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29562 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29563 | static swig_type_info _swigt__p_wxConfig[] = {{"_p_wxConfig", 0, "wxConfig *", 0, 0, 0, 0},{"_p_wxConfig", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29564 | static swig_type_info _swigt__p_wxChar[] = {{"_p_wxChar", 0, "wxChar *", 0, 0, 0, 0},{"_p_wxChar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29565 | static swig_type_info _swigt__p_wxBusyInfo[] = {{"_p_wxBusyInfo", 0, "wxBusyInfo *", 0, 0, 0, 0},{"_p_wxBusyInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29566 | static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0, 0, 0, 0},{"_p_wxPyDropTarget", 0, 0, 0, 0, 0, 0},{"_p_wxPyTextDropTarget", _p_wxPyTextDropTargetTo_p_wxPyDropTarget, 0, 0, 0, 0, 0},{"_p_wxPyFileDropTarget", _p_wxPyFileDropTargetTo_p_wxPyDropTarget, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29567 | static swig_type_info _swigt__p_wxPyTextDropTarget[] = {{"_p_wxPyTextDropTarget", 0, "wxPyTextDropTarget *", 0, 0, 0, 0},{"_p_wxPyTextDropTarget", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29568 | static swig_type_info _swigt__p_wxPyFileDropTarget[] = {{"_p_wxPyFileDropTarget", 0, "wxPyFileDropTarget *", 0, 0, 0, 0},{"_p_wxPyFileDropTarget", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29569 | static swig_type_info _swigt__p_wxProcessEvent[] = {{"_p_wxProcessEvent", 0, "wxProcessEvent *", 0, 0, 0, 0},{"_p_wxProcessEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29570 | static swig_type_info _swigt__p_wxPyLog[] = {{"_p_wxPyLog", 0, "wxPyLog *", 0, 0, 0, 0},{"_p_wxPyLog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29571 | static swig_type_info _swigt__p_wxLogNull[] = {{"_p_wxLogNull", 0, "wxLogNull *", 0, 0, 0, 0},{"_p_wxLogNull", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29572 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
15afbcd0 RD |
29573 | static swig_type_info _swigt__p_wxConfigPathChanger[] = {{"_p_wxConfigPathChanger", 0, "wxConfigPathChanger *", 0, 0, 0, 0},{"_p_wxConfigPathChanger", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
29574 | static swig_type_info _swigt__p_wxPyTimer[] = {{"_p_wxPyTimer", 0, "wxPyTimer *", 0, 0, 0, 0},{"_p_wxPyTimer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29575 | static swig_type_info _swigt__p_wxDateSpan[] = {{"_p_wxDateSpan", 0, "wxDateSpan *", 0, 0, 0, 0},{"_p_wxDateSpan", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d14a1e28 RD |
29576 | |
29577 | static swig_type_info *swig_types_initial[] = { | |
29578 | _swigt__p_wxLogChain, | |
29579 | _swigt__p_wxMutexGuiLocker, | |
29580 | _swigt__p_wxFileHistory, | |
29581 | _swigt__p_wxLog, | |
29582 | _swigt__p_wxDateTime__TimeZone, | |
29583 | _swigt__p_wxMenu, | |
29584 | _swigt__p_wxEvent, | |
29585 | _swigt__p_wxConfigBase, | |
4276dc52 | 29586 | _swigt__p_wxDisplay, |
d14a1e28 RD |
29587 | _swigt__p_wxFileType, |
29588 | _swigt__p_wxLogGui, | |
29589 | _swigt__p_wxFont, | |
29590 | _swigt__p_wxDataFormat, | |
29591 | _swigt__p_wxTimerEvent, | |
29592 | _swigt__p_wxCaret, | |
29593 | _swigt__p_int, | |
29594 | _swigt__p_wxSize, | |
29595 | _swigt__p_wxClipboard, | |
29596 | _swigt__p_wxStopWatch, | |
29597 | _swigt__p_wxDC, | |
29598 | _swigt__p_wxClipboardLocker, | |
29599 | _swigt__p_wxIcon, | |
29600 | _swigt__p_wxLogStderr, | |
29601 | _swigt__p_wxLogTextCtrl, | |
29602 | _swigt__p_wxTextCtrl, | |
29603 | _swigt__p_wxBusyCursor, | |
36cadbf7 | 29604 | _swigt__p_wxPyBitmapDataObject, |
d14a1e28 RD |
29605 | _swigt__p_wxPyTextDataObject, |
29606 | _swigt__p_wxBitmapDataObject, | |
29607 | _swigt__p_wxTextDataObject, | |
29608 | _swigt__p_wxDataObject, | |
994141e6 | 29609 | _swigt__p_wxFileDataObject, |
d14a1e28 RD |
29610 | _swigt__p_wxCustomDataObject, |
29611 | _swigt__p_wxURLDataObject, | |
29612 | _swigt__p_wxMetafileDataObject, | |
4d5c3d91 | 29613 | _swigt__p_wxSound, |
d14a1e28 RD |
29614 | _swigt__p_wxTimerRunner, |
29615 | _swigt__p_wxLogWindow, | |
29616 | _swigt__p_wxTimeSpan, | |
29617 | _swigt__p_wxArrayString, | |
29618 | _swigt__p_wxWindowDisabler, | |
29619 | _swigt__p_wxToolTip, | |
29620 | _swigt__p_wxDataObjectComposite, | |
29621 | _swigt__p_wxFileConfig, | |
29622 | _swigt__p_wxSystemSettings, | |
4276dc52 | 29623 | _swigt__p_wxVideoMode, |
d14a1e28 RD |
29624 | _swigt__p_wxPyDataObjectSimple, |
29625 | _swigt__p_wxDataObjectSimple, | |
29626 | _swigt__p_wxEvtHandler, | |
29627 | _swigt__p_wxRect, | |
994141e6 | 29628 | _swigt__p_char, |
d14a1e28 RD |
29629 | _swigt__p_wxSingleInstanceChecker, |
29630 | _swigt__p_wxFileTypeInfo, | |
29631 | _swigt__p_wxFrame, | |
29632 | _swigt__p_wxTimer, | |
29633 | _swigt__p_wxMimeTypesManager, | |
29634 | _swigt__p_wxPyArtProvider, | |
29635 | _swigt__p_wxPyTipProvider, | |
29636 | _swigt__p_wxTipProvider, | |
29637 | _swigt__p_wxJoystick, | |
29638 | _swigt__p_wxSystemOptions, | |
29639 | _swigt__p_wxPoint, | |
29640 | _swigt__p_wxJoystickEvent, | |
29641 | _swigt__p_wxCursor, | |
29642 | _swigt__p_wxObject, | |
29643 | _swigt__p_wxOutputStream, | |
29644 | _swigt__p_wxDateTime, | |
29645 | _swigt__p_wxPyDropSource, | |
29646 | _swigt__p_wxWindow, | |
29647 | _swigt__p_wxString, | |
29648 | _swigt__p_wxPyProcess, | |
29649 | _swigt__p_wxBitmap, | |
29650 | _swigt__p_wxConfig, | |
29651 | _swigt__p_wxChar, | |
29652 | _swigt__p_wxBusyInfo, | |
29653 | _swigt__p_wxPyDropTarget, | |
29654 | _swigt__p_wxPyTextDropTarget, | |
29655 | _swigt__p_wxPyFileDropTarget, | |
29656 | _swigt__p_wxProcessEvent, | |
29657 | _swigt__p_wxPyLog, | |
29658 | _swigt__p_wxLogNull, | |
29659 | _swigt__p_wxColour, | |
29660 | _swigt__p_wxConfigPathChanger, | |
29661 | _swigt__p_wxPyTimer, | |
29662 | _swigt__p_wxDateSpan, | |
29663 | 0 | |
29664 | }; | |
29665 | ||
29666 | ||
29667 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
29668 | ||
29669 | static swig_const_info swig_const_table[] = { | |
15afbcd0 RD |
29670 | { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char}, |
29671 | { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char}, | |
29672 | { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char}, | |
29673 | { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char}, | |
29674 | { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char}, | |
d14a1e28 RD |
29675 | {0}}; |
29676 | ||
29677 | #ifdef __cplusplus | |
29678 | } | |
29679 | #endif | |
29680 | ||
29681 | #ifdef __cplusplus | |
29682 | extern "C" | |
29683 | #endif | |
29684 | SWIGEXPORT(void) SWIG_init(void) { | |
29685 | static PyObject *SWIG_globals = 0; | |
29686 | static int typeinit = 0; | |
29687 | PyObject *m, *d; | |
29688 | int i; | |
29689 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
29690 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
29691 | d = PyModule_GetDict(m); | |
29692 | ||
29693 | if (!typeinit) { | |
29694 | for (i = 0; swig_types_initial[i]; i++) { | |
29695 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
29696 | } | |
29697 | typeinit = 1; | |
29698 | } | |
29699 | SWIG_InstallConstants(d,swig_const_table); | |
29700 | ||
15afbcd0 RD |
29701 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT)); |
29702 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT)); | |
29703 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT)); | |
29704 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT)); | |
29705 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT)); | |
29706 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE)); | |
29707 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT)); | |
29708 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT)); | |
29709 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT)); | |
29710 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR)); | |
29711 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND)); | |
29712 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP)); | |
29713 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION)); | |
29714 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION)); | |
29715 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU)); | |
29716 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW)); | |
29717 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME)); | |
29718 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT)); | |
29719 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT)); | |
29720 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT)); | |
29721 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER)); | |
29722 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER)); | |
29723 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE)); | |
29724 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT)); | |
29725 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
29726 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE)); | |
29727 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE)); | |
29728 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW)); | |
29729 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW)); | |
29730 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT)); | |
29731 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT)); | |
29732 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
29733 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT)); | |
29734 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT)); | |
29735 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT)); | |
29736 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT)); | |
29737 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW)); | |
29738 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT)); | |
29739 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT)); | |
29740 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK)); | |
29741 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX)); | |
29742 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT)); | |
29743 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
29744 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
29745 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT)); | |
29746 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR)); | |
29747 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX)); | |
29748 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS)); | |
29749 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X)); | |
29750 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y)); | |
29751 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X)); | |
29752 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y)); | |
29753 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X)); | |
29754 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y)); | |
29755 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X)); | |
29756 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y)); | |
29757 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X)); | |
29758 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y)); | |
29759 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X)); | |
29760 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y)); | |
29761 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X)); | |
29762 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X)); | |
29763 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y)); | |
29764 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X)); | |
29765 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y)); | |
29766 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X)); | |
29767 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y)); | |
29768 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X)); | |
29769 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y)); | |
29770 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X)); | |
29771 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y)); | |
29772 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X)); | |
29773 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y)); | |
29774 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y)); | |
29775 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X)); | |
29776 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X)); | |
29777 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y)); | |
29778 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y)); | |
29779 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y)); | |
29780 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y)); | |
29781 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT)); | |
29782 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT)); | |
29783 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS)); | |
29784 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS)); | |
29785 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS)); | |
29786 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME)); | |
29787 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE)); | |
29788 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY)); | |
29789 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA)); | |
29790 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL)); | |
29791 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP)); | |
b2dc1044 RD |
29792 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
29793 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
29794 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
29795 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
15afbcd0 RD |
29796 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF)); |
29797 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT)); | |
29798 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS)); | |
29799 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT)); | |
d14a1e28 | 29800 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); |
1c0f361b RD |
29801 | |
29802 | wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer"); | |
29803 | ||
15afbcd0 RD |
29804 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError)); |
29805 | PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error)); | |
29806 | PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning)); | |
29807 | PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message)); | |
29808 | PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status)); | |
29809 | PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info)); | |
29810 | PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug)); | |
29811 | PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace)); | |
29812 | PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress)); | |
29813 | PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User)); | |
29814 | PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max)); | |
29815 | PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc")); | |
29816 | PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages")); | |
29817 | PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc")); | |
29818 | PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount")); | |
29819 | PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole")); | |
29820 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001)); | |
29821 | PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002)); | |
29822 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004)); | |
29823 | PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008)); | |
29824 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100)); | |
29825 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT)); | |
29826 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT)); | |
29827 | PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK)); | |
29828 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL)); | |
29829 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED)); | |
29830 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS)); | |
29831 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR)); | |
29832 | PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE)); | |
29833 | PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP)); | |
29834 | PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT)); | |
29835 | PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT)); | |
29836 | PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL)); | |
29837 | PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP)); | |
29838 | PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT)); | |
29839 | PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT)); | |
29840 | PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT)); | |
29841 | PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE)); | |
29842 | PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL)); | |
29843 | PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS)); | |
29844 | PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV)); | |
29845 | PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS)); | |
29846 | PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE)); | |
29847 | PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM)); | |
29848 | PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM)); | |
d14a1e28 | 29849 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); |
15afbcd0 RD |
29850 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC)); |
29851 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC)); | |
29852 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE)); | |
29853 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER)); | |
d14a1e28 RD |
29854 | |
29855 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
29856 | ||
15afbcd0 RD |
29857 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1)); |
29858 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2)); | |
29859 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY)); | |
29860 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1)); | |
29861 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2)); | |
29862 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3)); | |
29863 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4)); | |
d14a1e28 RD |
29864 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); |
29865 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
29866 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
29867 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
15afbcd0 RD |
29868 | PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC)); |
29869 | PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC)); | |
29870 | PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP)); | |
29871 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD)); | |
29872 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE)); | |
29873 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE)); | |
29874 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME)); | |
29875 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL)); | |
d14a1e28 RD |
29876 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); |
29877 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
29878 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
29879 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
29880 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
29881 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
29882 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
29883 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); | |
29884 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
29885 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
29886 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
29887 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
29888 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
29889 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
29890 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
29891 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
29892 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
29893 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
29894 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
29895 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
29896 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
29897 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
29898 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
29899 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
29900 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
29901 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
29902 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
29903 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
29904 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
29905 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
29906 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
29907 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
29908 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
29909 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
29910 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
29911 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
29912 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
29913 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
29914 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
29915 | ||
29916 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
29917 | ||
15afbcd0 RD |
29918 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE)); |
29919 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE)); | |
29920 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH)); | |
29921 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS)); | |
29922 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown)); | |
29923 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String)); | |
29924 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean)); | |
29925 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer)); | |
29926 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float)); | |
b2dc1044 RD |
29927 | SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); |
29928 | SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); | |
15afbcd0 RD |
29929 | PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local)); |
29930 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12)); | |
29931 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11)); | |
29932 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10)); | |
29933 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9)); | |
29934 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8)); | |
29935 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7)); | |
29936 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6)); | |
29937 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5)); | |
29938 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4)); | |
29939 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3)); | |
29940 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2)); | |
29941 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1)); | |
29942 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0)); | |
29943 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1)); | |
29944 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2)); | |
29945 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3)); | |
29946 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4)); | |
29947 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5)); | |
29948 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6)); | |
29949 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7)); | |
29950 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8)); | |
29951 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9)); | |
29952 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10)); | |
29953 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11)); | |
29954 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12)); | |
29955 | PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET)); | |
29956 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST)); | |
29957 | PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET)); | |
29958 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST)); | |
29959 | PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET)); | |
29960 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST)); | |
29961 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK)); | |
29962 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD)); | |
29963 | PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST)); | |
29964 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT)); | |
29965 | PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST)); | |
29966 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT)); | |
29967 | PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST)); | |
29968 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT)); | |
29969 | PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST)); | |
29970 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT)); | |
29971 | PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST)); | |
29972 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT)); | |
29973 | PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST)); | |
29974 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST)); | |
29975 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT)); | |
29976 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST)); | |
29977 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST)); | |
29978 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST)); | |
29979 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST)); | |
29980 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC)); | |
29981 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian)); | |
29982 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian)); | |
29983 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown)); | |
29984 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard)); | |
29985 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska)); | |
29986 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania)); | |
29987 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria)); | |
29988 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen)); | |
29989 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg)); | |
29990 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol)); | |
29991 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia)); | |
29992 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria)); | |
29993 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium)); | |
29994 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria)); | |
29995 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1)); | |
29996 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2)); | |
29997 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3)); | |
29998 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada)); | |
29999 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China)); | |
30000 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1)); | |
30001 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2)); | |
30002 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia)); | |
30003 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark)); | |
30004 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt)); | |
30005 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia)); | |
30006 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland)); | |
30007 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France)); | |
30008 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace)); | |
30009 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine)); | |
30010 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg)); | |
30011 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany)); | |
30012 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic)); | |
30013 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia)); | |
30014 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant)); | |
30015 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain)); | |
30016 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece)); | |
30017 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary)); | |
30018 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland)); | |
30019 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy)); | |
30020 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan)); | |
30021 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1)); | |
30022 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2)); | |
30023 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3)); | |
30024 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia)); | |
30025 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania)); | |
30026 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg)); | |
30027 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands)); | |
30028 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen)); | |
30029 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland)); | |
30030 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht)); | |
30031 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland)); | |
30032 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway)); | |
30033 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland)); | |
30034 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal)); | |
30035 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania)); | |
30036 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia)); | |
30037 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland)); | |
30038 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain)); | |
30039 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden)); | |
30040 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland)); | |
30041 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic)); | |
30042 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant)); | |
30043 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey)); | |
30044 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA)); | |
30045 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales)); | |
30046 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia)); | |
30047 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown)); | |
30048 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default)); | |
30049 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start)); | |
30050 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC)); | |
30051 | PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France)); | |
30052 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany)); | |
30053 | PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK)); | |
30054 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End)); | |
30055 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia)); | |
30056 | PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA)); | |
30057 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan)); | |
30058 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb)); | |
30059 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar)); | |
30060 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr)); | |
30061 | PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May)); | |
30062 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun)); | |
30063 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul)); | |
30064 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug)); | |
30065 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep)); | |
30066 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct)); | |
30067 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov)); | |
30068 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec)); | |
30069 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month)); | |
30070 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun)); | |
30071 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon)); | |
30072 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue)); | |
30073 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed)); | |
30074 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu)); | |
30075 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri)); | |
30076 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat)); | |
30077 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay)); | |
30078 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year)); | |
30079 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full)); | |
30080 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr)); | |
30081 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First)); | |
30082 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First)); | |
30083 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First)); | |
98e665d3 | 30084 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); |
15afbcd0 RD |
30085 | PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID)); |
30086 | PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT)); | |
30087 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP)); | |
30088 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE)); | |
30089 | PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK)); | |
30090 | PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF)); | |
30091 | PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF)); | |
30092 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT)); | |
30093 | PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB)); | |
30094 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE)); | |
30095 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA)); | |
30096 | PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF)); | |
30097 | PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE)); | |
30098 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT)); | |
30099 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE)); | |
30100 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME)); | |
30101 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE)); | |
30102 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE)); | |
30103 | PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML)); | |
30104 | PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX)); | |
d14a1e28 | 30105 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); |
15afbcd0 RD |
30106 | PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get)); |
30107 | PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set)); | |
30108 | PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both)); | |
30109 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly)); | |
30110 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove)); | |
30111 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove)); | |
30112 | PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError)); | |
30113 | PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone)); | |
30114 | PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy)); | |
30115 | PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove)); | |
30116 | PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink)); | |
30117 | PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel)); | |
d14a1e28 RD |
30118 | |
30119 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
30120 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
30121 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
30122 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
30123 | ||
4276dc52 | 30124 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set); |
d14a1e28 RD |
30125 | } |
30126 |