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