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