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