]>
Commit | Line | Data |
---|---|---|
cfe5e918 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.22 | |
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 | |
48 | #define SWIG_PackData SWIG_Python_PackData | |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
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 | ||
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 | |
82 | #else | |
83 | # define SWIGEXPORT(a) a | |
84 | # define SWIGIMPORT(a) a | |
85 | #endif | |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) | |
89 | #else | |
90 | # define SWIGRUNTIME(a) static a | |
91 | #endif | |
92 | ||
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 { | |
101 | const char *name; | |
102 | swig_converter_func converter; | |
103 | const char *str; | |
104 | void *clientdata; | |
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 *); | |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); | |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
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 | ||
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 | ||
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) | |
173 | ||
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) | |
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 | ||
186 | typedef double (*py_objasdbl_conv)(PyObject *obj); | |
187 | ||
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[]); | |
196 | ||
197 | ||
198 | /* Contract support */ | |
199 | ||
200 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
201 | ||
202 | #ifdef __cplusplus | |
203 | } | |
204 | #endif | |
205 | ||
206 | ||
207 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
208 | ||
209 | #define SWIGTYPE_p_wxFrame swig_types[0] | |
210 | #define SWIGTYPE_p_wxIcon swig_types[1] | |
211 | #define SWIGTYPE_p_wxObject swig_types[2] | |
212 | #define SWIGTYPE_p_wxDialog swig_types[3] | |
213 | #define SWIGTYPE_p_wxColour swig_types[4] | |
214 | #define SWIGTYPE_p_wxWindow swig_types[5] | |
215 | #define SWIGTYPE_p_wxArtClient swig_types[6] | |
216 | #define SWIGTYPE_p_wxBitmap swig_types[7] | |
217 | #define SWIGTYPE_p_wxPyXmlSubclassFactory swig_types[8] | |
218 | #define SWIGTYPE_p_char swig_types[9] | |
219 | #define SWIGTYPE_p_wxPoint swig_types[10] | |
220 | #define SWIGTYPE_p_wxXmlNode swig_types[11] | |
221 | #define SWIGTYPE_p_wxInputStream swig_types[12] | |
222 | #define SWIGTYPE_p_wxOutputStream swig_types[13] | |
223 | #define SWIGTYPE_p_wxPyXmlResourceHandler swig_types[14] | |
224 | #define SWIGTYPE_p_wxFileSystem swig_types[15] | |
225 | #define SWIGTYPE_p_wxXmlProperty swig_types[16] | |
226 | #define SWIGTYPE_p_wxFont swig_types[17] | |
227 | #define SWIGTYPE_p_wxXmlResource swig_types[18] | |
228 | #define SWIGTYPE_p_wxXmlDocument swig_types[19] | |
229 | #define SWIGTYPE_p_wxPanel swig_types[20] | |
230 | #define SWIGTYPE_p_wxSize swig_types[21] | |
231 | static swig_type_info *swig_types[23]; | |
232 | ||
233 | /* -------- TYPES TABLE (END) -------- */ | |
234 | ||
235 | ||
236 | /*----------------------------------------------- | |
237 | @(target):= _xrc.so | |
238 | ------------------------------------------------*/ | |
239 | #define SWIG_init init_xrc | |
240 | ||
241 | #define SWIG_name "_xrc" | |
242 | ||
243 | /* Auxiliar swig macros */ | |
244 | ||
245 | #ifdef __cplusplus | |
246 | #define SWIGSTATICINLINE(a) static inline a | |
247 | #define SWIGSTATIC(a) static a | |
248 | #define swig_new_array(type, size) (new type[(size)]) | |
249 | #define swig_delete_array(cptr) delete[] cptr | |
250 | #define swig_const_cast(type,a) const_cast<type>(a) | |
251 | #define swig_static_cast(type,a) static_cast<type>(a) | |
252 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
253 | ||
254 | #ifdef HAVE_NUMERIC_CAST | |
255 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) | |
256 | #else | |
257 | #define swig_numeric_cast(type,a) static_cast<type>(a) | |
258 | #endif | |
259 | ||
260 | #else /* C case */ | |
261 | ||
262 | #define SWIGSTATICINLINE(a) static a | |
263 | #define SWIGSTATIC(a) static a | |
264 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
265 | #define swig_delete_array(cptr) free((char*)cptr) | |
266 | #define swig_const_cast(type,a) (type)(a) | |
267 | #define swig_static_cast(type,a) (type)(a) | |
268 | #define swig_reinterpret_cast(type,a) (type)(a) | |
269 | #define swig_numeric_cast(type,a) (type)(a) | |
270 | ||
271 | #endif /* __cplusplus */ | |
272 | ||
273 | ||
274 | #define SWIG_FromSignedChar PyInt_FromLong | |
275 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
276 | #define SWIG_FromShort PyInt_FromLong | |
277 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
278 | #define SWIG_FromInt PyInt_FromLong | |
279 | #define SWIG_FromLong PyInt_FromLong | |
280 | #define SWIG_FromFloat PyFloat_FromDouble | |
281 | #define SWIG_FromDouble PyFloat_FromDouble | |
282 | #define SWIG_FromFloat PyFloat_FromDouble | |
283 | #define SWIG_FromDouble PyFloat_FromDouble | |
284 | ||
285 | ||
286 | #include "wx/wxPython/wxPython.h" | |
287 | #include "wx/wxPython/pyclasses.h" | |
288 | #include "wx/wxPython/pyistream.h" | |
289 | ||
290 | #include <wx/xml/xml.h> | |
291 | #include <wx/xrc/xmlres.h> | |
292 | ||
cfe5e918 RD |
293 | static const wxString wxPyEmptyString(wxEmptyString); |
294 | static const wxString wxPyUTF8String(wxT("UTF-8")); | |
295 | static const wxString wxPyStyleString(wxT("style")); | |
296 | static const wxString wxPySizeString(wxT("size")); | |
297 | static const wxString wxPyPosString(wxT("pos")); | |
298 | static const wxString wxPyBitmapString(wxT("bitmap")); | |
299 | static const wxString wxPyIconString(wxT("icon")); | |
300 | static const wxString wxPyFontString(wxT("font")); | |
301 | ||
302 | #include <limits.h> | |
303 | ||
304 | ||
305 | SWIGSTATICINLINE(long) | |
306 | SWIG_CheckLongInRange(long value, const char* type, | |
307 | long min_value, long max_value) | |
308 | { | |
309 | if (!PyErr_Occurred()) { | |
310 | if (value < min_value) { | |
311 | PyObject *err = | |
312 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
313 | value, type, min_value); | |
314 | ||
315 | PyErr_SetObject(PyExc_OverflowError, err); | |
316 | Py_DECREF(err); | |
317 | } else if (value > max_value) { | |
318 | PyObject *err = | |
319 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
320 | value, type, max_value); | |
321 | PyErr_SetObject(PyExc_OverflowError, err); | |
322 | Py_DECREF(err); | |
323 | } | |
324 | } | |
325 | return value; | |
326 | } | |
327 | ||
328 | ||
329 | SWIGSTATICINLINE(long) | |
330 | SWIG_AsLong(PyObject * obj) | |
331 | { | |
332 | if (PyNumber_Check(obj)) | |
333 | return PyInt_AsLong(obj); | |
334 | else { | |
335 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
336 | obj->ob_type->tp_name); | |
337 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
338 | Py_DECREF(errmsg); | |
339 | return 0; | |
340 | } | |
341 | } | |
342 | ||
343 | ||
344 | #if INT_MAX != LONG_MAX | |
345 | SWIGSTATICINLINE(int) | |
346 | SWIG_AsInt(PyObject *obj) | |
347 | { | |
348 | return swig_numeric_cast(int, | |
349 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
350 | "int", INT_MIN, INT_MAX)); | |
351 | } | |
352 | #else | |
353 | #define SWIG_AsInt SWIG_AsLong | |
354 | #endif | |
355 | ||
356 | ||
357 | SWIGSTATICINLINE(int) | |
358 | SWIG_CheckInt(PyObject* obj) | |
359 | { | |
360 | SWIG_AsInt(obj); | |
361 | if (PyErr_Occurred()) { | |
362 | PyErr_Clear(); | |
363 | return 0; | |
364 | } else { | |
365 | return 1; | |
366 | } | |
367 | } | |
368 | ||
369 | bool wxXmlResource_LoadFromString(wxXmlResource *self,wxString const &data){ | |
370 | static int s_memFileIdx = 0; | |
371 | ||
372 | // Check for memory FS. If not present, load the handler: | |
373 | wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"), | |
374 | wxT("dummy data")); | |
375 | wxFileSystem fsys; | |
376 | wxFSFile *f = fsys.OpenFile(wxT("memory:XRC_resource/dummy_file")); | |
377 | wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file")); | |
378 | if (f) | |
379 | delete f; | |
380 | else | |
381 | wxFileSystem::AddHandler(new wxMemoryFSHandler); | |
382 | ||
383 | // Now put the resource data into the memory FS | |
384 | wxString filename(wxT("XRC_resource/data_string_")); | |
385 | filename << s_memFileIdx; | |
386 | s_memFileIdx += 1; | |
387 | wxMemoryFSHandler::AddFile(filename, data); | |
388 | ||
389 | // Load the "file" into the resource object | |
390 | bool retval = self->Load(wxT("memory:") + filename ); | |
391 | ||
392 | return retval; | |
393 | } | |
394 | ||
395 | class wxPyXmlSubclassFactory : public wxXmlSubclassFactory | |
396 | { | |
397 | public: | |
398 | wxPyXmlSubclassFactory() {} | |
399 | DEC_PYCALLBACK_OBJECT_STRING_pure(Create); | |
400 | PYPRIVATE; | |
401 | }; | |
402 | ||
403 | IMP_PYCALLBACK_OBJECT_STRING_pure(wxPyXmlSubclassFactory, wxXmlSubclassFactory, Create); | |
404 | ||
405 | // C++ version of Python aware wxXmlResourceHandler, for the pure virtual | |
406 | // callbacks, as well as to make some protected things public so they can | |
407 | // be wrapped. | |
408 | class wxPyXmlResourceHandler : public wxXmlResourceHandler { | |
409 | public: | |
410 | wxPyXmlResourceHandler() : wxXmlResourceHandler() {} | |
411 | //~wxPyXmlResourceHandler(); | |
412 | ||
413 | // Base class virtuals | |
414 | ||
415 | DEC_PYCALLBACK_OBJECT__pure(DoCreateResource); | |
416 | DEC_PYCALLBACK_BOOL_NODE_pure(CanHandle); | |
417 | ||
418 | ||
419 | // accessors for protected members | |
420 | ||
421 | wxXmlResource* GetResource() { return m_resource; } | |
422 | wxXmlNode* GetNode() { return m_node; } | |
423 | wxString GetClass() { return m_class; } | |
424 | wxObject* GetParent() { return m_parent; } | |
425 | wxObject* GetInstance() { return m_instance; } | |
426 | wxWindow* GetParentAsWindow() { return m_parentAsWindow; } | |
427 | wxWindow* GetInstanceAsWindow() { return m_instanceAsWindow; } | |
428 | ||
429 | ||
430 | // turn some protected methods into public via delegation | |
431 | ||
432 | bool IsOfClass(wxXmlNode *node, const wxString& classname) | |
433 | { return wxXmlResourceHandler::IsOfClass(node, classname); } | |
434 | ||
435 | wxString GetNodeContent(wxXmlNode *node) | |
436 | { return wxXmlResourceHandler::GetNodeContent(node); } | |
437 | ||
438 | bool HasParam(const wxString& param) | |
439 | { return wxXmlResourceHandler::HasParam(param); } | |
440 | ||
441 | wxXmlNode *GetParamNode(const wxString& param) | |
442 | { return wxXmlResourceHandler::GetParamNode(param); } | |
443 | ||
444 | wxString GetParamValue(const wxString& param) | |
445 | { return wxXmlResourceHandler::GetParamValue(param); } | |
446 | ||
447 | void AddStyle(const wxString& name, int value) | |
448 | { wxXmlResourceHandler::AddStyle(name, value); } | |
449 | ||
450 | void AddWindowStyles() | |
451 | { wxXmlResourceHandler::AddWindowStyles(); } | |
452 | ||
453 | int GetStyle(const wxString& param = wxT("style"), int defaults = 0) | |
454 | { return wxXmlResourceHandler::GetStyle(param, defaults); } | |
455 | ||
456 | wxString GetText(const wxString& param, bool translate = True) | |
457 | { return wxXmlResourceHandler::GetText(param, translate); } | |
458 | ||
459 | int GetID() | |
460 | { return wxXmlResourceHandler::GetID(); } | |
461 | ||
462 | wxString GetName() | |
463 | { return wxXmlResourceHandler::GetName(); } | |
464 | ||
465 | bool GetBool(const wxString& param, bool defaultv = False) | |
466 | { return wxXmlResourceHandler::GetBool(param, defaultv); } | |
467 | ||
468 | long GetLong( const wxString& param, long defaultv = 0 ) | |
469 | { return wxXmlResourceHandler::GetLong(param, defaultv); } | |
470 | ||
471 | wxColour GetColour(const wxString& param) | |
472 | { return wxXmlResourceHandler::GetColour(param); } | |
473 | ||
474 | wxSize GetSize(const wxString& param = wxT("size")) | |
475 | { return wxXmlResourceHandler::GetSize(param); } | |
476 | ||
477 | wxPoint GetPosition(const wxString& param = wxT("pos")) | |
478 | { return wxXmlResourceHandler::GetPosition(param); } | |
479 | ||
480 | wxCoord GetDimension(const wxString& param, wxCoord defaultv = 0) | |
481 | { return wxXmlResourceHandler::GetDimension(param, defaultv); } | |
482 | ||
483 | wxBitmap GetBitmap(const wxString& param = wxT("bitmap"), | |
484 | const wxArtClient& defaultArtClient = wxART_OTHER, | |
485 | wxSize size = wxDefaultSize) | |
486 | { return wxXmlResourceHandler::GetBitmap(param, defaultArtClient, size); } | |
487 | ||
488 | wxIcon GetIcon(const wxString& param = wxT("icon"), | |
489 | const wxArtClient& defaultArtClient = wxART_OTHER, | |
490 | wxSize size = wxDefaultSize) | |
491 | { return wxXmlResourceHandler::GetIcon(param, defaultArtClient, size); } | |
492 | ||
493 | wxFont GetFont(const wxString& param = wxT("font")) | |
494 | { return wxXmlResourceHandler::GetFont(param); } | |
495 | ||
496 | void SetupWindow(wxWindow *wnd) | |
497 | { wxXmlResourceHandler::SetupWindow(wnd); } | |
498 | ||
499 | void CreateChildren(wxObject *parent, bool this_hnd_only = False) | |
500 | { wxXmlResourceHandler::CreateChildren(parent, this_hnd_only); } | |
501 | ||
502 | void CreateChildrenPrivately(wxObject *parent, wxXmlNode *rootnode = NULL) | |
503 | { wxXmlResourceHandler::CreateChildrenPrivately(parent, rootnode); } | |
504 | ||
505 | wxObject *CreateResFromNode(wxXmlNode *node, | |
506 | wxObject *parent, wxObject *instance = NULL) | |
507 | { return wxXmlResourceHandler::CreateResFromNode(node, parent, instance); } | |
508 | ||
509 | wxFileSystem& GetCurFileSystem() | |
510 | { return wxXmlResourceHandler::GetCurFileSystem(); } | |
511 | ||
512 | ||
513 | PYPRIVATE; | |
514 | }; | |
515 | ||
516 | IMP_PYCALLBACK_OBJECT__pure(wxPyXmlResourceHandler, wxXmlResourceHandler, DoCreateResource); | |
517 | IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler, wxXmlResourceHandler, CanHandle); | |
518 | ||
519 | ||
520 | ||
521 | SWIGSTATICINLINE(bool) | |
522 | SWIG_AsBool(PyObject *obj) | |
523 | { | |
524 | return PyObject_IsTrue(obj) ? true : false; | |
525 | } | |
526 | ||
527 | ||
528 | SWIGSTATICINLINE(int) | |
529 | SWIG_CheckBool(PyObject* obj) | |
530 | { | |
531 | SWIG_AsBool(obj); | |
532 | if (PyErr_Occurred()) { | |
533 | PyErr_Clear(); | |
534 | return 0; | |
535 | } else { | |
536 | return 1; | |
537 | } | |
538 | } | |
539 | ||
540 | ||
541 | SWIGSTATICINLINE(int) | |
542 | SWIG_CheckLong(PyObject* obj) | |
543 | { | |
544 | SWIG_AsLong(obj); | |
545 | if (PyErr_Occurred()) { | |
546 | PyErr_Clear(); | |
547 | return 0; | |
548 | } else { | |
549 | return 1; | |
550 | } | |
551 | } | |
552 | ||
553 | #ifdef __cplusplus | |
554 | extern "C" { | |
555 | #endif | |
556 | static int _wrap_UTF8String_set(PyObject *_val) { | |
557 | PyErr_SetString(PyExc_TypeError,"Variable UTF8String is read-only."); | |
558 | return 1; | |
559 | } | |
560 | ||
561 | ||
562 | static PyObject *_wrap_UTF8String_get() { | |
563 | PyObject *pyobj; | |
564 | ||
565 | { | |
566 | #if wxUSE_UNICODE | |
567 | pyobj = PyUnicode_FromWideChar((&wxPyUTF8String)->c_str(), (&wxPyUTF8String)->Len()); | |
568 | #else | |
569 | pyobj = PyString_FromStringAndSize((&wxPyUTF8String)->c_str(), (&wxPyUTF8String)->Len()); | |
570 | #endif | |
571 | } | |
572 | return pyobj; | |
573 | } | |
574 | ||
575 | ||
576 | static int _wrap_StyleString_set(PyObject *_val) { | |
577 | PyErr_SetString(PyExc_TypeError,"Variable StyleString is read-only."); | |
578 | return 1; | |
579 | } | |
580 | ||
581 | ||
582 | static PyObject *_wrap_StyleString_get() { | |
583 | PyObject *pyobj; | |
584 | ||
585 | { | |
586 | #if wxUSE_UNICODE | |
587 | pyobj = PyUnicode_FromWideChar((&wxPyStyleString)->c_str(), (&wxPyStyleString)->Len()); | |
588 | #else | |
589 | pyobj = PyString_FromStringAndSize((&wxPyStyleString)->c_str(), (&wxPyStyleString)->Len()); | |
590 | #endif | |
591 | } | |
592 | return pyobj; | |
593 | } | |
594 | ||
595 | ||
596 | static int _wrap_SizeString_set(PyObject *_val) { | |
597 | PyErr_SetString(PyExc_TypeError,"Variable SizeString is read-only."); | |
598 | return 1; | |
599 | } | |
600 | ||
601 | ||
602 | static PyObject *_wrap_SizeString_get() { | |
603 | PyObject *pyobj; | |
604 | ||
605 | { | |
606 | #if wxUSE_UNICODE | |
607 | pyobj = PyUnicode_FromWideChar((&wxPySizeString)->c_str(), (&wxPySizeString)->Len()); | |
608 | #else | |
609 | pyobj = PyString_FromStringAndSize((&wxPySizeString)->c_str(), (&wxPySizeString)->Len()); | |
610 | #endif | |
611 | } | |
612 | return pyobj; | |
613 | } | |
614 | ||
615 | ||
616 | static int _wrap_PosString_set(PyObject *_val) { | |
617 | PyErr_SetString(PyExc_TypeError,"Variable PosString is read-only."); | |
618 | return 1; | |
619 | } | |
620 | ||
621 | ||
622 | static PyObject *_wrap_PosString_get() { | |
623 | PyObject *pyobj; | |
624 | ||
625 | { | |
626 | #if wxUSE_UNICODE | |
627 | pyobj = PyUnicode_FromWideChar((&wxPyPosString)->c_str(), (&wxPyPosString)->Len()); | |
628 | #else | |
629 | pyobj = PyString_FromStringAndSize((&wxPyPosString)->c_str(), (&wxPyPosString)->Len()); | |
630 | #endif | |
631 | } | |
632 | return pyobj; | |
633 | } | |
634 | ||
635 | ||
636 | static int _wrap_BitmapString_set(PyObject *_val) { | |
637 | PyErr_SetString(PyExc_TypeError,"Variable BitmapString is read-only."); | |
638 | return 1; | |
639 | } | |
640 | ||
641 | ||
642 | static PyObject *_wrap_BitmapString_get() { | |
643 | PyObject *pyobj; | |
644 | ||
645 | { | |
646 | #if wxUSE_UNICODE | |
647 | pyobj = PyUnicode_FromWideChar((&wxPyBitmapString)->c_str(), (&wxPyBitmapString)->Len()); | |
648 | #else | |
649 | pyobj = PyString_FromStringAndSize((&wxPyBitmapString)->c_str(), (&wxPyBitmapString)->Len()); | |
650 | #endif | |
651 | } | |
652 | return pyobj; | |
653 | } | |
654 | ||
655 | ||
656 | static int _wrap_IconString_set(PyObject *_val) { | |
657 | PyErr_SetString(PyExc_TypeError,"Variable IconString is read-only."); | |
658 | return 1; | |
659 | } | |
660 | ||
661 | ||
662 | static PyObject *_wrap_IconString_get() { | |
663 | PyObject *pyobj; | |
664 | ||
665 | { | |
666 | #if wxUSE_UNICODE | |
667 | pyobj = PyUnicode_FromWideChar((&wxPyIconString)->c_str(), (&wxPyIconString)->Len()); | |
668 | #else | |
669 | pyobj = PyString_FromStringAndSize((&wxPyIconString)->c_str(), (&wxPyIconString)->Len()); | |
670 | #endif | |
671 | } | |
672 | return pyobj; | |
673 | } | |
674 | ||
675 | ||
676 | static int _wrap_FontString_set(PyObject *_val) { | |
677 | PyErr_SetString(PyExc_TypeError,"Variable FontString is read-only."); | |
678 | return 1; | |
679 | } | |
680 | ||
681 | ||
682 | static PyObject *_wrap_FontString_get() { | |
683 | PyObject *pyobj; | |
684 | ||
685 | { | |
686 | #if wxUSE_UNICODE | |
687 | pyobj = PyUnicode_FromWideChar((&wxPyFontString)->c_str(), (&wxPyFontString)->Len()); | |
688 | #else | |
689 | pyobj = PyString_FromStringAndSize((&wxPyFontString)->c_str(), (&wxPyFontString)->Len()); | |
690 | #endif | |
691 | } | |
692 | return pyobj; | |
693 | } | |
694 | ||
695 | ||
696 | static PyObject *_wrap_new_XmlResource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
697 | PyObject *resultobj; | |
698 | wxString *arg1 = 0 ; | |
699 | int arg2 = (int) wxXRC_USE_LOCALE ; | |
700 | wxXmlResource *result; | |
701 | bool temp1 = False ; | |
702 | PyObject * obj0 = 0 ; | |
703 | PyObject * obj1 = 0 ; | |
704 | char *kwnames[] = { | |
705 | (char *) "filemask",(char *) "flags", NULL | |
706 | }; | |
707 | ||
708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_XmlResource",kwnames,&obj0,&obj1)) goto fail; | |
709 | { | |
710 | arg1 = wxString_in_helper(obj0); | |
711 | if (arg1 == NULL) SWIG_fail; | |
712 | temp1 = True; | |
713 | } | |
714 | if (obj1) { | |
715 | arg2 = (int) SWIG_AsInt(obj1); | |
716 | if (PyErr_Occurred()) SWIG_fail; | |
717 | } | |
718 | { | |
719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
720 | result = (wxXmlResource *)new wxXmlResource((wxString const &)*arg1,arg2); | |
721 | ||
722 | wxPyEndAllowThreads(__tstate); | |
723 | if (PyErr_Occurred()) SWIG_fail; | |
724 | } | |
725 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlResource, 1); | |
726 | { | |
727 | if (temp1) | |
728 | delete arg1; | |
729 | } | |
730 | return resultobj; | |
731 | fail: | |
732 | { | |
733 | if (temp1) | |
734 | delete arg1; | |
735 | } | |
736 | return NULL; | |
737 | } | |
738 | ||
739 | ||
740 | static PyObject *_wrap_new_EmptyXmlResource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
741 | PyObject *resultobj; | |
742 | int arg1 = (int) wxXRC_USE_LOCALE ; | |
743 | wxXmlResource *result; | |
744 | PyObject * obj0 = 0 ; | |
745 | char *kwnames[] = { | |
746 | (char *) "flags", NULL | |
747 | }; | |
748 | ||
749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_EmptyXmlResource",kwnames,&obj0)) goto fail; | |
750 | if (obj0) { | |
751 | arg1 = (int) SWIG_AsInt(obj0); | |
752 | if (PyErr_Occurred()) SWIG_fail; | |
753 | } | |
754 | { | |
755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
756 | result = (wxXmlResource *)new wxXmlResource(arg1); | |
757 | ||
758 | wxPyEndAllowThreads(__tstate); | |
759 | if (PyErr_Occurred()) SWIG_fail; | |
760 | } | |
761 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlResource, 1); | |
762 | return resultobj; | |
763 | fail: | |
764 | return NULL; | |
765 | } | |
766 | ||
767 | ||
768 | static PyObject *_wrap_delete_XmlResource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
769 | PyObject *resultobj; | |
770 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
771 | PyObject * obj0 = 0 ; | |
772 | char *kwnames[] = { | |
773 | (char *) "self", NULL | |
774 | }; | |
775 | ||
776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_XmlResource",kwnames,&obj0)) goto fail; | |
777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
779 | { | |
780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
781 | delete arg1; | |
782 | ||
783 | wxPyEndAllowThreads(__tstate); | |
784 | if (PyErr_Occurred()) SWIG_fail; | |
785 | } | |
786 | Py_INCREF(Py_None); resultobj = Py_None; | |
787 | return resultobj; | |
788 | fail: | |
789 | return NULL; | |
790 | } | |
791 | ||
792 | ||
793 | static PyObject *_wrap_XmlResource_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
794 | PyObject *resultobj; | |
795 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
796 | wxString *arg2 = 0 ; | |
797 | bool result; | |
798 | bool temp2 = False ; | |
799 | PyObject * obj0 = 0 ; | |
800 | PyObject * obj1 = 0 ; | |
801 | char *kwnames[] = { | |
802 | (char *) "self",(char *) "filemask", NULL | |
803 | }; | |
804 | ||
805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_Load",kwnames,&obj0,&obj1)) goto fail; | |
806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
808 | { | |
809 | arg2 = wxString_in_helper(obj1); | |
810 | if (arg2 == NULL) SWIG_fail; | |
811 | temp2 = True; | |
812 | } | |
813 | { | |
814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
815 | result = (bool)(arg1)->Load((wxString const &)*arg2); | |
816 | ||
817 | wxPyEndAllowThreads(__tstate); | |
818 | if (PyErr_Occurred()) SWIG_fail; | |
819 | } | |
820 | { | |
821 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
822 | } | |
823 | { | |
824 | if (temp2) | |
825 | delete arg2; | |
826 | } | |
827 | return resultobj; | |
828 | fail: | |
829 | { | |
830 | if (temp2) | |
831 | delete arg2; | |
832 | } | |
833 | return NULL; | |
834 | } | |
835 | ||
836 | ||
837 | static PyObject *_wrap_XmlResource_LoadFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
838 | PyObject *resultobj; | |
839 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
840 | wxString *arg2 = 0 ; | |
841 | bool result; | |
842 | bool temp2 = False ; | |
843 | PyObject * obj0 = 0 ; | |
844 | PyObject * obj1 = 0 ; | |
845 | char *kwnames[] = { | |
846 | (char *) "self",(char *) "data", NULL | |
847 | }; | |
848 | ||
849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadFromString",kwnames,&obj0,&obj1)) goto fail; | |
850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
852 | { | |
853 | arg2 = wxString_in_helper(obj1); | |
854 | if (arg2 == NULL) SWIG_fail; | |
855 | temp2 = True; | |
856 | } | |
857 | { | |
858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
859 | result = (bool)wxXmlResource_LoadFromString(arg1,(wxString const &)*arg2); | |
860 | ||
861 | wxPyEndAllowThreads(__tstate); | |
862 | if (PyErr_Occurred()) SWIG_fail; | |
863 | } | |
864 | { | |
865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
866 | } | |
867 | { | |
868 | if (temp2) | |
869 | delete arg2; | |
870 | } | |
871 | return resultobj; | |
872 | fail: | |
873 | { | |
874 | if (temp2) | |
875 | delete arg2; | |
876 | } | |
877 | return NULL; | |
878 | } | |
879 | ||
880 | ||
881 | static PyObject *_wrap_XmlResource_InitAllHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
882 | PyObject *resultobj; | |
883 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
884 | PyObject * obj0 = 0 ; | |
885 | char *kwnames[] = { | |
886 | (char *) "self", NULL | |
887 | }; | |
888 | ||
889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_InitAllHandlers",kwnames,&obj0)) goto fail; | |
890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
892 | { | |
893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
894 | (arg1)->InitAllHandlers(); | |
895 | ||
896 | wxPyEndAllowThreads(__tstate); | |
897 | if (PyErr_Occurred()) SWIG_fail; | |
898 | } | |
899 | Py_INCREF(Py_None); resultobj = Py_None; | |
900 | return resultobj; | |
901 | fail: | |
902 | return NULL; | |
903 | } | |
904 | ||
905 | ||
906 | static PyObject *_wrap_XmlResource_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
907 | PyObject *resultobj; | |
908 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
909 | wxPyXmlResourceHandler *arg2 = (wxPyXmlResourceHandler *) 0 ; | |
910 | PyObject * obj0 = 0 ; | |
911 | PyObject * obj1 = 0 ; | |
912 | char *kwnames[] = { | |
913 | (char *) "self",(char *) "handler", NULL | |
914 | }; | |
915 | ||
916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_AddHandler",kwnames,&obj0,&obj1)) goto fail; | |
917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
919 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyXmlResourceHandler, | |
920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
921 | { | |
922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
923 | (arg1)->AddHandler(arg2); | |
924 | ||
925 | wxPyEndAllowThreads(__tstate); | |
926 | if (PyErr_Occurred()) SWIG_fail; | |
927 | } | |
928 | Py_INCREF(Py_None); resultobj = Py_None; | |
929 | return resultobj; | |
930 | fail: | |
931 | return NULL; | |
932 | } | |
933 | ||
934 | ||
935 | static PyObject *_wrap_XmlResource_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
936 | PyObject *resultobj; | |
937 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
938 | wxPyXmlResourceHandler *arg2 = (wxPyXmlResourceHandler *) 0 ; | |
939 | PyObject * obj0 = 0 ; | |
940 | PyObject * obj1 = 0 ; | |
941 | char *kwnames[] = { | |
942 | (char *) "self",(char *) "handler", NULL | |
943 | }; | |
944 | ||
945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_InsertHandler",kwnames,&obj0,&obj1)) goto fail; | |
946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
948 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyXmlResourceHandler, | |
949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
950 | { | |
951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
952 | (arg1)->InsertHandler(arg2); | |
953 | ||
954 | wxPyEndAllowThreads(__tstate); | |
955 | if (PyErr_Occurred()) SWIG_fail; | |
956 | } | |
957 | Py_INCREF(Py_None); resultobj = Py_None; | |
958 | return resultobj; | |
959 | fail: | |
960 | return NULL; | |
961 | } | |
962 | ||
963 | ||
964 | static PyObject *_wrap_XmlResource_ClearHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
965 | PyObject *resultobj; | |
966 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
967 | PyObject * obj0 = 0 ; | |
968 | char *kwnames[] = { | |
969 | (char *) "self", NULL | |
970 | }; | |
971 | ||
972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_ClearHandlers",kwnames,&obj0)) goto fail; | |
973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
975 | { | |
976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
977 | (arg1)->ClearHandlers(); | |
978 | ||
979 | wxPyEndAllowThreads(__tstate); | |
980 | if (PyErr_Occurred()) SWIG_fail; | |
981 | } | |
982 | Py_INCREF(Py_None); resultobj = Py_None; | |
983 | return resultobj; | |
984 | fail: | |
985 | return NULL; | |
986 | } | |
987 | ||
988 | ||
989 | static PyObject *_wrap_XmlResource_AddSubclassFactory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
990 | PyObject *resultobj; | |
991 | wxPyXmlSubclassFactory *arg1 = (wxPyXmlSubclassFactory *) 0 ; | |
992 | PyObject * obj0 = 0 ; | |
993 | char *kwnames[] = { | |
994 | (char *) "factory", NULL | |
995 | }; | |
996 | ||
997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_AddSubclassFactory",kwnames,&obj0)) goto fail; | |
998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlSubclassFactory, | |
999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1000 | { | |
1001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1002 | wxXmlResource::AddSubclassFactory(arg1); | |
1003 | ||
1004 | wxPyEndAllowThreads(__tstate); | |
1005 | if (PyErr_Occurred()) SWIG_fail; | |
1006 | } | |
1007 | Py_INCREF(Py_None); resultobj = Py_None; | |
1008 | return resultobj; | |
1009 | fail: | |
1010 | return NULL; | |
1011 | } | |
1012 | ||
1013 | ||
1014 | static PyObject *_wrap_XmlResource_LoadMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1015 | PyObject *resultobj; | |
1016 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1017 | wxString *arg2 = 0 ; | |
1018 | wxMenu *result; | |
1019 | bool temp2 = False ; | |
1020 | PyObject * obj0 = 0 ; | |
1021 | PyObject * obj1 = 0 ; | |
1022 | char *kwnames[] = { | |
1023 | (char *) "self",(char *) "name", NULL | |
1024 | }; | |
1025 | ||
1026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadMenu",kwnames,&obj0,&obj1)) goto fail; | |
1027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1029 | { | |
1030 | arg2 = wxString_in_helper(obj1); | |
1031 | if (arg2 == NULL) SWIG_fail; | |
1032 | temp2 = True; | |
1033 | } | |
1034 | { | |
1035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1036 | result = (wxMenu *)(arg1)->LoadMenu((wxString const &)*arg2); | |
1037 | ||
1038 | wxPyEndAllowThreads(__tstate); | |
1039 | if (PyErr_Occurred()) SWIG_fail; | |
1040 | } | |
1041 | { | |
1042 | resultobj = wxPyMake_wxObject(result); | |
1043 | } | |
1044 | { | |
1045 | if (temp2) | |
1046 | delete arg2; | |
1047 | } | |
1048 | return resultobj; | |
1049 | fail: | |
1050 | { | |
1051 | if (temp2) | |
1052 | delete arg2; | |
1053 | } | |
1054 | return NULL; | |
1055 | } | |
1056 | ||
1057 | ||
1058 | static PyObject *_wrap_XmlResource_LoadMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1059 | PyObject *resultobj; | |
1060 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1061 | wxString *arg2 = 0 ; | |
1062 | wxMenuBar *result; | |
1063 | bool temp2 = False ; | |
1064 | PyObject * obj0 = 0 ; | |
1065 | PyObject * obj1 = 0 ; | |
1066 | char *kwnames[] = { | |
1067 | (char *) "self",(char *) "name", NULL | |
1068 | }; | |
1069 | ||
1070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadMenuBar",kwnames,&obj0,&obj1)) goto fail; | |
1071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1073 | { | |
1074 | arg2 = wxString_in_helper(obj1); | |
1075 | if (arg2 == NULL) SWIG_fail; | |
1076 | temp2 = True; | |
1077 | } | |
1078 | { | |
1079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1080 | result = (wxMenuBar *)(arg1)->LoadMenuBar((wxString const &)*arg2); | |
1081 | ||
1082 | wxPyEndAllowThreads(__tstate); | |
1083 | if (PyErr_Occurred()) SWIG_fail; | |
1084 | } | |
1085 | { | |
1086 | resultobj = wxPyMake_wxObject(result); | |
1087 | } | |
1088 | { | |
1089 | if (temp2) | |
1090 | delete arg2; | |
1091 | } | |
1092 | return resultobj; | |
1093 | fail: | |
1094 | { | |
1095 | if (temp2) | |
1096 | delete arg2; | |
1097 | } | |
1098 | return NULL; | |
1099 | } | |
1100 | ||
1101 | ||
1102 | static PyObject *_wrap_XmlResource_LoadMenuBarOnFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1103 | PyObject *resultobj; | |
1104 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1105 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1106 | wxString *arg3 = 0 ; | |
1107 | wxMenuBar *result; | |
1108 | bool temp3 = False ; | |
1109 | PyObject * obj0 = 0 ; | |
1110 | PyObject * obj1 = 0 ; | |
1111 | PyObject * obj2 = 0 ; | |
1112 | char *kwnames[] = { | |
1113 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
1114 | }; | |
1115 | ||
1116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadMenuBarOnFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1119 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1121 | { | |
1122 | arg3 = wxString_in_helper(obj2); | |
1123 | if (arg3 == NULL) SWIG_fail; | |
1124 | temp3 = True; | |
1125 | } | |
1126 | { | |
1127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1128 | result = (wxMenuBar *)(arg1)->LoadMenuBar(arg2,(wxString const &)*arg3); | |
1129 | ||
1130 | wxPyEndAllowThreads(__tstate); | |
1131 | if (PyErr_Occurred()) SWIG_fail; | |
1132 | } | |
1133 | { | |
1134 | resultobj = wxPyMake_wxObject(result); | |
1135 | } | |
1136 | { | |
1137 | if (temp3) | |
1138 | delete arg3; | |
1139 | } | |
1140 | return resultobj; | |
1141 | fail: | |
1142 | { | |
1143 | if (temp3) | |
1144 | delete arg3; | |
1145 | } | |
1146 | return NULL; | |
1147 | } | |
1148 | ||
1149 | ||
1150 | static PyObject *_wrap_XmlResource_LoadToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1151 | PyObject *resultobj; | |
1152 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1153 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1154 | wxString *arg3 = 0 ; | |
1155 | wxToolBar *result; | |
1156 | bool temp3 = False ; | |
1157 | PyObject * obj0 = 0 ; | |
1158 | PyObject * obj1 = 0 ; | |
1159 | PyObject * obj2 = 0 ; | |
1160 | char *kwnames[] = { | |
1161 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
1162 | }; | |
1163 | ||
1164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadToolBar",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1167 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1169 | { | |
1170 | arg3 = wxString_in_helper(obj2); | |
1171 | if (arg3 == NULL) SWIG_fail; | |
1172 | temp3 = True; | |
1173 | } | |
1174 | { | |
1175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1176 | result = (wxToolBar *)(arg1)->LoadToolBar(arg2,(wxString const &)*arg3); | |
1177 | ||
1178 | wxPyEndAllowThreads(__tstate); | |
1179 | if (PyErr_Occurred()) SWIG_fail; | |
1180 | } | |
1181 | { | |
1182 | resultobj = wxPyMake_wxObject(result); | |
1183 | } | |
1184 | { | |
1185 | if (temp3) | |
1186 | delete arg3; | |
1187 | } | |
1188 | return resultobj; | |
1189 | fail: | |
1190 | { | |
1191 | if (temp3) | |
1192 | delete arg3; | |
1193 | } | |
1194 | return NULL; | |
1195 | } | |
1196 | ||
1197 | ||
1198 | static PyObject *_wrap_XmlResource_LoadDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1199 | PyObject *resultobj; | |
1200 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1201 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1202 | wxString *arg3 = 0 ; | |
1203 | wxDialog *result; | |
1204 | bool temp3 = False ; | |
1205 | PyObject * obj0 = 0 ; | |
1206 | PyObject * obj1 = 0 ; | |
1207 | PyObject * obj2 = 0 ; | |
1208 | char *kwnames[] = { | |
1209 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
1210 | }; | |
1211 | ||
1212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadDialog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1215 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1217 | { | |
1218 | arg3 = wxString_in_helper(obj2); | |
1219 | if (arg3 == NULL) SWIG_fail; | |
1220 | temp3 = True; | |
1221 | } | |
1222 | { | |
1223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1224 | result = (wxDialog *)(arg1)->LoadDialog(arg2,(wxString const &)*arg3); | |
1225 | ||
1226 | wxPyEndAllowThreads(__tstate); | |
1227 | if (PyErr_Occurred()) SWIG_fail; | |
1228 | } | |
e058867b RD |
1229 | { |
1230 | resultobj = wxPyMake_wxObject(result); | |
1231 | } | |
cfe5e918 RD |
1232 | { |
1233 | if (temp3) | |
1234 | delete arg3; | |
1235 | } | |
1236 | return resultobj; | |
1237 | fail: | |
1238 | { | |
1239 | if (temp3) | |
1240 | delete arg3; | |
1241 | } | |
1242 | return NULL; | |
1243 | } | |
1244 | ||
1245 | ||
1246 | static PyObject *_wrap_XmlResource_LoadOnDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1247 | PyObject *resultobj; | |
1248 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1249 | wxDialog *arg2 = (wxDialog *) 0 ; | |
1250 | wxWindow *arg3 = (wxWindow *) 0 ; | |
1251 | wxString *arg4 = 0 ; | |
1252 | bool result; | |
1253 | bool temp4 = False ; | |
1254 | PyObject * obj0 = 0 ; | |
1255 | PyObject * obj1 = 0 ; | |
1256 | PyObject * obj2 = 0 ; | |
1257 | PyObject * obj3 = 0 ; | |
1258 | char *kwnames[] = { | |
1259 | (char *) "self",(char *) "dlg",(char *) "parent",(char *) "name", NULL | |
1260 | }; | |
1261 | ||
1262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadOnDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1265 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDialog, | |
1266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1267 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
1268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1269 | { | |
1270 | arg4 = wxString_in_helper(obj3); | |
1271 | if (arg4 == NULL) SWIG_fail; | |
1272 | temp4 = True; | |
1273 | } | |
1274 | { | |
1275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1276 | result = (bool)(arg1)->LoadDialog(arg2,arg3,(wxString const &)*arg4); | |
1277 | ||
1278 | wxPyEndAllowThreads(__tstate); | |
1279 | if (PyErr_Occurred()) SWIG_fail; | |
1280 | } | |
1281 | { | |
1282 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1283 | } | |
1284 | { | |
1285 | if (temp4) | |
1286 | delete arg4; | |
1287 | } | |
1288 | return resultobj; | |
1289 | fail: | |
1290 | { | |
1291 | if (temp4) | |
1292 | delete arg4; | |
1293 | } | |
1294 | return NULL; | |
1295 | } | |
1296 | ||
1297 | ||
1298 | static PyObject *_wrap_XmlResource_LoadPanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1299 | PyObject *resultobj; | |
1300 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1301 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1302 | wxString *arg3 = 0 ; | |
1303 | wxPanel *result; | |
1304 | bool temp3 = False ; | |
1305 | PyObject * obj0 = 0 ; | |
1306 | PyObject * obj1 = 0 ; | |
1307 | PyObject * obj2 = 0 ; | |
1308 | char *kwnames[] = { | |
1309 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
1310 | }; | |
1311 | ||
1312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadPanel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1315 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1317 | { | |
1318 | arg3 = wxString_in_helper(obj2); | |
1319 | if (arg3 == NULL) SWIG_fail; | |
1320 | temp3 = True; | |
1321 | } | |
1322 | { | |
1323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1324 | result = (wxPanel *)(arg1)->LoadPanel(arg2,(wxString const &)*arg3); | |
1325 | ||
1326 | wxPyEndAllowThreads(__tstate); | |
1327 | if (PyErr_Occurred()) SWIG_fail; | |
1328 | } | |
e058867b RD |
1329 | { |
1330 | resultobj = wxPyMake_wxObject(result); | |
1331 | } | |
cfe5e918 RD |
1332 | { |
1333 | if (temp3) | |
1334 | delete arg3; | |
1335 | } | |
1336 | return resultobj; | |
1337 | fail: | |
1338 | { | |
1339 | if (temp3) | |
1340 | delete arg3; | |
1341 | } | |
1342 | return NULL; | |
1343 | } | |
1344 | ||
1345 | ||
1346 | static PyObject *_wrap_XmlResource_LoadOnPanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1347 | PyObject *resultobj; | |
1348 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1349 | wxPanel *arg2 = (wxPanel *) 0 ; | |
1350 | wxWindow *arg3 = (wxWindow *) 0 ; | |
1351 | wxString *arg4 = 0 ; | |
1352 | bool result; | |
1353 | bool temp4 = False ; | |
1354 | PyObject * obj0 = 0 ; | |
1355 | PyObject * obj1 = 0 ; | |
1356 | PyObject * obj2 = 0 ; | |
1357 | PyObject * obj3 = 0 ; | |
1358 | char *kwnames[] = { | |
1359 | (char *) "self",(char *) "panel",(char *) "parent",(char *) "name", NULL | |
1360 | }; | |
1361 | ||
1362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadOnPanel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1365 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPanel, | |
1366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1367 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
1368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1369 | { | |
1370 | arg4 = wxString_in_helper(obj3); | |
1371 | if (arg4 == NULL) SWIG_fail; | |
1372 | temp4 = True; | |
1373 | } | |
1374 | { | |
1375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1376 | result = (bool)(arg1)->LoadPanel(arg2,arg3,(wxString const &)*arg4); | |
1377 | ||
1378 | wxPyEndAllowThreads(__tstate); | |
1379 | if (PyErr_Occurred()) SWIG_fail; | |
1380 | } | |
1381 | { | |
1382 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1383 | } | |
1384 | { | |
1385 | if (temp4) | |
1386 | delete arg4; | |
1387 | } | |
1388 | return resultobj; | |
1389 | fail: | |
1390 | { | |
1391 | if (temp4) | |
1392 | delete arg4; | |
1393 | } | |
1394 | return NULL; | |
1395 | } | |
1396 | ||
1397 | ||
1398 | static PyObject *_wrap_XmlResource_LoadFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1399 | PyObject *resultobj; | |
1400 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1401 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1402 | wxString *arg3 = 0 ; | |
1403 | wxFrame *result; | |
1404 | bool temp3 = False ; | |
1405 | PyObject * obj0 = 0 ; | |
1406 | PyObject * obj1 = 0 ; | |
1407 | PyObject * obj2 = 0 ; | |
1408 | char *kwnames[] = { | |
1409 | (char *) "self",(char *) "parent",(char *) "name", NULL | |
1410 | }; | |
1411 | ||
1412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResource_LoadFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1415 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1417 | { | |
1418 | arg3 = wxString_in_helper(obj2); | |
1419 | if (arg3 == NULL) SWIG_fail; | |
1420 | temp3 = True; | |
1421 | } | |
1422 | { | |
1423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1424 | result = (wxFrame *)(arg1)->LoadFrame(arg2,(wxString const &)*arg3); | |
1425 | ||
1426 | wxPyEndAllowThreads(__tstate); | |
1427 | if (PyErr_Occurred()) SWIG_fail; | |
1428 | } | |
1429 | { | |
1430 | resultobj = wxPyMake_wxObject(result); | |
1431 | } | |
1432 | { | |
1433 | if (temp3) | |
1434 | delete arg3; | |
1435 | } | |
1436 | return resultobj; | |
1437 | fail: | |
1438 | { | |
1439 | if (temp3) | |
1440 | delete arg3; | |
1441 | } | |
1442 | return NULL; | |
1443 | } | |
1444 | ||
1445 | ||
1446 | static PyObject *_wrap_XmlResource_LoadOnFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1447 | PyObject *resultobj; | |
1448 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1449 | wxFrame *arg2 = (wxFrame *) 0 ; | |
1450 | wxWindow *arg3 = (wxWindow *) 0 ; | |
1451 | wxString *arg4 = 0 ; | |
1452 | bool result; | |
1453 | bool temp4 = False ; | |
1454 | PyObject * obj0 = 0 ; | |
1455 | PyObject * obj1 = 0 ; | |
1456 | PyObject * obj2 = 0 ; | |
1457 | PyObject * obj3 = 0 ; | |
1458 | char *kwnames[] = { | |
1459 | (char *) "self",(char *) "frame",(char *) "parent",(char *) "name", NULL | |
1460 | }; | |
1461 | ||
1462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadOnFrame",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1465 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
1466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1467 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
1468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1469 | { | |
1470 | arg4 = wxString_in_helper(obj3); | |
1471 | if (arg4 == NULL) SWIG_fail; | |
1472 | temp4 = True; | |
1473 | } | |
1474 | { | |
1475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1476 | result = (bool)(arg1)->LoadFrame(arg2,arg3,(wxString const &)*arg4); | |
1477 | ||
1478 | wxPyEndAllowThreads(__tstate); | |
1479 | if (PyErr_Occurred()) SWIG_fail; | |
1480 | } | |
1481 | { | |
1482 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1483 | } | |
1484 | { | |
1485 | if (temp4) | |
1486 | delete arg4; | |
1487 | } | |
1488 | return resultobj; | |
1489 | fail: | |
1490 | { | |
1491 | if (temp4) | |
1492 | delete arg4; | |
1493 | } | |
1494 | return NULL; | |
1495 | } | |
1496 | ||
1497 | ||
1498 | static PyObject *_wrap_XmlResource_LoadObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1499 | PyObject *resultobj; | |
1500 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1501 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1502 | wxString *arg3 = 0 ; | |
1503 | wxString *arg4 = 0 ; | |
1504 | wxObject *result; | |
1505 | bool temp3 = False ; | |
1506 | bool temp4 = False ; | |
1507 | PyObject * obj0 = 0 ; | |
1508 | PyObject * obj1 = 0 ; | |
1509 | PyObject * obj2 = 0 ; | |
1510 | PyObject * obj3 = 0 ; | |
1511 | char *kwnames[] = { | |
1512 | (char *) "self",(char *) "parent",(char *) "name",(char *) "classname", NULL | |
1513 | }; | |
1514 | ||
1515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResource_LoadObject",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1518 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1520 | { | |
1521 | arg3 = wxString_in_helper(obj2); | |
1522 | if (arg3 == NULL) SWIG_fail; | |
1523 | temp3 = True; | |
1524 | } | |
1525 | { | |
1526 | arg4 = wxString_in_helper(obj3); | |
1527 | if (arg4 == NULL) SWIG_fail; | |
1528 | temp4 = True; | |
1529 | } | |
1530 | { | |
1531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1532 | result = (wxObject *)(arg1)->LoadObject(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
1533 | ||
1534 | wxPyEndAllowThreads(__tstate); | |
1535 | if (PyErr_Occurred()) SWIG_fail; | |
1536 | } | |
1537 | { | |
1538 | resultobj = wxPyMake_wxObject(result); | |
1539 | } | |
1540 | { | |
1541 | if (temp3) | |
1542 | delete arg3; | |
1543 | } | |
1544 | { | |
1545 | if (temp4) | |
1546 | delete arg4; | |
1547 | } | |
1548 | return resultobj; | |
1549 | fail: | |
1550 | { | |
1551 | if (temp3) | |
1552 | delete arg3; | |
1553 | } | |
1554 | { | |
1555 | if (temp4) | |
1556 | delete arg4; | |
1557 | } | |
1558 | return NULL; | |
1559 | } | |
1560 | ||
1561 | ||
1562 | static PyObject *_wrap_XmlResource_LoadOnObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1563 | PyObject *resultobj; | |
1564 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1565 | wxObject *arg2 = (wxObject *) 0 ; | |
1566 | wxWindow *arg3 = (wxWindow *) 0 ; | |
1567 | wxString *arg4 = 0 ; | |
1568 | wxString *arg5 = 0 ; | |
1569 | bool result; | |
1570 | bool temp4 = False ; | |
1571 | bool temp5 = False ; | |
1572 | PyObject * obj0 = 0 ; | |
1573 | PyObject * obj1 = 0 ; | |
1574 | PyObject * obj2 = 0 ; | |
1575 | PyObject * obj3 = 0 ; | |
1576 | PyObject * obj4 = 0 ; | |
1577 | char *kwnames[] = { | |
1578 | (char *) "self",(char *) "instance",(char *) "parent",(char *) "name",(char *) "classname", NULL | |
1579 | }; | |
1580 | ||
1581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:XmlResource_LoadOnObject",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
1582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1584 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
1585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1586 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
1587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1588 | { | |
1589 | arg4 = wxString_in_helper(obj3); | |
1590 | if (arg4 == NULL) SWIG_fail; | |
1591 | temp4 = True; | |
1592 | } | |
1593 | { | |
1594 | arg5 = wxString_in_helper(obj4); | |
1595 | if (arg5 == NULL) SWIG_fail; | |
1596 | temp5 = True; | |
1597 | } | |
1598 | { | |
1599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1600 | result = (bool)(arg1)->LoadObject(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
1601 | ||
1602 | wxPyEndAllowThreads(__tstate); | |
1603 | if (PyErr_Occurred()) SWIG_fail; | |
1604 | } | |
1605 | { | |
1606 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1607 | } | |
1608 | { | |
1609 | if (temp4) | |
1610 | delete arg4; | |
1611 | } | |
1612 | { | |
1613 | if (temp5) | |
1614 | delete arg5; | |
1615 | } | |
1616 | return resultobj; | |
1617 | fail: | |
1618 | { | |
1619 | if (temp4) | |
1620 | delete arg4; | |
1621 | } | |
1622 | { | |
1623 | if (temp5) | |
1624 | delete arg5; | |
1625 | } | |
1626 | return NULL; | |
1627 | } | |
1628 | ||
1629 | ||
1630 | static PyObject *_wrap_XmlResource_LoadBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1631 | PyObject *resultobj; | |
1632 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1633 | wxString *arg2 = 0 ; | |
1634 | wxBitmap result; | |
1635 | bool temp2 = False ; | |
1636 | PyObject * obj0 = 0 ; | |
1637 | PyObject * obj1 = 0 ; | |
1638 | char *kwnames[] = { | |
1639 | (char *) "self",(char *) "name", NULL | |
1640 | }; | |
1641 | ||
1642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadBitmap",kwnames,&obj0,&obj1)) goto fail; | |
1643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1645 | { | |
1646 | arg2 = wxString_in_helper(obj1); | |
1647 | if (arg2 == NULL) SWIG_fail; | |
1648 | temp2 = True; | |
1649 | } | |
1650 | { | |
1651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1652 | result = (arg1)->LoadBitmap((wxString const &)*arg2); | |
1653 | ||
1654 | wxPyEndAllowThreads(__tstate); | |
1655 | if (PyErr_Occurred()) SWIG_fail; | |
1656 | } | |
1657 | { | |
1658 | wxBitmap * resultptr; | |
1659 | resultptr = new wxBitmap((wxBitmap &) result); | |
1660 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1661 | } | |
1662 | { | |
1663 | if (temp2) | |
1664 | delete arg2; | |
1665 | } | |
1666 | return resultobj; | |
1667 | fail: | |
1668 | { | |
1669 | if (temp2) | |
1670 | delete arg2; | |
1671 | } | |
1672 | return NULL; | |
1673 | } | |
1674 | ||
1675 | ||
1676 | static PyObject *_wrap_XmlResource_LoadIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1677 | PyObject *resultobj; | |
1678 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1679 | wxString *arg2 = 0 ; | |
1680 | wxIcon result; | |
1681 | bool temp2 = False ; | |
1682 | PyObject * obj0 = 0 ; | |
1683 | PyObject * obj1 = 0 ; | |
1684 | char *kwnames[] = { | |
1685 | (char *) "self",(char *) "name", NULL | |
1686 | }; | |
1687 | ||
1688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_LoadIcon",kwnames,&obj0,&obj1)) goto fail; | |
1689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1691 | { | |
1692 | arg2 = wxString_in_helper(obj1); | |
1693 | if (arg2 == NULL) SWIG_fail; | |
1694 | temp2 = True; | |
1695 | } | |
1696 | { | |
1697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1698 | result = (arg1)->LoadIcon((wxString const &)*arg2); | |
1699 | ||
1700 | wxPyEndAllowThreads(__tstate); | |
1701 | if (PyErr_Occurred()) SWIG_fail; | |
1702 | } | |
1703 | { | |
1704 | wxIcon * resultptr; | |
1705 | resultptr = new wxIcon((wxIcon &) result); | |
1706 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
1707 | } | |
1708 | { | |
1709 | if (temp2) | |
1710 | delete arg2; | |
1711 | } | |
1712 | return resultobj; | |
1713 | fail: | |
1714 | { | |
1715 | if (temp2) | |
1716 | delete arg2; | |
1717 | } | |
1718 | return NULL; | |
1719 | } | |
1720 | ||
1721 | ||
1722 | static PyObject *_wrap_XmlResource_AttachUnknownControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1723 | PyObject *resultobj; | |
1724 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1725 | wxString *arg2 = 0 ; | |
1726 | wxWindow *arg3 = (wxWindow *) 0 ; | |
1727 | wxWindow *arg4 = (wxWindow *) NULL ; | |
1728 | bool result; | |
1729 | bool temp2 = False ; | |
1730 | PyObject * obj0 = 0 ; | |
1731 | PyObject * obj1 = 0 ; | |
1732 | PyObject * obj2 = 0 ; | |
1733 | PyObject * obj3 = 0 ; | |
1734 | char *kwnames[] = { | |
1735 | (char *) "self",(char *) "name",(char *) "control",(char *) "parent", NULL | |
1736 | }; | |
1737 | ||
1738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:XmlResource_AttachUnknownControl",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1741 | { | |
1742 | arg2 = wxString_in_helper(obj1); | |
1743 | if (arg2 == NULL) SWIG_fail; | |
1744 | temp2 = True; | |
1745 | } | |
1746 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
1747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1748 | if (obj3) { | |
1749 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
1750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1751 | } | |
1752 | { | |
1753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1754 | result = (bool)(arg1)->AttachUnknownControl((wxString const &)*arg2,arg3,arg4); | |
1755 | ||
1756 | wxPyEndAllowThreads(__tstate); | |
1757 | if (PyErr_Occurred()) SWIG_fail; | |
1758 | } | |
1759 | { | |
1760 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1761 | } | |
1762 | { | |
1763 | if (temp2) | |
1764 | delete arg2; | |
1765 | } | |
1766 | return resultobj; | |
1767 | fail: | |
1768 | { | |
1769 | if (temp2) | |
1770 | delete arg2; | |
1771 | } | |
1772 | return NULL; | |
1773 | } | |
1774 | ||
1775 | ||
1776 | static PyObject *_wrap_XmlResource_GetXRCID(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1777 | PyObject *resultobj; | |
1778 | wxString *arg1 = 0 ; | |
1779 | int result; | |
1780 | bool temp1 = False ; | |
1781 | PyObject * obj0 = 0 ; | |
1782 | char *kwnames[] = { | |
1783 | (char *) "str_id", NULL | |
1784 | }; | |
1785 | ||
1786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_GetXRCID",kwnames,&obj0)) goto fail; | |
1787 | { | |
1788 | arg1 = wxString_in_helper(obj0); | |
1789 | if (arg1 == NULL) SWIG_fail; | |
1790 | temp1 = True; | |
1791 | } | |
1792 | { | |
1793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1794 | result = (int)wxXmlResource::GetXRCID((wxString const &)*arg1); | |
1795 | ||
1796 | wxPyEndAllowThreads(__tstate); | |
1797 | if (PyErr_Occurred()) SWIG_fail; | |
1798 | } | |
1799 | resultobj = SWIG_FromInt((int)result); | |
1800 | { | |
1801 | if (temp1) | |
1802 | delete arg1; | |
1803 | } | |
1804 | return resultobj; | |
1805 | fail: | |
1806 | { | |
1807 | if (temp1) | |
1808 | delete arg1; | |
1809 | } | |
1810 | return NULL; | |
1811 | } | |
1812 | ||
1813 | ||
1814 | static PyObject *_wrap_XmlResource_GetVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1815 | PyObject *resultobj; | |
1816 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1817 | long result; | |
1818 | PyObject * obj0 = 0 ; | |
1819 | char *kwnames[] = { | |
1820 | (char *) "self", NULL | |
1821 | }; | |
1822 | ||
1823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_GetVersion",kwnames,&obj0)) goto fail; | |
1824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1826 | { | |
1827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1828 | result = (long)((wxXmlResource const *)arg1)->GetVersion(); | |
1829 | ||
1830 | wxPyEndAllowThreads(__tstate); | |
1831 | if (PyErr_Occurred()) SWIG_fail; | |
1832 | } | |
1833 | resultobj = SWIG_FromLong((long)result); | |
1834 | return resultobj; | |
1835 | fail: | |
1836 | return NULL; | |
1837 | } | |
1838 | ||
1839 | ||
1840 | static PyObject *_wrap_XmlResource_CompareVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1841 | PyObject *resultobj; | |
1842 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1843 | int arg2 ; | |
1844 | int arg3 ; | |
1845 | int arg4 ; | |
1846 | int arg5 ; | |
1847 | int result; | |
1848 | PyObject * obj0 = 0 ; | |
1849 | PyObject * obj1 = 0 ; | |
1850 | PyObject * obj2 = 0 ; | |
1851 | PyObject * obj3 = 0 ; | |
1852 | PyObject * obj4 = 0 ; | |
1853 | char *kwnames[] = { | |
1854 | (char *) "self",(char *) "major",(char *) "minor",(char *) "release",(char *) "revision", NULL | |
1855 | }; | |
1856 | ||
1857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:XmlResource_CompareVersion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
1858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1860 | arg2 = (int) SWIG_AsInt(obj1); | |
1861 | if (PyErr_Occurred()) SWIG_fail; | |
1862 | arg3 = (int) SWIG_AsInt(obj2); | |
1863 | if (PyErr_Occurred()) SWIG_fail; | |
1864 | arg4 = (int) SWIG_AsInt(obj3); | |
1865 | if (PyErr_Occurred()) SWIG_fail; | |
1866 | arg5 = (int) SWIG_AsInt(obj4); | |
1867 | if (PyErr_Occurred()) SWIG_fail; | |
1868 | { | |
1869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1870 | result = (int)((wxXmlResource const *)arg1)->CompareVersion(arg2,arg3,arg4,arg5); | |
1871 | ||
1872 | wxPyEndAllowThreads(__tstate); | |
1873 | if (PyErr_Occurred()) SWIG_fail; | |
1874 | } | |
1875 | resultobj = SWIG_FromInt((int)result); | |
1876 | return resultobj; | |
1877 | fail: | |
1878 | return NULL; | |
1879 | } | |
1880 | ||
1881 | ||
1882 | static PyObject *_wrap_XmlResource_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1883 | PyObject *resultobj; | |
1884 | wxXmlResource *result; | |
1885 | char *kwnames[] = { | |
1886 | NULL | |
1887 | }; | |
1888 | ||
1889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":XmlResource_Get",kwnames)) goto fail; | |
1890 | { | |
1891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1892 | result = (wxXmlResource *)wxXmlResource::Get(); | |
1893 | ||
1894 | wxPyEndAllowThreads(__tstate); | |
1895 | if (PyErr_Occurred()) SWIG_fail; | |
1896 | } | |
1897 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlResource, 0); | |
1898 | return resultobj; | |
1899 | fail: | |
1900 | return NULL; | |
1901 | } | |
1902 | ||
1903 | ||
1904 | static PyObject *_wrap_XmlResource_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1905 | PyObject *resultobj; | |
1906 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1907 | wxXmlResource *result; | |
1908 | PyObject * obj0 = 0 ; | |
1909 | char *kwnames[] = { | |
1910 | (char *) "res", NULL | |
1911 | }; | |
1912 | ||
1913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_Set",kwnames,&obj0)) goto fail; | |
1914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1916 | { | |
1917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1918 | result = (wxXmlResource *)wxXmlResource::Set(arg1); | |
1919 | ||
1920 | wxPyEndAllowThreads(__tstate); | |
1921 | if (PyErr_Occurred()) SWIG_fail; | |
1922 | } | |
1923 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlResource, 0); | |
1924 | return resultobj; | |
1925 | fail: | |
1926 | return NULL; | |
1927 | } | |
1928 | ||
1929 | ||
1930 | static PyObject *_wrap_XmlResource_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1931 | PyObject *resultobj; | |
1932 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1933 | int result; | |
1934 | PyObject * obj0 = 0 ; | |
1935 | char *kwnames[] = { | |
1936 | (char *) "self", NULL | |
1937 | }; | |
1938 | ||
1939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResource_GetFlags",kwnames,&obj0)) goto fail; | |
1940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1942 | { | |
1943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1944 | result = (int)(arg1)->GetFlags(); | |
1945 | ||
1946 | wxPyEndAllowThreads(__tstate); | |
1947 | if (PyErr_Occurred()) SWIG_fail; | |
1948 | } | |
1949 | resultobj = SWIG_FromInt((int)result); | |
1950 | return resultobj; | |
1951 | fail: | |
1952 | return NULL; | |
1953 | } | |
1954 | ||
1955 | ||
1956 | static PyObject *_wrap_XmlResource_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1957 | PyObject *resultobj; | |
1958 | wxXmlResource *arg1 = (wxXmlResource *) 0 ; | |
1959 | int arg2 ; | |
1960 | PyObject * obj0 = 0 ; | |
1961 | PyObject * obj1 = 0 ; | |
1962 | char *kwnames[] = { | |
1963 | (char *) "self",(char *) "flags", NULL | |
1964 | }; | |
1965 | ||
1966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
1967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlResource, | |
1968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1969 | arg2 = (int) SWIG_AsInt(obj1); | |
1970 | if (PyErr_Occurred()) SWIG_fail; | |
1971 | { | |
1972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1973 | (arg1)->SetFlags(arg2); | |
1974 | ||
1975 | wxPyEndAllowThreads(__tstate); | |
1976 | if (PyErr_Occurred()) SWIG_fail; | |
1977 | } | |
1978 | Py_INCREF(Py_None); resultobj = Py_None; | |
1979 | return resultobj; | |
1980 | fail: | |
1981 | return NULL; | |
1982 | } | |
1983 | ||
1984 | ||
1985 | static PyObject * XmlResource_swigregister(PyObject *self, PyObject *args) { | |
1986 | PyObject *obj; | |
1987 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1988 | SWIG_TypeClientData(SWIGTYPE_p_wxXmlResource, obj); | |
1989 | Py_INCREF(obj); | |
1990 | return Py_BuildValue((char *)""); | |
1991 | } | |
1992 | static PyObject *_wrap_new_XmlSubclassFactory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1993 | PyObject *resultobj; | |
1994 | wxPyXmlSubclassFactory *result; | |
1995 | char *kwnames[] = { | |
1996 | NULL | |
1997 | }; | |
1998 | ||
1999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XmlSubclassFactory",kwnames)) goto fail; | |
2000 | { | |
2001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2002 | result = (wxPyXmlSubclassFactory *)new wxPyXmlSubclassFactory(); | |
2003 | ||
2004 | wxPyEndAllowThreads(__tstate); | |
2005 | if (PyErr_Occurred()) SWIG_fail; | |
2006 | } | |
2007 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyXmlSubclassFactory, 1); | |
2008 | return resultobj; | |
2009 | fail: | |
2010 | return NULL; | |
2011 | } | |
2012 | ||
2013 | ||
2014 | static PyObject *_wrap_XmlSubclassFactory__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2015 | PyObject *resultobj; | |
2016 | wxPyXmlSubclassFactory *arg1 = (wxPyXmlSubclassFactory *) 0 ; | |
2017 | PyObject *arg2 = (PyObject *) 0 ; | |
2018 | PyObject *arg3 = (PyObject *) 0 ; | |
2019 | PyObject * obj0 = 0 ; | |
2020 | PyObject * obj1 = 0 ; | |
2021 | PyObject * obj2 = 0 ; | |
2022 | char *kwnames[] = { | |
2023 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
2024 | }; | |
2025 | ||
2026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlSubclassFactory__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlSubclassFactory, | |
2028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2029 | arg2 = obj1; | |
2030 | arg3 = obj2; | |
2031 | { | |
2032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2033 | (arg1)->_setCallbackInfo(arg2,arg3); | |
2034 | ||
2035 | wxPyEndAllowThreads(__tstate); | |
2036 | if (PyErr_Occurred()) SWIG_fail; | |
2037 | } | |
2038 | Py_INCREF(Py_None); resultobj = Py_None; | |
2039 | return resultobj; | |
2040 | fail: | |
2041 | return NULL; | |
2042 | } | |
2043 | ||
2044 | ||
2045 | static PyObject * XmlSubclassFactory_swigregister(PyObject *self, PyObject *args) { | |
2046 | PyObject *obj; | |
2047 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2048 | SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlSubclassFactory, obj); | |
2049 | Py_INCREF(obj); | |
2050 | return Py_BuildValue((char *)""); | |
2051 | } | |
2052 | static PyObject *_wrap_new_XmlProperty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2053 | PyObject *resultobj; | |
2054 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2055 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2056 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2057 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2058 | wxXmlProperty *arg3 = (wxXmlProperty *) NULL ; | |
2059 | wxXmlProperty *result; | |
2060 | bool temp1 = False ; | |
2061 | bool temp2 = False ; | |
2062 | PyObject * obj0 = 0 ; | |
2063 | PyObject * obj1 = 0 ; | |
2064 | PyObject * obj2 = 0 ; | |
2065 | char *kwnames[] = { | |
2066 | (char *) "name",(char *) "value",(char *) "next", NULL | |
2067 | }; | |
2068 | ||
2069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_XmlProperty",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2070 | if (obj0) { | |
2071 | { | |
2072 | arg1 = wxString_in_helper(obj0); | |
2073 | if (arg1 == NULL) SWIG_fail; | |
2074 | temp1 = True; | |
2075 | } | |
2076 | } | |
2077 | if (obj1) { | |
2078 | { | |
2079 | arg2 = wxString_in_helper(obj1); | |
2080 | if (arg2 == NULL) SWIG_fail; | |
2081 | temp2 = True; | |
2082 | } | |
2083 | } | |
2084 | if (obj2) { | |
2085 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxXmlProperty, | |
2086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2087 | } | |
2088 | { | |
2089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2090 | result = (wxXmlProperty *)new wxXmlProperty((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
2091 | ||
2092 | wxPyEndAllowThreads(__tstate); | |
2093 | if (PyErr_Occurred()) SWIG_fail; | |
2094 | } | |
2095 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlProperty, 1); | |
2096 | { | |
2097 | if (temp1) | |
2098 | delete arg1; | |
2099 | } | |
2100 | { | |
2101 | if (temp2) | |
2102 | delete arg2; | |
2103 | } | |
2104 | return resultobj; | |
2105 | fail: | |
2106 | { | |
2107 | if (temp1) | |
2108 | delete arg1; | |
2109 | } | |
2110 | { | |
2111 | if (temp2) | |
2112 | delete arg2; | |
2113 | } | |
2114 | return NULL; | |
2115 | } | |
2116 | ||
2117 | ||
2118 | static PyObject *_wrap_XmlProperty_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2119 | PyObject *resultobj; | |
2120 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
2121 | wxString result; | |
2122 | PyObject * obj0 = 0 ; | |
2123 | char *kwnames[] = { | |
2124 | (char *) "self", NULL | |
2125 | }; | |
2126 | ||
2127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlProperty_GetName",kwnames,&obj0)) goto fail; | |
2128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlProperty, | |
2129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2130 | { | |
2131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2132 | result = ((wxXmlProperty const *)arg1)->GetName(); | |
2133 | ||
2134 | wxPyEndAllowThreads(__tstate); | |
2135 | if (PyErr_Occurred()) SWIG_fail; | |
2136 | } | |
2137 | { | |
2138 | #if wxUSE_UNICODE | |
2139 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2140 | #else | |
2141 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2142 | #endif | |
2143 | } | |
2144 | return resultobj; | |
2145 | fail: | |
2146 | return NULL; | |
2147 | } | |
2148 | ||
2149 | ||
2150 | static PyObject *_wrap_XmlProperty_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2151 | PyObject *resultobj; | |
2152 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
2153 | wxString result; | |
2154 | PyObject * obj0 = 0 ; | |
2155 | char *kwnames[] = { | |
2156 | (char *) "self", NULL | |
2157 | }; | |
2158 | ||
2159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlProperty_GetValue",kwnames,&obj0)) goto fail; | |
2160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlProperty, | |
2161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2162 | { | |
2163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2164 | result = ((wxXmlProperty const *)arg1)->GetValue(); | |
2165 | ||
2166 | wxPyEndAllowThreads(__tstate); | |
2167 | if (PyErr_Occurred()) SWIG_fail; | |
2168 | } | |
2169 | { | |
2170 | #if wxUSE_UNICODE | |
2171 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2172 | #else | |
2173 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2174 | #endif | |
2175 | } | |
2176 | return resultobj; | |
2177 | fail: | |
2178 | return NULL; | |
2179 | } | |
2180 | ||
2181 | ||
2182 | static PyObject *_wrap_XmlProperty_GetNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2183 | PyObject *resultobj; | |
2184 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
2185 | wxXmlProperty *result; | |
2186 | PyObject * obj0 = 0 ; | |
2187 | char *kwnames[] = { | |
2188 | (char *) "self", NULL | |
2189 | }; | |
2190 | ||
2191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlProperty_GetNext",kwnames,&obj0)) goto fail; | |
2192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlProperty, | |
2193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2194 | { | |
2195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2196 | result = (wxXmlProperty *)((wxXmlProperty const *)arg1)->GetNext(); | |
2197 | ||
2198 | wxPyEndAllowThreads(__tstate); | |
2199 | if (PyErr_Occurred()) SWIG_fail; | |
2200 | } | |
2201 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlProperty, 0); | |
2202 | return resultobj; | |
2203 | fail: | |
2204 | return NULL; | |
2205 | } | |
2206 | ||
2207 | ||
2208 | static PyObject *_wrap_XmlProperty_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2209 | PyObject *resultobj; | |
2210 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
2211 | wxString *arg2 = 0 ; | |
2212 | bool temp2 = False ; | |
2213 | PyObject * obj0 = 0 ; | |
2214 | PyObject * obj1 = 0 ; | |
2215 | char *kwnames[] = { | |
2216 | (char *) "self",(char *) "name", NULL | |
2217 | }; | |
2218 | ||
2219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlProperty_SetName",kwnames,&obj0,&obj1)) goto fail; | |
2220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlProperty, | |
2221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2222 | { | |
2223 | arg2 = wxString_in_helper(obj1); | |
2224 | if (arg2 == NULL) SWIG_fail; | |
2225 | temp2 = True; | |
2226 | } | |
2227 | { | |
2228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2229 | (arg1)->SetName((wxString const &)*arg2); | |
2230 | ||
2231 | wxPyEndAllowThreads(__tstate); | |
2232 | if (PyErr_Occurred()) SWIG_fail; | |
2233 | } | |
2234 | Py_INCREF(Py_None); resultobj = Py_None; | |
2235 | { | |
2236 | if (temp2) | |
2237 | delete arg2; | |
2238 | } | |
2239 | return resultobj; | |
2240 | fail: | |
2241 | { | |
2242 | if (temp2) | |
2243 | delete arg2; | |
2244 | } | |
2245 | return NULL; | |
2246 | } | |
2247 | ||
2248 | ||
2249 | static PyObject *_wrap_XmlProperty_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2250 | PyObject *resultobj; | |
2251 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
2252 | wxString *arg2 = 0 ; | |
2253 | bool temp2 = False ; | |
2254 | PyObject * obj0 = 0 ; | |
2255 | PyObject * obj1 = 0 ; | |
2256 | char *kwnames[] = { | |
2257 | (char *) "self",(char *) "value", NULL | |
2258 | }; | |
2259 | ||
2260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlProperty_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlProperty, | |
2262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2263 | { | |
2264 | arg2 = wxString_in_helper(obj1); | |
2265 | if (arg2 == NULL) SWIG_fail; | |
2266 | temp2 = True; | |
2267 | } | |
2268 | { | |
2269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2270 | (arg1)->SetValue((wxString const &)*arg2); | |
2271 | ||
2272 | wxPyEndAllowThreads(__tstate); | |
2273 | if (PyErr_Occurred()) SWIG_fail; | |
2274 | } | |
2275 | Py_INCREF(Py_None); resultobj = Py_None; | |
2276 | { | |
2277 | if (temp2) | |
2278 | delete arg2; | |
2279 | } | |
2280 | return resultobj; | |
2281 | fail: | |
2282 | { | |
2283 | if (temp2) | |
2284 | delete arg2; | |
2285 | } | |
2286 | return NULL; | |
2287 | } | |
2288 | ||
2289 | ||
2290 | static PyObject *_wrap_XmlProperty_SetNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2291 | PyObject *resultobj; | |
2292 | wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; | |
2293 | wxXmlProperty *arg2 = (wxXmlProperty *) 0 ; | |
2294 | PyObject * obj0 = 0 ; | |
2295 | PyObject * obj1 = 0 ; | |
2296 | char *kwnames[] = { | |
2297 | (char *) "self",(char *) "next", NULL | |
2298 | }; | |
2299 | ||
2300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlProperty_SetNext",kwnames,&obj0,&obj1)) goto fail; | |
2301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlProperty, | |
2302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2303 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlProperty, | |
2304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2305 | { | |
2306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2307 | (arg1)->SetNext(arg2); | |
2308 | ||
2309 | wxPyEndAllowThreads(__tstate); | |
2310 | if (PyErr_Occurred()) SWIG_fail; | |
2311 | } | |
2312 | Py_INCREF(Py_None); resultobj = Py_None; | |
2313 | return resultobj; | |
2314 | fail: | |
2315 | return NULL; | |
2316 | } | |
2317 | ||
2318 | ||
2319 | static PyObject * XmlProperty_swigregister(PyObject *self, PyObject *args) { | |
2320 | PyObject *obj; | |
2321 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2322 | SWIG_TypeClientData(SWIGTYPE_p_wxXmlProperty, obj); | |
2323 | Py_INCREF(obj); | |
2324 | return Py_BuildValue((char *)""); | |
2325 | } | |
2326 | static PyObject *_wrap_new_XmlNode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2327 | PyObject *resultobj; | |
2328 | wxXmlNode *arg1 = (wxXmlNode *) NULL ; | |
2329 | int arg2 = (int) 0 ; | |
2330 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2331 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2332 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2333 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2334 | wxXmlProperty *arg5 = (wxXmlProperty *) NULL ; | |
2335 | wxXmlNode *arg6 = (wxXmlNode *) NULL ; | |
2336 | wxXmlNode *result; | |
2337 | bool temp3 = False ; | |
2338 | bool temp4 = False ; | |
2339 | PyObject * obj0 = 0 ; | |
2340 | PyObject * obj1 = 0 ; | |
2341 | PyObject * obj2 = 0 ; | |
2342 | PyObject * obj3 = 0 ; | |
2343 | PyObject * obj4 = 0 ; | |
2344 | PyObject * obj5 = 0 ; | |
2345 | char *kwnames[] = { | |
2346 | (char *) "parent",(char *) "type",(char *) "name",(char *) "content",(char *) "props",(char *) "next", NULL | |
2347 | }; | |
2348 | ||
2349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_XmlNode",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
2350 | if (obj0) { | |
2351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2353 | } | |
2354 | if (obj1) { | |
2355 | arg2 = (wxXmlNodeType) SWIG_AsInt(obj1); | |
2356 | if (PyErr_Occurred()) SWIG_fail; | |
2357 | } | |
2358 | if (obj2) { | |
2359 | { | |
2360 | arg3 = wxString_in_helper(obj2); | |
2361 | if (arg3 == NULL) SWIG_fail; | |
2362 | temp3 = True; | |
2363 | } | |
2364 | } | |
2365 | if (obj3) { | |
2366 | { | |
2367 | arg4 = wxString_in_helper(obj3); | |
2368 | if (arg4 == NULL) SWIG_fail; | |
2369 | temp4 = True; | |
2370 | } | |
2371 | } | |
2372 | if (obj4) { | |
2373 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxXmlProperty, | |
2374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2375 | } | |
2376 | if (obj5) { | |
2377 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxXmlNode, | |
2378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2379 | } | |
2380 | { | |
2381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2382 | result = (wxXmlNode *)new wxXmlNode(arg1,(wxXmlNodeType )arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
2383 | ||
2384 | wxPyEndAllowThreads(__tstate); | |
2385 | if (PyErr_Occurred()) SWIG_fail; | |
2386 | } | |
2387 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlNode, 1); | |
2388 | { | |
2389 | if (temp3) | |
2390 | delete arg3; | |
2391 | } | |
2392 | { | |
2393 | if (temp4) | |
2394 | delete arg4; | |
2395 | } | |
2396 | return resultobj; | |
2397 | fail: | |
2398 | { | |
2399 | if (temp3) | |
2400 | delete arg3; | |
2401 | } | |
2402 | { | |
2403 | if (temp4) | |
2404 | delete arg4; | |
2405 | } | |
2406 | return NULL; | |
2407 | } | |
2408 | ||
2409 | ||
2410 | static PyObject *_wrap_delete_XmlNode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2411 | PyObject *resultobj; | |
2412 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2413 | PyObject * obj0 = 0 ; | |
2414 | char *kwnames[] = { | |
2415 | (char *) "self", NULL | |
2416 | }; | |
2417 | ||
2418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_XmlNode",kwnames,&obj0)) goto fail; | |
2419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2421 | { | |
2422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2423 | delete arg1; | |
2424 | ||
2425 | wxPyEndAllowThreads(__tstate); | |
2426 | if (PyErr_Occurred()) SWIG_fail; | |
2427 | } | |
2428 | Py_INCREF(Py_None); resultobj = Py_None; | |
2429 | return resultobj; | |
2430 | fail: | |
2431 | return NULL; | |
2432 | } | |
2433 | ||
2434 | ||
2435 | static PyObject *_wrap_new_XmlNodeEasy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2436 | PyObject *resultobj; | |
2437 | int arg1 ; | |
2438 | wxString *arg2 = 0 ; | |
2439 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2440 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2441 | wxXmlNode *result; | |
2442 | bool temp2 = False ; | |
2443 | bool temp3 = False ; | |
2444 | PyObject * obj0 = 0 ; | |
2445 | PyObject * obj1 = 0 ; | |
2446 | PyObject * obj2 = 0 ; | |
2447 | char *kwnames[] = { | |
2448 | (char *) "type",(char *) "name",(char *) "content", NULL | |
2449 | }; | |
2450 | ||
2451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_XmlNodeEasy",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2452 | arg1 = (wxXmlNodeType) SWIG_AsInt(obj0); | |
2453 | if (PyErr_Occurred()) SWIG_fail; | |
2454 | { | |
2455 | arg2 = wxString_in_helper(obj1); | |
2456 | if (arg2 == NULL) SWIG_fail; | |
2457 | temp2 = True; | |
2458 | } | |
2459 | if (obj2) { | |
2460 | { | |
2461 | arg3 = wxString_in_helper(obj2); | |
2462 | if (arg3 == NULL) SWIG_fail; | |
2463 | temp3 = True; | |
2464 | } | |
2465 | } | |
2466 | { | |
2467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2468 | result = (wxXmlNode *)new wxXmlNode((wxXmlNodeType )arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
2469 | ||
2470 | wxPyEndAllowThreads(__tstate); | |
2471 | if (PyErr_Occurred()) SWIG_fail; | |
2472 | } | |
2473 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlNode, 1); | |
2474 | { | |
2475 | if (temp2) | |
2476 | delete arg2; | |
2477 | } | |
2478 | { | |
2479 | if (temp3) | |
2480 | delete arg3; | |
2481 | } | |
2482 | return resultobj; | |
2483 | fail: | |
2484 | { | |
2485 | if (temp2) | |
2486 | delete arg2; | |
2487 | } | |
2488 | { | |
2489 | if (temp3) | |
2490 | delete arg3; | |
2491 | } | |
2492 | return NULL; | |
2493 | } | |
2494 | ||
2495 | ||
2496 | static PyObject *_wrap_XmlNode_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2497 | PyObject *resultobj; | |
2498 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2499 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
2500 | PyObject * obj0 = 0 ; | |
2501 | PyObject * obj1 = 0 ; | |
2502 | char *kwnames[] = { | |
2503 | (char *) "self",(char *) "child", NULL | |
2504 | }; | |
2505 | ||
2506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
2507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2509 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlNode, | |
2510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2511 | { | |
2512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2513 | (arg1)->AddChild(arg2); | |
2514 | ||
2515 | wxPyEndAllowThreads(__tstate); | |
2516 | if (PyErr_Occurred()) SWIG_fail; | |
2517 | } | |
2518 | Py_INCREF(Py_None); resultobj = Py_None; | |
2519 | return resultobj; | |
2520 | fail: | |
2521 | return NULL; | |
2522 | } | |
2523 | ||
2524 | ||
2525 | static PyObject *_wrap_XmlNode_InsertChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2526 | PyObject *resultobj; | |
2527 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2528 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
2529 | wxXmlNode *arg3 = (wxXmlNode *) 0 ; | |
2530 | PyObject * obj0 = 0 ; | |
2531 | PyObject * obj1 = 0 ; | |
2532 | PyObject * obj2 = 0 ; | |
2533 | char *kwnames[] = { | |
2534 | (char *) "self",(char *) "child",(char *) "before_node", NULL | |
2535 | }; | |
2536 | ||
2537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlNode_InsertChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2540 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlNode, | |
2541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2542 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxXmlNode, | |
2543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2544 | { | |
2545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2546 | (arg1)->InsertChild(arg2,arg3); | |
2547 | ||
2548 | wxPyEndAllowThreads(__tstate); | |
2549 | if (PyErr_Occurred()) SWIG_fail; | |
2550 | } | |
2551 | Py_INCREF(Py_None); resultobj = Py_None; | |
2552 | return resultobj; | |
2553 | fail: | |
2554 | return NULL; | |
2555 | } | |
2556 | ||
2557 | ||
2558 | static PyObject *_wrap_XmlNode_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2559 | PyObject *resultobj; | |
2560 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2561 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
2562 | bool result; | |
2563 | PyObject * obj0 = 0 ; | |
2564 | PyObject * obj1 = 0 ; | |
2565 | char *kwnames[] = { | |
2566 | (char *) "self",(char *) "child", NULL | |
2567 | }; | |
2568 | ||
2569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
2570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2572 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlNode, | |
2573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2574 | { | |
2575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2576 | result = (bool)(arg1)->RemoveChild(arg2); | |
2577 | ||
2578 | wxPyEndAllowThreads(__tstate); | |
2579 | if (PyErr_Occurred()) SWIG_fail; | |
2580 | } | |
2581 | { | |
2582 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2583 | } | |
2584 | return resultobj; | |
2585 | fail: | |
2586 | return NULL; | |
2587 | } | |
2588 | ||
2589 | ||
2590 | static PyObject *_wrap_XmlNode_AddProperty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2591 | PyObject *resultobj; | |
2592 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2593 | wxXmlProperty *arg2 = (wxXmlProperty *) 0 ; | |
2594 | PyObject * obj0 = 0 ; | |
2595 | PyObject * obj1 = 0 ; | |
2596 | char *kwnames[] = { | |
2597 | (char *) "self",(char *) "prop", NULL | |
2598 | }; | |
2599 | ||
2600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_AddProperty",kwnames,&obj0,&obj1)) goto fail; | |
2601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2603 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlProperty, | |
2604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2605 | { | |
2606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2607 | (arg1)->AddProperty(arg2); | |
2608 | ||
2609 | wxPyEndAllowThreads(__tstate); | |
2610 | if (PyErr_Occurred()) SWIG_fail; | |
2611 | } | |
2612 | Py_INCREF(Py_None); resultobj = Py_None; | |
2613 | return resultobj; | |
2614 | fail: | |
2615 | return NULL; | |
2616 | } | |
2617 | ||
2618 | ||
2619 | static PyObject *_wrap_XmlNode_AddPropertyName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2620 | PyObject *resultobj; | |
2621 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2622 | wxString *arg2 = 0 ; | |
2623 | wxString *arg3 = 0 ; | |
2624 | bool temp2 = False ; | |
2625 | bool temp3 = False ; | |
2626 | PyObject * obj0 = 0 ; | |
2627 | PyObject * obj1 = 0 ; | |
2628 | PyObject * obj2 = 0 ; | |
2629 | char *kwnames[] = { | |
2630 | (char *) "self",(char *) "name",(char *) "value", NULL | |
2631 | }; | |
2632 | ||
2633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlNode_AddPropertyName",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2636 | { | |
2637 | arg2 = wxString_in_helper(obj1); | |
2638 | if (arg2 == NULL) SWIG_fail; | |
2639 | temp2 = True; | |
2640 | } | |
2641 | { | |
2642 | arg3 = wxString_in_helper(obj2); | |
2643 | if (arg3 == NULL) SWIG_fail; | |
2644 | temp3 = True; | |
2645 | } | |
2646 | { | |
2647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2648 | (arg1)->AddProperty((wxString const &)*arg2,(wxString const &)*arg3); | |
2649 | ||
2650 | wxPyEndAllowThreads(__tstate); | |
2651 | if (PyErr_Occurred()) SWIG_fail; | |
2652 | } | |
2653 | Py_INCREF(Py_None); resultobj = Py_None; | |
2654 | { | |
2655 | if (temp2) | |
2656 | delete arg2; | |
2657 | } | |
2658 | { | |
2659 | if (temp3) | |
2660 | delete arg3; | |
2661 | } | |
2662 | return resultobj; | |
2663 | fail: | |
2664 | { | |
2665 | if (temp2) | |
2666 | delete arg2; | |
2667 | } | |
2668 | { | |
2669 | if (temp3) | |
2670 | delete arg3; | |
2671 | } | |
2672 | return NULL; | |
2673 | } | |
2674 | ||
2675 | ||
2676 | static PyObject *_wrap_XmlNode_DeleteProperty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2677 | PyObject *resultobj; | |
2678 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2679 | wxString *arg2 = 0 ; | |
2680 | bool result; | |
2681 | bool temp2 = False ; | |
2682 | PyObject * obj0 = 0 ; | |
2683 | PyObject * obj1 = 0 ; | |
2684 | char *kwnames[] = { | |
2685 | (char *) "self",(char *) "name", NULL | |
2686 | }; | |
2687 | ||
2688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_DeleteProperty",kwnames,&obj0,&obj1)) goto fail; | |
2689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2691 | { | |
2692 | arg2 = wxString_in_helper(obj1); | |
2693 | if (arg2 == NULL) SWIG_fail; | |
2694 | temp2 = True; | |
2695 | } | |
2696 | { | |
2697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2698 | result = (bool)(arg1)->DeleteProperty((wxString const &)*arg2); | |
2699 | ||
2700 | wxPyEndAllowThreads(__tstate); | |
2701 | if (PyErr_Occurred()) SWIG_fail; | |
2702 | } | |
2703 | { | |
2704 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2705 | } | |
2706 | { | |
2707 | if (temp2) | |
2708 | delete arg2; | |
2709 | } | |
2710 | return resultobj; | |
2711 | fail: | |
2712 | { | |
2713 | if (temp2) | |
2714 | delete arg2; | |
2715 | } | |
2716 | return NULL; | |
2717 | } | |
2718 | ||
2719 | ||
2720 | static PyObject *_wrap_XmlNode_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2721 | PyObject *resultobj; | |
2722 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2723 | int result; | |
2724 | PyObject * obj0 = 0 ; | |
2725 | char *kwnames[] = { | |
2726 | (char *) "self", NULL | |
2727 | }; | |
2728 | ||
2729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlNode_GetType",kwnames,&obj0)) goto fail; | |
2730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2732 | { | |
2733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2734 | result = (int)((wxXmlNode const *)arg1)->GetType(); | |
2735 | ||
2736 | wxPyEndAllowThreads(__tstate); | |
2737 | if (PyErr_Occurred()) SWIG_fail; | |
2738 | } | |
2739 | resultobj = SWIG_FromInt((int)result); | |
2740 | return resultobj; | |
2741 | fail: | |
2742 | return NULL; | |
2743 | } | |
2744 | ||
2745 | ||
2746 | static PyObject *_wrap_XmlNode_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2747 | PyObject *resultobj; | |
2748 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2749 | wxString result; | |
2750 | PyObject * obj0 = 0 ; | |
2751 | char *kwnames[] = { | |
2752 | (char *) "self", NULL | |
2753 | }; | |
2754 | ||
2755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlNode_GetName",kwnames,&obj0)) goto fail; | |
2756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2758 | { | |
2759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2760 | result = ((wxXmlNode const *)arg1)->GetName(); | |
2761 | ||
2762 | wxPyEndAllowThreads(__tstate); | |
2763 | if (PyErr_Occurred()) SWIG_fail; | |
2764 | } | |
2765 | { | |
2766 | #if wxUSE_UNICODE | |
2767 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2768 | #else | |
2769 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2770 | #endif | |
2771 | } | |
2772 | return resultobj; | |
2773 | fail: | |
2774 | return NULL; | |
2775 | } | |
2776 | ||
2777 | ||
2778 | static PyObject *_wrap_XmlNode_GetContent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2779 | PyObject *resultobj; | |
2780 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2781 | wxString result; | |
2782 | PyObject * obj0 = 0 ; | |
2783 | char *kwnames[] = { | |
2784 | (char *) "self", NULL | |
2785 | }; | |
2786 | ||
2787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlNode_GetContent",kwnames,&obj0)) goto fail; | |
2788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2790 | { | |
2791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2792 | result = ((wxXmlNode const *)arg1)->GetContent(); | |
2793 | ||
2794 | wxPyEndAllowThreads(__tstate); | |
2795 | if (PyErr_Occurred()) SWIG_fail; | |
2796 | } | |
2797 | { | |
2798 | #if wxUSE_UNICODE | |
2799 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2800 | #else | |
2801 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2802 | #endif | |
2803 | } | |
2804 | return resultobj; | |
2805 | fail: | |
2806 | return NULL; | |
2807 | } | |
2808 | ||
2809 | ||
2810 | static PyObject *_wrap_XmlNode_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2811 | PyObject *resultobj; | |
2812 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2813 | wxXmlNode *result; | |
2814 | PyObject * obj0 = 0 ; | |
2815 | char *kwnames[] = { | |
2816 | (char *) "self", NULL | |
2817 | }; | |
2818 | ||
2819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlNode_GetParent",kwnames,&obj0)) goto fail; | |
2820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2822 | { | |
2823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2824 | result = (wxXmlNode *)((wxXmlNode const *)arg1)->GetParent(); | |
2825 | ||
2826 | wxPyEndAllowThreads(__tstate); | |
2827 | if (PyErr_Occurred()) SWIG_fail; | |
2828 | } | |
2829 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlNode, 0); | |
2830 | return resultobj; | |
2831 | fail: | |
2832 | return NULL; | |
2833 | } | |
2834 | ||
2835 | ||
2836 | static PyObject *_wrap_XmlNode_GetNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2837 | PyObject *resultobj; | |
2838 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2839 | wxXmlNode *result; | |
2840 | PyObject * obj0 = 0 ; | |
2841 | char *kwnames[] = { | |
2842 | (char *) "self", NULL | |
2843 | }; | |
2844 | ||
2845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlNode_GetNext",kwnames,&obj0)) goto fail; | |
2846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2848 | { | |
2849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2850 | result = (wxXmlNode *)((wxXmlNode const *)arg1)->GetNext(); | |
2851 | ||
2852 | wxPyEndAllowThreads(__tstate); | |
2853 | if (PyErr_Occurred()) SWIG_fail; | |
2854 | } | |
2855 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlNode, 0); | |
2856 | return resultobj; | |
2857 | fail: | |
2858 | return NULL; | |
2859 | } | |
2860 | ||
2861 | ||
2862 | static PyObject *_wrap_XmlNode_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2863 | PyObject *resultobj; | |
2864 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2865 | wxXmlNode *result; | |
2866 | PyObject * obj0 = 0 ; | |
2867 | char *kwnames[] = { | |
2868 | (char *) "self", NULL | |
2869 | }; | |
2870 | ||
2871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlNode_GetChildren",kwnames,&obj0)) goto fail; | |
2872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2874 | { | |
2875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2876 | result = (wxXmlNode *)((wxXmlNode const *)arg1)->GetChildren(); | |
2877 | ||
2878 | wxPyEndAllowThreads(__tstate); | |
2879 | if (PyErr_Occurred()) SWIG_fail; | |
2880 | } | |
2881 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlNode, 0); | |
2882 | return resultobj; | |
2883 | fail: | |
2884 | return NULL; | |
2885 | } | |
2886 | ||
2887 | ||
2888 | static PyObject *_wrap_XmlNode_GetProperties(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2889 | PyObject *resultobj; | |
2890 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2891 | wxXmlProperty *result; | |
2892 | PyObject * obj0 = 0 ; | |
2893 | char *kwnames[] = { | |
2894 | (char *) "self", NULL | |
2895 | }; | |
2896 | ||
2897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlNode_GetProperties",kwnames,&obj0)) goto fail; | |
2898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2900 | { | |
2901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2902 | result = (wxXmlProperty *)((wxXmlNode const *)arg1)->GetProperties(); | |
2903 | ||
2904 | wxPyEndAllowThreads(__tstate); | |
2905 | if (PyErr_Occurred()) SWIG_fail; | |
2906 | } | |
2907 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlProperty, 0); | |
2908 | return resultobj; | |
2909 | fail: | |
2910 | return NULL; | |
2911 | } | |
2912 | ||
2913 | ||
2914 | static PyObject *_wrap_XmlNode_GetPropVal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2915 | PyObject *resultobj; | |
2916 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2917 | wxString *arg2 = 0 ; | |
2918 | wxString *arg3 = 0 ; | |
2919 | wxString result; | |
2920 | bool temp2 = False ; | |
2921 | bool temp3 = False ; | |
2922 | PyObject * obj0 = 0 ; | |
2923 | PyObject * obj1 = 0 ; | |
2924 | PyObject * obj2 = 0 ; | |
2925 | char *kwnames[] = { | |
2926 | (char *) "self",(char *) "propName",(char *) "defaultVal", NULL | |
2927 | }; | |
2928 | ||
2929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlNode_GetPropVal",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2932 | { | |
2933 | arg2 = wxString_in_helper(obj1); | |
2934 | if (arg2 == NULL) SWIG_fail; | |
2935 | temp2 = True; | |
2936 | } | |
2937 | { | |
2938 | arg3 = wxString_in_helper(obj2); | |
2939 | if (arg3 == NULL) SWIG_fail; | |
2940 | temp3 = True; | |
2941 | } | |
2942 | { | |
2943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2944 | result = ((wxXmlNode const *)arg1)->GetPropVal((wxString const &)*arg2,(wxString const &)*arg3); | |
2945 | ||
2946 | wxPyEndAllowThreads(__tstate); | |
2947 | if (PyErr_Occurred()) SWIG_fail; | |
2948 | } | |
2949 | { | |
2950 | #if wxUSE_UNICODE | |
2951 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2952 | #else | |
2953 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2954 | #endif | |
2955 | } | |
2956 | { | |
2957 | if (temp2) | |
2958 | delete arg2; | |
2959 | } | |
2960 | { | |
2961 | if (temp3) | |
2962 | delete arg3; | |
2963 | } | |
2964 | return resultobj; | |
2965 | fail: | |
2966 | { | |
2967 | if (temp2) | |
2968 | delete arg2; | |
2969 | } | |
2970 | { | |
2971 | if (temp3) | |
2972 | delete arg3; | |
2973 | } | |
2974 | return NULL; | |
2975 | } | |
2976 | ||
2977 | ||
2978 | static PyObject *_wrap_XmlNode_HasProp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2979 | PyObject *resultobj; | |
2980 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
2981 | wxString *arg2 = 0 ; | |
2982 | bool result; | |
2983 | bool temp2 = False ; | |
2984 | PyObject * obj0 = 0 ; | |
2985 | PyObject * obj1 = 0 ; | |
2986 | char *kwnames[] = { | |
2987 | (char *) "self",(char *) "propName", NULL | |
2988 | }; | |
2989 | ||
2990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_HasProp",kwnames,&obj0,&obj1)) goto fail; | |
2991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
2992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2993 | { | |
2994 | arg2 = wxString_in_helper(obj1); | |
2995 | if (arg2 == NULL) SWIG_fail; | |
2996 | temp2 = True; | |
2997 | } | |
2998 | { | |
2999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3000 | result = (bool)((wxXmlNode const *)arg1)->HasProp((wxString const &)*arg2); | |
3001 | ||
3002 | wxPyEndAllowThreads(__tstate); | |
3003 | if (PyErr_Occurred()) SWIG_fail; | |
3004 | } | |
3005 | { | |
3006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3007 | } | |
3008 | { | |
3009 | if (temp2) | |
3010 | delete arg2; | |
3011 | } | |
3012 | return resultobj; | |
3013 | fail: | |
3014 | { | |
3015 | if (temp2) | |
3016 | delete arg2; | |
3017 | } | |
3018 | return NULL; | |
3019 | } | |
3020 | ||
3021 | ||
3022 | static PyObject *_wrap_XmlNode_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3023 | PyObject *resultobj; | |
3024 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
3025 | int arg2 ; | |
3026 | PyObject * obj0 = 0 ; | |
3027 | PyObject * obj1 = 0 ; | |
3028 | char *kwnames[] = { | |
3029 | (char *) "self",(char *) "type", NULL | |
3030 | }; | |
3031 | ||
3032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetType",kwnames,&obj0,&obj1)) goto fail; | |
3033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
3034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3035 | arg2 = (wxXmlNodeType) SWIG_AsInt(obj1); | |
3036 | if (PyErr_Occurred()) SWIG_fail; | |
3037 | { | |
3038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3039 | (arg1)->SetType((wxXmlNodeType )arg2); | |
3040 | ||
3041 | wxPyEndAllowThreads(__tstate); | |
3042 | if (PyErr_Occurred()) SWIG_fail; | |
3043 | } | |
3044 | Py_INCREF(Py_None); resultobj = Py_None; | |
3045 | return resultobj; | |
3046 | fail: | |
3047 | return NULL; | |
3048 | } | |
3049 | ||
3050 | ||
3051 | static PyObject *_wrap_XmlNode_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3052 | PyObject *resultobj; | |
3053 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
3054 | wxString *arg2 = 0 ; | |
3055 | bool temp2 = False ; | |
3056 | PyObject * obj0 = 0 ; | |
3057 | PyObject * obj1 = 0 ; | |
3058 | char *kwnames[] = { | |
3059 | (char *) "self",(char *) "name", NULL | |
3060 | }; | |
3061 | ||
3062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetName",kwnames,&obj0,&obj1)) goto fail; | |
3063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
3064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3065 | { | |
3066 | arg2 = wxString_in_helper(obj1); | |
3067 | if (arg2 == NULL) SWIG_fail; | |
3068 | temp2 = True; | |
3069 | } | |
3070 | { | |
3071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3072 | (arg1)->SetName((wxString const &)*arg2); | |
3073 | ||
3074 | wxPyEndAllowThreads(__tstate); | |
3075 | if (PyErr_Occurred()) SWIG_fail; | |
3076 | } | |
3077 | Py_INCREF(Py_None); resultobj = Py_None; | |
3078 | { | |
3079 | if (temp2) | |
3080 | delete arg2; | |
3081 | } | |
3082 | return resultobj; | |
3083 | fail: | |
3084 | { | |
3085 | if (temp2) | |
3086 | delete arg2; | |
3087 | } | |
3088 | return NULL; | |
3089 | } | |
3090 | ||
3091 | ||
3092 | static PyObject *_wrap_XmlNode_SetContent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3093 | PyObject *resultobj; | |
3094 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
3095 | wxString *arg2 = 0 ; | |
3096 | bool temp2 = False ; | |
3097 | PyObject * obj0 = 0 ; | |
3098 | PyObject * obj1 = 0 ; | |
3099 | char *kwnames[] = { | |
3100 | (char *) "self",(char *) "con", NULL | |
3101 | }; | |
3102 | ||
3103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetContent",kwnames,&obj0,&obj1)) goto fail; | |
3104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
3105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3106 | { | |
3107 | arg2 = wxString_in_helper(obj1); | |
3108 | if (arg2 == NULL) SWIG_fail; | |
3109 | temp2 = True; | |
3110 | } | |
3111 | { | |
3112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3113 | (arg1)->SetContent((wxString const &)*arg2); | |
3114 | ||
3115 | wxPyEndAllowThreads(__tstate); | |
3116 | if (PyErr_Occurred()) SWIG_fail; | |
3117 | } | |
3118 | Py_INCREF(Py_None); resultobj = Py_None; | |
3119 | { | |
3120 | if (temp2) | |
3121 | delete arg2; | |
3122 | } | |
3123 | return resultobj; | |
3124 | fail: | |
3125 | { | |
3126 | if (temp2) | |
3127 | delete arg2; | |
3128 | } | |
3129 | return NULL; | |
3130 | } | |
3131 | ||
3132 | ||
3133 | static PyObject *_wrap_XmlNode_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3134 | PyObject *resultobj; | |
3135 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
3136 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
3137 | PyObject * obj0 = 0 ; | |
3138 | PyObject * obj1 = 0 ; | |
3139 | char *kwnames[] = { | |
3140 | (char *) "self",(char *) "parent", NULL | |
3141 | }; | |
3142 | ||
3143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
3144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
3145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3146 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlNode, | |
3147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3148 | { | |
3149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3150 | (arg1)->SetParent(arg2); | |
3151 | ||
3152 | wxPyEndAllowThreads(__tstate); | |
3153 | if (PyErr_Occurred()) SWIG_fail; | |
3154 | } | |
3155 | Py_INCREF(Py_None); resultobj = Py_None; | |
3156 | return resultobj; | |
3157 | fail: | |
3158 | return NULL; | |
3159 | } | |
3160 | ||
3161 | ||
3162 | static PyObject *_wrap_XmlNode_SetNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3163 | PyObject *resultobj; | |
3164 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
3165 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
3166 | PyObject * obj0 = 0 ; | |
3167 | PyObject * obj1 = 0 ; | |
3168 | char *kwnames[] = { | |
3169 | (char *) "self",(char *) "next", NULL | |
3170 | }; | |
3171 | ||
3172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetNext",kwnames,&obj0,&obj1)) goto fail; | |
3173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
3174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3175 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlNode, | |
3176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3177 | { | |
3178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3179 | (arg1)->SetNext(arg2); | |
3180 | ||
3181 | wxPyEndAllowThreads(__tstate); | |
3182 | if (PyErr_Occurred()) SWIG_fail; | |
3183 | } | |
3184 | Py_INCREF(Py_None); resultobj = Py_None; | |
3185 | return resultobj; | |
3186 | fail: | |
3187 | return NULL; | |
3188 | } | |
3189 | ||
3190 | ||
3191 | static PyObject *_wrap_XmlNode_SetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3192 | PyObject *resultobj; | |
3193 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
3194 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
3195 | PyObject * obj0 = 0 ; | |
3196 | PyObject * obj1 = 0 ; | |
3197 | char *kwnames[] = { | |
3198 | (char *) "self",(char *) "child", NULL | |
3199 | }; | |
3200 | ||
3201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetChildren",kwnames,&obj0,&obj1)) goto fail; | |
3202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
3203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3204 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlNode, | |
3205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3206 | { | |
3207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3208 | (arg1)->SetChildren(arg2); | |
3209 | ||
3210 | wxPyEndAllowThreads(__tstate); | |
3211 | if (PyErr_Occurred()) SWIG_fail; | |
3212 | } | |
3213 | Py_INCREF(Py_None); resultobj = Py_None; | |
3214 | return resultobj; | |
3215 | fail: | |
3216 | return NULL; | |
3217 | } | |
3218 | ||
3219 | ||
3220 | static PyObject *_wrap_XmlNode_SetProperties(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3221 | PyObject *resultobj; | |
3222 | wxXmlNode *arg1 = (wxXmlNode *) 0 ; | |
3223 | wxXmlProperty *arg2 = (wxXmlProperty *) 0 ; | |
3224 | PyObject * obj0 = 0 ; | |
3225 | PyObject * obj1 = 0 ; | |
3226 | char *kwnames[] = { | |
3227 | (char *) "self",(char *) "prop", NULL | |
3228 | }; | |
3229 | ||
3230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlNode_SetProperties",kwnames,&obj0,&obj1)) goto fail; | |
3231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlNode, | |
3232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3233 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlProperty, | |
3234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3235 | { | |
3236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3237 | (arg1)->SetProperties(arg2); | |
3238 | ||
3239 | wxPyEndAllowThreads(__tstate); | |
3240 | if (PyErr_Occurred()) SWIG_fail; | |
3241 | } | |
3242 | Py_INCREF(Py_None); resultobj = Py_None; | |
3243 | return resultobj; | |
3244 | fail: | |
3245 | return NULL; | |
3246 | } | |
3247 | ||
3248 | ||
3249 | static PyObject * XmlNode_swigregister(PyObject *self, PyObject *args) { | |
3250 | PyObject *obj; | |
3251 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3252 | SWIG_TypeClientData(SWIGTYPE_p_wxXmlNode, obj); | |
3253 | Py_INCREF(obj); | |
3254 | return Py_BuildValue((char *)""); | |
3255 | } | |
3256 | static PyObject *_wrap_new_XmlDocument(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3257 | PyObject *resultobj; | |
3258 | wxString *arg1 = 0 ; | |
3259 | wxString const &arg2_defvalue = wxPyUTF8String ; | |
3260 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3261 | wxXmlDocument *result; | |
3262 | bool temp1 = False ; | |
3263 | bool temp2 = False ; | |
3264 | PyObject * obj0 = 0 ; | |
3265 | PyObject * obj1 = 0 ; | |
3266 | char *kwnames[] = { | |
3267 | (char *) "filename",(char *) "encoding", NULL | |
3268 | }; | |
3269 | ||
3270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_XmlDocument",kwnames,&obj0,&obj1)) goto fail; | |
3271 | { | |
3272 | arg1 = wxString_in_helper(obj0); | |
3273 | if (arg1 == NULL) SWIG_fail; | |
3274 | temp1 = True; | |
3275 | } | |
3276 | if (obj1) { | |
3277 | { | |
3278 | arg2 = wxString_in_helper(obj1); | |
3279 | if (arg2 == NULL) SWIG_fail; | |
3280 | temp2 = True; | |
3281 | } | |
3282 | } | |
3283 | { | |
3284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3285 | result = (wxXmlDocument *)new wxXmlDocument((wxString const &)*arg1,(wxString const &)*arg2); | |
3286 | ||
3287 | wxPyEndAllowThreads(__tstate); | |
3288 | if (PyErr_Occurred()) SWIG_fail; | |
3289 | } | |
3290 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlDocument, 1); | |
3291 | { | |
3292 | if (temp1) | |
3293 | delete arg1; | |
3294 | } | |
3295 | { | |
3296 | if (temp2) | |
3297 | delete arg2; | |
3298 | } | |
3299 | return resultobj; | |
3300 | fail: | |
3301 | { | |
3302 | if (temp1) | |
3303 | delete arg1; | |
3304 | } | |
3305 | { | |
3306 | if (temp2) | |
3307 | delete arg2; | |
3308 | } | |
3309 | return NULL; | |
3310 | } | |
3311 | ||
3312 | ||
3313 | static PyObject *_wrap_new_XmlDocumentFromStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3314 | PyObject *resultobj; | |
3315 | wxInputStream *arg1 = 0 ; | |
3316 | wxString const &arg2_defvalue = wxPyUTF8String ; | |
3317 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3318 | wxXmlDocument *result; | |
3319 | wxPyInputStream *temp1 ; | |
3320 | bool created1 ; | |
3321 | bool temp2 = False ; | |
3322 | PyObject * obj0 = 0 ; | |
3323 | PyObject * obj1 = 0 ; | |
3324 | char *kwnames[] = { | |
3325 | (char *) "stream",(char *) "encoding", NULL | |
3326 | }; | |
3327 | ||
3328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_XmlDocumentFromStream",kwnames,&obj0,&obj1)) goto fail; | |
3329 | { | |
3330 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
3331 | arg1 = temp1->m_wxis; | |
3332 | created1 = False; | |
3333 | } else { | |
3334 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
3335 | arg1 = wxPyCBInputStream_create(obj0, False); | |
3336 | if (arg1 == NULL) { | |
3337 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
3338 | SWIG_fail; | |
3339 | } | |
3340 | created1 = True; | |
3341 | } | |
3342 | } | |
3343 | if (obj1) { | |
3344 | { | |
3345 | arg2 = wxString_in_helper(obj1); | |
3346 | if (arg2 == NULL) SWIG_fail; | |
3347 | temp2 = True; | |
3348 | } | |
3349 | } | |
3350 | { | |
3351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3352 | result = (wxXmlDocument *)new wxXmlDocument(*arg1,(wxString const &)*arg2); | |
3353 | ||
3354 | wxPyEndAllowThreads(__tstate); | |
3355 | if (PyErr_Occurred()) SWIG_fail; | |
3356 | } | |
3357 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlDocument, 1); | |
3358 | { | |
3359 | if (created1) | |
3360 | delete arg1; | |
3361 | } | |
3362 | { | |
3363 | if (temp2) | |
3364 | delete arg2; | |
3365 | } | |
3366 | return resultobj; | |
3367 | fail: | |
3368 | { | |
3369 | if (created1) | |
3370 | delete arg1; | |
3371 | } | |
3372 | { | |
3373 | if (temp2) | |
3374 | delete arg2; | |
3375 | } | |
3376 | return NULL; | |
3377 | } | |
3378 | ||
3379 | ||
3380 | static PyObject *_wrap_new_EmptyXmlDocument(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3381 | PyObject *resultobj; | |
3382 | wxXmlDocument *result; | |
3383 | char *kwnames[] = { | |
3384 | NULL | |
3385 | }; | |
3386 | ||
3387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyXmlDocument",kwnames)) goto fail; | |
3388 | { | |
3389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3390 | result = (wxXmlDocument *)new wxXmlDocument(); | |
3391 | ||
3392 | wxPyEndAllowThreads(__tstate); | |
3393 | if (PyErr_Occurred()) SWIG_fail; | |
3394 | } | |
3395 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlDocument, 1); | |
3396 | return resultobj; | |
3397 | fail: | |
3398 | return NULL; | |
3399 | } | |
3400 | ||
3401 | ||
3402 | static PyObject *_wrap_delete_XmlDocument(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3403 | PyObject *resultobj; | |
3404 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
3405 | PyObject * obj0 = 0 ; | |
3406 | char *kwnames[] = { | |
3407 | (char *) "self", NULL | |
3408 | }; | |
3409 | ||
3410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_XmlDocument",kwnames,&obj0)) goto fail; | |
3411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlDocument, | |
3412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3413 | { | |
3414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3415 | delete arg1; | |
3416 | ||
3417 | wxPyEndAllowThreads(__tstate); | |
3418 | if (PyErr_Occurred()) SWIG_fail; | |
3419 | } | |
3420 | Py_INCREF(Py_None); resultobj = Py_None; | |
3421 | return resultobj; | |
3422 | fail: | |
3423 | return NULL; | |
3424 | } | |
3425 | ||
3426 | ||
3427 | static PyObject *_wrap_XmlDocument_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3428 | PyObject *resultobj; | |
3429 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
3430 | wxString *arg2 = 0 ; | |
3431 | wxString const &arg3_defvalue = wxPyUTF8String ; | |
3432 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3433 | bool result; | |
3434 | bool temp2 = False ; | |
3435 | bool temp3 = False ; | |
3436 | PyObject * obj0 = 0 ; | |
3437 | PyObject * obj1 = 0 ; | |
3438 | PyObject * obj2 = 0 ; | |
3439 | char *kwnames[] = { | |
3440 | (char *) "self",(char *) "filename",(char *) "encoding", NULL | |
3441 | }; | |
3442 | ||
3443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlDocument_Load",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlDocument, | |
3445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3446 | { | |
3447 | arg2 = wxString_in_helper(obj1); | |
3448 | if (arg2 == NULL) SWIG_fail; | |
3449 | temp2 = True; | |
3450 | } | |
3451 | if (obj2) { | |
3452 | { | |
3453 | arg3 = wxString_in_helper(obj2); | |
3454 | if (arg3 == NULL) SWIG_fail; | |
3455 | temp3 = True; | |
3456 | } | |
3457 | } | |
3458 | { | |
3459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3460 | result = (bool)(arg1)->Load((wxString const &)*arg2,(wxString const &)*arg3); | |
3461 | ||
3462 | wxPyEndAllowThreads(__tstate); | |
3463 | if (PyErr_Occurred()) SWIG_fail; | |
3464 | } | |
3465 | { | |
3466 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3467 | } | |
3468 | { | |
3469 | if (temp2) | |
3470 | delete arg2; | |
3471 | } | |
3472 | { | |
3473 | if (temp3) | |
3474 | delete arg3; | |
3475 | } | |
3476 | return resultobj; | |
3477 | fail: | |
3478 | { | |
3479 | if (temp2) | |
3480 | delete arg2; | |
3481 | } | |
3482 | { | |
3483 | if (temp3) | |
3484 | delete arg3; | |
3485 | } | |
3486 | return NULL; | |
3487 | } | |
3488 | ||
3489 | ||
3490 | static PyObject *_wrap_XmlDocument_LoadFromStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3491 | PyObject *resultobj; | |
3492 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
3493 | wxInputStream *arg2 = 0 ; | |
3494 | wxString const &arg3_defvalue = wxPyUTF8String ; | |
3495 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3496 | bool result; | |
3497 | wxPyInputStream *temp2 ; | |
3498 | bool created2 ; | |
3499 | bool temp3 = False ; | |
3500 | PyObject * obj0 = 0 ; | |
3501 | PyObject * obj1 = 0 ; | |
3502 | PyObject * obj2 = 0 ; | |
3503 | char *kwnames[] = { | |
3504 | (char *) "self",(char *) "stream",(char *) "encoding", NULL | |
3505 | }; | |
3506 | ||
3507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlDocument_LoadFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlDocument, | |
3509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3510 | { | |
3511 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
3512 | arg2 = temp2->m_wxis; | |
3513 | created2 = False; | |
3514 | } else { | |
3515 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
3516 | arg2 = wxPyCBInputStream_create(obj1, False); | |
3517 | if (arg2 == NULL) { | |
3518 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
3519 | SWIG_fail; | |
3520 | } | |
3521 | created2 = True; | |
3522 | } | |
3523 | } | |
3524 | if (obj2) { | |
3525 | { | |
3526 | arg3 = wxString_in_helper(obj2); | |
3527 | if (arg3 == NULL) SWIG_fail; | |
3528 | temp3 = True; | |
3529 | } | |
3530 | } | |
3531 | { | |
3532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3533 | result = (bool)(arg1)->Load(*arg2,(wxString const &)*arg3); | |
3534 | ||
3535 | wxPyEndAllowThreads(__tstate); | |
3536 | if (PyErr_Occurred()) SWIG_fail; | |
3537 | } | |
3538 | { | |
3539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3540 | } | |
3541 | { | |
3542 | if (created2) | |
3543 | delete arg2; | |
3544 | } | |
3545 | { | |
3546 | if (temp3) | |
3547 | delete arg3; | |
3548 | } | |
3549 | return resultobj; | |
3550 | fail: | |
3551 | { | |
3552 | if (created2) | |
3553 | delete arg2; | |
3554 | } | |
3555 | { | |
3556 | if (temp3) | |
3557 | delete arg3; | |
3558 | } | |
3559 | return NULL; | |
3560 | } | |
3561 | ||
3562 | ||
3563 | static PyObject *_wrap_XmlDocument_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3564 | PyObject *resultobj; | |
3565 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
3566 | wxString *arg2 = 0 ; | |
3567 | bool result; | |
3568 | bool temp2 = False ; | |
3569 | PyObject * obj0 = 0 ; | |
3570 | PyObject * obj1 = 0 ; | |
3571 | char *kwnames[] = { | |
3572 | (char *) "self",(char *) "filename", NULL | |
3573 | }; | |
3574 | ||
3575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_Save",kwnames,&obj0,&obj1)) goto fail; | |
3576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlDocument, | |
3577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3578 | { | |
3579 | arg2 = wxString_in_helper(obj1); | |
3580 | if (arg2 == NULL) SWIG_fail; | |
3581 | temp2 = True; | |
3582 | } | |
3583 | { | |
3584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3585 | result = (bool)((wxXmlDocument const *)arg1)->Save((wxString const &)*arg2); | |
3586 | ||
3587 | wxPyEndAllowThreads(__tstate); | |
3588 | if (PyErr_Occurred()) SWIG_fail; | |
3589 | } | |
3590 | { | |
3591 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3592 | } | |
3593 | { | |
3594 | if (temp2) | |
3595 | delete arg2; | |
3596 | } | |
3597 | return resultobj; | |
3598 | fail: | |
3599 | { | |
3600 | if (temp2) | |
3601 | delete arg2; | |
3602 | } | |
3603 | return NULL; | |
3604 | } | |
3605 | ||
3606 | ||
3607 | static PyObject *_wrap_XmlDocument_SaveToStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3608 | PyObject *resultobj; | |
3609 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
3610 | wxOutputStream *arg2 = 0 ; | |
3611 | bool result; | |
3612 | PyObject * obj0 = 0 ; | |
3613 | PyObject * obj1 = 0 ; | |
3614 | char *kwnames[] = { | |
3615 | (char *) "self",(char *) "stream", NULL | |
3616 | }; | |
3617 | ||
3618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SaveToStream",kwnames,&obj0,&obj1)) goto fail; | |
3619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlDocument, | |
3620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3621 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxOutputStream, | |
3622 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3623 | SWIG_fail; | |
3624 | if (arg2 == NULL) { | |
3625 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3626 | SWIG_fail; | |
3627 | } | |
3628 | { | |
3629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3630 | result = (bool)((wxXmlDocument const *)arg1)->Save(*arg2); | |
3631 | ||
3632 | wxPyEndAllowThreads(__tstate); | |
3633 | if (PyErr_Occurred()) SWIG_fail; | |
3634 | } | |
3635 | { | |
3636 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3637 | } | |
3638 | return resultobj; | |
3639 | fail: | |
3640 | return NULL; | |
3641 | } | |
3642 | ||
3643 | ||
3644 | static PyObject *_wrap_XmlDocument_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3645 | PyObject *resultobj; | |
3646 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
3647 | bool result; | |
3648 | PyObject * obj0 = 0 ; | |
3649 | char *kwnames[] = { | |
3650 | (char *) "self", NULL | |
3651 | }; | |
3652 | ||
3653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlDocument_IsOk",kwnames,&obj0)) goto fail; | |
3654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlDocument, | |
3655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3656 | { | |
3657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3658 | result = (bool)((wxXmlDocument const *)arg1)->IsOk(); | |
3659 | ||
3660 | wxPyEndAllowThreads(__tstate); | |
3661 | if (PyErr_Occurred()) SWIG_fail; | |
3662 | } | |
3663 | { | |
3664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3665 | } | |
3666 | return resultobj; | |
3667 | fail: | |
3668 | return NULL; | |
3669 | } | |
3670 | ||
3671 | ||
3672 | static PyObject *_wrap_XmlDocument_GetRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3673 | PyObject *resultobj; | |
3674 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
3675 | wxXmlNode *result; | |
3676 | PyObject * obj0 = 0 ; | |
3677 | char *kwnames[] = { | |
3678 | (char *) "self", NULL | |
3679 | }; | |
3680 | ||
3681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlDocument_GetRoot",kwnames,&obj0)) goto fail; | |
3682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlDocument, | |
3683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3684 | { | |
3685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3686 | result = (wxXmlNode *)((wxXmlDocument const *)arg1)->GetRoot(); | |
3687 | ||
3688 | wxPyEndAllowThreads(__tstate); | |
3689 | if (PyErr_Occurred()) SWIG_fail; | |
3690 | } | |
3691 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlNode, 0); | |
3692 | return resultobj; | |
3693 | fail: | |
3694 | return NULL; | |
3695 | } | |
3696 | ||
3697 | ||
3698 | static PyObject *_wrap_XmlDocument_GetVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3699 | PyObject *resultobj; | |
3700 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
3701 | wxString result; | |
3702 | PyObject * obj0 = 0 ; | |
3703 | char *kwnames[] = { | |
3704 | (char *) "self", NULL | |
3705 | }; | |
3706 | ||
3707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlDocument_GetVersion",kwnames,&obj0)) goto fail; | |
3708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlDocument, | |
3709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3710 | { | |
3711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3712 | result = ((wxXmlDocument const *)arg1)->GetVersion(); | |
3713 | ||
3714 | wxPyEndAllowThreads(__tstate); | |
3715 | if (PyErr_Occurred()) SWIG_fail; | |
3716 | } | |
3717 | { | |
3718 | #if wxUSE_UNICODE | |
3719 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3720 | #else | |
3721 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3722 | #endif | |
3723 | } | |
3724 | return resultobj; | |
3725 | fail: | |
3726 | return NULL; | |
3727 | } | |
3728 | ||
3729 | ||
3730 | static PyObject *_wrap_XmlDocument_GetFileEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3731 | PyObject *resultobj; | |
3732 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
3733 | wxString result; | |
3734 | PyObject * obj0 = 0 ; | |
3735 | char *kwnames[] = { | |
3736 | (char *) "self", NULL | |
3737 | }; | |
3738 | ||
3739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlDocument_GetFileEncoding",kwnames,&obj0)) goto fail; | |
3740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlDocument, | |
3741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3742 | { | |
3743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3744 | result = ((wxXmlDocument const *)arg1)->GetFileEncoding(); | |
3745 | ||
3746 | wxPyEndAllowThreads(__tstate); | |
3747 | if (PyErr_Occurred()) SWIG_fail; | |
3748 | } | |
3749 | { | |
3750 | #if wxUSE_UNICODE | |
3751 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3752 | #else | |
3753 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3754 | #endif | |
3755 | } | |
3756 | return resultobj; | |
3757 | fail: | |
3758 | return NULL; | |
3759 | } | |
3760 | ||
3761 | ||
3762 | static PyObject *_wrap_XmlDocument_SetRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3763 | PyObject *resultobj; | |
3764 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
3765 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
3766 | PyObject * obj0 = 0 ; | |
3767 | PyObject * obj1 = 0 ; | |
3768 | char *kwnames[] = { | |
3769 | (char *) "self",(char *) "node", NULL | |
3770 | }; | |
3771 | ||
3772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SetRoot",kwnames,&obj0,&obj1)) goto fail; | |
3773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlDocument, | |
3774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3775 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlNode, | |
3776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3777 | { | |
3778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3779 | (arg1)->SetRoot(arg2); | |
3780 | ||
3781 | wxPyEndAllowThreads(__tstate); | |
3782 | if (PyErr_Occurred()) SWIG_fail; | |
3783 | } | |
3784 | Py_INCREF(Py_None); resultobj = Py_None; | |
3785 | return resultobj; | |
3786 | fail: | |
3787 | return NULL; | |
3788 | } | |
3789 | ||
3790 | ||
3791 | static PyObject *_wrap_XmlDocument_SetVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3792 | PyObject *resultobj; | |
3793 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
3794 | wxString *arg2 = 0 ; | |
3795 | bool temp2 = False ; | |
3796 | PyObject * obj0 = 0 ; | |
3797 | PyObject * obj1 = 0 ; | |
3798 | char *kwnames[] = { | |
3799 | (char *) "self",(char *) "version", NULL | |
3800 | }; | |
3801 | ||
3802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SetVersion",kwnames,&obj0,&obj1)) goto fail; | |
3803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlDocument, | |
3804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3805 | { | |
3806 | arg2 = wxString_in_helper(obj1); | |
3807 | if (arg2 == NULL) SWIG_fail; | |
3808 | temp2 = True; | |
3809 | } | |
3810 | { | |
3811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3812 | (arg1)->SetVersion((wxString const &)*arg2); | |
3813 | ||
3814 | wxPyEndAllowThreads(__tstate); | |
3815 | if (PyErr_Occurred()) SWIG_fail; | |
3816 | } | |
3817 | Py_INCREF(Py_None); resultobj = Py_None; | |
3818 | { | |
3819 | if (temp2) | |
3820 | delete arg2; | |
3821 | } | |
3822 | return resultobj; | |
3823 | fail: | |
3824 | { | |
3825 | if (temp2) | |
3826 | delete arg2; | |
3827 | } | |
3828 | return NULL; | |
3829 | } | |
3830 | ||
3831 | ||
3832 | static PyObject *_wrap_XmlDocument_SetFileEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3833 | PyObject *resultobj; | |
3834 | wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; | |
3835 | wxString *arg2 = 0 ; | |
3836 | bool temp2 = False ; | |
3837 | PyObject * obj0 = 0 ; | |
3838 | PyObject * obj1 = 0 ; | |
3839 | char *kwnames[] = { | |
3840 | (char *) "self",(char *) "encoding", NULL | |
3841 | }; | |
3842 | ||
3843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SetFileEncoding",kwnames,&obj0,&obj1)) goto fail; | |
3844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxXmlDocument, | |
3845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3846 | { | |
3847 | arg2 = wxString_in_helper(obj1); | |
3848 | if (arg2 == NULL) SWIG_fail; | |
3849 | temp2 = True; | |
3850 | } | |
3851 | { | |
3852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3853 | (arg1)->SetFileEncoding((wxString const &)*arg2); | |
3854 | ||
3855 | wxPyEndAllowThreads(__tstate); | |
3856 | if (PyErr_Occurred()) SWIG_fail; | |
3857 | } | |
3858 | Py_INCREF(Py_None); resultobj = Py_None; | |
3859 | { | |
3860 | if (temp2) | |
3861 | delete arg2; | |
3862 | } | |
3863 | return resultobj; | |
3864 | fail: | |
3865 | { | |
3866 | if (temp2) | |
3867 | delete arg2; | |
3868 | } | |
3869 | return NULL; | |
3870 | } | |
3871 | ||
3872 | ||
3873 | static PyObject * XmlDocument_swigregister(PyObject *self, PyObject *args) { | |
3874 | PyObject *obj; | |
3875 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3876 | SWIG_TypeClientData(SWIGTYPE_p_wxXmlDocument, obj); | |
3877 | Py_INCREF(obj); | |
3878 | return Py_BuildValue((char *)""); | |
3879 | } | |
3880 | static PyObject *_wrap_new_XmlResourceHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3881 | PyObject *resultobj; | |
3882 | wxPyXmlResourceHandler *result; | |
3883 | char *kwnames[] = { | |
3884 | NULL | |
3885 | }; | |
3886 | ||
3887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XmlResourceHandler",kwnames)) goto fail; | |
3888 | { | |
3889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3890 | result = (wxPyXmlResourceHandler *)new wxPyXmlResourceHandler(); | |
3891 | ||
3892 | wxPyEndAllowThreads(__tstate); | |
3893 | if (PyErr_Occurred()) SWIG_fail; | |
3894 | } | |
3895 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyXmlResourceHandler, 1); | |
3896 | return resultobj; | |
3897 | fail: | |
3898 | return NULL; | |
3899 | } | |
3900 | ||
3901 | ||
3902 | static PyObject *_wrap_XmlResourceHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3903 | PyObject *resultobj; | |
3904 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
3905 | PyObject *arg2 = (PyObject *) 0 ; | |
3906 | PyObject *arg3 = (PyObject *) 0 ; | |
3907 | PyObject * obj0 = 0 ; | |
3908 | PyObject * obj1 = 0 ; | |
3909 | PyObject * obj2 = 0 ; | |
3910 | char *kwnames[] = { | |
3911 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
3912 | }; | |
3913 | ||
3914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResourceHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
3916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3917 | arg2 = obj1; | |
3918 | arg3 = obj2; | |
3919 | { | |
3920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3921 | (arg1)->_setCallbackInfo(arg2,arg3); | |
3922 | ||
3923 | wxPyEndAllowThreads(__tstate); | |
3924 | if (PyErr_Occurred()) SWIG_fail; | |
3925 | } | |
3926 | Py_INCREF(Py_None); resultobj = Py_None; | |
3927 | return resultobj; | |
3928 | fail: | |
3929 | return NULL; | |
3930 | } | |
3931 | ||
3932 | ||
3933 | static PyObject *_wrap_XmlResourceHandler_CreateResource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3934 | PyObject *resultobj; | |
3935 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
3936 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
3937 | wxObject *arg3 = (wxObject *) 0 ; | |
3938 | wxObject *arg4 = (wxObject *) 0 ; | |
3939 | wxObject *result; | |
3940 | PyObject * obj0 = 0 ; | |
3941 | PyObject * obj1 = 0 ; | |
3942 | PyObject * obj2 = 0 ; | |
3943 | PyObject * obj3 = 0 ; | |
3944 | char *kwnames[] = { | |
3945 | (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL | |
3946 | }; | |
3947 | ||
3948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:XmlResourceHandler_CreateResource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
3950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3951 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlNode, | |
3952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3953 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxObject, | |
3954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3955 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxObject, | |
3956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3957 | { | |
3958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3959 | result = (wxObject *)(arg1)->CreateResource(arg2,arg3,arg4); | |
3960 | ||
3961 | wxPyEndAllowThreads(__tstate); | |
3962 | if (PyErr_Occurred()) SWIG_fail; | |
3963 | } | |
3964 | { | |
3965 | resultobj = wxPyMake_wxObject(result); | |
3966 | } | |
3967 | return resultobj; | |
3968 | fail: | |
3969 | return NULL; | |
3970 | } | |
3971 | ||
3972 | ||
3973 | static PyObject *_wrap_XmlResourceHandler_SetParentResource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3974 | PyObject *resultobj; | |
3975 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
3976 | wxXmlResource *arg2 = (wxXmlResource *) 0 ; | |
3977 | PyObject * obj0 = 0 ; | |
3978 | PyObject * obj1 = 0 ; | |
3979 | char *kwnames[] = { | |
3980 | (char *) "self",(char *) "res", NULL | |
3981 | }; | |
3982 | ||
3983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_SetParentResource",kwnames,&obj0,&obj1)) goto fail; | |
3984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
3985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3986 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlResource, | |
3987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3988 | { | |
3989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3990 | (arg1)->SetParentResource(arg2); | |
3991 | ||
3992 | wxPyEndAllowThreads(__tstate); | |
3993 | if (PyErr_Occurred()) SWIG_fail; | |
3994 | } | |
3995 | Py_INCREF(Py_None); resultobj = Py_None; | |
3996 | return resultobj; | |
3997 | fail: | |
3998 | return NULL; | |
3999 | } | |
4000 | ||
4001 | ||
4002 | static PyObject *_wrap_XmlResourceHandler_GetResource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4003 | PyObject *resultobj; | |
4004 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4005 | wxXmlResource *result; | |
4006 | PyObject * obj0 = 0 ; | |
4007 | char *kwnames[] = { | |
4008 | (char *) "self", NULL | |
4009 | }; | |
4010 | ||
4011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetResource",kwnames,&obj0)) goto fail; | |
4012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4014 | { | |
4015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4016 | result = (wxXmlResource *)(arg1)->GetResource(); | |
4017 | ||
4018 | wxPyEndAllowThreads(__tstate); | |
4019 | if (PyErr_Occurred()) SWIG_fail; | |
4020 | } | |
4021 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlResource, 0); | |
4022 | return resultobj; | |
4023 | fail: | |
4024 | return NULL; | |
4025 | } | |
4026 | ||
4027 | ||
4028 | static PyObject *_wrap_XmlResourceHandler_GetNode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4029 | PyObject *resultobj; | |
4030 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4031 | wxXmlNode *result; | |
4032 | PyObject * obj0 = 0 ; | |
4033 | char *kwnames[] = { | |
4034 | (char *) "self", NULL | |
4035 | }; | |
4036 | ||
4037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetNode",kwnames,&obj0)) goto fail; | |
4038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4040 | { | |
4041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4042 | result = (wxXmlNode *)(arg1)->GetNode(); | |
4043 | ||
4044 | wxPyEndAllowThreads(__tstate); | |
4045 | if (PyErr_Occurred()) SWIG_fail; | |
4046 | } | |
4047 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlNode, 0); | |
4048 | return resultobj; | |
4049 | fail: | |
4050 | return NULL; | |
4051 | } | |
4052 | ||
4053 | ||
4054 | static PyObject *_wrap_XmlResourceHandler_GetClass(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4055 | PyObject *resultobj; | |
4056 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4057 | wxString result; | |
4058 | PyObject * obj0 = 0 ; | |
4059 | char *kwnames[] = { | |
4060 | (char *) "self", NULL | |
4061 | }; | |
4062 | ||
4063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetClass",kwnames,&obj0)) goto fail; | |
4064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4066 | { | |
4067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4068 | result = (arg1)->GetClass(); | |
4069 | ||
4070 | wxPyEndAllowThreads(__tstate); | |
4071 | if (PyErr_Occurred()) SWIG_fail; | |
4072 | } | |
4073 | { | |
4074 | #if wxUSE_UNICODE | |
4075 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4076 | #else | |
4077 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4078 | #endif | |
4079 | } | |
4080 | return resultobj; | |
4081 | fail: | |
4082 | return NULL; | |
4083 | } | |
4084 | ||
4085 | ||
4086 | static PyObject *_wrap_XmlResourceHandler_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4087 | PyObject *resultobj; | |
4088 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4089 | wxObject *result; | |
4090 | PyObject * obj0 = 0 ; | |
4091 | char *kwnames[] = { | |
4092 | (char *) "self", NULL | |
4093 | }; | |
4094 | ||
4095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetParent",kwnames,&obj0)) goto fail; | |
4096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4098 | { | |
4099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4100 | result = (wxObject *)(arg1)->GetParent(); | |
4101 | ||
4102 | wxPyEndAllowThreads(__tstate); | |
4103 | if (PyErr_Occurred()) SWIG_fail; | |
4104 | } | |
4105 | { | |
4106 | resultobj = wxPyMake_wxObject(result); | |
4107 | } | |
4108 | return resultobj; | |
4109 | fail: | |
4110 | return NULL; | |
4111 | } | |
4112 | ||
4113 | ||
4114 | static PyObject *_wrap_XmlResourceHandler_GetInstance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4115 | PyObject *resultobj; | |
4116 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4117 | wxObject *result; | |
4118 | PyObject * obj0 = 0 ; | |
4119 | char *kwnames[] = { | |
4120 | (char *) "self", NULL | |
4121 | }; | |
4122 | ||
4123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetInstance",kwnames,&obj0)) goto fail; | |
4124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4126 | { | |
4127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4128 | result = (wxObject *)(arg1)->GetInstance(); | |
4129 | ||
4130 | wxPyEndAllowThreads(__tstate); | |
4131 | if (PyErr_Occurred()) SWIG_fail; | |
4132 | } | |
4133 | { | |
4134 | resultobj = wxPyMake_wxObject(result); | |
4135 | } | |
4136 | return resultobj; | |
4137 | fail: | |
4138 | return NULL; | |
4139 | } | |
4140 | ||
4141 | ||
4142 | static PyObject *_wrap_XmlResourceHandler_GetParentAsWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4143 | PyObject *resultobj; | |
4144 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4145 | wxWindow *result; | |
4146 | PyObject * obj0 = 0 ; | |
4147 | char *kwnames[] = { | |
4148 | (char *) "self", NULL | |
4149 | }; | |
4150 | ||
4151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetParentAsWindow",kwnames,&obj0)) goto fail; | |
4152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4154 | { | |
4155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4156 | result = (wxWindow *)(arg1)->GetParentAsWindow(); | |
4157 | ||
4158 | wxPyEndAllowThreads(__tstate); | |
4159 | if (PyErr_Occurred()) SWIG_fail; | |
4160 | } | |
4161 | { | |
4162 | resultobj = wxPyMake_wxObject(result); | |
4163 | } | |
4164 | return resultobj; | |
4165 | fail: | |
4166 | return NULL; | |
4167 | } | |
4168 | ||
4169 | ||
4170 | static PyObject *_wrap_XmlResourceHandler_GetInstanceAsWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4171 | PyObject *resultobj; | |
4172 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4173 | wxWindow *result; | |
4174 | PyObject * obj0 = 0 ; | |
4175 | char *kwnames[] = { | |
4176 | (char *) "self", NULL | |
4177 | }; | |
4178 | ||
4179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetInstanceAsWindow",kwnames,&obj0)) goto fail; | |
4180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4182 | { | |
4183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4184 | result = (wxWindow *)(arg1)->GetInstanceAsWindow(); | |
4185 | ||
4186 | wxPyEndAllowThreads(__tstate); | |
4187 | if (PyErr_Occurred()) SWIG_fail; | |
4188 | } | |
4189 | { | |
4190 | resultobj = wxPyMake_wxObject(result); | |
4191 | } | |
4192 | return resultobj; | |
4193 | fail: | |
4194 | return NULL; | |
4195 | } | |
4196 | ||
4197 | ||
4198 | static PyObject *_wrap_XmlResourceHandler_IsOfClass(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4199 | PyObject *resultobj; | |
4200 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4201 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
4202 | wxString *arg3 = 0 ; | |
4203 | bool result; | |
4204 | bool temp3 = False ; | |
4205 | PyObject * obj0 = 0 ; | |
4206 | PyObject * obj1 = 0 ; | |
4207 | PyObject * obj2 = 0 ; | |
4208 | char *kwnames[] = { | |
4209 | (char *) "self",(char *) "node",(char *) "classname", NULL | |
4210 | }; | |
4211 | ||
4212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResourceHandler_IsOfClass",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4215 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlNode, | |
4216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4217 | { | |
4218 | arg3 = wxString_in_helper(obj2); | |
4219 | if (arg3 == NULL) SWIG_fail; | |
4220 | temp3 = True; | |
4221 | } | |
4222 | { | |
4223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4224 | result = (bool)(arg1)->IsOfClass(arg2,(wxString const &)*arg3); | |
4225 | ||
4226 | wxPyEndAllowThreads(__tstate); | |
4227 | if (PyErr_Occurred()) SWIG_fail; | |
4228 | } | |
4229 | { | |
4230 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4231 | } | |
4232 | { | |
4233 | if (temp3) | |
4234 | delete arg3; | |
4235 | } | |
4236 | return resultobj; | |
4237 | fail: | |
4238 | { | |
4239 | if (temp3) | |
4240 | delete arg3; | |
4241 | } | |
4242 | return NULL; | |
4243 | } | |
4244 | ||
4245 | ||
4246 | static PyObject *_wrap_XmlResourceHandler_GetNodeContent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4247 | PyObject *resultobj; | |
4248 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4249 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
4250 | wxString result; | |
4251 | PyObject * obj0 = 0 ; | |
4252 | PyObject * obj1 = 0 ; | |
4253 | char *kwnames[] = { | |
4254 | (char *) "self",(char *) "node", NULL | |
4255 | }; | |
4256 | ||
4257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetNodeContent",kwnames,&obj0,&obj1)) goto fail; | |
4258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4260 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlNode, | |
4261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4262 | { | |
4263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4264 | result = (arg1)->GetNodeContent(arg2); | |
4265 | ||
4266 | wxPyEndAllowThreads(__tstate); | |
4267 | if (PyErr_Occurred()) SWIG_fail; | |
4268 | } | |
4269 | { | |
4270 | #if wxUSE_UNICODE | |
4271 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4272 | #else | |
4273 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4274 | #endif | |
4275 | } | |
4276 | return resultobj; | |
4277 | fail: | |
4278 | return NULL; | |
4279 | } | |
4280 | ||
4281 | ||
4282 | static PyObject *_wrap_XmlResourceHandler_HasParam(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4283 | PyObject *resultobj; | |
4284 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4285 | wxString *arg2 = 0 ; | |
4286 | bool result; | |
4287 | bool temp2 = False ; | |
4288 | PyObject * obj0 = 0 ; | |
4289 | PyObject * obj1 = 0 ; | |
4290 | char *kwnames[] = { | |
4291 | (char *) "self",(char *) "param", NULL | |
4292 | }; | |
4293 | ||
4294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_HasParam",kwnames,&obj0,&obj1)) goto fail; | |
4295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4297 | { | |
4298 | arg2 = wxString_in_helper(obj1); | |
4299 | if (arg2 == NULL) SWIG_fail; | |
4300 | temp2 = True; | |
4301 | } | |
4302 | { | |
4303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4304 | result = (bool)(arg1)->HasParam((wxString const &)*arg2); | |
4305 | ||
4306 | wxPyEndAllowThreads(__tstate); | |
4307 | if (PyErr_Occurred()) SWIG_fail; | |
4308 | } | |
4309 | { | |
4310 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4311 | } | |
4312 | { | |
4313 | if (temp2) | |
4314 | delete arg2; | |
4315 | } | |
4316 | return resultobj; | |
4317 | fail: | |
4318 | { | |
4319 | if (temp2) | |
4320 | delete arg2; | |
4321 | } | |
4322 | return NULL; | |
4323 | } | |
4324 | ||
4325 | ||
4326 | static PyObject *_wrap_XmlResourceHandler_GetParamNode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4327 | PyObject *resultobj; | |
4328 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4329 | wxString *arg2 = 0 ; | |
4330 | wxXmlNode *result; | |
4331 | bool temp2 = False ; | |
4332 | PyObject * obj0 = 0 ; | |
4333 | PyObject * obj1 = 0 ; | |
4334 | char *kwnames[] = { | |
4335 | (char *) "self",(char *) "param", NULL | |
4336 | }; | |
4337 | ||
4338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetParamNode",kwnames,&obj0,&obj1)) goto fail; | |
4339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4341 | { | |
4342 | arg2 = wxString_in_helper(obj1); | |
4343 | if (arg2 == NULL) SWIG_fail; | |
4344 | temp2 = True; | |
4345 | } | |
4346 | { | |
4347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4348 | result = (wxXmlNode *)(arg1)->GetParamNode((wxString const &)*arg2); | |
4349 | ||
4350 | wxPyEndAllowThreads(__tstate); | |
4351 | if (PyErr_Occurred()) SWIG_fail; | |
4352 | } | |
4353 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlNode, 0); | |
4354 | { | |
4355 | if (temp2) | |
4356 | delete arg2; | |
4357 | } | |
4358 | return resultobj; | |
4359 | fail: | |
4360 | { | |
4361 | if (temp2) | |
4362 | delete arg2; | |
4363 | } | |
4364 | return NULL; | |
4365 | } | |
4366 | ||
4367 | ||
4368 | static PyObject *_wrap_XmlResourceHandler_GetParamValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4369 | PyObject *resultobj; | |
4370 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4371 | wxString *arg2 = 0 ; | |
4372 | wxString result; | |
4373 | bool temp2 = False ; | |
4374 | PyObject * obj0 = 0 ; | |
4375 | PyObject * obj1 = 0 ; | |
4376 | char *kwnames[] = { | |
4377 | (char *) "self",(char *) "param", NULL | |
4378 | }; | |
4379 | ||
4380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetParamValue",kwnames,&obj0,&obj1)) goto fail; | |
4381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4383 | { | |
4384 | arg2 = wxString_in_helper(obj1); | |
4385 | if (arg2 == NULL) SWIG_fail; | |
4386 | temp2 = True; | |
4387 | } | |
4388 | { | |
4389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4390 | result = (arg1)->GetParamValue((wxString const &)*arg2); | |
4391 | ||
4392 | wxPyEndAllowThreads(__tstate); | |
4393 | if (PyErr_Occurred()) SWIG_fail; | |
4394 | } | |
4395 | { | |
4396 | #if wxUSE_UNICODE | |
4397 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4398 | #else | |
4399 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4400 | #endif | |
4401 | } | |
4402 | { | |
4403 | if (temp2) | |
4404 | delete arg2; | |
4405 | } | |
4406 | return resultobj; | |
4407 | fail: | |
4408 | { | |
4409 | if (temp2) | |
4410 | delete arg2; | |
4411 | } | |
4412 | return NULL; | |
4413 | } | |
4414 | ||
4415 | ||
4416 | static PyObject *_wrap_XmlResourceHandler_AddStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4417 | PyObject *resultobj; | |
4418 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4419 | wxString *arg2 = 0 ; | |
4420 | int arg3 ; | |
4421 | bool temp2 = False ; | |
4422 | PyObject * obj0 = 0 ; | |
4423 | PyObject * obj1 = 0 ; | |
4424 | PyObject * obj2 = 0 ; | |
4425 | char *kwnames[] = { | |
4426 | (char *) "self",(char *) "name",(char *) "value", NULL | |
4427 | }; | |
4428 | ||
4429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:XmlResourceHandler_AddStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4432 | { | |
4433 | arg2 = wxString_in_helper(obj1); | |
4434 | if (arg2 == NULL) SWIG_fail; | |
4435 | temp2 = True; | |
4436 | } | |
4437 | arg3 = (int) SWIG_AsInt(obj2); | |
4438 | if (PyErr_Occurred()) SWIG_fail; | |
4439 | { | |
4440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4441 | (arg1)->AddStyle((wxString const &)*arg2,arg3); | |
4442 | ||
4443 | wxPyEndAllowThreads(__tstate); | |
4444 | if (PyErr_Occurred()) SWIG_fail; | |
4445 | } | |
4446 | Py_INCREF(Py_None); resultobj = Py_None; | |
4447 | { | |
4448 | if (temp2) | |
4449 | delete arg2; | |
4450 | } | |
4451 | return resultobj; | |
4452 | fail: | |
4453 | { | |
4454 | if (temp2) | |
4455 | delete arg2; | |
4456 | } | |
4457 | return NULL; | |
4458 | } | |
4459 | ||
4460 | ||
4461 | static PyObject *_wrap_XmlResourceHandler_AddWindowStyles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4462 | PyObject *resultobj; | |
4463 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4464 | PyObject * obj0 = 0 ; | |
4465 | char *kwnames[] = { | |
4466 | (char *) "self", NULL | |
4467 | }; | |
4468 | ||
4469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_AddWindowStyles",kwnames,&obj0)) goto fail; | |
4470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4472 | { | |
4473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4474 | (arg1)->AddWindowStyles(); | |
4475 | ||
4476 | wxPyEndAllowThreads(__tstate); | |
4477 | if (PyErr_Occurred()) SWIG_fail; | |
4478 | } | |
4479 | Py_INCREF(Py_None); resultobj = Py_None; | |
4480 | return resultobj; | |
4481 | fail: | |
4482 | return NULL; | |
4483 | } | |
4484 | ||
4485 | ||
4486 | static PyObject *_wrap_XmlResourceHandler_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4487 | PyObject *resultobj; | |
4488 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4489 | wxString const &arg2_defvalue = wxPyStyleString ; | |
4490 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4491 | int arg3 = (int) 0 ; | |
4492 | int result; | |
4493 | bool temp2 = False ; | |
4494 | PyObject * obj0 = 0 ; | |
4495 | PyObject * obj1 = 0 ; | |
4496 | PyObject * obj2 = 0 ; | |
4497 | char *kwnames[] = { | |
4498 | (char *) "self",(char *) "param",(char *) "defaults", NULL | |
4499 | }; | |
4500 | ||
4501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:XmlResourceHandler_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4504 | if (obj1) { | |
4505 | { | |
4506 | arg2 = wxString_in_helper(obj1); | |
4507 | if (arg2 == NULL) SWIG_fail; | |
4508 | temp2 = True; | |
4509 | } | |
4510 | } | |
4511 | if (obj2) { | |
4512 | arg3 = (int) SWIG_AsInt(obj2); | |
4513 | if (PyErr_Occurred()) SWIG_fail; | |
4514 | } | |
4515 | { | |
4516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4517 | result = (int)(arg1)->GetStyle((wxString const &)*arg2,arg3); | |
4518 | ||
4519 | wxPyEndAllowThreads(__tstate); | |
4520 | if (PyErr_Occurred()) SWIG_fail; | |
4521 | } | |
4522 | resultobj = SWIG_FromInt((int)result); | |
4523 | { | |
4524 | if (temp2) | |
4525 | delete arg2; | |
4526 | } | |
4527 | return resultobj; | |
4528 | fail: | |
4529 | { | |
4530 | if (temp2) | |
4531 | delete arg2; | |
4532 | } | |
4533 | return NULL; | |
4534 | } | |
4535 | ||
4536 | ||
4537 | static PyObject *_wrap_XmlResourceHandler_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4538 | PyObject *resultobj; | |
4539 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4540 | wxString *arg2 = 0 ; | |
4541 | bool arg3 = (bool) True ; | |
4542 | wxString result; | |
4543 | bool temp2 = False ; | |
4544 | PyObject * obj0 = 0 ; | |
4545 | PyObject * obj1 = 0 ; | |
4546 | PyObject * obj2 = 0 ; | |
4547 | char *kwnames[] = { | |
4548 | (char *) "self",(char *) "param",(char *) "translate", NULL | |
4549 | }; | |
4550 | ||
4551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4554 | { | |
4555 | arg2 = wxString_in_helper(obj1); | |
4556 | if (arg2 == NULL) SWIG_fail; | |
4557 | temp2 = True; | |
4558 | } | |
4559 | if (obj2) { | |
4560 | arg3 = (bool) SWIG_AsBool(obj2); | |
4561 | if (PyErr_Occurred()) SWIG_fail; | |
4562 | } | |
4563 | { | |
4564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4565 | result = (arg1)->GetText((wxString const &)*arg2,arg3); | |
4566 | ||
4567 | wxPyEndAllowThreads(__tstate); | |
4568 | if (PyErr_Occurred()) SWIG_fail; | |
4569 | } | |
4570 | { | |
4571 | #if wxUSE_UNICODE | |
4572 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4573 | #else | |
4574 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4575 | #endif | |
4576 | } | |
4577 | { | |
4578 | if (temp2) | |
4579 | delete arg2; | |
4580 | } | |
4581 | return resultobj; | |
4582 | fail: | |
4583 | { | |
4584 | if (temp2) | |
4585 | delete arg2; | |
4586 | } | |
4587 | return NULL; | |
4588 | } | |
4589 | ||
4590 | ||
4591 | static PyObject *_wrap_XmlResourceHandler_GetID(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4592 | PyObject *resultobj; | |
4593 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4594 | int result; | |
4595 | PyObject * obj0 = 0 ; | |
4596 | char *kwnames[] = { | |
4597 | (char *) "self", NULL | |
4598 | }; | |
4599 | ||
4600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetID",kwnames,&obj0)) goto fail; | |
4601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4603 | { | |
4604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4605 | result = (int)(arg1)->GetID(); | |
4606 | ||
4607 | wxPyEndAllowThreads(__tstate); | |
4608 | if (PyErr_Occurred()) SWIG_fail; | |
4609 | } | |
4610 | resultobj = SWIG_FromInt((int)result); | |
4611 | return resultobj; | |
4612 | fail: | |
4613 | return NULL; | |
4614 | } | |
4615 | ||
4616 | ||
4617 | static PyObject *_wrap_XmlResourceHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4618 | PyObject *resultobj; | |
4619 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4620 | wxString result; | |
4621 | PyObject * obj0 = 0 ; | |
4622 | char *kwnames[] = { | |
4623 | (char *) "self", NULL | |
4624 | }; | |
4625 | ||
4626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetName",kwnames,&obj0)) goto fail; | |
4627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4629 | { | |
4630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4631 | result = (arg1)->GetName(); | |
4632 | ||
4633 | wxPyEndAllowThreads(__tstate); | |
4634 | if (PyErr_Occurred()) SWIG_fail; | |
4635 | } | |
4636 | { | |
4637 | #if wxUSE_UNICODE | |
4638 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4639 | #else | |
4640 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4641 | #endif | |
4642 | } | |
4643 | return resultobj; | |
4644 | fail: | |
4645 | return NULL; | |
4646 | } | |
4647 | ||
4648 | ||
4649 | static PyObject *_wrap_XmlResourceHandler_GetBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4650 | PyObject *resultobj; | |
4651 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4652 | wxString *arg2 = 0 ; | |
4653 | bool arg3 = (bool) False ; | |
4654 | bool result; | |
4655 | bool temp2 = False ; | |
4656 | PyObject * obj0 = 0 ; | |
4657 | PyObject * obj1 = 0 ; | |
4658 | PyObject * obj2 = 0 ; | |
4659 | char *kwnames[] = { | |
4660 | (char *) "self",(char *) "param",(char *) "defaultv", NULL | |
4661 | }; | |
4662 | ||
4663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4666 | { | |
4667 | arg2 = wxString_in_helper(obj1); | |
4668 | if (arg2 == NULL) SWIG_fail; | |
4669 | temp2 = True; | |
4670 | } | |
4671 | if (obj2) { | |
4672 | arg3 = (bool) SWIG_AsBool(obj2); | |
4673 | if (PyErr_Occurred()) SWIG_fail; | |
4674 | } | |
4675 | { | |
4676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4677 | result = (bool)(arg1)->GetBool((wxString const &)*arg2,arg3); | |
4678 | ||
4679 | wxPyEndAllowThreads(__tstate); | |
4680 | if (PyErr_Occurred()) SWIG_fail; | |
4681 | } | |
4682 | { | |
4683 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4684 | } | |
4685 | { | |
4686 | if (temp2) | |
4687 | delete arg2; | |
4688 | } | |
4689 | return resultobj; | |
4690 | fail: | |
4691 | { | |
4692 | if (temp2) | |
4693 | delete arg2; | |
4694 | } | |
4695 | return NULL; | |
4696 | } | |
4697 | ||
4698 | ||
4699 | static PyObject *_wrap_XmlResourceHandler_GetLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4700 | PyObject *resultobj; | |
4701 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4702 | wxString *arg2 = 0 ; | |
4703 | long arg3 = (long) 0 ; | |
4704 | long result; | |
4705 | bool temp2 = False ; | |
4706 | PyObject * obj0 = 0 ; | |
4707 | PyObject * obj1 = 0 ; | |
4708 | PyObject * obj2 = 0 ; | |
4709 | char *kwnames[] = { | |
4710 | (char *) "self",(char *) "param",(char *) "defaultv", NULL | |
4711 | }; | |
4712 | ||
4713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetLong",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4716 | { | |
4717 | arg2 = wxString_in_helper(obj1); | |
4718 | if (arg2 == NULL) SWIG_fail; | |
4719 | temp2 = True; | |
4720 | } | |
4721 | if (obj2) { | |
4722 | arg3 = (long) SWIG_AsLong(obj2); | |
4723 | if (PyErr_Occurred()) SWIG_fail; | |
4724 | } | |
4725 | { | |
4726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4727 | result = (long)(arg1)->GetLong((wxString const &)*arg2,arg3); | |
4728 | ||
4729 | wxPyEndAllowThreads(__tstate); | |
4730 | if (PyErr_Occurred()) SWIG_fail; | |
4731 | } | |
4732 | resultobj = SWIG_FromLong((long)result); | |
4733 | { | |
4734 | if (temp2) | |
4735 | delete arg2; | |
4736 | } | |
4737 | return resultobj; | |
4738 | fail: | |
4739 | { | |
4740 | if (temp2) | |
4741 | delete arg2; | |
4742 | } | |
4743 | return NULL; | |
4744 | } | |
4745 | ||
4746 | ||
4747 | static PyObject *_wrap_XmlResourceHandler_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4748 | PyObject *resultobj; | |
4749 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4750 | wxString *arg2 = 0 ; | |
4751 | wxColour result; | |
4752 | bool temp2 = False ; | |
4753 | PyObject * obj0 = 0 ; | |
4754 | PyObject * obj1 = 0 ; | |
4755 | char *kwnames[] = { | |
4756 | (char *) "self",(char *) "param", NULL | |
4757 | }; | |
4758 | ||
4759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_GetColour",kwnames,&obj0,&obj1)) goto fail; | |
4760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4762 | { | |
4763 | arg2 = wxString_in_helper(obj1); | |
4764 | if (arg2 == NULL) SWIG_fail; | |
4765 | temp2 = True; | |
4766 | } | |
4767 | { | |
4768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4769 | result = (arg1)->GetColour((wxString const &)*arg2); | |
4770 | ||
4771 | wxPyEndAllowThreads(__tstate); | |
4772 | if (PyErr_Occurred()) SWIG_fail; | |
4773 | } | |
4774 | { | |
4775 | wxColour * resultptr; | |
4776 | resultptr = new wxColour((wxColour &) result); | |
4777 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
4778 | } | |
4779 | { | |
4780 | if (temp2) | |
4781 | delete arg2; | |
4782 | } | |
4783 | return resultobj; | |
4784 | fail: | |
4785 | { | |
4786 | if (temp2) | |
4787 | delete arg2; | |
4788 | } | |
4789 | return NULL; | |
4790 | } | |
4791 | ||
4792 | ||
4793 | static PyObject *_wrap_XmlResourceHandler_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4794 | PyObject *resultobj; | |
4795 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4796 | wxString const &arg2_defvalue = wxPySizeString ; | |
4797 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4798 | wxSize result; | |
4799 | bool temp2 = False ; | |
4800 | PyObject * obj0 = 0 ; | |
4801 | PyObject * obj1 = 0 ; | |
4802 | char *kwnames[] = { | |
4803 | (char *) "self",(char *) "param", NULL | |
4804 | }; | |
4805 | ||
4806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetSize",kwnames,&obj0,&obj1)) goto fail; | |
4807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4809 | if (obj1) { | |
4810 | { | |
4811 | arg2 = wxString_in_helper(obj1); | |
4812 | if (arg2 == NULL) SWIG_fail; | |
4813 | temp2 = True; | |
4814 | } | |
4815 | } | |
4816 | { | |
4817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4818 | result = (arg1)->GetSize((wxString const &)*arg2); | |
4819 | ||
4820 | wxPyEndAllowThreads(__tstate); | |
4821 | if (PyErr_Occurred()) SWIG_fail; | |
4822 | } | |
4823 | { | |
4824 | wxSize * resultptr; | |
4825 | resultptr = new wxSize((wxSize &) result); | |
4826 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4827 | } | |
4828 | { | |
4829 | if (temp2) | |
4830 | delete arg2; | |
4831 | } | |
4832 | return resultobj; | |
4833 | fail: | |
4834 | { | |
4835 | if (temp2) | |
4836 | delete arg2; | |
4837 | } | |
4838 | return NULL; | |
4839 | } | |
4840 | ||
4841 | ||
4842 | static PyObject *_wrap_XmlResourceHandler_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4843 | PyObject *resultobj; | |
4844 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4845 | wxString const &arg2_defvalue = wxPyPosString ; | |
4846 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4847 | wxPoint result; | |
4848 | bool temp2 = False ; | |
4849 | PyObject * obj0 = 0 ; | |
4850 | PyObject * obj1 = 0 ; | |
4851 | char *kwnames[] = { | |
4852 | (char *) "self",(char *) "param", NULL | |
4853 | }; | |
4854 | ||
4855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetPosition",kwnames,&obj0,&obj1)) goto fail; | |
4856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4858 | if (obj1) { | |
4859 | { | |
4860 | arg2 = wxString_in_helper(obj1); | |
4861 | if (arg2 == NULL) SWIG_fail; | |
4862 | temp2 = True; | |
4863 | } | |
4864 | } | |
4865 | { | |
4866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4867 | result = (arg1)->GetPosition((wxString const &)*arg2); | |
4868 | ||
4869 | wxPyEndAllowThreads(__tstate); | |
4870 | if (PyErr_Occurred()) SWIG_fail; | |
4871 | } | |
4872 | { | |
4873 | wxPoint * resultptr; | |
4874 | resultptr = new wxPoint((wxPoint &) result); | |
4875 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
4876 | } | |
4877 | { | |
4878 | if (temp2) | |
4879 | delete arg2; | |
4880 | } | |
4881 | return resultobj; | |
4882 | fail: | |
4883 | { | |
4884 | if (temp2) | |
4885 | delete arg2; | |
4886 | } | |
4887 | return NULL; | |
4888 | } | |
4889 | ||
4890 | ||
4891 | static PyObject *_wrap_XmlResourceHandler_GetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4892 | PyObject *resultobj; | |
4893 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4894 | wxString *arg2 = 0 ; | |
4895 | int arg3 = (int) 0 ; | |
4896 | int result; | |
4897 | bool temp2 = False ; | |
4898 | PyObject * obj0 = 0 ; | |
4899 | PyObject * obj1 = 0 ; | |
4900 | PyObject * obj2 = 0 ; | |
4901 | char *kwnames[] = { | |
4902 | (char *) "self",(char *) "param",(char *) "defaultv", NULL | |
4903 | }; | |
4904 | ||
4905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_GetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4908 | { | |
4909 | arg2 = wxString_in_helper(obj1); | |
4910 | if (arg2 == NULL) SWIG_fail; | |
4911 | temp2 = True; | |
4912 | } | |
4913 | if (obj2) { | |
4914 | arg3 = (int) SWIG_AsInt(obj2); | |
4915 | if (PyErr_Occurred()) SWIG_fail; | |
4916 | } | |
4917 | { | |
4918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4919 | result = (int)(arg1)->GetDimension((wxString const &)*arg2,arg3); | |
4920 | ||
4921 | wxPyEndAllowThreads(__tstate); | |
4922 | if (PyErr_Occurred()) SWIG_fail; | |
4923 | } | |
4924 | resultobj = SWIG_FromInt((int)result); | |
4925 | { | |
4926 | if (temp2) | |
4927 | delete arg2; | |
4928 | } | |
4929 | return resultobj; | |
4930 | fail: | |
4931 | { | |
4932 | if (temp2) | |
4933 | delete arg2; | |
4934 | } | |
4935 | return NULL; | |
4936 | } | |
4937 | ||
4938 | ||
4939 | static PyObject *_wrap_XmlResourceHandler_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4940 | PyObject *resultobj; | |
4941 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
4942 | wxString const &arg2_defvalue = wxPyBitmapString ; | |
4943 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4944 | wxArtClient const &arg3_defvalue = wxART_OTHER ; | |
4945 | wxArtClient *arg3 = (wxArtClient *) &arg3_defvalue ; | |
4946 | wxSize arg4 = (wxSize) wxDefaultSize ; | |
4947 | wxBitmap result; | |
4948 | bool temp2 = False ; | |
4949 | wxSize *argp4 ; | |
4950 | PyObject * obj0 = 0 ; | |
4951 | PyObject * obj1 = 0 ; | |
4952 | PyObject * obj2 = 0 ; | |
4953 | PyObject * obj3 = 0 ; | |
4954 | char *kwnames[] = { | |
4955 | (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL | |
4956 | }; | |
4957 | ||
4958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:XmlResourceHandler_GetBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
4960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4961 | if (obj1) { | |
4962 | { | |
4963 | arg2 = wxString_in_helper(obj1); | |
4964 | if (arg2 == NULL) SWIG_fail; | |
4965 | temp2 = True; | |
4966 | } | |
4967 | } | |
4968 | if (obj2) { | |
4969 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxArtClient, | |
4970 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4971 | SWIG_fail; | |
4972 | if (arg3 == NULL) { | |
4973 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4974 | SWIG_fail; | |
4975 | } | |
4976 | } | |
4977 | if (obj3) { | |
4978 | if ((SWIG_ConvertPtr(obj3,(void **)(&argp4),SWIGTYPE_p_wxSize, | |
4979 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
4980 | arg4 = *argp4; | |
4981 | } | |
4982 | { | |
4983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4984 | result = (arg1)->GetBitmap((wxString const &)*arg2,(wxArtClient const &)*arg3,arg4); | |
4985 | ||
4986 | wxPyEndAllowThreads(__tstate); | |
4987 | if (PyErr_Occurred()) SWIG_fail; | |
4988 | } | |
4989 | { | |
4990 | wxBitmap * resultptr; | |
4991 | resultptr = new wxBitmap((wxBitmap &) result); | |
4992 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
4993 | } | |
4994 | { | |
4995 | if (temp2) | |
4996 | delete arg2; | |
4997 | } | |
4998 | return resultobj; | |
4999 | fail: | |
5000 | { | |
5001 | if (temp2) | |
5002 | delete arg2; | |
5003 | } | |
5004 | return NULL; | |
5005 | } | |
5006 | ||
5007 | ||
5008 | static PyObject *_wrap_XmlResourceHandler_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5009 | PyObject *resultobj; | |
5010 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
5011 | wxString const &arg2_defvalue = wxPyIconString ; | |
5012 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5013 | wxArtClient const &arg3_defvalue = wxART_OTHER ; | |
5014 | wxArtClient *arg3 = (wxArtClient *) &arg3_defvalue ; | |
5015 | wxSize arg4 = (wxSize) wxDefaultSize ; | |
5016 | wxIcon result; | |
5017 | bool temp2 = False ; | |
5018 | wxSize *argp4 ; | |
5019 | PyObject * obj0 = 0 ; | |
5020 | PyObject * obj1 = 0 ; | |
5021 | PyObject * obj2 = 0 ; | |
5022 | PyObject * obj3 = 0 ; | |
5023 | char *kwnames[] = { | |
5024 | (char *) "self",(char *) "param",(char *) "defaultArtClient",(char *) "size", NULL | |
5025 | }; | |
5026 | ||
5027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:XmlResourceHandler_GetIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
5029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5030 | if (obj1) { | |
5031 | { | |
5032 | arg2 = wxString_in_helper(obj1); | |
5033 | if (arg2 == NULL) SWIG_fail; | |
5034 | temp2 = True; | |
5035 | } | |
5036 | } | |
5037 | if (obj2) { | |
5038 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxArtClient, | |
5039 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5040 | SWIG_fail; | |
5041 | if (arg3 == NULL) { | |
5042 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5043 | SWIG_fail; | |
5044 | } | |
5045 | } | |
5046 | if (obj3) { | |
5047 | if ((SWIG_ConvertPtr(obj3,(void **)(&argp4),SWIGTYPE_p_wxSize, | |
5048 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
5049 | arg4 = *argp4; | |
5050 | } | |
5051 | { | |
5052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5053 | result = (arg1)->GetIcon((wxString const &)*arg2,(wxArtClient const &)*arg3,arg4); | |
5054 | ||
5055 | wxPyEndAllowThreads(__tstate); | |
5056 | if (PyErr_Occurred()) SWIG_fail; | |
5057 | } | |
5058 | { | |
5059 | wxIcon * resultptr; | |
5060 | resultptr = new wxIcon((wxIcon &) result); | |
5061 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
5062 | } | |
5063 | { | |
5064 | if (temp2) | |
5065 | delete arg2; | |
5066 | } | |
5067 | return resultobj; | |
5068 | fail: | |
5069 | { | |
5070 | if (temp2) | |
5071 | delete arg2; | |
5072 | } | |
5073 | return NULL; | |
5074 | } | |
5075 | ||
5076 | ||
5077 | static PyObject *_wrap_XmlResourceHandler_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5078 | PyObject *resultobj; | |
5079 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
5080 | wxString const &arg2_defvalue = wxPyFontString ; | |
5081 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5082 | wxFont result; | |
5083 | bool temp2 = False ; | |
5084 | PyObject * obj0 = 0 ; | |
5085 | PyObject * obj1 = 0 ; | |
5086 | char *kwnames[] = { | |
5087 | (char *) "self",(char *) "param", NULL | |
5088 | }; | |
5089 | ||
5090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlResourceHandler_GetFont",kwnames,&obj0,&obj1)) goto fail; | |
5091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
5092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5093 | if (obj1) { | |
5094 | { | |
5095 | arg2 = wxString_in_helper(obj1); | |
5096 | if (arg2 == NULL) SWIG_fail; | |
5097 | temp2 = True; | |
5098 | } | |
5099 | } | |
5100 | { | |
5101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5102 | result = (arg1)->GetFont((wxString const &)*arg2); | |
5103 | ||
5104 | wxPyEndAllowThreads(__tstate); | |
5105 | if (PyErr_Occurred()) SWIG_fail; | |
5106 | } | |
5107 | { | |
5108 | wxFont * resultptr; | |
5109 | resultptr = new wxFont((wxFont &) result); | |
5110 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
5111 | } | |
5112 | { | |
5113 | if (temp2) | |
5114 | delete arg2; | |
5115 | } | |
5116 | return resultobj; | |
5117 | fail: | |
5118 | { | |
5119 | if (temp2) | |
5120 | delete arg2; | |
5121 | } | |
5122 | return NULL; | |
5123 | } | |
5124 | ||
5125 | ||
5126 | static PyObject *_wrap_XmlResourceHandler_SetupWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5127 | PyObject *resultobj; | |
5128 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
5129 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5130 | PyObject * obj0 = 0 ; | |
5131 | PyObject * obj1 = 0 ; | |
5132 | char *kwnames[] = { | |
5133 | (char *) "self",(char *) "wnd", NULL | |
5134 | }; | |
5135 | ||
5136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResourceHandler_SetupWindow",kwnames,&obj0,&obj1)) goto fail; | |
5137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
5138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5139 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5141 | { | |
5142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5143 | (arg1)->SetupWindow(arg2); | |
5144 | ||
5145 | wxPyEndAllowThreads(__tstate); | |
5146 | if (PyErr_Occurred()) SWIG_fail; | |
5147 | } | |
5148 | Py_INCREF(Py_None); resultobj = Py_None; | |
5149 | return resultobj; | |
5150 | fail: | |
5151 | return NULL; | |
5152 | } | |
5153 | ||
5154 | ||
5155 | static PyObject *_wrap_XmlResourceHandler_CreateChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5156 | PyObject *resultobj; | |
5157 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
5158 | wxObject *arg2 = (wxObject *) 0 ; | |
5159 | bool arg3 = (bool) False ; | |
5160 | PyObject * obj0 = 0 ; | |
5161 | PyObject * obj1 = 0 ; | |
5162 | PyObject * obj2 = 0 ; | |
5163 | char *kwnames[] = { | |
5164 | (char *) "self",(char *) "parent",(char *) "this_hnd_only", NULL | |
5165 | }; | |
5166 | ||
5167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_CreateChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
5169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5170 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
5171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5172 | if (obj2) { | |
5173 | arg3 = (bool) SWIG_AsBool(obj2); | |
5174 | if (PyErr_Occurred()) SWIG_fail; | |
5175 | } | |
5176 | { | |
5177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5178 | (arg1)->CreateChildren(arg2,arg3); | |
5179 | ||
5180 | wxPyEndAllowThreads(__tstate); | |
5181 | if (PyErr_Occurred()) SWIG_fail; | |
5182 | } | |
5183 | Py_INCREF(Py_None); resultobj = Py_None; | |
5184 | return resultobj; | |
5185 | fail: | |
5186 | return NULL; | |
5187 | } | |
5188 | ||
5189 | ||
5190 | static PyObject *_wrap_XmlResourceHandler_CreateChildrenPrivately(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5191 | PyObject *resultobj; | |
5192 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
5193 | wxObject *arg2 = (wxObject *) 0 ; | |
5194 | wxXmlNode *arg3 = (wxXmlNode *) NULL ; | |
5195 | PyObject * obj0 = 0 ; | |
5196 | PyObject * obj1 = 0 ; | |
5197 | PyObject * obj2 = 0 ; | |
5198 | char *kwnames[] = { | |
5199 | (char *) "self",(char *) "parent",(char *) "rootnode", NULL | |
5200 | }; | |
5201 | ||
5202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlResourceHandler_CreateChildrenPrivately",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
5204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5205 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
5206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5207 | if (obj2) { | |
5208 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxXmlNode, | |
5209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5210 | } | |
5211 | { | |
5212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5213 | (arg1)->CreateChildrenPrivately(arg2,arg3); | |
5214 | ||
5215 | wxPyEndAllowThreads(__tstate); | |
5216 | if (PyErr_Occurred()) SWIG_fail; | |
5217 | } | |
5218 | Py_INCREF(Py_None); resultobj = Py_None; | |
5219 | return resultobj; | |
5220 | fail: | |
5221 | return NULL; | |
5222 | } | |
5223 | ||
5224 | ||
5225 | static PyObject *_wrap_XmlResourceHandler_CreateResFromNode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5226 | PyObject *resultobj; | |
5227 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
5228 | wxXmlNode *arg2 = (wxXmlNode *) 0 ; | |
5229 | wxObject *arg3 = (wxObject *) 0 ; | |
5230 | wxObject *arg4 = (wxObject *) NULL ; | |
5231 | wxObject *result; | |
5232 | PyObject * obj0 = 0 ; | |
5233 | PyObject * obj1 = 0 ; | |
5234 | PyObject * obj2 = 0 ; | |
5235 | PyObject * obj3 = 0 ; | |
5236 | char *kwnames[] = { | |
5237 | (char *) "self",(char *) "node",(char *) "parent",(char *) "instance", NULL | |
5238 | }; | |
5239 | ||
5240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:XmlResourceHandler_CreateResFromNode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
5242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5243 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxXmlNode, | |
5244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5245 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxObject, | |
5246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5247 | if (obj3) { | |
5248 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxObject, | |
5249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5250 | } | |
5251 | { | |
5252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5253 | result = (wxObject *)(arg1)->CreateResFromNode(arg2,arg3,arg4); | |
5254 | ||
5255 | wxPyEndAllowThreads(__tstate); | |
5256 | if (PyErr_Occurred()) SWIG_fail; | |
5257 | } | |
5258 | { | |
5259 | resultobj = wxPyMake_wxObject(result); | |
5260 | } | |
5261 | return resultobj; | |
5262 | fail: | |
5263 | return NULL; | |
5264 | } | |
5265 | ||
5266 | ||
5267 | static PyObject *_wrap_XmlResourceHandler_GetCurFileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5268 | PyObject *resultobj; | |
5269 | wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; | |
5270 | wxFileSystem *result; | |
5271 | PyObject * obj0 = 0 ; | |
5272 | char *kwnames[] = { | |
5273 | (char *) "self", NULL | |
5274 | }; | |
5275 | ||
5276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetCurFileSystem",kwnames,&obj0)) goto fail; | |
5277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, | |
5278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5279 | { | |
5280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5281 | { | |
5282 | wxFileSystem &_result_ref = (arg1)->GetCurFileSystem(); | |
5283 | result = (wxFileSystem *) &_result_ref; | |
5284 | } | |
5285 | ||
5286 | wxPyEndAllowThreads(__tstate); | |
5287 | if (PyErr_Occurred()) SWIG_fail; | |
5288 | } | |
5289 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileSystem, 0); | |
5290 | return resultobj; | |
5291 | fail: | |
5292 | return NULL; | |
5293 | } | |
5294 | ||
5295 | ||
5296 | static PyObject * XmlResourceHandler_swigregister(PyObject *self, PyObject *args) { | |
5297 | PyObject *obj; | |
5298 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5299 | SWIG_TypeClientData(SWIGTYPE_p_wxPyXmlResourceHandler, obj); | |
5300 | Py_INCREF(obj); | |
5301 | return Py_BuildValue((char *)""); | |
5302 | } | |
5303 | static PyMethodDef SwigMethods[] = { | |
5304 | { (char *)"new_XmlResource", (PyCFunction) _wrap_new_XmlResource, METH_VARARGS | METH_KEYWORDS }, | |
5305 | { (char *)"new_EmptyXmlResource", (PyCFunction) _wrap_new_EmptyXmlResource, METH_VARARGS | METH_KEYWORDS }, | |
5306 | { (char *)"delete_XmlResource", (PyCFunction) _wrap_delete_XmlResource, METH_VARARGS | METH_KEYWORDS }, | |
5307 | { (char *)"XmlResource_Load", (PyCFunction) _wrap_XmlResource_Load, METH_VARARGS | METH_KEYWORDS }, | |
5308 | { (char *)"XmlResource_LoadFromString", (PyCFunction) _wrap_XmlResource_LoadFromString, METH_VARARGS | METH_KEYWORDS }, | |
5309 | { (char *)"XmlResource_InitAllHandlers", (PyCFunction) _wrap_XmlResource_InitAllHandlers, METH_VARARGS | METH_KEYWORDS }, | |
5310 | { (char *)"XmlResource_AddHandler", (PyCFunction) _wrap_XmlResource_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
5311 | { (char *)"XmlResource_InsertHandler", (PyCFunction) _wrap_XmlResource_InsertHandler, METH_VARARGS | METH_KEYWORDS }, | |
5312 | { (char *)"XmlResource_ClearHandlers", (PyCFunction) _wrap_XmlResource_ClearHandlers, METH_VARARGS | METH_KEYWORDS }, | |
5313 | { (char *)"XmlResource_AddSubclassFactory", (PyCFunction) _wrap_XmlResource_AddSubclassFactory, METH_VARARGS | METH_KEYWORDS }, | |
5314 | { (char *)"XmlResource_LoadMenu", (PyCFunction) _wrap_XmlResource_LoadMenu, METH_VARARGS | METH_KEYWORDS }, | |
5315 | { (char *)"XmlResource_LoadMenuBar", (PyCFunction) _wrap_XmlResource_LoadMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
5316 | { (char *)"XmlResource_LoadMenuBarOnFrame", (PyCFunction) _wrap_XmlResource_LoadMenuBarOnFrame, METH_VARARGS | METH_KEYWORDS }, | |
5317 | { (char *)"XmlResource_LoadToolBar", (PyCFunction) _wrap_XmlResource_LoadToolBar, METH_VARARGS | METH_KEYWORDS }, | |
5318 | { (char *)"XmlResource_LoadDialog", (PyCFunction) _wrap_XmlResource_LoadDialog, METH_VARARGS | METH_KEYWORDS }, | |
5319 | { (char *)"XmlResource_LoadOnDialog", (PyCFunction) _wrap_XmlResource_LoadOnDialog, METH_VARARGS | METH_KEYWORDS }, | |
5320 | { (char *)"XmlResource_LoadPanel", (PyCFunction) _wrap_XmlResource_LoadPanel, METH_VARARGS | METH_KEYWORDS }, | |
5321 | { (char *)"XmlResource_LoadOnPanel", (PyCFunction) _wrap_XmlResource_LoadOnPanel, METH_VARARGS | METH_KEYWORDS }, | |
5322 | { (char *)"XmlResource_LoadFrame", (PyCFunction) _wrap_XmlResource_LoadFrame, METH_VARARGS | METH_KEYWORDS }, | |
5323 | { (char *)"XmlResource_LoadOnFrame", (PyCFunction) _wrap_XmlResource_LoadOnFrame, METH_VARARGS | METH_KEYWORDS }, | |
5324 | { (char *)"XmlResource_LoadObject", (PyCFunction) _wrap_XmlResource_LoadObject, METH_VARARGS | METH_KEYWORDS }, | |
5325 | { (char *)"XmlResource_LoadOnObject", (PyCFunction) _wrap_XmlResource_LoadOnObject, METH_VARARGS | METH_KEYWORDS }, | |
5326 | { (char *)"XmlResource_LoadBitmap", (PyCFunction) _wrap_XmlResource_LoadBitmap, METH_VARARGS | METH_KEYWORDS }, | |
5327 | { (char *)"XmlResource_LoadIcon", (PyCFunction) _wrap_XmlResource_LoadIcon, METH_VARARGS | METH_KEYWORDS }, | |
5328 | { (char *)"XmlResource_AttachUnknownControl", (PyCFunction) _wrap_XmlResource_AttachUnknownControl, METH_VARARGS | METH_KEYWORDS }, | |
5329 | { (char *)"XmlResource_GetXRCID", (PyCFunction) _wrap_XmlResource_GetXRCID, METH_VARARGS | METH_KEYWORDS }, | |
5330 | { (char *)"XmlResource_GetVersion", (PyCFunction) _wrap_XmlResource_GetVersion, METH_VARARGS | METH_KEYWORDS }, | |
5331 | { (char *)"XmlResource_CompareVersion", (PyCFunction) _wrap_XmlResource_CompareVersion, METH_VARARGS | METH_KEYWORDS }, | |
5332 | { (char *)"XmlResource_Get", (PyCFunction) _wrap_XmlResource_Get, METH_VARARGS | METH_KEYWORDS }, | |
5333 | { (char *)"XmlResource_Set", (PyCFunction) _wrap_XmlResource_Set, METH_VARARGS | METH_KEYWORDS }, | |
5334 | { (char *)"XmlResource_GetFlags", (PyCFunction) _wrap_XmlResource_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
5335 | { (char *)"XmlResource_SetFlags", (PyCFunction) _wrap_XmlResource_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
5336 | { (char *)"XmlResource_swigregister", XmlResource_swigregister, METH_VARARGS }, | |
5337 | { (char *)"new_XmlSubclassFactory", (PyCFunction) _wrap_new_XmlSubclassFactory, METH_VARARGS | METH_KEYWORDS }, | |
5338 | { (char *)"XmlSubclassFactory__setCallbackInfo", (PyCFunction) _wrap_XmlSubclassFactory__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
5339 | { (char *)"XmlSubclassFactory_swigregister", XmlSubclassFactory_swigregister, METH_VARARGS }, | |
5340 | { (char *)"new_XmlProperty", (PyCFunction) _wrap_new_XmlProperty, METH_VARARGS | METH_KEYWORDS }, | |
5341 | { (char *)"XmlProperty_GetName", (PyCFunction) _wrap_XmlProperty_GetName, METH_VARARGS | METH_KEYWORDS }, | |
5342 | { (char *)"XmlProperty_GetValue", (PyCFunction) _wrap_XmlProperty_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
5343 | { (char *)"XmlProperty_GetNext", (PyCFunction) _wrap_XmlProperty_GetNext, METH_VARARGS | METH_KEYWORDS }, | |
5344 | { (char *)"XmlProperty_SetName", (PyCFunction) _wrap_XmlProperty_SetName, METH_VARARGS | METH_KEYWORDS }, | |
5345 | { (char *)"XmlProperty_SetValue", (PyCFunction) _wrap_XmlProperty_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
5346 | { (char *)"XmlProperty_SetNext", (PyCFunction) _wrap_XmlProperty_SetNext, METH_VARARGS | METH_KEYWORDS }, | |
5347 | { (char *)"XmlProperty_swigregister", XmlProperty_swigregister, METH_VARARGS }, | |
5348 | { (char *)"new_XmlNode", (PyCFunction) _wrap_new_XmlNode, METH_VARARGS | METH_KEYWORDS }, | |
5349 | { (char *)"delete_XmlNode", (PyCFunction) _wrap_delete_XmlNode, METH_VARARGS | METH_KEYWORDS }, | |
5350 | { (char *)"new_XmlNodeEasy", (PyCFunction) _wrap_new_XmlNodeEasy, METH_VARARGS | METH_KEYWORDS }, | |
5351 | { (char *)"XmlNode_AddChild", (PyCFunction) _wrap_XmlNode_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
5352 | { (char *)"XmlNode_InsertChild", (PyCFunction) _wrap_XmlNode_InsertChild, METH_VARARGS | METH_KEYWORDS }, | |
5353 | { (char *)"XmlNode_RemoveChild", (PyCFunction) _wrap_XmlNode_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
5354 | { (char *)"XmlNode_AddProperty", (PyCFunction) _wrap_XmlNode_AddProperty, METH_VARARGS | METH_KEYWORDS }, | |
5355 | { (char *)"XmlNode_AddPropertyName", (PyCFunction) _wrap_XmlNode_AddPropertyName, METH_VARARGS | METH_KEYWORDS }, | |
5356 | { (char *)"XmlNode_DeleteProperty", (PyCFunction) _wrap_XmlNode_DeleteProperty, METH_VARARGS | METH_KEYWORDS }, | |
5357 | { (char *)"XmlNode_GetType", (PyCFunction) _wrap_XmlNode_GetType, METH_VARARGS | METH_KEYWORDS }, | |
5358 | { (char *)"XmlNode_GetName", (PyCFunction) _wrap_XmlNode_GetName, METH_VARARGS | METH_KEYWORDS }, | |
5359 | { (char *)"XmlNode_GetContent", (PyCFunction) _wrap_XmlNode_GetContent, METH_VARARGS | METH_KEYWORDS }, | |
5360 | { (char *)"XmlNode_GetParent", (PyCFunction) _wrap_XmlNode_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
5361 | { (char *)"XmlNode_GetNext", (PyCFunction) _wrap_XmlNode_GetNext, METH_VARARGS | METH_KEYWORDS }, | |
5362 | { (char *)"XmlNode_GetChildren", (PyCFunction) _wrap_XmlNode_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
5363 | { (char *)"XmlNode_GetProperties", (PyCFunction) _wrap_XmlNode_GetProperties, METH_VARARGS | METH_KEYWORDS }, | |
5364 | { (char *)"XmlNode_GetPropVal", (PyCFunction) _wrap_XmlNode_GetPropVal, METH_VARARGS | METH_KEYWORDS }, | |
5365 | { (char *)"XmlNode_HasProp", (PyCFunction) _wrap_XmlNode_HasProp, METH_VARARGS | METH_KEYWORDS }, | |
5366 | { (char *)"XmlNode_SetType", (PyCFunction) _wrap_XmlNode_SetType, METH_VARARGS | METH_KEYWORDS }, | |
5367 | { (char *)"XmlNode_SetName", (PyCFunction) _wrap_XmlNode_SetName, METH_VARARGS | METH_KEYWORDS }, | |
5368 | { (char *)"XmlNode_SetContent", (PyCFunction) _wrap_XmlNode_SetContent, METH_VARARGS | METH_KEYWORDS }, | |
5369 | { (char *)"XmlNode_SetParent", (PyCFunction) _wrap_XmlNode_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
5370 | { (char *)"XmlNode_SetNext", (PyCFunction) _wrap_XmlNode_SetNext, METH_VARARGS | METH_KEYWORDS }, | |
5371 | { (char *)"XmlNode_SetChildren", (PyCFunction) _wrap_XmlNode_SetChildren, METH_VARARGS | METH_KEYWORDS }, | |
5372 | { (char *)"XmlNode_SetProperties", (PyCFunction) _wrap_XmlNode_SetProperties, METH_VARARGS | METH_KEYWORDS }, | |
5373 | { (char *)"XmlNode_swigregister", XmlNode_swigregister, METH_VARARGS }, | |
5374 | { (char *)"new_XmlDocument", (PyCFunction) _wrap_new_XmlDocument, METH_VARARGS | METH_KEYWORDS }, | |
5375 | { (char *)"new_XmlDocumentFromStream", (PyCFunction) _wrap_new_XmlDocumentFromStream, METH_VARARGS | METH_KEYWORDS }, | |
5376 | { (char *)"new_EmptyXmlDocument", (PyCFunction) _wrap_new_EmptyXmlDocument, METH_VARARGS | METH_KEYWORDS }, | |
5377 | { (char *)"delete_XmlDocument", (PyCFunction) _wrap_delete_XmlDocument, METH_VARARGS | METH_KEYWORDS }, | |
5378 | { (char *)"XmlDocument_Load", (PyCFunction) _wrap_XmlDocument_Load, METH_VARARGS | METH_KEYWORDS }, | |
5379 | { (char *)"XmlDocument_LoadFromStream", (PyCFunction) _wrap_XmlDocument_LoadFromStream, METH_VARARGS | METH_KEYWORDS }, | |
5380 | { (char *)"XmlDocument_Save", (PyCFunction) _wrap_XmlDocument_Save, METH_VARARGS | METH_KEYWORDS }, | |
5381 | { (char *)"XmlDocument_SaveToStream", (PyCFunction) _wrap_XmlDocument_SaveToStream, METH_VARARGS | METH_KEYWORDS }, | |
5382 | { (char *)"XmlDocument_IsOk", (PyCFunction) _wrap_XmlDocument_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
5383 | { (char *)"XmlDocument_GetRoot", (PyCFunction) _wrap_XmlDocument_GetRoot, METH_VARARGS | METH_KEYWORDS }, | |
5384 | { (char *)"XmlDocument_GetVersion", (PyCFunction) _wrap_XmlDocument_GetVersion, METH_VARARGS | METH_KEYWORDS }, | |
5385 | { (char *)"XmlDocument_GetFileEncoding", (PyCFunction) _wrap_XmlDocument_GetFileEncoding, METH_VARARGS | METH_KEYWORDS }, | |
5386 | { (char *)"XmlDocument_SetRoot", (PyCFunction) _wrap_XmlDocument_SetRoot, METH_VARARGS | METH_KEYWORDS }, | |
5387 | { (char *)"XmlDocument_SetVersion", (PyCFunction) _wrap_XmlDocument_SetVersion, METH_VARARGS | METH_KEYWORDS }, | |
5388 | { (char *)"XmlDocument_SetFileEncoding", (PyCFunction) _wrap_XmlDocument_SetFileEncoding, METH_VARARGS | METH_KEYWORDS }, | |
5389 | { (char *)"XmlDocument_swigregister", XmlDocument_swigregister, METH_VARARGS }, | |
5390 | { (char *)"new_XmlResourceHandler", (PyCFunction) _wrap_new_XmlResourceHandler, METH_VARARGS | METH_KEYWORDS }, | |
5391 | { (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction) _wrap_XmlResourceHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
5392 | { (char *)"XmlResourceHandler_CreateResource", (PyCFunction) _wrap_XmlResourceHandler_CreateResource, METH_VARARGS | METH_KEYWORDS }, | |
5393 | { (char *)"XmlResourceHandler_SetParentResource", (PyCFunction) _wrap_XmlResourceHandler_SetParentResource, METH_VARARGS | METH_KEYWORDS }, | |
5394 | { (char *)"XmlResourceHandler_GetResource", (PyCFunction) _wrap_XmlResourceHandler_GetResource, METH_VARARGS | METH_KEYWORDS }, | |
5395 | { (char *)"XmlResourceHandler_GetNode", (PyCFunction) _wrap_XmlResourceHandler_GetNode, METH_VARARGS | METH_KEYWORDS }, | |
5396 | { (char *)"XmlResourceHandler_GetClass", (PyCFunction) _wrap_XmlResourceHandler_GetClass, METH_VARARGS | METH_KEYWORDS }, | |
5397 | { (char *)"XmlResourceHandler_GetParent", (PyCFunction) _wrap_XmlResourceHandler_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
5398 | { (char *)"XmlResourceHandler_GetInstance", (PyCFunction) _wrap_XmlResourceHandler_GetInstance, METH_VARARGS | METH_KEYWORDS }, | |
5399 | { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction) _wrap_XmlResourceHandler_GetParentAsWindow, METH_VARARGS | METH_KEYWORDS }, | |
5400 | { (char *)"XmlResourceHandler_GetInstanceAsWindow", (PyCFunction) _wrap_XmlResourceHandler_GetInstanceAsWindow, METH_VARARGS | METH_KEYWORDS }, | |
5401 | { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction) _wrap_XmlResourceHandler_IsOfClass, METH_VARARGS | METH_KEYWORDS }, | |
5402 | { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction) _wrap_XmlResourceHandler_GetNodeContent, METH_VARARGS | METH_KEYWORDS }, | |
5403 | { (char *)"XmlResourceHandler_HasParam", (PyCFunction) _wrap_XmlResourceHandler_HasParam, METH_VARARGS | METH_KEYWORDS }, | |
5404 | { (char *)"XmlResourceHandler_GetParamNode", (PyCFunction) _wrap_XmlResourceHandler_GetParamNode, METH_VARARGS | METH_KEYWORDS }, | |
5405 | { (char *)"XmlResourceHandler_GetParamValue", (PyCFunction) _wrap_XmlResourceHandler_GetParamValue, METH_VARARGS | METH_KEYWORDS }, | |
5406 | { (char *)"XmlResourceHandler_AddStyle", (PyCFunction) _wrap_XmlResourceHandler_AddStyle, METH_VARARGS | METH_KEYWORDS }, | |
5407 | { (char *)"XmlResourceHandler_AddWindowStyles", (PyCFunction) _wrap_XmlResourceHandler_AddWindowStyles, METH_VARARGS | METH_KEYWORDS }, | |
5408 | { (char *)"XmlResourceHandler_GetStyle", (PyCFunction) _wrap_XmlResourceHandler_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
5409 | { (char *)"XmlResourceHandler_GetText", (PyCFunction) _wrap_XmlResourceHandler_GetText, METH_VARARGS | METH_KEYWORDS }, | |
5410 | { (char *)"XmlResourceHandler_GetID", (PyCFunction) _wrap_XmlResourceHandler_GetID, METH_VARARGS | METH_KEYWORDS }, | |
5411 | { (char *)"XmlResourceHandler_GetName", (PyCFunction) _wrap_XmlResourceHandler_GetName, METH_VARARGS | METH_KEYWORDS }, | |
5412 | { (char *)"XmlResourceHandler_GetBool", (PyCFunction) _wrap_XmlResourceHandler_GetBool, METH_VARARGS | METH_KEYWORDS }, | |
5413 | { (char *)"XmlResourceHandler_GetLong", (PyCFunction) _wrap_XmlResourceHandler_GetLong, METH_VARARGS | METH_KEYWORDS }, | |
5414 | { (char *)"XmlResourceHandler_GetColour", (PyCFunction) _wrap_XmlResourceHandler_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
5415 | { (char *)"XmlResourceHandler_GetSize", (PyCFunction) _wrap_XmlResourceHandler_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
5416 | { (char *)"XmlResourceHandler_GetPosition", (PyCFunction) _wrap_XmlResourceHandler_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
5417 | { (char *)"XmlResourceHandler_GetDimension", (PyCFunction) _wrap_XmlResourceHandler_GetDimension, METH_VARARGS | METH_KEYWORDS }, | |
5418 | { (char *)"XmlResourceHandler_GetBitmap", (PyCFunction) _wrap_XmlResourceHandler_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
5419 | { (char *)"XmlResourceHandler_GetIcon", (PyCFunction) _wrap_XmlResourceHandler_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
5420 | { (char *)"XmlResourceHandler_GetFont", (PyCFunction) _wrap_XmlResourceHandler_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
5421 | { (char *)"XmlResourceHandler_SetupWindow", (PyCFunction) _wrap_XmlResourceHandler_SetupWindow, METH_VARARGS | METH_KEYWORDS }, | |
5422 | { (char *)"XmlResourceHandler_CreateChildren", (PyCFunction) _wrap_XmlResourceHandler_CreateChildren, METH_VARARGS | METH_KEYWORDS }, | |
5423 | { (char *)"XmlResourceHandler_CreateChildrenPrivately", (PyCFunction) _wrap_XmlResourceHandler_CreateChildrenPrivately, METH_VARARGS | METH_KEYWORDS }, | |
5424 | { (char *)"XmlResourceHandler_CreateResFromNode", (PyCFunction) _wrap_XmlResourceHandler_CreateResFromNode, METH_VARARGS | METH_KEYWORDS }, | |
5425 | { (char *)"XmlResourceHandler_GetCurFileSystem", (PyCFunction) _wrap_XmlResourceHandler_GetCurFileSystem, METH_VARARGS | METH_KEYWORDS }, | |
5426 | { (char *)"XmlResourceHandler_swigregister", XmlResourceHandler_swigregister, METH_VARARGS }, | |
5427 | { NULL, NULL } | |
5428 | }; | |
5429 | ||
5430 | ||
5431 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
5432 | ||
5433 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
5434 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
5435 | } | |
5436 | static void *_p_wxXmlDocumentTo_p_wxObject(void *x) { | |
5437 | return (void *)((wxObject *) ((wxXmlDocument *) x)); | |
5438 | } | |
5439 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
5440 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
5441 | } | |
5442 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
5443 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
5444 | } | |
5445 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
5446 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
5447 | } | |
5448 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
5449 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
5450 | } | |
5451 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
5452 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
5453 | } | |
5454 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
5455 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
5456 | } | |
5457 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
5458 | return (void *)((wxObject *) ((wxSizer *) x)); | |
5459 | } | |
5460 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
5461 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
5462 | } | |
5463 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
5464 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
5465 | } | |
5466 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
5467 | return (void *)((wxObject *) ((wxEvent *) x)); | |
5468 | } | |
5469 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
5470 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
5471 | } | |
5472 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
5473 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
5474 | } | |
5475 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
5476 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
5477 | } | |
5478 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
5479 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
5480 | } | |
5481 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
5482 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
5483 | } | |
5484 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
5485 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
5486 | } | |
5487 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
5488 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
5489 | } | |
5490 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
5491 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
5492 | } | |
5493 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
5494 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
5495 | } | |
5496 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
5497 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
5498 | } | |
5499 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
5500 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
5501 | } | |
5502 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
5503 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
5504 | } | |
5505 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
5506 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
5507 | } | |
5508 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
5509 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
5510 | } | |
5511 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
5512 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
5513 | } | |
5514 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
5515 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
5516 | } | |
5517 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
5518 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
5519 | } | |
5520 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
5521 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
5522 | } | |
5523 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
5524 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
5525 | } | |
5526 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
5527 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
5528 | } | |
5529 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
5530 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
5531 | } | |
5532 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
5533 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
5534 | } | |
5535 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
5536 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
5537 | } | |
5538 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
5539 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
5540 | } | |
5541 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
5542 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
5543 | } | |
5544 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
5545 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
5546 | } | |
5547 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
5548 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
5549 | } | |
5550 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
5551 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
5552 | } | |
5553 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
5554 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
5555 | } | |
5556 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
5557 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
5558 | } | |
5559 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
5560 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
5561 | } | |
5562 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
5563 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
5564 | } | |
5565 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
5566 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
5567 | } | |
5568 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
5569 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
5570 | } | |
5571 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
5572 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
5573 | } | |
5574 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
5575 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
5576 | } | |
5577 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
5578 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
5579 | } | |
5580 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
5581 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
5582 | } | |
5583 | static void *_p_wxPyXmlResourceHandlerTo_p_wxObject(void *x) { | |
5584 | return (void *)((wxObject *) ((wxPyXmlResourceHandler *) x)); | |
5585 | } | |
5586 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
5587 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
5588 | } | |
5589 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
5590 | return (void *)((wxObject *) ((wxImage *) x)); | |
5591 | } | |
5592 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
5593 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
5594 | } | |
5595 | static void *_p_wxXmlResourceTo_p_wxObject(void *x) { | |
5596 | return (void *)((wxObject *) ((wxXmlResource *) x)); | |
5597 | } | |
5598 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
5599 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
5600 | } | |
5601 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
5602 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
5603 | } | |
5604 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
5605 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
5606 | } | |
5607 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
5608 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
5609 | } | |
5610 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
5611 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
5612 | } | |
5613 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
5614 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
5615 | } | |
5616 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
5617 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
5618 | } | |
5619 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
5620 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
5621 | } | |
5622 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
5623 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
5624 | } | |
5625 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
5626 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
5627 | } | |
5628 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
5629 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
5630 | } | |
5631 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
5632 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
5633 | } | |
5634 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
5635 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
5636 | } | |
5637 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
5638 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
5639 | } | |
5640 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
5641 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
5642 | } | |
5643 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
5644 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
5645 | } | |
5646 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
5647 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
5648 | } | |
5649 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
5650 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
5651 | } | |
5652 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
5653 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
5654 | } | |
5655 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
5656 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
5657 | } | |
5658 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
5659 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
5660 | } | |
5661 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
5662 | return (void *)((wxWindow *) ((wxControl *) x)); | |
5663 | } | |
5664 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
5665 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
5666 | } | |
5667 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
5668 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
5669 | } | |
5670 | 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}}; | |
5671 | 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}}; | |
5672 | 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_wxXmlDocument", _p_wxXmlDocumentTo_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_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_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_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_wxFSFile", _p_wxFSFileTo_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_wxMenuItem", _p_wxMenuItemTo_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_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_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_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_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_wxPyXmlResourceHandler", _p_wxPyXmlResourceHandlerTo_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_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxXmlResource", _p_wxXmlResourceTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_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_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_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_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_wxDropFilesEvent", _p_wxDropFilesEventTo_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},{0, 0, 0, 0, 0, 0, 0}}; | |
5673 | static swig_type_info _swigt__p_wxDialog[] = {{"_p_wxDialog", 0, "wxDialog *", 0, 0, 0, 0},{"_p_wxDialog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5674 | 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}}; | |
5675 | 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}}; | |
5676 | static swig_type_info _swigt__p_wxArtClient[] = {{"_p_wxArtClient", 0, "wxArtClient *", 0, 0, 0, 0},{"_p_wxArtClient", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5677 | 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}}; | |
5678 | static swig_type_info _swigt__p_wxPyXmlSubclassFactory[] = {{"_p_wxPyXmlSubclassFactory", 0, "wxPyXmlSubclassFactory *", 0, 0, 0, 0},{"_p_wxPyXmlSubclassFactory", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5679 | 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}}; | |
5680 | 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}}; | |
5681 | static swig_type_info _swigt__p_wxXmlNode[] = {{"_p_wxXmlNode", 0, "wxXmlNode *", 0, 0, 0, 0},{"_p_wxXmlNode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5682 | static swig_type_info _swigt__p_wxInputStream[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0, 0, 0, 0},{"_p_wxInputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5683 | 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}}; | |
5684 | static swig_type_info _swigt__p_wxPyXmlResourceHandler[] = {{"_p_wxPyXmlResourceHandler", 0, "wxPyXmlResourceHandler *", 0, 0, 0, 0},{"_p_wxPyXmlResourceHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5685 | static swig_type_info _swigt__p_wxFileSystem[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0, 0, 0, 0},{"_p_wxFileSystem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5686 | static swig_type_info _swigt__p_wxXmlProperty[] = {{"_p_wxXmlProperty", 0, "wxXmlProperty *", 0, 0, 0, 0},{"_p_wxXmlProperty", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5687 | 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}}; | |
5688 | static swig_type_info _swigt__p_wxXmlResource[] = {{"_p_wxXmlResource", 0, "wxXmlResource *", 0, 0, 0, 0},{"_p_wxXmlResource", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5689 | static swig_type_info _swigt__p_wxXmlDocument[] = {{"_p_wxXmlDocument", 0, "wxXmlDocument *", 0, 0, 0, 0},{"_p_wxXmlDocument", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5690 | static swig_type_info _swigt__p_wxPanel[] = {{"_p_wxPanel", 0, "wxPanel *", 0, 0, 0, 0},{"_p_wxPanel", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
5691 | 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}}; | |
5692 | ||
5693 | static swig_type_info *swig_types_initial[] = { | |
5694 | _swigt__p_wxFrame, | |
5695 | _swigt__p_wxIcon, | |
5696 | _swigt__p_wxObject, | |
5697 | _swigt__p_wxDialog, | |
5698 | _swigt__p_wxColour, | |
5699 | _swigt__p_wxWindow, | |
5700 | _swigt__p_wxArtClient, | |
5701 | _swigt__p_wxBitmap, | |
5702 | _swigt__p_wxPyXmlSubclassFactory, | |
5703 | _swigt__p_char, | |
5704 | _swigt__p_wxPoint, | |
5705 | _swigt__p_wxXmlNode, | |
5706 | _swigt__p_wxInputStream, | |
5707 | _swigt__p_wxOutputStream, | |
5708 | _swigt__p_wxPyXmlResourceHandler, | |
5709 | _swigt__p_wxFileSystem, | |
5710 | _swigt__p_wxXmlProperty, | |
5711 | _swigt__p_wxFont, | |
5712 | _swigt__p_wxXmlResource, | |
5713 | _swigt__p_wxXmlDocument, | |
5714 | _swigt__p_wxPanel, | |
5715 | _swigt__p_wxSize, | |
5716 | 0 | |
5717 | }; | |
5718 | ||
5719 | ||
5720 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
5721 | ||
5722 | static swig_const_info swig_const_table[] = { | |
5723 | {0}}; | |
5724 | ||
5725 | #ifdef __cplusplus | |
5726 | } | |
5727 | #endif | |
5728 | ||
5729 | #ifdef __cplusplus | |
5730 | extern "C" | |
5731 | #endif | |
5732 | SWIGEXPORT(void) SWIG_init(void) { | |
5733 | static PyObject *SWIG_globals = 0; | |
5734 | static int typeinit = 0; | |
5735 | PyObject *m, *d; | |
5736 | int i; | |
5737 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
5738 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
5739 | d = PyModule_GetDict(m); | |
5740 | ||
5741 | if (!typeinit) { | |
5742 | for (i = 0; swig_types_initial[i]; i++) { | |
5743 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
5744 | } | |
5745 | typeinit = 1; | |
5746 | } | |
5747 | SWIG_InstallConstants(d,swig_const_table); | |
5748 | ||
5749 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
5750 | SWIG_addvarlink(SWIG_globals,(char*)"UTF8String",_wrap_UTF8String_get, _wrap_UTF8String_set); | |
5751 | SWIG_addvarlink(SWIG_globals,(char*)"StyleString",_wrap_StyleString_get, _wrap_StyleString_set); | |
5752 | SWIG_addvarlink(SWIG_globals,(char*)"SizeString",_wrap_SizeString_get, _wrap_SizeString_set); | |
5753 | SWIG_addvarlink(SWIG_globals,(char*)"PosString",_wrap_PosString_get, _wrap_PosString_set); | |
5754 | SWIG_addvarlink(SWIG_globals,(char*)"BitmapString",_wrap_BitmapString_get, _wrap_BitmapString_set); | |
5755 | SWIG_addvarlink(SWIG_globals,(char*)"IconString",_wrap_IconString_get, _wrap_IconString_set); | |
5756 | SWIG_addvarlink(SWIG_globals,(char*)"FontString",_wrap_FontString_get, _wrap_FontString_set); | |
5757 | PyDict_SetItemString(d,"WX_XMLRES_CURRENT_VERSION_MAJOR", SWIG_FromInt((int)WX_XMLRES_CURRENT_VERSION_MAJOR)); | |
5758 | PyDict_SetItemString(d,"WX_XMLRES_CURRENT_VERSION_MINOR", SWIG_FromInt((int)WX_XMLRES_CURRENT_VERSION_MINOR)); | |
5759 | PyDict_SetItemString(d,"WX_XMLRES_CURRENT_VERSION_RELEASE", SWIG_FromInt((int)WX_XMLRES_CURRENT_VERSION_RELEASE)); | |
5760 | PyDict_SetItemString(d,"WX_XMLRES_CURRENT_VERSION_REVISION", SWIG_FromInt((int)WX_XMLRES_CURRENT_VERSION_REVISION)); | |
5761 | PyDict_SetItemString(d,"XRC_USE_LOCALE", SWIG_FromInt((int)wxXRC_USE_LOCALE)); | |
5762 | PyDict_SetItemString(d,"XRC_NO_SUBCLASSING", SWIG_FromInt((int)wxXRC_NO_SUBCLASSING)); | |
5763 | PyDict_SetItemString(d,"XML_ELEMENT_NODE", SWIG_FromInt((int)wxXML_ELEMENT_NODE)); | |
5764 | PyDict_SetItemString(d,"XML_ATTRIBUTE_NODE", SWIG_FromInt((int)wxXML_ATTRIBUTE_NODE)); | |
5765 | PyDict_SetItemString(d,"XML_TEXT_NODE", SWIG_FromInt((int)wxXML_TEXT_NODE)); | |
5766 | PyDict_SetItemString(d,"XML_CDATA_SECTION_NODE", SWIG_FromInt((int)wxXML_CDATA_SECTION_NODE)); | |
5767 | PyDict_SetItemString(d,"XML_ENTITY_REF_NODE", SWIG_FromInt((int)wxXML_ENTITY_REF_NODE)); | |
5768 | PyDict_SetItemString(d,"XML_ENTITY_NODE", SWIG_FromInt((int)wxXML_ENTITY_NODE)); | |
5769 | PyDict_SetItemString(d,"XML_PI_NODE", SWIG_FromInt((int)wxXML_PI_NODE)); | |
5770 | PyDict_SetItemString(d,"XML_COMMENT_NODE", SWIG_FromInt((int)wxXML_COMMENT_NODE)); | |
5771 | PyDict_SetItemString(d,"XML_DOCUMENT_NODE", SWIG_FromInt((int)wxXML_DOCUMENT_NODE)); | |
5772 | PyDict_SetItemString(d,"XML_DOCUMENT_TYPE_NODE", SWIG_FromInt((int)wxXML_DOCUMENT_TYPE_NODE)); | |
5773 | PyDict_SetItemString(d,"XML_DOCUMENT_FRAG_NODE", SWIG_FromInt((int)wxXML_DOCUMENT_FRAG_NODE)); | |
5774 | PyDict_SetItemString(d,"XML_NOTATION_NODE", SWIG_FromInt((int)wxXML_NOTATION_NODE)); | |
5775 | PyDict_SetItemString(d,"XML_HTML_DOCUMENT_NODE", SWIG_FromInt((int)wxXML_HTML_DOCUMENT_NODE)); | |
5776 | ||
5777 | ||
5778 | wxXmlInitResourceModule(); | |
5779 | wxXmlResource::Get()->InitAllHandlers(); | |
5780 | ||
5781 | ||
5782 | } | |
5783 |